Substitutions and Bernoulli equations (free preview) | StemPy Lab
Free previewCourse: Standard
Substitutions and Bernoulli equations
Many equations are not separable, homogeneous or linear as they stand, but a substitution makes them so. The equation dxdy=f(ax+by+c) separates with v=ax+by+c. A fraction of two linear expressions becomes homogeneous after the origin is shifted, or separable when the two lines are parallel. A Bernoulli equation becomes linear with v=y1−n.
This is the first lesson of Differential Equations in Depth: Substitutions, Exact Equations and Second Order, free for everyone to read.
What you will be able to do
turn dxdy=f(ax+by+c) into a separable equation with one substitution;
solve dxdy=a2x+b2y+c2a1x+b1y+c1 in both cases, with parallel lines and with crossing lines;
recognise a Bernoulli equation and reduce it to a linear equation.
When the equation is not standard
In the free courses you met three types: separable, homogeneous and linear. Many equations are none of these. The idea of this lesson is simple. Replace y by a new unknown v so that the new equation is one of the three types. Solve it, and then put y back.
A good substitution comes from looking at the equation. If the same combination appears again and again, call it v.
The equation dxdy=f(ax+by+c)
Here y appears only inside one linear expression. Put v=ax+by+c. Differentiate: dxdv=a+bdxdy=a+bf(v). This equation has only v and x, and the variables separate.
a+bf(v)dv=dx.
Two graphs side by side. The left graph shows five blue curves, each the graph of y = tan(x + C) - x - 1 for C = -1, -0.5, 0, 0.5 and 1. Each curve rises steeply and has a vertical dashed line where it runs off the top of the graph. The right graph shows the two straight lines x + y = 3 and x - y = 1 crossing at the point (2, 1), marked with a red dot. An orange curve, a spiral, starts close to that point, turns anticlockwise around it and widens, and passes through the point (3, 2), marked with a blue dot.
The left graph shows the solutions of the first example below.
Example 1. Solve dxdy=(x+y+1)2.
Let v=x+y+1. Then dxdv=1+dxdy=1+v2.
Separate: 1+v2dv=dx, so tan−1v=x+C.
Return to y: x+y+1=tan(x+C), so y=tan(x+C)−x−1.
Example 2. Solve dxdy=x+y1.
Let v=x+y. Then dxdv=1+v1=vv+1.
Separate: v+1vdv=dx. Write v+1v=1−v+11, so v−ln∣v+1∣=x+C.
Return to y: x+y−ln∣x+y+1∣=x+C, which simplifies to y−ln∣x+y+1∣=C.
A fraction of two linear expressions
Now take dxdy=a2x+b2y+c2a1x+b1y+c1. Each of a1x+b1y+c1=0 and a2x+b2y+c2=0 is a straight line. There are two cases.
The lines are parallel. Then a1b2=a2b1, and the top is a multiple of a2x+b2y plus a constant. Put v=a2x+b2y (or a1x+b1y). The equation becomes the type f(ax+by+c) above.
Example 3. Solve dxdy=2x+2y+3x+y+1.
The lines are parallel. Let v=x+y. Then dxdv=1+2v+3v+1=2v+33v+4.
Return to y and multiply by 9: 6(x+y)+ln∣3x+3y+4∣=9x+C, so 6y−3x+ln∣3x+3y+4∣=C.
The lines cross at a point (h,k). Shift the origin to the crossing point: put x=X+h and y=Y+k. The constants c1 and c2 disappear, and the equation becomes dXdY=a2X+b2Ya1X+b1Y. This is homogeneous. Use Y=VX from the free course.
Example 4. Solve dxdy=x−y−1x+y−3.
The lines x+y=3 and x−y=1 cross at (2,1). Put x=X+2 and y=Y+1. The equation is dXdY=X−YX+Y.
Let Y=VX. Then V+XdXdV=1−V1+V, so XdXdV=1−V1+V2.
Return to x and y: tan−1x−2y−1=21ln[(x−2)2+(y−1)2]+C.
In polar form about the point (2,1) this says θ=lnr+C. The solution is a spiral, and the right graph of the picture shows it.
Bernoulli equations
A Bernoulli equation has the form
dxdy+P(x)y=Q(x)yn,
where n is a number other than 0 and 1. (For n=0 it is linear already, and for n=1 it is separable.) The substitution v=y1−n makes it linear.
Divide by yn: y−ndxdy+Py1−n=Q.
Put v=y1−n. Then dxdv=(1−n)y−ndxdy.
The equation becomes dxdv+(1−n)Pv=(1−n)Q. This is linear in v, and the integrating factor e∫(1−n)Pdx solves it.
Example 5. Solve dxdy+xy=xy2 for x>0.
Here n=2, so v=y−1 and dxdv=−y−2dxdy.
Divide by y2: y−2dxdy+x1y−1=x. This is −dxdv+xv=x, or dxdv−xv=−x.
The integrating factor is e−lnx=x1. So dxd(xv)=−1, which gives xv=−x+C.
Return to y: v=Cx−x2, so y=Cx−x21.
Example 6: x as the unknown. Solve dxdy=x−x2yy. Turn the equation over: dydx=yx−x2. Now x is the unknown and y is the variable, and this is a Bernoulli equation with n=2.
Let v=x1. Then dydv=−x21dydx=−yv+1.
So dydv+yv=1. The integrating factor is y, and dyd(yv)=y.
Then yv=2y2+C, so xy=2y2+C and x=y2+2C2y.
Other useful substitutions
If xy appears in the equation, try v=xy. Then dxdv=y+xdxdy. If xny appears, try v=xny. The test for a good substitution is always the same: after it, the new equation must be separable, homogeneous or linear.
What the syllabi ask
JEE Main and JEE Advanced expect you to find the substitution yourself. A-Level Further Maths and IB Higher Level usually give the substitution in the question ("show that the substitution z=y−1 reduces the equation to..."). The method is the same.
Practise with new numbers
Try it in Python
The program checks that y=Cx−x21 solves the Bernoulli equation of Example 5 for two values of C. Then it checks the linear equation for v=y1.
Common mistakes
Forgetting the new letter. After v=x+y the equation must contain only v and x. If a y is left, the substitution is not finished.
Treating dxdv as dxdy. For v=ax+by+c, dxdv=a+bdxdy. The a is easy to lose.
Shifting the origin for parallel lines. Parallel lines never cross, so there is no point to shift to. Use v=a2x+b2y.
Wrong power in a Bernoulli equation. The substitution is v=y1−n. For n=2 that is y−1.
Forgetting the factor (1−n). It multiplies both P and Q in the linear equation.
Remember these
dxdy=f(ax+by+c): put v=ax+by+c, then dxdv=a+bf(v).
Fraction of two lines, parallel: put v=a2x+b2y. Crossing: shift the origin to the crossing point, then put Y=VX.
Bernoulli: dxdy+Py=Qyn. Put v=y1−n and get dxdv+(1−n)Pv=(1−n)Q.
If x is easier as the unknown, turn the equation over and work with dydx.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Solve dxdy=cos(x+y).
The equation dxdy+x2y=x2y3 is a Bernoulli equation. Write the linear equation for v=y−2.
Solve dxdy+y=xy3.
For dxdy=x−y−12x+y−5, find the point to which the origin must be shifted, and write the equation in X and Y.
Can you solve dxdy=2x+y+34x+2y+1 by shifting the origin? What do you do instead?
References
OpenStax, Calculus Volume 2, Chapter 4, sections 4.3 Separable Differential Equations and 4.5 First-order Linear Equations.
NCERT, Mathematics Part II for Class XII, Chapter 9, the sections on homogeneous and linear differential equations.
Liked this lesson? There is more
Differential Equations in Depth: Substitutions, Exact Equations and Second Order is a Standard course. It adds 2 more lessons, practice and tests on top of the free chapter.
12Problems2Python Labs1Question Set1Mock Test
Exact equations: An equation written as Mdx+Ndy=0
is exact when
Mdx+Ndy
is the total change of one function
F(x,y)
. The test is
∂y∂M=∂x∂N
, and the solution is
F(x,y)=C
. When the test fails, a suitable integrating factor often makes the equation exact. Inspection of familiar groups such as
xdy+ydx
gives a quick solution.
Second-order equations with constant coefficients: A mass on a spring, a swinging door and a circuit with a coil and a capacitor all obey a second-order equation ay′′+by′+cy=f(x) with constant coefficients. Try y=emx in the equation with f=0 and you reach the auxiliary equation am2+bm+c=0. Its roots, real, equal or complex, decide the form of the solution. A particular integral takes care of f(x).