Calculus3Differential Equations4 of 7
Differential Equations · 4

Separable Differential Equations

1

When y\yp{y} is on the right

When a differential equation has only x\xp{x} on the right, like dydx=2x\frac{dy}{dx} = \xp{2x}, we find y\yp{y} by taking an antiderivative: y=x2+C\yp{y} = \xp{x^2} + \cn{C}. But in dydx=−xy\frac{dy}{dx} = -\frac{\xp{x}}{\yp{y}}, we can't integrate the right side with respect to x\xp{x}, because y\yp{y} is the unknown function of x\xp{x} we're trying to find.

You may recognise −xy-\frac{\xp{x}}{\yp{y}} from implicit differentiation on the circle x2+y2=25\xp{x^2} + \yp{y^2} = 25:

x2+y2=252x+2y dydx=0dydx=−xy\displaystyle \begin{aligned}\xp{x^2} + \yp{y^2} &= 25\\ \xp{2x} + \yp{2y}\,\frac{dy}{dx} &= 0\\ \frac{dy}{dx} &= -\frac{\xp{x}}{\yp{y}}\end{aligned}

So this derivative came from a circle. The question is how to run that step backwards when we don't know the curve yet.

Solve dydx=−xy\frac{dy}{dx} = -\frac{\xp{x}}{\yp{y}} with y(0)=3\yp{y}(\xp{0}) = \yp{3}
−4-4
−2-2
00
22
44
−4-4
−2-2
00
22
44
xx
yy
(0,3)\htmlClass{lc-violet}{(0, 3)}
Text solution
Multiply both sides by y\yp{y}Now every y\yp{y} is on the left beside dydx\frac{dy}{dx}, and by the chain rule each side is a derivative with respect to x\xp{x}.
y dydx\displaystyle \yp{y\,\frac{dy}{dx}} =−x→ddx(y22)\displaystyle = \xp{{-}x} \quad\to\quad \frac{d}{dx}\Big(\yp{\frac{y^2}{2}}\Big) =ddx(−x22)\displaystyle = \frac{d}{dx}\Big(\xp{{-}\frac{x^2}{2}}\Big)
One constant, a family of circlesTwo functions with the same derivative differ by a constant, so one C\cn{C} on the right is enough.
y22\displaystyle \yp{\frac{y^2}{2}} =−x22+C→x2+y2\displaystyle = \xp{{-}\frac{x^2}{2}} + \cn{C} \quad\to\quad \xp{x^2} + \yp{y^2} =2C\displaystyle = \cn{2C}
Pick the circle, then the halfThe point (0,3)(0, 3) gives 2C=9\cn{2C = 9}. A function is only one half of the circle, and y(0)=3\yp{y}(\xp{0}) = \yp{3} is positive, so we take the upper half. Starting from y(0)=−3\yp{y}(\xp{0}) = \yp{-3} would give the lower half, y=−9−x2\yp{y} = -\sqrt{\cn{9} - \xp{x^2}}.
x2+y2\displaystyle \xp{x^2} + \yp{y^2} =9→y\displaystyle = \cn{9} \quad\to\quad \yp{y} =9−x2\displaystyle = \sqrt{\cn{9} - \xp{x^2}}

On the slope field of −xy-\frac{\xp{x}}{\yp{y}}, every circle centred at the origin lies along the marks, and the start (0,3)(0, 3) picks out the top half of one of them.

−4-4
−2-2
00
22
44
−4-4
−2-2
00
22
44
xx
yy
(0,3)\htmlClass{lc-violet}{(0, 3)}
2

Where the constant goes

In dydx=xy\frac{dy}{dx} = \xp{x}\yp{y}, the right side is an x-part times a y-part. We call an equation like that separable, because dividing by the y-part separates the two variables, the same way multiplying by y\yp{y} did in the last section. This time the question is where the constant ends up. Is the answer just ex22+C\shf{e^{\frac{x^2}{2}} + C}?

