Separation of Variables

AP Calculus AB · Unit 7 — Differential Equations

The standard five moves

  1. Separate: get all $y$ with $dy$ and all $x$ with $dx$.
  2. Integrate both sides. Put $+C$ on one side only.
  3. Apply the initial condition immediately, while the equation is still in its simplest form.
  4. Solve for $y$ explicitly if asked.
  5. State the domain if the problem is in context.

Step 3 is a time-saver and an accuracy-saver: substituting the initial condition before untangling logarithms and exponentials avoids the messiest algebra of the whole unit.

Exponential growth $\frac{dy}{dt}=ky$ has solution $y=y_0e^{kt}$; this one is worth knowing on sight rather than re-deriving.

Worked example: separation of variables with an initial condition

Solve $\dfrac{dy}{dx}=\dfrac{2x}{y}$ with $y(0)=3$, $y>0$.

Solution

Separate: $y\,dy=2x\,dx$.

Integrate: $\dfrac{y^2}{2}=x^2+C$.

Substitute the initial condition right away: $\dfrac{9}{2}=0+C$ ⇒ $C=\dfrac92$.

So $\dfrac{y^2}{2}=x^2+\dfrac92$, that is $y^2=2x^2+9$.

Solve for $y$: $y=\sqrt{2x^2+9}$ — take the positive sign because the problem gives $y>0$ and $y(0)=3>0$.

Choosing the sign is a separate point in the rubric: you must say why you take the positive sign.

Common mistake

$\ln|y|=kx+C$ becomes $y=\pm e^{C}e^{kx}$ on exponentiating; merging $\pm e^C$ into a new constant $A$ is valid, but writing directly $y=e^{kx}+C$ is completely wrong — $e^{a+b}=e^ae^b$, not $e^a+b$. This is the algebra error that loses the most marks in this chapter.

Key takeaway

Separate, integrate, substitute the initial condition right away, and only then solve for $y$. And remember to choose the sign of the root according to the initial condition.

← Slope Fields · All AP Calculus AB lessons · Practice AP Calculus AB questions (free, instant scoring) · Exponential Models in Context →