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\renamed{v} to turn it into one we already know how to solve.

Turning New Equations into Old Ones
Separableg(y) dy=f(x) dxLineardydx+P(x) y=Q(x)ExactM dx+N dy=0none of these  ⟹    ?\displaystyle \begin{aligned}&\text{Separable}\\[2pt]&\unknown{g(y)}\,\rate{dy} = f(x)\,\rate{dx}\\[12pt]&\text{Linear}\\[2pt]&\rate{\frac{dy}{dx}} + P(x)\,\unknown{y} = Q(x)\\[12pt]&\text{Exact}\\[2pt]&M\,\rate{dx} + N\,\rate{dy} = 0\\[16pt]&\text{none of these} \;\Longrightarrow\; \;?\end{aligned}
1

Homogeneous Equations

We want to solve the differential equation

dydx\displaystyle \rate{\frac{dy}{dx}} =x2⏞degree 2+y2⏞degree 2x1y1⏟degree 1+1=2\displaystyle = \frac{\overbrace{x^2}^{\text{degree } 2} + \overbrace{\unknown{y^2}}^{\text{degree } 2}}{\underbrace{x^1 \unknown{y^1}}_{\text{degree } 1+1=2}}

We cannot separate variables because x2+y2x^2 + \unknown{y^2} are added on top, and the equation isn't linear because the right side splits into xy+yx\frac{x}{\unknown{y}} + \frac{\unknown{y}}{x}, and xy\frac{x}{\unknown{y}} has y\unknown{y} in the denominator. How can we use the fact that every term on the right has the same total degree (22) to group xx and y\unknown{y} together?

Homogeneous Equations
dydx=x2+y2xyy=  ?\displaystyle \begin{aligned}\rate{\frac{dy}{dx}} &= \frac{x^2 + \unknown{y^2}}{x\unknown{y}}\\[6pt]\unknown{y} &= \;?\end{aligned}
Text solution
Divide top and bottom by x2x^2 to group xx and y\unknown{y} into the ratio yx\renamed{\tfrac{y}{x}}Dividing every term by x2x^2 rewrites the right side completely in terms of yx\renamed{\frac{y}{x}}.
dydx=x2x2+y2x2xyx2dydx=1+(yx)2yx\displaystyle \begin{aligned} \rate{\frac{dy}{dx}} &= \frac{\frac{x^2}{x^2} + \frac{\unknown{y^2}}{x^2}}{\frac{x\unknown{y}}{x^2}} \\ \rate{\frac{dy}{dx}} &= \frac{1 + \left(\renamed{\frac{y}{x}}\right)^2}{\renamed{\frac{y}{x}}} \end{aligned}
Substitute y=vx\unknown{y} = \renamed{v}x and dydx=v+xdvdx\rate{\frac{dy}{dx}} = \renamed{v} + x\rate{\frac{dv}{dx}}Because v\renamed{v} and xx both change as xx changes, taking the derivative of y=vx\unknown{y} = \renamed{v}x with the product rule gives dydx=v+xdvdx\rate{\frac{dy}{dx}} = \renamed{v} + x\rate{\frac{dv}{dx}}. Substituting both writes the equation in terms of v\renamed{v} and xx.
v+xdvdx=1+v2vv+xdvdx=1v+vxdvdx=1v\displaystyle \begin{aligned} \renamed{v} + x\rate{\frac{dv}{dx}} &= \frac{1 + \renamed{v^2}}{\renamed{v}} \\ \renamed{v} + x\rate{\frac{dv}{dx}} &= \frac{1}{\renamed{v}} + \renamed{v} \\ x\rate{\frac{dv}{dx}} &= \frac{1}{\renamed{v}} \end{aligned}
Separate variables and integrateMultiplying by v\renamed{v} on the left with dv\rate{dv} and moving xx and dx\rate{dx} to the right separates the variables.
v dv=1x dx∫v dv=∫1x dx12v2=ln⁡∣x∣+C\displaystyle \begin{aligned} \renamed{v}\,\rate{dv} &= \frac{1}{x}\,\rate{dx} \\ \bothsides{\int} \renamed{v}\,\rate{dv} &= \bothsides{\int} \frac{1}{x}\,\rate{dx} \\ \frac{1}{2}\renamed{v^2} &= \ln|x| + C \end{aligned}
Put v=yx\renamed{v} = \renamed{\tfrac{y}{x}} back in and clear the fractionReplacing v\renamed{v} with yx\renamed{\frac{y}{x}} and multiplying both sides by 2x22x^2 gives the solution in terms of xx and y\unknown{y}, where we keep calling the constant 2C2C just CC.
12(yx)2=ln⁡∣x∣+Cy2=2x2ln⁡∣x∣+Cx2\displaystyle \begin{aligned} \frac{1}{2}\left(\renamed{\frac{y}{x}}\right)^2 &= \ln|x| + C \\ \unknown{y^2} &= 2x^2\ln|x| + Cx^2 \end{aligned}