Solve dydx=xy\frac{dy}{dx} = \xp{x}\yp{y}
−2-2
−1-1
00
11
22
−6-6
−4-4
−2-2
00
22
44
66
88
xx
yy
Text solution
Separate and integrate1y dy=x dx\yp{\frac{1}{y}\,dy} = \xp{x\,dx} is shorthand for 1y dydx=x\yp{\frac{1}{y}\,\frac{dy}{dx}} = \xp{x}, and the left side is the derivative of ln⁡∣y∣\yp{\ln|y|}.
∫1y dy\displaystyle \int \yp{\frac{1}{y}\,dy} =∫x dx→ln⁡∣y∣\displaystyle = \int \xp{x\,dx} \quad\to\quad \yp{\ln|y|} =x22+C\displaystyle = \xp{\frac{x^2}{2}} + \cn{C}
The constant becomes a factorRaising ee to both sides turns the added C\cn{C} into a factor eC\cn{e^C}. Dropping the bars gives ±eC\cn{\pm e^C}, any non-zero number, and y=0\yp{y} = 0 is a solution too, so one constant A\cn{A} covers every number.
∣y∣\displaystyle \yp{|y|} =eC⋅ex22→y\displaystyle = \cn{e^{C}} \cdot \xp{e^{\frac{x^2}{2}}} \quad\to\quad \yp{y} =Aex22\displaystyle = \cn{A}\xp{e^{\frac{x^2}{2}}}
Why not ex22+C\shf{e^{\frac{x^2}{2}} + C}?Through (0,3)(0, 3) that would be ex22+2\shf{e^{\frac{x^2}{2}} + 2}, but its slope isn't x\xp{x} times its height: it's off by 2x2x.
(ex22+2)′\displaystyle \Big(\shf{e^{\frac{x^2}{2}} + 2}\Big)' =xex22\displaystyle = xe^{\frac{x^2}{2}}
x(ex22+2)\displaystyle \xp{x}\Big(\shf{e^{\frac{x^2}{2}} + 2}\Big) =xex22+2x\displaystyle = xe^{\frac{x^2}{2}} + 2x
The starting value is A\cn{A}At x=0\xp{x = 0}, e0=1\xp{e^0} = 1, so A=y(0)\cn{A} = \yp{y}(\xp{0}). A negative A\cn{A} is possible only because of the absolute value bars.
y(0)\displaystyle \yp{y}(\xp{0}) =3  →  y\displaystyle = \yp{3} \;\to\; \yp{y} =3ex22\displaystyle = \cn{3}\xp{e^{\frac{x^2}{2}}}
y(0)\displaystyle \yp{y}(\xp{0}) =−2  →  y\displaystyle = \yp{{-}2} \;\to\; \yp{y} =−2ex22\displaystyle = \cn{{-}2}\xp{e^{\frac{x^2}{2}}}

Here is the reason on the slope field. The slope at each point has to be x\xp{x} times the height. Multiplying by 33 triples the height and the slope together, so 3ex22\cn{3}\xp{e^{\frac{x^2}{2}}} follows the marks. Adding 22 raises the height without changing the slope, so ex22+2\shf{e^{\frac{x^2}{2}} + 2} cuts across them.

−2-2
−1-1
00
11
22
−6-6
−4-4
−2-2
00
22
44
66
88
xx
yy
3ex2/2\htmlClass{lc-violet}{3e^{x^2/2}}
ex2/2+2\htmlClass{lc-orange}{e^{x^2/2} + 2}
ex2/2\htmlClass{lc-violet}{e^{x^2/2}}
−2ex2/2\htmlClass{lc-violet}{-2e^{x^2/2}}

Why does the constant multiply the exponential after separation?

3

Finding C\cn{C} before solving for y\yp{y}

With an initial condition, we have two things to find, y\yp{y} and C\cn{C}, and a choice of which comes first. These two equations show why it pays to find C\cn{C} first, and the second one can't be solved for y\yp{y} at all.

Solve dydx=2x ey\frac{dy}{dx} = \xp{2x}\,\yp{e^y} with y(0)=0\yp{y}(\xp{0}) = \yp{0}, and (2+cos⁡y)dydx=2x\yp{(2 + \cos y)}\frac{dy}{dx} = \xp{2x} with y(0)=π\yp{y}(\xp{0}) = \yp{\pi}
dydx\displaystyle \frac{dy}{dx} =2x ey,y(0)\displaystyle = \xp{2x}\,\yp{e^{y}}, \qquad \yp{y}(\xp{0}) =0\displaystyle = \yp{0}
y\displaystyle \yp{y} =  ?\displaystyle = \;?
Text solution
Separate and integrateDividing by ey\yp{e^y} is multiplying by e−y\yp{e^{-y}}, and the derivative of −e−y\yp{{-}e^{-y}} is e−y\yp{e^{-y}}.
e−y dy\displaystyle \yp{e^{-y}\,dy} =2x dx→−e−y\displaystyle = \xp{2x\,dx} \quad\to\quad \yp{{-}e^{-y}} =x2+C\displaystyle = \xp{x^2} + \cn{C}
Find C\cn{C} while it's alonePlugging in (0,0)(0, 0) now takes one line. Solving for y\yp{y} first would put C\cn{C} inside a natural log, as y=−ln⁡(−x2−C)\yp{y} = -\ln(-\xp{x^2} - \cn{C}), and we'd have to dig it out.
−e0\displaystyle \yp{{-}e^{0}} =0+C  →  C=−1\displaystyle = \xp{0} + \cn{C} \;\to\; \cn{C = -1}
Then solve for y\yp{y}Multiply by −1-1 and take the natural log. Its derivative, 2x1−x2\frac{2x}{1 - x^2}, equals 2x ey2x\,e^y, so it checks.
e−y\displaystyle \yp{e^{-y}} =1−x2→y\displaystyle = \cn{1} - \xp{x^2} \quad\to\quad \yp{y} =−ln⁡(1−x2)\displaystyle = -\ln(\cn{1} - \xp{x^2})
When y\yp{y} can't be isolatedIn 2y+sin⁡y\yp{2y + \sin y}, y\yp{y} is both outside and inside the sine, so no algebra solves for it. Plugging in (0,π)(0, \pi) still gives C\cn{C}, and the equation is the answer.
2y+sin⁡y\displaystyle \yp{2y + \sin y} =x2+C,2π+sin⁡π\displaystyle = \xp{x^2} + \cn{C}, \qquad \yp{2\pi + \sin\pi} =0+C  →  C=2π\displaystyle = \xp{0} + \cn{C} \;\to\; \cn{C = 2\pi}
2y+sin⁡y\displaystyle \yp{2y + \sin y} =x2+2π\displaystyle = \xp{x^2} + \cn{2\pi}
4

Where a solution is valid

A formula for y\yp{y} isn't the whole answer. The solution through an initial point is one continuous curve, so we also need the interval of x-values where it holds. Let's find both for dydx=y2\frac{dy}{dx} = \yp{y^2}.

Solve dydx=y2\frac{dy}{dx} = \yp{y^2} with y(0)=1\yp{y}(\xp{0}) = \yp{1}, and find where it is valid
dydx\displaystyle \frac{dy}{dx} =y2,y(0)\displaystyle = \yp{y^2}, \qquad \yp{y}(\xp{0}) =1\displaystyle = \yp{1}
y\displaystyle \yp{y} =  ?,for which x?\displaystyle = \;?, \qquad \text{for which } \xp{x}?
Text solution
Separate, integrate, find C\cn{C}The integral of y−2\yp{y^{-2}} is −1y\yp{{-}\frac{1}{y}}, and (0,1)(0, 1) gives C=−1\cn{C = -1}.
−1y\displaystyle \yp{{-}\frac{1}{y}} =x−1→y\displaystyle = \xp{x} - \cn{1} \quad\to\quad \yp{y} =11−x\displaystyle = \frac{1}{\cn{1} - \xp{x}}
Keep the piece through (0,1)(0, 1)The asymptote at x=1x = 1 splits the graph in two. Our point is on the left piece, where y\yp{y} goes to infinity as x\xp{x} approaches 11, so the solution can't continue past it.
y\displaystyle \yp{y} =11−x,x<1\displaystyle = \frac{1}{\cn{1} - \xp{x}}, \qquad x < 1
The circle from section 1At x=±3x = \pm 3, y=0\yp{y} = 0, so −xy-\frac{\xp{x}}{\yp{y}} is undefined there.
y\displaystyle \yp{y} =9−x2,−3<x<3\displaystyle = \sqrt{\cn{9} - \xp{x^2}}, \qquad -3 < x < 3

The right-hand piece of 11−x\frac{1}{\cn{1} - \xp{x}} also follows the slope field, but it's a different solution: it passes through (2,−1)(2, -1), so it solves the problem with y(2)=−1\yp{y}(\xp{2}) = \yp{-1}. To reach it from (0,1)(0, 1) we'd have to jump across the asymptote.

−3-3
−2-2
−1-1
00
11
22
33
−4-4
−3-3
−2-2
−1-1
00
11
22
33
44
55
66
xx
yy
(0,1)\htmlClass{lc-violet}{(0, 1)}
(2,−1)\htmlClass{lc-mute}{(2, -1)}
x=1\htmlClass{lc-mute}{x = 1}

Does every initial value give the same interval of solution?

5

Telling whether an equation is separable

So far, every equation had dydx\frac{dy}{dx} as an x-part times a y-part from the start. Often it takes a step of algebra to see the product, and three rewrites come up again and again.

Factoring out x
dydx=xy+x=x(y+1)\displaystyle \begin{aligned}\frac{dy}{dx} &= \xp{x}\yp{y} + \xp{x}\\ &= \xp{x}\yp{(y + 1)}\end{aligned}
dyy+1\displaystyle \yp{\frac{dy}{y + 1}} =x dx\displaystyle = \xp{x\,dx}
Splitting the exponent
dydx=ex−y=ex⋅e−y\displaystyle \begin{aligned}\frac{dy}{dx} &= e^{\xp{x} - \yp{y}}\\ &= \xp{e^{x}} \cdot \yp{e^{-y}}\end{aligned}
ey dy\displaystyle \yp{e^{y}\,dy} =ex dx\displaystyle = \xp{e^{x}\,dx}
Solving for dy/dx
x dydx=3−ydydx=(3−y)⋅1x\displaystyle \begin{aligned}\xp{x}\,\frac{dy}{dx} &= \yp{3 - y}\\ \frac{dy}{dx} &= \yp{(3 - y)} \cdot \xp{\frac{1}{x}}\end{aligned}
dy3−y\displaystyle \yp{\frac{dy}{3 - y}} =dxx\displaystyle = \xp{\frac{dx}{x}}

