Single-Variable-Calculus · Unit 13 · Video 1 · Interactive Practice

Separating the Variables: Splitting dy/dx to Solve Differential Equations

IKey Formulas

FormulaStepFor dydx=−xy\dfrac{dy}{dx} = -xy
dydx=f(x) g(y)\dfrac{dy}{dx} = f(x)\,g(y)Separable formf(x)=−xf(x) = -x, g(y)=yg(y) = y
h(y) dy=f(x) dxh(y)\,dy = f(x)\,dx, with h=1gh = \dfrac{1}{g}Separatedyy=−x dx\dfrac{dy}{y} = -x\,dx
H(y)=F(x)+cH(y) = F(x) + cAntidifferentiate (implicit)ln⁡y=−x22+c\ln y = -\dfrac{x^2}{2} + c
y=H−1(F(x)+c)y = H^{-1}\big(F(x) + c\big)Invert (explicit)y=a e−x2/2y = a\,e^{-x^2/2}

Key Insight: along a solution, the chain rule gives ddxH(y)=h(y)dydx=f(x)=F′(x)\dfrac{d}{dx}H(y) = h(y)\dfrac{dy}{dx} = f(x) = F'(x), so H(y)H(y) and F(x)F(x) have the same derivative and differ by a constant cc.

IIVisualization 1 — One Solution Through Every Point

Every constant aa gives a solution y=a e−x2/2y = a\,e^{-x^2/2} of dydx=−xy\dfrac{dy}{dx} = -xy, and exactly one passes through each point.

💡 Dividing by yy needs y≠0y \neq 0, yet the check by differentiating never uses the sign of aa: a=0a = 0 gives the solution y=0y = 0, and negative aa gives the mirror-image bells below the axis.

IIIVisualization 2 — The Recipe, General and Specific

Form, separate, antidifferentiate, invert: each general step has a concrete counterpart in every separable equation.

General

1 · Form: dydx=f(x) g(y)\dfrac{dy}{dx} = f(x)\,g(y)

This equation

dydx=−xy\dfrac{dy}{dx} = -xy:   f(x)=−x\;f(x) = -x,   g(y)=y\;g(y) = y

IVVisualization 3 — Why the Two Sides Differ by a Constant

On a solution, H(y)−F(x)=ln⁡y+x22H(y) - F(x) = \ln y + \tfrac{x^2}{2} stays fixed at cc; on a non-solution it drifts.

VQuiz Questions

Problem 1 · Separate the Variables

Given: dydx=x2y\dfrac{dy}{dx} = x^2 y — find the separated form.

✅ Correct! Here f(x)=x2f(x) = x^2 and g(y)=yg(y) = y; dividing by g(y)g(y) and multiplying by dxdx leaves only yy with dydy and only xx with dxdx.
❌ Close, but… moving yy to the left requires dividing by it, not multiplying: dydx=x2y\dfrac{dy}{dx} = x^2 y gives 1ydydx=x2\dfrac{1}{y}\dfrac{dy}{dx} = x^2.
❌ Not separated yet. This is the differential dy=y′ dxdy = y'\,dx, but yy still sits on the right with dxdx, so the right side cannot be integrated in xx alone.
❌ Not quite. The variables are still mixed: yy appears beside dxdx and xx beside dydy. Each variable must sit with its own differential.
Show solution

The equation has the form dydx=f(x) g(y)\dfrac{dy}{dx} = f(x)\,g(y) with f(x)=x2f(x) = x^2 and g(y)=yg(y) = y. Divide both sides by yy and multiply both sides by dxdx:

dyy=x2 dx.\frac{dy}{y} = x^2\,dx.

Every yy is on the left with dydy, every xx on the right with dxdx. (Integrating next gives ln⁡y=x33+c\ln y = \tfrac{x^3}{3} + c, so y=a ex3/3y = a\,e^{x^3/3}.)

Problem 2 · Where the Constant Goes

Given: dydx=2xy\dfrac{dy}{dx} = 2xy — find the general solution.

✅ Correct! Check: ddx(a ex2)=2x⋅a ex2=2xy\dfrac{d}{dx}\big(a\,e^{x^2}\big) = 2x \cdot a\,e^{x^2} = 2xy.
❌ Close, but… the constant cc belongs to ln⁡y=x2+c\ln y = x^2 + c, so it goes up into the exponent: ex2+c=ecex2e^{x^2 + c} = e^{c}e^{x^2}, a constant factor. Check: ddx(ex2+c)=2x ex2\dfrac{d}{dx}\big(e^{x^2} + c\big) = 2x\,e^{x^2}, which equals 2xy2xy only when c=0c = 0.
❌ Not quite. An antiderivative of 2x2x is x2x^2, not x22\tfrac{x^2}{2} — the 12\tfrac12 belongs to ∫x dx\int x\,dx in the video's example.
❌ Not quite. That integrates 2x2x alone, as if the equation were dydx=f(x)\dfrac{dy}{dx} = f(x). The right side also contains yy, so divide by yy first.
Show solution

Separate: dyy=2x dx\dfrac{dy}{y} = 2x\,dx.

Antidifferentiate (taking y>0y > 0 for now):