Along any straight line through the origin, the ratio v=yx\renamed{v} = \renamed{\frac{y}{x}} stays constant, so the slope dydx\rate{\frac{dy}{dx}} 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\renamed{v} Doesn't Cancel

Now let's solve a homogeneous equation where the v\renamed{v} on the left does not cancel out with the right side:

dydx\displaystyle \rate{\frac{dy}{dx}} =x2+3y22xy\displaystyle = \frac{x^2 + 3\unknown{y^2}}{2x\unknown{y}}
Homogeneous Equations When v Doesn't Cancel
dydx=x2+3y22xyy=  ?\displaystyle \begin{aligned}\rate{\frac{dy}{dx}} &= \frac{x^2 + 3\unknown{y^2}}{2x\unknown{y}}\\[6pt]\unknown{y} &= \;?\end{aligned}
Text solution
Divide by x2x^2 and substitute y=vx\unknown{y} = \renamed{v}xEvery term has degree 22, so we divide top and bottom by x2x^2 and replace yx\renamed{\frac{y}{x}} with v\renamed{v} and dydx\rate{\frac{dy}{dx}} with v+xdvdx\renamed{v} + x\rate{\frac{dv}{dx}}.
dydx=1+3(yx)22(yx)v+xdvdx=1+3v22v\displaystyle \begin{aligned} \rate{\frac{dy}{dx}} &= \frac{1 + 3\left(\renamed{\frac{y}{x}}\right)^2}{2\left(\renamed{\frac{y}{x}}\right)} \\ \renamed{v} + x\rate{\frac{dv}{dx}} &= \frac{1 + 3\renamed{v^2}}{2\renamed{v}} \end{aligned}
Subtract v\renamed{v} and combine over the common denominator 2v2\renamed{v}Rewriting −v-\renamed{v} as −2v22v-\frac{2\renamed{v^2}}{2\renamed{v}} combines the right side into one fraction.
xdvdx=1+3v22v−vxdvdx=1+3v2−2v22vxdvdx=1+v22v\displaystyle \begin{aligned} x\rate{\frac{dv}{dx}} &= \frac{1 + 3\renamed{v^2}}{2\renamed{v}} - \renamed{v} \\ x\rate{\frac{dv}{dx}} &= \frac{1 + 3\renamed{v^2} - 2\renamed{v^2}}{2\renamed{v}} \\ x\rate{\frac{dv}{dx}} &= \frac{1 + \renamed{v^2}}{2\renamed{v}} \end{aligned}
Flip the v\renamed{v} fraction to separate variables and integrateMultiplying by 2v1+v2\frac{2\renamed{v}}{1 + \renamed{v^2}} puts 2v2\renamed{v} on top of 1+v21 + \renamed{v^2}, and 2v2\renamed{v} is the derivative of the denominator, so with u=1+v2u = 1 + \renamed{v^2} we have du=2v dv\rate{du} = 2\renamed{v}\,\rate{dv}.
2v1+v2 dv=1x dx∫2v1+v2 dv=∫1x dxln⁡(1+v2)=ln⁡∣x∣+C1+v2=Cx\displaystyle \begin{aligned} \frac{2\renamed{v}}{1 + \renamed{v^2}}\,\rate{dv} &= \frac{1}{x}\,\rate{dx} \\ \bothsides{\int} \frac{2\renamed{v}}{1 + \renamed{v^2}}\,\rate{dv} &= \bothsides{\int} \frac{1}{x}\,\rate{dx} \\ \ln(1 + \renamed{v^2}) &= \ln|x| + C \\ 1 + \renamed{v^2} &= Cx \end{aligned}
Put v=yx\renamed{v} = \renamed{\tfrac{y}{x}} back in and multiply by x2x^2Putting v=yx\renamed{v} = \renamed{\frac{y}{x}} back in and multiplying by x2x^2 to clear the denominator gives the implicit solution, which we can leave as is unless we need to solve for y\unknown{y}.
1+(yx)2=Cxx2+y2=Cx3\displaystyle \begin{aligned} 1 + \left(\renamed{\frac{y}{x}}\right)^2 &= Cx \\ x^2 + \unknown{y^2} &= Cx^3 \end{aligned}
3