Not every equation separates, though. Let's check these three, and then one where no rewrite gives a product.

Tell whether dydx=xy+x\frac{dy}{dx} = \xp{x}\yp{y} + \xp{x}, dydx=ex−y\frac{dy}{dx} = e^{\xp{x} - \yp{y}}, x dydx=3−y\xp{x}\,\frac{dy}{dx} = \yp{3 - y}, and dydx=x+y\frac{dy}{dx} = \xp{x} + \yp{y} are separable
dydx=xy+xdydx=ex−yx dydx=3−ydydx=x+y\displaystyle \begin{aligned}\frac{dy}{dx} &= \xp{x}\yp{y} + \xp{x} &\qquad \frac{dy}{dx} &= e^{\xp{x} - \yp{y}}\\ \xp{x}\,\frac{dy}{dx} &= \yp{3 - y} &\qquad \frac{dy}{dx} &= \xp{x} + \yp{y}\end{aligned}
separable?\displaystyle \text{separable?}
dydx=xy+xdydx=ex−yx dydx=3−ydydx=x+y\displaystyle \begin{aligned}\frac{dy}{dx} &= \xp{x}\yp{y} + \xp{x}\\[8pt] \frac{dy}{dx} &= e^{\xp{x} - \yp{y}}\\[8pt] \xp{x}\,\frac{dy}{dx} &= \yp{3 - y}\\[8pt] \frac{dy}{dx} &= \xp{x} + \yp{y}\end{aligned}
separable?\displaystyle \text{separable?}
Text solution
The first three separateEach rewrite above gives an x-part times a y-part, so we move the y-part to the left with dy\yp{dy}, keep the x-part on the right with dx\xp{dx}, and integrate.
dydx=x+y\frac{dy}{dx} = \xp{x} + \yp{y} doesn'tThere's no common factor, and dividing by y\yp{y} leaves xy\frac{\xp{x}}{\yp{y}}, with both variables together. No algebra step turns x+y\xp{x} + \yp{y} into a product. Slope fields and Euler's method still approximate its solutions, and a later lesson shows how to solve it.
1y dydx\displaystyle \yp{\frac{1}{y}\,\frac{dy}{dx}} =xy+1\displaystyle = \frac{\xp{x}}{\yp{y}} + 1

Summary

Telling whether an equation is separable
Separable
dydx=xy+x=x(y+1)dydx=ex−y=ex⋅e−y\displaystyle \begin{aligned}\frac{dy}{dx} &= \xp{x}\yp{y} + \xp{x} = \xp{x}\yp{(y + 1)}\\[6pt] \frac{dy}{dx} &= e^{\xp{x} - \yp{y}} = \xp{e^{x}} \cdot \yp{e^{-y}}\end{aligned}
Not separable
dydx\displaystyle \frac{dy}{dx} =x+y\displaystyle = \xp{x} + \yp{y}

An equation is separable if you can write dydx\frac{dy}{dx} as an x-part times a y-part. Factoring or splitting an exponent can turn a sum or difference into a product. If x\xp{x} and y\yp{y} stay added together, like x+y\xp{x} + \yp{y}, the equation is not separable.

Separating and integrating
dydx=xy∫1y dy=∫x dxln⁡∣y∣=x22+C\displaystyle \begin{aligned}\frac{dy}{dx} &= \xp{x}\yp{y}\\ \int \yp{\frac{1}{y}\,dy} &= \int \xp{x\,dx}\\ \yp{\ln|y|} &= \xp{\frac{x^2}{2}} + \cn{C}\end{aligned}

Move all the y terms to the left with dy\yp{dy}, and all the x terms to the right with dx\xp{dx}. Then integrate each side. You only need one constant +C+ \cn{C}, because any constant from the left combines with the constant on the right.

Where the constant goes
ln⁡∣y∣=x22+Cy=Aex22\displaystyle \begin{aligned}\yp{\ln|y|} &= \xp{\frac{x^2}{2}} + \cn{C}\\[6pt] \yp{y} &= \cn{A}\xp{e^{\frac{x^2}{2}}}\end{aligned}
ey=ex+Cy=ln⁡(ex+C)\displaystyle \begin{aligned}\yp{e^{y}} &= \xp{e^{x}} + \cn{C}\\ \yp{y} &= \ln(\xp{e^{x}} + \cn{C})\end{aligned}

Write +C+ \cn{C} right after integrating, and carry it along as you solve for y\yp{y}. Raising ee to both sides of ln⁡∣y∣=x22+C\yp{\ln|y|} = \xp{\frac{x^2}{2}} + \cn{C} turns the +C+ \cn{C} in the exponent into a multiplying factor eC\cn{e^C}. So y=Aex22\yp{y} = \cn{A}\xp{e^{\frac{x^2}{2}}}, where A=±eC\cn{A = \pm e^C}, and not ex22+C\shf{e^{\frac{x^2}{2}} + C}. For ey=ex+C\yp{e^y} = \xp{e^x} + \cn{C}, taking the natural log gives y=ln⁡(ex+C)\yp{y} = \ln(\xp{e^x} + \cn{C}), not x+Cx + C.