∫dyy=∫2x dx⟹ln⁡y=x2+c.\int \frac{dy}{y} = \int 2x\,dx \quad\Longrightarrow\quad \ln y = x^2 + c.

Exponentiate:

y=ex2+c=ec ex2=a ex2.y = e^{x^2 + c} = e^{c}\,e^{x^2} = a\,e^{x^2}.

Differentiating, y′=a⋅2x ex2=2x yy' = a \cdot 2x\,e^{x^2} = 2x\,y, which never uses the sign of aa, so every constant aa (positive, negative or 00) works.

Problem 3 · An Implicit Answer with a Starting Value

Given: dydx=xy\dfrac{dy}{dx} = \dfrac{x}{y} with y(0)=2y(0) = 2 — find the implicit solution and then y(2)y(2).

Which equation does the solution satisfy?

What is y(2)y(2)?

✅ Correct! y=x2+4y = \sqrt{x^2 + 4} (positive root, since y(0)=2>0y(0) = 2 > 0), so y(2)=8=22y(2) = \sqrt{8} = 2\sqrt{2}.
❌ Close, but… from y22=x22+c\dfrac{y^2}{2} = \dfrac{x^2}{2} + c the starting value gives c=2c = 2; multiplying by 22 doubles the constant too: y2=x2+4y^2 = x^2 + 4.
❌ Not quite. At x=0x = 0 this gives y2=8y^2 = 8, not 44. Find cc by substituting: 222=0+c\dfrac{2^2}{2} = 0 + c, so c=2c = 2.
❌ Not quite. Separate first: y dy=x dxy\,dy = x\,dx, then antidifferentiate each side in its own variable.
❌ Check the value. Substitute x=2x = 2 into y2=x2+4y^2 = x^2 + 4 and take the positive root.
Show solution

Separate: multiply both sides by y dxy\,dx:   y dy=x dx\;y\,dy = x\,dx.

Antidifferentiate:

∫y dy=∫x dx⟹y22=x22+c.\int y\,dy = \int x\,dx \quad\Longrightarrow\quad \frac{y^2}{2} = \frac{x^2}{2} + c.

Starting value: x=0x = 0, y=2y = 2 gives 2=c2 = c. Multiply by 22:

y2=x2+4.y^2 = x^2 + 4.

Invert: y=±x2+4y = \pm\sqrt{x^2 + 4}, and y(0)=2>0y(0) = 2 > 0 picks the plus sign. Check: y′=xx2+4=xyy' = \dfrac{x}{\sqrt{x^2+4}} = \dfrac{x}{y}. Then

y(2)=4+4=8=22.y(2) = \sqrt{4 + 4} = \sqrt{8} = 2\sqrt{2}.

Problem 4 · Separating an Exponential

Given: dydx=ex−y\dfrac{dy}{dx} = e^{x - y} with y(0)=ln⁡2y(0) = \ln 2 — find the explicit solution.

✅ Correct! At x=0x = 0: ln⁡(1+1)=ln⁡2\ln(1 + 1) = \ln 2 ✓, and y′=exex+1=exey=ex−yy' = \dfrac{e^x}{e^x + 1} = \dfrac{e^x}{e^{y}} = e^{x - y} ✓.
❌ Close, but… from ey=ex+ce^{y} = e^{x} + c the inverse is y=ln⁡(ex+c)y = \ln(e^{x} + c), and the logarithm of a sum does not split: ln⁡(ex+c)≠x+ln⁡c\ln(e^x + c) \neq x + \ln c. Check: y′=1y' = 1, but ex−y=12e^{x - y} = \tfrac12.
❌ Not quite. This does solve the equation, but at x=0x = 0 it gives ln⁡3\ln 3. Fit cc from eln⁡2=e0+ce^{\ln 2} = e^{0} + c:   2=1+c\;2 = 1 + c, so c=1c = 1.
❌ Not quite. ex−y=exeye^{x-y} = \dfrac{e^{x}}{e^{y}}, so separating means multiplying by eye^{y}:   ey dy=ex dx\;e^{y}\,dy = e^{x}\,dx — not e−y dye^{-y}\,dy.
Show solution

Form: ex−y=ex e−ye^{x - y} = e^{x}\,e^{-y}, so f(x)=exf(x) = e^{x} and g(y)=e−yg(y) = e^{-y}.

Separate: h(y)=1g(y)=eyh(y) = \dfrac{1}{g(y)} = e^{y}, giving   ey dy=ex dx\;e^{y}\,dy = e^{x}\,dx.

Antidifferentiate:

ey=ex+c.e^{y} = e^{x} + c.

Starting value: eln⁡2=e0+ce^{\ln 2} = e^{0} + c, so 2=1+c2 = 1 + c and c=1c = 1.

Invert (H(y)=eyH(y) = e^y, so H−1H^{-1} is ln⁡\ln):

y=ln⁡ ⁣(ex+1).y = \ln\!\big(e^{x} + 1\big).

Check: y′=exex+1=exey=ex−yy' = \dfrac{e^{x}}{e^{x} + 1} = \dfrac{e^{x}}{e^{y}} = e^{x - y} ✓.

Solved: 0 / 4