Linear Combination Equations

What if the terms do not have the same degree? Now we want to solve

dydx\displaystyle \rate{\frac{dy}{dx}} =(x+y+1⏟linear combination)2\displaystyle = (\underbrace{\renamed{x + y + 1}}_{\text{linear combination}})^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 yx\renamed{\frac{y}{x}}, and multiplying out (x+y+1)2(\renamed{x + y + 1})^2 only mixes xx and y\unknown{y} together even more. Instead, we can use the fact that xx and y\unknown{y} only show up inside the single expression x+y+1\renamed{x + y + 1}.

Linear Combination Equations
dydx=(x+y+1)2y=  ?\displaystyle \begin{aligned}\rate{\frac{dy}{dx}} &= (\renamed{x + y + 1})^2\\[6pt]\unknown{y} &= \;?\end{aligned}
Text solution
Set v=x+y+1\renamed{v} = \renamed{x + y + 1} and take the derivative term by termBecause xx and y\unknown{y} are added rather than multiplied, taking the derivative with respect to xx gives dydx\rate{\frac{dy}{dx}} directly without the product rule.
v=x+y+1dvdx=1+dydxdydx=dvdx−1\displaystyle \begin{aligned} \renamed{v} &= \renamed{x + y + 1} \\ \rate{\frac{dv}{dx}} &= 1 + \rate{\frac{dy}{dx}} \\ \rate{\frac{dy}{dx}} &= \rate{\frac{dv}{dx}} - 1 \end{aligned}
Substitute v\renamed{v} and dydx\rate{\frac{dy}{dx}} to separate variablesPlugging both pieces into the differential equation gets rid of xx and y\unknown{y} at the same time.
dvdx−1=v2dvdx=v2+11v2+1 dv=dx\displaystyle \begin{aligned} \rate{\frac{dv}{dx}} - 1 &= \renamed{v^2} \\ \rate{\frac{dv}{dx}} &= \renamed{v^2} + 1 \\ \frac{1}{\renamed{v^2} + 1}\,\rate{dv} &= \rate{dx} \end{aligned}
Integrate both sides and put x+y+1\renamed{x + y + 1} back inThe left side integrates to arctan⁡(v)\arctan(\renamed{v}), so we take tan⁡\bothsides{\tan} of both sides to solve for v\renamed{v} and then replace v\renamed{v} with x+y+1\renamed{x + y + 1}.
∫1v2+1 dv=∫1 dxarctan⁡(v)=x+Cv=tan⁡(x+C)x+y+1=tan⁡(x+C)y=tan⁡(x+C)−x−1\displaystyle \begin{aligned} \bothsides{\int} \frac{1}{\renamed{v^2} + 1}\,\rate{dv} &= \bothsides{\int} 1\,\rate{dx} \\ \arctan(\renamed{v}) &= x + C \\ \renamed{v} &= \tan(x + C) \\ \renamed{x + y + 1} &= \tan(x + C) \\ \unknown{y} &= \tan(x + C) - x - 1 \end{aligned}
dydx=x2+y2xy\displaystyle \rate{\frac{dy}{dx}} = \frac{x^2 + \unknown{y^2}}{x\unknown{y}}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
2\htmlClass{lc-mute}{2}
2\htmlClass{lc-mute}{2}
v=34\renamed{v = \tfrac{3}{4}}
v=14\renamed{v = \tfrac{1}{4}}
v=−34\renamed{v = -\tfrac{3}{4}}
v=yx\displaystyle \renamed{v} = \renamed{\frac{y}{x}}
dydx=(x+y+1)2\displaystyle \rate{\frac{dy}{dx}} = (\renamed{x + y + 1})^2
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
2\htmlClass{lc-mute}{2}
2\htmlClass{lc-mute}{2}
v=0\renamed{v = 0}
v=1\renamed{v = 1}
v=2\renamed{v = 2}
v=x+y+1\displaystyle \renamed{v} = \renamed{x + y + 1}

Along any line where x+y+1=v\renamed{x + y + 1} = \renamed{v} is constant, the slope dydx=v2\rate{\frac{dy}{dx}} = \renamed{v^2} 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 xx and y\unknown{y} are neither homogeneous nor grouped inside a linear combination, as in

dydx+1xy\displaystyle \rate{\frac{dy}{dx}} + \frac{1}{x}\unknown{y} =x2y3⏟yn\displaystyle = x^2\underbrace{\unknown{y^3}}_{\unknown{y^n}}