Finding the sign of y\yp{y}
x2+y2=9,y(0)=−3→  y=−9−x2\displaystyle \begin{aligned}&\xp{x^2} + \yp{y^2} = \cn{9}, \quad \yp{y}(\xp{0}) = \yp{{-}3}\\[4pt] &\to\; \yp{y} = -\sqrt{\cn{9} - \xp{x^2}}\end{aligned}
y=Aex22,y(0)=−2→  y=−2ex22\displaystyle \begin{aligned}&\yp{y} = \cn{A}\xp{e^{\frac{x^2}{2}}}, \quad \yp{y}(\xp{0}) = \yp{{-}2}\\[8pt] &\to\; \yp{y} = \cn{{-}2}\xp{e^{\frac{x^2}{2}}}\end{aligned}

An initial condition fixes both the constant and the sign of y\yp{y}. Because y(0)=−3\yp{y}(\xp{0}) = \yp{-3} is negative, choose the negative square root. The same happens with y=Aex22\yp{y} = \cn{A}\xp{e^{\frac{x^2}{2}}}. At x=0\xp{x = 0}, e0=1\xp{e^0} = 1, so A\cn{A} is just y(0)\yp{y}(\xp{0}). Because y(0)=−2\yp{y}(\xp{0}) = \yp{-2}, A=−2\cn{A = -2}, and the solution is y=−2ex22\yp{y} = \cn{-2}\xp{e^{\frac{x^2}{2}}}.

Finding C\cn{C} before solving for y\yp{y}
−e−y=x2+C,y(0)=0→  C=−1→  y=−ln⁡(1−x2)\displaystyle \begin{aligned}&\yp{{-}e^{-y}} = \xp{x^2} + \cn{C}, \quad \yp{y}(\xp{0}) = \yp{0}\\ &\to\; \cn{C = -1}\\ &\to\; \yp{y} = -\ln(\cn{1} - \xp{x^2})\end{aligned}

Plug in the initial condition right after integrating, while C\cn{C} stands alone on the right side. That keeps C\cn{C} out of later steps like logs or roots. Once you have C\cn{C}, solve for y\yp{y}. If we can't solve the equation for y\yp{y} with algebra, substitute the value of C\cn{C} and leave the answer as an equation.

The interval of a solution
dydx=y2,y(0)=1→  y=11−x,x<1\displaystyle \begin{aligned}&\frac{dy}{dx} = \yp{y^2}, \quad \yp{y}(\xp{0}) = \yp{1}\\ &\to\; \yp{y} = \frac{1}{\cn{1} - \xp{x}}, \quad x < 1\end{aligned}

A particular solution is the single continuous piece of the graph that passes through the initial point. For y=11−x\yp{y} = \frac{1}{\cn{1} - \xp{x}} with y(0)=1\yp{y}(\xp{0}) = \yp{1}, the vertical asymptote at x=1x = 1 splits the graph, so the solution through (0,1)(0, 1) is valid only for x<1x < 1.

6

Practice

Give exact values unless a problem asks for a decimal.

1
Solve dydx=ycos⁡x\dfrac{dy}{dx} = y\cos x with y(0)=3y(0) = 3.

Divide both sides by yy to separate the variables. What is ∫1y dy\int \frac{1}{y}\,dy?

How can you write esin⁡x+Ce^{\sin x + C} as a constant times esin⁡xe^{\sin x}?

If you got y=esin⁡x+2y = e^{\sin x} + 2 esin⁡x+Ce^{\sin x + C} is eC⋅esin⁡xe^C \cdot e^{\sin x}, so the constant multiplies esin⁡xe^{\sin x} instead of adding to it.

Divide both sides by y\yp{y} to separate the variables, then integrate.
1y dy=cos⁡x dxln⁡∣y∣=sin⁡x+C\displaystyle \begin{aligned}\yp{\frac{1}{y}\,dy} &= \xp{\cos x\,dx}\\ \yp{\ln|y|} &= \xp{\sin x} + \cn{C}\end{aligned}
Raise ee to both sides, and replace ±eC\cn{\pm e^C} with a single constant A\cn{A}.
∣y∣=esin⁡x+C=eC⋅esin⁡xy=Aesin⁡x\displaystyle \begin{aligned}\yp{|y|} &= e^{\xp{\sin x} + \cn{C}} = \cn{e^{C}} \cdot \xp{e^{\sin x}}\\ \yp{y} &= \cn{A}\xp{e^{\sin x}}\end{aligned}
Plug in x=0\xp{x = 0} and y=3\yp{y = 3} to find A\cn{A}.
3=Ae0A=3y=3esin⁡x\displaystyle \begin{aligned}\yp{3} &= \cn{A}\xp{e^{0}}\\ \cn{A} &= \cn{3}\\ \yp{y} &= \cn{3}\xp{e^{\sin x}}\end{aligned}
2
Solve dydx=2xy\dfrac{dy}{dx} = \dfrac{2x}{y} with y(0)=−3y(0) = -3.

Multiply both sides by yy and integrate to get y2=2x2+2Cy^2 = 2x^2 + 2C. What is 2C2C when x=0x = 0 and y=−3y = -3?

Taking the square root gives y=2x2+9y = \sqrt{2x^2 + 9} or y=−2x2+9y = -\sqrt{2x^2 + 9}. Which one matches y(0)=−3y(0) = -3?

If you got y=2x2+9y = \sqrt{2x^2 + 9} Check the sign of y(0)y(0). The positive square root gives y(0)=3y(0) = 3, not −3-3.

Multiply both sides by y\yp{y} to separate the variables, integrate, and multiply by 22.
y dy=2x dxy22=x2+Cy2=2x2+2C\displaystyle \begin{aligned}\yp{y\,dy} &= \xp{2x\,dx}\\ \yp{\frac{y^2}{2}} &= \xp{x^2} + \cn{C}\\ \yp{y^2} &= \xp{2x^2} + \cn{2C}\end{aligned}
Plug in x=0\xp{x = 0} and y=−3\yp{y = -3} to find 2C\cn{2C}.
(−3)2=0+2Cy2=2x2+9\displaystyle \begin{aligned}\yp{(-3)^2} &= \xp{0} + \cn{2C}\\ \yp{y^2} &= \xp{2x^2} + \cn{9}\end{aligned}
Taking the square root gives a positive and a negative root. The initial value y(0)=−3\yp{y}(\xp{0}) = \yp{-3} is negative, so choose the negative root.
y=2x2+9ory=−2x2+9\displaystyle \begin{aligned}\yp{y} &= \sqrt{\xp{2x^2} + \cn{9}}\\ \text{or}\quad \yp{y} &= -\sqrt{\xp{2x^2} + \cn{9}}\end{aligned}
y(0)\displaystyle \yp{y}(\xp{0}) =−3<0  →  y\displaystyle = \yp{{-}3} < 0 \;\to\; \yp{y} =−2x2+9\displaystyle = -\sqrt{\xp{2x^2} + \cn{9}}
3
Find the general solution of dydx=xy+x\dfrac{dy}{dx} = xy + x.

Factor an xx out of xy+xxy + x. Which factor contains yy?

If ln⁡∣y+1∣=x22+C\ln|y + 1| = \frac{x^2}{2} + C, what do you get when you raise ee to both sides?

If you got y=ex22+Cy = e^{\frac{x^2}{2}} + C Remember that ex22+Ce^{\frac{x^2}{2} + C} is eC⋅ex22e^C \cdot e^{\frac{x^2}{2}}, which means the constant multiplies the exponential instead of adding to it. Subtracting 11 from y+1=Aex22y + 1 = Ae^{\frac{x^2}{2}} gives y=Aex22−1y = Ae^{\frac{x^2}{2}} - 1.

Factor the right side as x(y+1)\xp{x}\yp{(y + 1)}, then divide by y+1\yp{y + 1} to separate the variables.
xy+x=x(y+1)dyy+1=x dx\displaystyle \begin{aligned}\xp{x}\yp{y} + \xp{x} &= \xp{x}\yp{(y + 1)}\\ \yp{\frac{dy}{y + 1}} &= \xp{x\,dx}\end{aligned}
Integrate both sides.
ln⁡∣y+1∣\displaystyle \yp{\ln|y + 1|} =x22+C\displaystyle = \xp{\frac{x^2}{2}} + \cn{C}
Raise ee to both sides, replace ±eC\cn{\pm e^C} with the constant A\cn{A}, and subtract 11 to isolate y\yp{y}.
∣y+1∣=eC⋅ex22y+1=Aex22y=Aex22−1\displaystyle \begin{aligned}\yp{|y + 1|} &= \cn{e^{C}} \cdot \xp{e^{\frac{x^2}{2}}}\\ \yp{y + 1} &= \cn{A}\xp{e^{\frac{x^2}{2}}}\\ \yp{y} &= \cn{A}\xp{e^{\frac{x^2}{2}}} - 1\end{aligned}
4
Solve dydx=ex−y\dfrac{dy}{dx} = e^{x - y} with y(0)=ln⁡2y(0) = \ln 2.

Rewrite ex−ye^{x - y} as a product of two powers of ee.

In ey=ex+Ce^y = e^x + C, plug in x=0x = 0 and y=ln⁡2y = \ln 2 to find CC before taking the natural log.

If you got y=x+ln⁡2y = x + \ln 2 Check where the constant was added. Integrating gives ey=ex+Ce^y = e^x + C, so finding CC before taking the log keeps the constant inside the natural log.

Split ex−ye^{\xp{x} - \yp{y}} into ex⋅e−y\xp{e^x} \cdot \yp{e^{-y}}, then multiply both sides by ey\yp{e^y} to separate the variables.
ex−y=ex⋅e−yey dy=ex dx\displaystyle \begin{aligned}e^{\xp{x} - \yp{y}} &= \xp{e^{x}} \cdot \yp{e^{-y}}\\ \yp{e^{y}\,dy} &= \xp{e^{x}\,dx}\end{aligned}
Integrate both sides.
ey\displaystyle \yp{e^{y}} =ex+C\displaystyle = \xp{e^{x}} + \cn{C}
Find C\cn{C} using x=0\xp{x = 0} and y=ln⁡2\yp{y = \ln 2} while it's still outside the natural log.
eln⁡2=e0+C2=1+CC=1\displaystyle \begin{aligned}\yp{e^{\ln 2}} &= \xp{e^{0}} + \cn{C}\\ \yp{2} &= \xp{1} + \cn{C}\\ \cn{C} &= \cn{1}\end{aligned}
Take the natural log of both sides to get y\yp{y} by itself.
ey=ex+1y=ln⁡(ex+1)\displaystyle \begin{aligned}\yp{e^{y}} &= \xp{e^{x}} + \cn{1}\\ \yp{y} &= \ln(\xp{e^{x}} + \cn{1})\end{aligned}
5
Let yy solve (1+ey)dydx=3x2(1 + e^{y})\dfrac{dy}{dx} = 3x^2 with y(0)=0y(0) = 0. Find xx when y=1y = 1.

Multiply both sides by dxdx and integrate. What is the antiderivative of 1+ey1 + e^y with respect to yy?

In y+ey=x3+Cy + e^y = x^3 + C, plug in x=0x = 0 and y=0y = 0. What is e0e^0?

Multiply both sides by dx\xp{dx} to separate the variables, then integrate.
(1+ey) dy=3x2 dxy+ey=x3+C\displaystyle \begin{aligned}\yp{(1 + e^{y})\,dy} &= \xp{3x^2\,dx}\\ \yp{y + e^{y}} &= \xp{x^3} + \cn{C}\end{aligned}
Plug in x=0\xp{x = 0} and y=0\yp{y = 0} to find C\cn{C}, remembering that e0=1e^0 = 1.
0+e0=0+CC=1y+ey=x3+1\displaystyle \begin{aligned}\yp{0 + e^{0}} &= \xp{0} + \cn{C}\\ \cn{C} &= \cn{1}\\ \yp{y + e^{y}} &= \xp{x^3} + \cn{1}\end{aligned}
Plug y=1\yp{y = 1} directly into the equation to solve for x\xp{x}.
1+e=x3+1x3=ex=e3\displaystyle \begin{aligned}\yp{1 + e} &= \xp{x^3} + \cn{1}\\ \xp{x^3} &= e\\ \xp{x} &= \sqrt[3]{e}\end{aligned}
6
Solve dydx=1+y2\dfrac{dy}{dx} = 1 + y^2 with y(0)=1y(0) = 1.

Divide both sides by 1+y21 + y^2. What function has derivative 11+y2\frac{1}{1 + y^2}?

Plug x=0x = 0 and y=1y = 1 into arctan⁡y=x+C\arctan y = x + C. What angle has tangent equal to 11?

If you got y=tan⁡x+1y = \tan x + 1 Check where CC is added. The integral gives arctan⁡y=x+C\arctan y = x + C, so taking the tangent of both sides puts CC inside the tangent.

Divide both sides by 1+y2\yp{1 + y^2} to separate the variables, then integrate.
dy1+y2=dxarctan⁡y=x+C\displaystyle \begin{aligned}\yp{\frac{dy}{1 + y^2}} &= \xp{dx}\\ \yp{\arctan y} &= \xp{x} + \cn{C}\end{aligned}
Plug in x=0\xp{x = 0} and y=1\yp{y = 1} to find C\cn{C} before taking the tangent.
arctan⁡1=0+CC=π4\displaystyle \begin{aligned}\yp{\arctan 1} &= \xp{0} + \cn{C}\\ \cn{C} &= \cn{\frac{\pi}{4}}\end{aligned}
Take the tangent of both sides to solve for y\yp{y}.
y\displaystyle \yp{y} =tan⁡(x+π4)\displaystyle = \tan\Big(\xp{x} + \cn{\frac{\pi}{4}}\Big)
7
Which of these differential equations is separable?

In equation (C), factor yy out of the right side, then divide by xx. Can you write dydx\frac{dy}{dx} as a function of xx alone times a function of yy alone?

If you got (B) Factoring xy−x2xy - x^2 gives x(y−x)x(y - x), but the factor y−xy - x still has both xx and yy, so it can't be separated.

