Separation of Variables
AP Calculus AB · Unit 7 — Differential Equations
The standard five moves
- Separate: get all $y$ with $dy$ and all $x$ with $dx$.
- Integrate both sides. Put $+C$ on one side only.
- Apply the initial condition immediately, while the equation is still in its simplest form.
- Solve for $y$ explicitly if asked.
- 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.