Without the y3\unknown{y^3} on the far right, this would be a standard first-order linear equation dydx+P(x)y=Q(x)\rate{\frac{dy}{dx}} + P(x)\unknown{y} = Q(x). An equation with an extra yn\unknown{y^n} multiplied on the right is called a Bernoulli equation. How do we clear that y3\unknown{y^3} and turn the equation into a linear one?

Bernoulli Equations
dydx+1x y=x2 y3y=  ?\displaystyle \begin{aligned}\rate{\frac{dy}{dx}} + \frac{1}{x}\,\unknown{y} &= x^2\,\unknown{y^3}\\[6pt]\unknown{y} &= \;?\end{aligned}
Text solution
Divide every term by y3\unknown{y^3} to clear y\unknown{y} from the right sideMultiplying every term by y−3\unknown{y^{-3}} leaves only x2x^2 on the right and puts y−2\renamed{y^{-2}} into the middle term.
y−3dydx+1xy−2⏟v\displaystyle \unknown{y^{-3}}\rate{\frac{dy}{dx}} + \frac{1}{x}\underbrace{\renamed{y^{-2}}}_{\renamed{v}} =x2\displaystyle = x^2
Set v=y−2\renamed{v} = \renamed{y^{-2}} from the middle term and take the derivative using the chain ruleBecause the power rule lowers the exponent on y−2\renamed{y^{-2}} by 11, taking the derivative dvdx\rate{\frac{dv}{dx}} automatically gives us the y−3dydx\unknown{y^{-3}}\rate{\frac{dy}{dx}} sitting at the front of the equation.
v=y−2dvdx=−2y−3dydx−12dvdx=y−3dydx\displaystyle \begin{aligned} \renamed{v} &= \renamed{y^{-2}} \\ \rate{\frac{dv}{dx}} &= -2\unknown{y^{-3}}\rate{\frac{dy}{dx}} \\ -\frac{1}{2}\rate{\frac{dv}{dx}} &= \unknown{y^{-3}}\rate{\frac{dy}{dx}} \end{aligned}
Substitute v\renamed{v} and put the linear equation in standard formReplacing y−2\renamed{y^{-2}} and y−3dydx\unknown{y^{-3}}\rate{\frac{dy}{dx}} and multiplying by −2-2 gives a first-order linear equation in v\renamed{v}.
−12dvdx+1xv=x2dvdx−2xv=−2x2\displaystyle \begin{aligned} -\frac{1}{2}\rate{\frac{dv}{dx}} + \frac{1}{x}\renamed{v} &= x^2 \\ \rate{\frac{dv}{dx}} - \frac{2}{x}\renamed{v} &= -2x^2 \end{aligned}
Multiply by the integrating factor I(x)=e∫P(x) dx\bothsides{I(x)} = \bothsides{e^{\int P(x)\,\rate{dx}}} and integrateRemember, for a linear equation dvdx+P(x)v=Q(x)\rate{\frac{dv}{dx}} + P(x)\renamed{v} = Q(x), multiplying by I(x)=e∫(−2/x) dx=x−2\bothsides{I(x)} = \bothsides{e^{\int (-2/x)\,\rate{dx}}} = \bothsides{x^{-2}} turns the left side into the single derivative ddx(x−2v)\bothsides{\frac{d}{dx}}\left(\bothsides{x^{-2}}\renamed{v}\right) by the product rule in reverse.
x−2dvdx−2x−3v=−2ddx(x−2v)=−2x−2v=∫−2 dxx−2v=−2x+Cv=−2x3+Cx2\displaystyle \begin{aligned} \bothsides{x^{-2}}\rate{\frac{dv}{dx}} - 2x^{-3}\renamed{v} &= -2 \\ \bothsides{\frac{d}{dx}}\left(\bothsides{x^{-2}}\renamed{v}\right) &= -2 \\ \bothsides{x^{-2}}\renamed{v} &= \bothsides{\int} -2\,\rate{dx} \\ \bothsides{x^{-2}}\renamed{v} &= -2x + C \\ \renamed{v} &= -2x^3 + Cx^2 \end{aligned}
Put v=1y2\renamed{v} = \renamed{\tfrac{1}{y^2}} back inReplacing v\renamed{v} with 1y2\renamed{\frac{1}{y^2}} writes the solution back in terms of xx and y\unknown{y}.
1y2\displaystyle \renamed{\frac{1}{y^2}} =−2x3+Cx2\displaystyle = -2x^3 + Cx^2
5

Choosing the Right Substitution

Each of the three substitutions renames one expression in xx and y\unknown{y} as v\renamed{v}, so that the equation in v\renamed{v} and xx becomes separable or linear.

