Differential EquationsSolving First-Order Equations7 of 7
Solving First-Order Equations · 7
Homogeneous and Bernoulli Equations
When a first-order differential equation isn't separable, linear, or exact, we can substitute a new variable v to turn it into one we already know how to solve.
Turning New Equations into Old Ones
Separableg(y)dy=f(x)dxLineardxdy+P(x)y=Q(x)ExactMdx+Ndy=0none of these⟹?
1
Homogeneous Equations
We want to solve the differential equation
dxdy=degree 1+1=2x1y1x2degree 2+y2degree 2
We cannot separate variables because x2+y2 are added on top, and the equation isn't linear because the right side splits into yx+xy, and yx has y in the denominator. How can we use the fact that every term on the right has the same total degree (2) to group x and y together?
Homogeneous Equations
dxdyy=xyx2+y2=?
Text solution
Divide top and bottom by x2 to group x and y into the ratio xyDividing every term by x2 rewrites the right side completely in terms of xy.
dxdydxdy=x2xyx2x2+x2y2=xy1+(xy)2
Substitute y=vx and dxdy=v+xdxdvBecause v and x both change as x changes, taking the derivative of y=vx with the product rule gives dxdy=v+xdxdv. Substituting both writes the equation in terms of v and x.
v+xdxdvv+xdxdvxdxdv=v1+v2=v1+v=v1
Separate variables and integrateMultiplying by v on the left with dv and moving x and dx to the right separates the variables.
vdv∫vdv21v2=x1dx=∫x1dx=ln∣x∣+C
Put v=xy back in and clear the fractionReplacing v with xy and multiplying both sides by 2x2 gives the solution in terms of x and y, where we keep calling the constant 2C just C.
21(xy)2y2=ln∣x∣+C=2x2ln∣x∣+Cx2
Along any straight line through the origin, the ratio v=xy stays constant, so the slope dxdy is the same at every point on that line and all the tangent segments along it are parallel.
For a homogeneous equation, every point on the same ray from the origin has the same ratio of y to x and the same tangent slope.
2
Homogeneous Equations When v Doesn't Cancel
Now let's solve a homogeneous equation where the v on the left does not cancel out with the right side:
dxdy=2xyx2+3y2
Homogeneous Equations When v Doesn't Cancel
dxdyy=2xyx2+3y2=?
Text solution
Divide by x2 and substitute y=vxEvery term has degree 2, so we divide top and bottom by x2 and replace xy with v and dxdy with v+xdxdv.
dxdyv+xdxdv=2(xy)1+3(xy)2=2v1+3v2
Subtract v and combine over the common denominator 2vRewriting −v as −2v2v2 combines the right side into one fraction.
Flip the v fraction to separate variables and integrateMultiplying by 1+v22v puts 2v on top of 1+v2, and 2v is the derivative of the denominator, so with u=1+v2 we have du=2vdv.
Put v=xy back in and multiply by x2Putting v=xy back in and multiplying by x2 to clear the denominator gives the implicit solution, which we can leave as is unless we need to solve for y.
1+(xy)2x2+y2=Cx=Cx3
3
Linear Combination Equations
What if the terms do not have the same degree? Now we want to solve
dxdy=(linear combinationx+y+1)2
The right side isn't a fraction with the same degree in every term on top and bottom, so we can't write it in terms of xy, and multiplying out (x+y+1)2 only mixes x and y together even more. Instead, we can use the fact that x and y only show up inside the single expression x+y+1.
Linear Combination Equations
dxdyy=(x+y+1)2=?
Text solution
Set v=x+y+1 and take the derivative term by termBecause x and y are added rather than multiplied, taking the derivative with respect to x gives dxdy directly without the product rule.
vdxdvdxdy=x+y+1=1+dxdy=dxdv−1
Substitute v and dxdy to separate variablesPlugging both pieces into the differential equation gets rid of x and y at the same time.
dxdv−1dxdvv2+11dv=v2=v2+1=dx
Integrate both sides and put x+y+1 back inThe left side integrates to arctan(v), so we take tan of both sides to solve for v and then replace v with x+y+1.
Along any line where x+y+1=v is constant, the slope dxdy=v2 stays the same everywhere on that line. So while a homogeneous equation has equal slopes along straight lines through the origin, a linear combination equation has equal slopes along parallel lines.
When a differential equation depends only on a linear combination of x and y, the slope stays constant along every parallel line where that combination is constant.
4
Bernoulli Equations
Now suppose x and y are neither homogeneous nor grouped inside a linear combination, as in
dxdy+x1y=x2yny3
Without the y3 on the far right, this would be a standard first-order linear equation dxdy+P(x)y=Q(x). An equation with an extra yn multiplied on the right is called a Bernoulli equation. How do we clear that y3 and turn the equation into a linear one?
Bernoulli Equations
dxdy+x1yy=x2y3=?
Text solution
Divide every term by y3 to clear y from the right sideMultiplying every term by y−3 leaves only x2 on the right and puts y−2 into the middle term.
y−3dxdy+x1vy−2=x2
Set v=y−2 from the middle term and take the derivative using the chain ruleBecause the power rule lowers the exponent on y−2 by 1, taking the derivative dxdv automatically gives us the y−3dxdy sitting at the front of the equation.
vdxdv−21dxdv=y−2=−2y−3dxdy=y−3dxdy
Substitute v and put the linear equation in standard formReplacing y−2 and y−3dxdy and multiplying by −2 gives a first-order linear equation in v.
−21dxdv+x1vdxdv−x2v=x2=−2x2
Multiply by the integrating factor I(x)=e∫P(x)dx and integrateRemember, for a linear equation dxdv+P(x)v=Q(x), multiplying by I(x)=e∫(−2/x)dx=x−2 turns the left side into the single derivative dxd(x−2v) by the product rule in reverse.
Put v=y21 back inReplacing v with y21 writes the solution back in terms of x and y.
y21=−2x3+Cx2
5
Choosing the Right Substitution
Each of the three substitutions renames one expression in x and y as v, so that the equation in v and x becomes separable or linear.
The Three Substitutions Side by Side
dxdy=xyx2+y2dxdy=f(ax+by+c)dxdy+P(x)y=Q(x)yn
v=?
Key concepts
Before trying a substitution, check that the equation isn't already separable or linear as written: dxdy=y2x2 has degree 2 on top and bottom, but y2dy=x2dx separates right away without y=vx, and dxdy+x1y=x2 has no yn on the right so it is already linear.
When you do need a substitution, look at how x and y are grouped to pick the right one:
A fraction with the same total degree in every term on top and bottom → Homogeneous (v=xy)
In dxdy=2xyx2+3y2, every term has degree 2 and the addition on top keeps us from separating variables. Divide top and bottom by x2 and substitute
y=vx,dxdy=v+xdxdv
Subtracting v and combining over a common denominator always makes the equation separable.
Grouped in one linear expression → Linear combination (v=ax+by+c)
In dxdy=(x+y+1)2,x and y appear only inside x+y+1. Set v=x+y+1 and take the derivative term by term (dxdv=1+dxdy) to make the equation separable.
Linear except for yn on the right → Bernoulli (divide by yn, then v=y1−n)
In dxdy+x1y=x2y3, divide the whole equation by y3 first to get y−3dxdy+x1y−2=x2. Set v=y−2 from the middle term; taking the derivative with the chain rule gives −2 times the front term y−3dxdy and turns the equation into a linear equation in v.
6
Practice
1
Solve dxdy=x2y2+xy.
Check the total degree of y2,xy, and x2. What do you get on the right side when you divide top and bottom by x2?
Divide the top and bottom by x2 to write the right side in terms of xy:
dxdy=(xy)2+xy
Substitute y=vx and dxdy=v+xdxdv:
v+xdxdv=v2+v
Watch out: Replacing dxdy with xdxdv alone (forgetting the +v from the product rule on y=vx) fails to cancel the v on the right and leads to the wrong answer y=1−CxCx2.
Subtract v from both sides, separate variables, and integrate:
xdxdvv−2dv∫v−2dv−v1=v2=x1dx=∫x1dx=ln∣x∣+C
Substitute v=xy back in and solve for y:
−yxy=ln∣x∣+C=ln∣x∣+C−x
2
Solve 2xydxdy=y2−x2.
Divide by 2xy first and check the degree of each term; after substituting y=vx, how do you combine the right side into one fraction before separating?
Divide by 2xy to get dxdy by itself, then divide top and bottom by x2:
dxdydxdy=2xyy2−x2=2(xy)(xy)2−1
Substitute y=vx and dxdy=v+xdxdv, then subtract v:
v+xdxdvxdxdv=2vv2−1=2vv2−1−v
Watch out: Writing −v as −2vv2 instead of −2v2v2 when putting the right side over the common denominator 2v cancels v2 by mistake and gives the wrong answer y2=−x2ln∣x∣+Cx2.
Combine over the common denominator 2v, separate variables, and integrate:
Where do x and y appear on the right side? Watch the negative sign on y when you take the derivative of v with respect to x.
Set v=x−y+2 and take the derivative term by term with respect to x:
vdxdvdxdy=x−y+2=1−dxdy=1−dxdv
Watch out: Taking the derivative of x−y+2 as 1+dxdy (missing the minus sign on −y) gives dxdv=v2+2 and leads to the wrong answer y=x+2−2tan(2x+C).
Substitute 1−dxdv and v into the equation and separate variables:
1−dxdv−dxdv−v−2dv=v2+1=v2=dx
Integrate both sides and replace v with x−y+2:
∫−v−2dvv1x−y+2y=∫1dx=x+C=x+C1=x+2−x+C1
4
Solve dxdy+y=exy2.
Cover up y2 on the right side. What do you divide the whole equation by to clear that y2?
Divide every term by y2 (multiply by y−2):
y−2dxdy+y−1=ex
Set v=y−1 from the middle term and take the derivative with respect to x:
vdxdv−dxdv=y−1=−y−2dxdy=y−2dxdy
Watch out: Dropping the minus sign from the chain rule (dxdv=−y−2dxdy) gives dxdv+v=ex with integrating factor ex, which leads to the wrong answer y1=21ex+Ce−x.
Substitute into the equation and multiply by −1 to get standard linear form:
−dxdv+vdxdv−v=ex=−ex
Multiply by the integrating factor I(x)=e∫−1dx=e−x, integrate, and put v=y1 back in:
Divide by x first and write y as y1/2; after you divide out y1/2, which term tells you what v is?
Divide every term by x and by y1/2:
dxdy+x2yy−1/2dxdy+x2y1/2=2y1/2=2
Set v=y1/2 from the middle term and take the derivative using the chain rule:
vdxdv2dxdv=y1/2=21y−1/2dxdy=y−1/2dxdy
Watch out: Replacing y−1/2dxdy with dxdv instead of 2dxdv misses dividing the remaining terms by 2, leaving dxdv+x2v=2 (integrating factor x2) and giving the wrong answer y=32x+x2C.
Substitute 2dxdv and v, then divide by 2 to get standard linear form:
2dxdv+x2vdxdv+x1v=2=1
Multiply by the integrating factor I(x)=e∫(1/x)dx=x, integrate, and put v=y back in: