Forming a differential equation · Mathematics Class 11–12 | StemPy Lab
Course 13.1·Lesson 2 of 3
Forming a differential equation
A family of curves has arbitrary constants, such as all lines y=mx through the origin. An equation that every member satisfies, and that does not mention the constants, is the differential equation of the family. To form it, differentiate as many times as there are constants and eliminate the constants. The order of the equation equals the number of constants.
about 25 min
Lesson 2 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
form the differential equation of a family of curves by eliminating the constants;
say its order and degree from the number of constants and the form of the result;
check that a family satisfies the equation you formed.
One equation for a whole family
Think of all the straight lines through the origin, y=mx. The number m changes from line to line. Is there one equation that every one of these lines satisfies, with no m in it?
Differentiate: y′=m. Put this in y=mx and we get y=xy′. The constant has gone. Every line through the origin satisfies xy′−y=0.
This is the idea of the lesson. A family with arbitrary constants becomes one differential equation, in which the constants have been eliminated.
The method
Count the constants. Say there are n of them. The equation will have order n.
Differentiate the equation of the family n times.
Eliminate the constants from these n+1 equations.
Tidy up. Write the result without roots or fractions that hide a derivative, and then read the order and the degree.
The constants must be independent. In y=(A+B)x the two letters make one constant, A+B, so the family has only one constant and the equation has order 1.
Family with one constant
Example 1. The family y=Cx3. Differentiate: y′=3Cx2. Then C=3x2y′ and also C=x3y. Equate: 3x2y′=x3y, so xy′=3y.
Six blue curves through the origin, each the graph of y = C x cubed for C = -1.5, -1, -0.5, 0.5, 1 and 1.5. The curves with positive C rise to the right and the curves with negative C fall to the right. At x = 1 each curve has a red dot and a short red tangent line, and the steeper the curve, the steeper its tangent.
At x=1 the curve y=Cx3 has height C and slope 3C. So the slope is three times the height at x=1, which is what xy′=3y says. Slide C and watch the last reading.
Example 2. The parabolas y2=4ax. Differentiate: 2yy′=4a. Put 4a=xy2 from the family. Then 2yy′=xy2, so 2xy′=y (for y=0).
Example 3. Circles of radius 5 with the centre on the x-axis: (x−a)2+y2=25. Differentiate: (x−a)+yy′=0, so x−a=−yy′. Put this in the family: y2y′2+y2=25. So y2(1+y′2)=25. The order is 1 and the degree is 2.
Family with two constants
Example 4. The family y=Aex+Be2x has two constants, so we differentiate twice.
y′=Aex+2Be2x
y′′=Aex+4Be2x
Subtract to remove A: y′−y=Be2x and y′′−y′=2Be2x. Then y′′−y′=2(y′−y), so
y′′−3y′+2y=0.
Example 5. The family y=Acos2x+Bsin2x. Differentiate twice: y′′=−4Acos2x−4Bsin2x=−4y. So y′′+4y=0. Here the constants vanish at once.
Example 6. The family y=ax+xb. Differentiate twice: y′=a−x2b and y′′=x32b. So b=2x3y′′ and a=y′+2xy′′. Substitute: y=xy′+2x2y′′+2x2y′′, which gives x2y′′+xy′−y=0.
Practise with new numbers
Try it in Python
The program tests two families. It checks that y=Cx3 satisfies xy′=3y for three values of C. Then it checks that y=Ax+Bx2 satisfies x2y′′−2xy′+2y=0 for three pairs (A,B).
Common mistakes
Differentiating too few times. With two constants you need y′ and y′′.
Leaving a constant in the answer. The final equation must not contain A, B, C, a, b or m.
Counting dependent constants.y=Aex+B is y=(AeB)ex, with one constant.
Forgetting to clear a root. Read the degree after the equation has no root of a derivative.
Not checking. Put one member of the family back into your equation.
Remember these
A family with n independent constants gives an equation of order n.
Differentiate n times and eliminate the constants.
Lines through the origin, y=mx, give xy′=y. The family y=Cx3 gives xy′=3y.
Check the result with a member of the family.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Form the differential equation of the family y=Cx2.
Form the differential equation of the family y=ae2x+be−2x.
Form the differential equation of the family y=ax+a2 and state its degree.
Form the differential equation of the family y=ex(Acosx+Bsinx).
How many constants does the family of all circles in the plane have, and what is the order of its differential equation?