The Three Substitutions Side by Side
dydx=x2+y2xydydx=f(ax+by+c)dydx+P(x) y=Q(x) yn\displaystyle \begin{gathered}\rate{\frac{dy}{dx}} = \frac{x^2 + \unknown{y^2}}{x\unknown{y}}\\[10pt]\rate{\frac{dy}{dx}} = f(ax + b\unknown{y} + c)\\[10pt]\rate{\frac{dy}{dx}} + P(x)\,\unknown{y} = Q(x)\,\unknown{y^n}\end{gathered}
v\displaystyle \renamed{v} =  ?\displaystyle = \;?

Key concepts

Before trying a substitution, check that the equation isn't already separable or linear as written: dydx=x2y2\rate{\frac{dy}{dx}} = \frac{x^2}{\unknown{y^2}} has degree 22 on top and bottom, but y2 dy=x2 dx\unknown{y^2}\,\rate{dy} = x^2\,\rate{dx} separates right away without y=vx\unknown{y} = \renamed{v}x, and dydx+1xy=x2\rate{\frac{dy}{dx}} + \frac{1}{x}\unknown{y} = x^2 has no yn\unknown{y^n} on the right so it is already linear.

When you do need a substitution, look at how xx and y\unknown{y} are grouped to pick the right one:

A fraction with the same total degree in every term on top and bottom →\rightarrow Homogeneous (v=yx\renamed{v} = \renamed{\tfrac{y}{x}})

In dydx=x2+3y22xy\rate{\frac{dy}{dx}} = \frac{x^2 + 3\unknown{y^2}}{2x\unknown{y}}, every term has degree 22 and the addition on top keeps us from separating variables. Divide top and bottom by x2x^2 and substitute

y\displaystyle \unknown{y} =vx,dydx\displaystyle = \renamed{v}x, \qquad \rate{\frac{dy}{dx}} =v+xdvdx\displaystyle = \renamed{v} + x\rate{\frac{dv}{dx}}
Subtracting v\renamed{v} and combining over a common denominator always makes the equation separable.

Grouped in one linear expression →\rightarrow Linear combination (v=ax+by+c\renamed{v} = \renamed{ax + by + c})

In dydx=(x+y+1)2\rate{\frac{dy}{dx}} = (\renamed{x + y + 1})^2, xx and y\unknown{y} appear only inside x+y+1\renamed{x + y + 1}. Set v=x+y+1\renamed{v} = \renamed{x + y + 1} and take the derivative term by term (dvdx=1+dydx\rate{\frac{dv}{dx}} = 1 + \rate{\frac{dy}{dx}}) to make the equation separable.

Linear except for yn\unknown{y^n} on the right →\rightarrow Bernoulli (divide by yn\unknown{y^n}, then v=y1−n\renamed{v} = \renamed{y^{1-n}})

In dydx+1xy=x2y3\rate{\frac{dy}{dx}} + \frac{1}{x}\unknown{y} = x^2\unknown{y^3}, divide the whole equation by y3\unknown{y^3} first to get y−3dydx+1xy−2=x2\unknown{y^{-3}}\rate{\frac{dy}{dx}} + \frac{1}{x}\renamed{y^{-2}} = x^2. Set v=y−2\renamed{v} = \renamed{y^{-2}} from the middle term; taking the derivative with the chain rule gives −2-2 times the front term y−3dydx\unknown{y^{-3}}\rate{\frac{dy}{dx}} and turns the equation into a linear equation in v\renamed{v}.

6

Practice

1

Solve dydx=y2+xyx2\rate{\frac{dy}{dx}} = \frac{\unknown{y^2} + x\unknown{y}}{x^2}.

Check the total degree of y2\unknown{y^2}, xyx\unknown{y}, and x2x^2. What do you get on the right side when you divide top and bottom by x2x^2?