Factor out y\yp{y} on the right side and divide by x\xp{x} to separate the variables.
x dydx=y+xy=y (1+x)dydx=y⋅1+xxdyy=1+xx dx\displaystyle \begin{aligned}\xp{x}\,\frac{dy}{dx} &= \yp{y} + \xp{x}\yp{y} = \yp{y}\,\xp{(1 + x)}\\ \frac{dy}{dx} &= \yp{y} \cdot \xp{\frac{1 + x}{x}}\\ \yp{\frac{dy}{y}} &= \xp{\frac{1 + x}{x}\,dx}\end{aligned}
In (B), the factor y−x\yp{y} - \xp{x} still contains both variables. In (A), x+y\xp{x} + \yp{y} is a sum that doesn't factor, and in (D), x\xp{x} and y\yp{y} are multiplied inside the sine function.
(B)    xy−x2\displaystyle \text{(B)}\;\; \xp{x}\yp{y} - \xp{x^2} =x(y−x)\displaystyle = \xp{x}(\yp{y} - \xp{x})
(A)    x+y,(D)    sin⁡(xy)\displaystyle \text{(A)}\;\; \xp{x} + \yp{y}, \qquad \text{(D)}\;\; \sin(\xp{x}\yp{y})
8
Let y=f(x)y = f(x) be the solution of dydx=2xy2\dfrac{dy}{dx} = 2xy^2 with f(1)=1f(1) = 1. (Challenge) (a) Use the tangent line to the graph of ff at x=1x = 1 to approximate f(1.1)f(1.1). (b) Is the approximation in (a) greater than or less than f(1.1)f(1.1)? Explain using d2ydx2\dfrac{d^2y}{dx^2}. (c) Find f(x)f(x) and the interval on which it is the solution.

The slope at (1,1)(1, 1) comes from the differential equation. What is 2xy22xy^2 at x=1x = 1 and y=1y = 1?

(b)\text{(b)}

Differentiate 2xy22xy^2 with respect to xx using the product rule and chain rule, remembering that yy is a function of xx. What is the sign of d2ydx2\frac{d^2y}{dx^2} at (1,1)(1, 1)?

<x<< x <

Divide by y2y^2 to get y−2 dy=2x dxy^{-2}\,dy = 2x\,dx. What is ∫y−2 dy\int y^{-2}\,dy?

Where is the denominator of f(x)f(x) equal to 00? Which continuous piece contains x=1x = 1?

If you got f(x)=1x2f(x) = \dfrac{1}{x^2} Check the integral of y−2y^{-2}. The power rule gives y−1−1=−1y\frac{y^{-1}}{-1} = -\frac{1}{y}, not 1y\frac{1}{y}.

If you got all x≠±2x \ne \pm\sqrt2 The solution must be continuous on a single open interval containing the initial point x=1x = 1.

Tangent line approximationFind the slope at (1,1)(1, 1), write the tangent line, and plug in x=1.1x = 1.1.
dydx∣(1, 1)=2⋅1⋅12=2f(1.1)≈1+2(0.1)=1.2\displaystyle \begin{aligned}\frac{dy}{dx}\Big|_{(1,\,1)} &= 2 \cdot 1 \cdot 1^2 = 2\\ f(1.1) &\approx 1 + 2(0.1) = 1.2\end{aligned}
ConcavityDifferentiate dydx\frac{dy}{dx} using the product and chain rules. Since the second derivative is positive at (1,1)(1, 1), the curve is concave up, so the tangent line lies below the curve and the estimate is less than f(1.1)f(1.1).
d2ydx2=2y2+4xy dydx=2(1)2+4(1)(1)(2)=10>0\displaystyle \begin{aligned}\frac{d^2y}{dx^2} &= 2y^2 + 4xy\,\frac{dy}{dx}\\ &= 2(1)^2 + 4(1)(1)(2)\\ &= 10 > 0\end{aligned}
Separate and find CSeparate the variables, integrate both sides, and plug in (1,1)(1, 1) to find C\cn{C}.
y−2 dy=2x dx−1y=x2+C−1=1+CC=−2\displaystyle \begin{aligned}\yp{y^{-2}\,dy} &= \xp{2x\,dx}\\ \yp{{-}\frac{1}{y}} &= \xp{x^2} + \cn{C}\\ \yp{{-}1} &= \xp{1} + \cn{C}\\ \cn{C} &= \cn{{-}2}\end{aligned}
Solve for y\yp{y}, then choose the interval between the vertical asymptotes that contains the initial point x=1x = 1.
−1y=x2−2f(x)=12−x2,−2<x<2\displaystyle \begin{aligned}\yp{{-}\frac{1}{y}} &= \xp{x^2} - \cn{2}\\ f(x) &= \frac{1}{\cn{2} - \xp{x^2}}, \qquad -\sqrt2 < x < \sqrt2\end{aligned}
f(1.1)\displaystyle f(1.1) =10.79≈1.27>1.2\displaystyle = \frac{1}{0.79} \approx 1.27 > 1.2