Divide the top and bottom by x2x^2 to write the right side in terms of yx\renamed{\frac{y}{x}}:
dydx\displaystyle \rate{\frac{dy}{dx}} =(yx)2+yx\displaystyle = \left(\renamed{\frac{y}{x}}\right)^2 + \renamed{\frac{y}{x}}
Substitute y=vx\unknown{y} = \renamed{v}x and dydx=v+xdvdx\rate{\frac{dy}{dx}} = \renamed{v} + x\rate{\frac{dv}{dx}}:
v+xdvdx\displaystyle \renamed{v} + x\rate{\frac{dv}{dx}} =v2+v\displaystyle = \renamed{v^2} + \renamed{v}
Watch out: Replacing dydx\rate{\frac{dy}{dx}} with xdvdxx\rate{\frac{dv}{dx}} alone (forgetting the +v+ \renamed{v} from the product rule on y=vx\unknown{y} = \renamed{v}x) fails to cancel the v\renamed{v} on the right and leads to the wrong answer y=Cx21−Cx\unknown{y} = \frac{Cx^2}{1 - Cx}.
Subtract v\renamed{v} from both sides, separate variables, and integrate:
xdvdx=v2v−2 dv=1x dx∫v−2 dv=∫1x dx−1v=ln⁡∣x∣+C\displaystyle \begin{aligned} x\rate{\frac{dv}{dx}} &= \renamed{v^2} \\ \renamed{v^{-2}}\,\rate{dv} &= \frac{1}{x}\,\rate{dx} \\ \bothsides{\int} \renamed{v^{-2}}\,\rate{dv} &= \bothsides{\int} \frac{1}{x}\,\rate{dx} \\ -\frac{1}{\renamed{v}} &= \ln|x| + C \end{aligned}
Substitute v=yx\renamed{v} = \renamed{\frac{y}{x}} back in and solve for y\unknown{y}:
−xy=ln⁡∣x∣+Cy=−xln⁡∣x∣+C\displaystyle \begin{aligned} -\frac{x}{\unknown{y}} &= \ln|x| + C \\ \unknown{y} &= \frac{-x}{\ln|x| + C} \end{aligned}
2

Solve 2xydydx=y2−x22x\unknown{y}\rate{\frac{dy}{dx}} = \unknown{y^2} - x^2.

Divide by 2xy2x\unknown{y} first and check the degree of each term; after substituting y=vx\unknown{y} = \renamed{v}x, how do you combine the right side into one fraction before separating?

Divide by 2xy2x\unknown{y} to get dydx\rate{\frac{dy}{dx}} by itself, then divide top and bottom by x2x^2:
dydx=y2−x22xydydx=(yx)2−12(yx)\displaystyle \begin{aligned} \rate{\frac{dy}{dx}} &= \frac{\unknown{y^2} - x^2}{2x\unknown{y}} \\ \rate{\frac{dy}{dx}} &= \frac{\left(\renamed{\frac{y}{x}}\right)^2 - 1}{2\left(\renamed{\frac{y}{x}}\right)} \end{aligned}
Substitute y=vx\unknown{y} = \renamed{v}x and dydx=v+xdvdx\rate{\frac{dy}{dx}} = \renamed{v} + x\rate{\frac{dv}{dx}}, then subtract v\renamed{v}:
v+xdvdx=v2−12vxdvdx=v2−12v−v\displaystyle \begin{aligned} \renamed{v} + x\rate{\frac{dv}{dx}} &= \frac{\renamed{v^2} - 1}{2\renamed{v}} \\ x\rate{\frac{dv}{dx}} &= \frac{\renamed{v^2} - 1}{2\renamed{v}} - \renamed{v} \end{aligned}
Watch out: Writing −v-\renamed{v} as −v22v-\frac{\renamed{v^2}}{2\renamed{v}} instead of −2v22v-\frac{2\renamed{v^2}}{2\renamed{v}} when putting the right side over the common denominator 2v2\renamed{v} cancels v2\renamed{v^2} by mistake and gives the wrong answer y2=−x2ln⁡∣x∣+Cx2\unknown{y^2} = -x^2\ln|x| + Cx^2.
Combine over the common denominator 2v2\renamed{v}, separate variables, and integrate:
xdvdx=v2−1−2v22vxdvdx=−v2+12v2vv2+1 dv=−1x dx∫2vv2+1 dv=−∫1x dxln⁡(v2+1)=−ln⁡∣x∣+Cv2+1=Cx\displaystyle \begin{aligned} x\rate{\frac{dv}{dx}} &= \frac{\renamed{v^2} - 1 - 2\renamed{v^2}}{2\renamed{v}} \\ x\rate{\frac{dv}{dx}} &= -\frac{\renamed{v^2} + 1}{2\renamed{v}} \\ \frac{2\renamed{v}}{\renamed{v^2} + 1}\,\rate{dv} &= -\frac{1}{x}\,\rate{dx} \\ \bothsides{\int} \frac{2\renamed{v}}{\renamed{v^2} + 1}\,\rate{dv} &= -\bothsides{\int} \frac{1}{x}\,\rate{dx} \\ \ln(\renamed{v^2} + 1) &= -\ln|x| + C \\ \renamed{v^2} + 1 &= \frac{C}{x} \end{aligned}
Put v=yx\renamed{v} = \renamed{\frac{y}{x}} back in and multiply by x2x^2:
(yx)2+1=Cxx2+y2=Cx\displaystyle \begin{aligned} \left(\renamed{\frac{y}{x}}\right)^2 + 1 &= \frac{C}{x} \\ x^2 + \unknown{y^2} &= Cx \end{aligned}
3

Solve dydx=(x−y+2)2+1\rate{\frac{dy}{dx}} = (x - \unknown{y} + 2)^2 + 1.

Where do xx and y\unknown{y} appear on the right side? Watch the negative sign on y\unknown{y} when you take the derivative of v\renamed{v} with respect to xx.

Set v=x−y+2\renamed{v} = \renamed{x - y + 2} and take the derivative term by term with respect to xx:
v=x−y+2dvdx=1−dydxdydx=1−dvdx\displaystyle \begin{aligned} \renamed{v} &= \renamed{x - y + 2} \\ \rate{\frac{dv}{dx}} &= 1 - \rate{\frac{dy}{dx}} \\ \rate{\frac{dy}{dx}} &= 1 - \rate{\frac{dv}{dx}} \end{aligned}
Watch out: Taking the derivative of x−y+2\renamed{x - y + 2} as 1+dydx1 + \rate{\frac{dy}{dx}} (missing the minus sign on −y-\unknown{y}) gives dvdx=v2+2\rate{\frac{dv}{dx}} = \renamed{v^2} + 2 and leads to the wrong answer y=x+2−2tan⁡(2x+C)\unknown{y} = x + 2 - \sqrt{2}\tan(\sqrt{2}x + C).
Substitute 1−dvdx1 - \rate{\frac{dv}{dx}} and v\renamed{v} into the equation and separate variables:
1−dvdx=v2+1−dvdx=v2−v−2 dv=dx\displaystyle \begin{aligned} 1 - \rate{\frac{dv}{dx}} &= \renamed{v^2} + 1 \\ -\rate{\frac{dv}{dx}} &= \renamed{v^2} \\ -\renamed{v^{-2}}\,\rate{dv} &= \rate{dx} \end{aligned}
Integrate both sides and replace v\renamed{v} with x−y+2\renamed{x - y + 2}:
∫−v−2 dv=∫1 dx1v=x+Cx−y+2=1x+Cy=x+2−1x+C\displaystyle \begin{aligned} \bothsides{\int} -\renamed{v^{-2}}\,\rate{dv} &= \bothsides{\int} 1\,\rate{dx} \\ \frac{1}{\renamed{v}} &= x + C \\ \renamed{x - y + 2} &= \frac{1}{x + C} \\ \unknown{y} &= x + 2 - \frac{1}{x + C} \end{aligned}
4

Solve dydx+y=exy2\rate{\frac{dy}{dx}} + \unknown{y} = e^x \unknown{y^2}.

Cover up y2\unknown{y^2} on the right side. What do you divide the whole equation by to clear that y2\unknown{y^2}?

Divide every term by y2\unknown{y^2} (multiply by y−2\unknown{y^{-2}}):
y−2dydx+y−1\displaystyle \unknown{y^{-2}}\rate{\frac{dy}{dx}} + \renamed{y^{-1}} =ex\displaystyle = e^x
Set v=y−1\renamed{v} = \renamed{y^{-1}} from the middle term and take the derivative with respect to xx:
v=y−1dvdx=−y−2dydx−dvdx=y−2dydx\displaystyle \begin{aligned} \renamed{v} &= \renamed{y^{-1}} \\ \rate{\frac{dv}{dx}} &= -\unknown{y^{-2}}\rate{\frac{dy}{dx}} \\ -\rate{\frac{dv}{dx}} &= \unknown{y^{-2}}\rate{\frac{dy}{dx}} \end{aligned}
Watch out: Dropping the minus sign from the chain rule (dvdx=−y−2dydx\rate{\frac{dv}{dx}} = -\unknown{y^{-2}}\rate{\frac{dy}{dx}}) gives dvdx+v=ex\rate{\frac{dv}{dx}} + \renamed{v} = e^x with integrating factor ex\bothsides{e^x}, which leads to the wrong answer 1y=12ex+Ce−x\renamed{\frac{1}{y}} = \frac{1}{2}e^x + Ce^{-x}.
Substitute into the equation and multiply by −1-1 to get standard linear form:
−dvdx+v=exdvdx−v=−ex\displaystyle \begin{aligned} -\rate{\frac{dv}{dx}} + \renamed{v} &= e^x \\ \rate{\frac{dv}{dx}} - \renamed{v} &= -e^x \end{aligned}
Multiply by the integrating factor I(x)=e∫−1 dx=e−x\bothsides{I(x)} = \bothsides{e^{\int -1\,\rate{dx}}} = \bothsides{e^{-x}}, integrate, and put v=1y\renamed{v} = \renamed{\frac{1}{y}} back in:
e−xdvdx−e−xv=−1ddx(e−xv)=−1e−xv=−x+Cv=Cex−xex1y=Cex−xex\displaystyle \begin{aligned} \bothsides{e^{-x}}\rate{\frac{dv}{dx}} - \bothsides{e^{-x}}\renamed{v} &= -1 \\ \bothsides{\frac{d}{dx}}\left(\bothsides{e^{-x}}\renamed{v}\right) &= -1 \\ \bothsides{e^{-x}}\renamed{v} &= -x + C \\ \renamed{v} &= Ce^x - xe^x \\ \renamed{\frac{1}{y}} &= Ce^x - xe^x \end{aligned}
5

Solve xdydx+2y=2xyx\rate{\frac{dy}{dx}} + 2\unknown{y} = 2x\unknown{\sqrt{y}} for x>0x > 0.

Divide by xx first and write y\unknown{\sqrt{y}} as y1/2\unknown{y^{1/2}}; after you divide out y1/2\unknown{y^{1/2}}, which term tells you what v\renamed{v} is?

Divide every term by xx and by y1/2\unknown{y^{1/2}}:
dydx+2xy=2y1/2y−1/2dydx+2xy1/2=2\displaystyle \begin{aligned} \rate{\frac{dy}{dx}} + \frac{2}{x}\unknown{y} &= 2\unknown{y^{1/2}} \\ \unknown{y^{-1/2}}\rate{\frac{dy}{dx}} + \frac{2}{x}\renamed{y^{1/2}} &= 2 \end{aligned}
Set v=y1/2\renamed{v} = \renamed{y^{1/2}} from the middle term and take the derivative using the chain rule:
v=y1/2dvdx=12y−1/2dydx2dvdx=y−1/2dydx\displaystyle \begin{aligned} \renamed{v} &= \renamed{y^{1/2}} \\ \rate{\frac{dv}{dx}} &= \frac{1}{2}\unknown{y^{-1/2}}\rate{\frac{dy}{dx}} \\ 2\rate{\frac{dv}{dx}} &= \unknown{y^{-1/2}}\rate{\frac{dy}{dx}} \end{aligned}
Watch out: Replacing y−1/2dydx\unknown{y^{-1/2}}\rate{\frac{dy}{dx}} with dvdx\rate{\frac{dv}{dx}} instead of 2dvdx2\rate{\frac{dv}{dx}} misses dividing the remaining terms by 22, leaving dvdx+2xv=2\rate{\frac{dv}{dx}} + \frac{2}{x}\renamed{v} = 2 (integrating factor x2\bothsides{x^2}) and giving the wrong answer y=23x+Cx2\renamed{\sqrt{y}} = \frac{2}{3}x + \frac{C}{x^2}.
Substitute 2dvdx2\rate{\frac{dv}{dx}} and v\renamed{v}, then divide by 22 to get standard linear form:
2dvdx+2xv=2dvdx+1xv=1\displaystyle \begin{aligned} 2\rate{\frac{dv}{dx}} + \frac{2}{x}\renamed{v} &= 2 \\ \rate{\frac{dv}{dx}} + \frac{1}{x}\renamed{v} &= 1 \end{aligned}
Multiply by the integrating factor I(x)=e∫(1/x) dx=x\bothsides{I(x)} = \bothsides{e^{\int (1/x)\,\rate{dx}}} = \bothsides{x}, integrate, and put v=y\renamed{v} = \renamed{\sqrt{y}} back in:
xdvdx+v=xddx(xv)=xxv=12x2+Cv=x2+Cxy=x2+Cx(or y=(x2+Cx)2)\displaystyle \begin{aligned} \bothsides{x}\rate{\frac{dv}{dx}} + \renamed{v} &= x \\ \bothsides{\frac{d}{dx}}(\bothsides{x}\renamed{v}) &= x \\ \bothsides{x}\renamed{v} &= \frac{1}{2}x^2 + C \\ \renamed{v} &= \frac{x}{2} + \frac{C}{x} \\ \renamed{\sqrt{y}} &= \frac{x}{2} + \frac{C}{x} \quad \left(\text{or } \unknown{y} = \left(\frac{x}{2} + \frac{C}{x}\right)^2\right) \end{aligned}