AP® Calculus AB & BC · Unit 7

How Do You Solve a Separable Differential Equation?

A differential equation is separable when dydx\dfrac{dy}{dx} is a function of xx times a function of yy. Move the yy terms to one side with dydy and the xx terms to the other with dxdx, integrate both sides, then use the initial condition to solve for the constant — the result may be explicit or an implicit relation.

Separation of variables

If dydx=f(x)g(y)\dfrac{dy}{dx} = f(x)g(y), then dyg(y)=f(x) dx⟹∫dyg(y)=∫f(x) dx\frac{dy}{g(y)} = f(x)\,dx \quad\Longrightarrow\quad \int \frac{dy}{g(y)} = \int f(x)\,dx

Step-by-Step Method

  1. Rewrite dydx\dfrac{dy}{dx} as a product (or quotient) of a function of xx alone and a function of yy alone.
  2. Move all the yy-terms to one side with dydy, and all the xx-terms to the other side with dxdx.
  3. Integrate both sides, writing a single constant of integration (the two constants from each side combine into one).
  4. Use the initial condition to solve for that constant, giving the particular solution.
  5. Solve explicitly for yy if possible and if the problem asks for it — otherwise, an implicit relation between xx and yy is a complete answer.
  6. Check your solution by differentiating it (implicitly, if needed) and confirming it reproduces the original differential equation.

Worked Examples

Foundational — solved explicitly for ySolve dydx=2xy\dfrac{dy}{dx} = 2xy given y(0)=3y(0)=3.
  1. Separate: dyy=2x dx\dfrac{dy}{y} = 2x\,dx (assuming y≠0y\ne0).
  2. Integrate both sides: ln⁡∣y∣=x2+C\ln|y| = x^2+C, so y=Aex2y = Ae^{x^2} for some constant AA.
  3. Apply the initial condition: 3=Ae0=A3 = Ae^0 = A, so A=3A=3. The particular solution is y=3ex2y=3e^{x^2}.
  4. Check by differentiating: dydx=3⋅2x⋅ex2=2x(3ex2)=2xy\dfrac{dy}{dx} = 3\cdot 2x\cdot e^{x^2} = 2x\left(3e^{x^2}\right) = 2xy — matches the original equation exactly.
Harder — implicit solution, checked by implicit differentiationSolve dydx=−xy\dfrac{dy}{dx} = -\dfrac{x}{y} given y(0)=3y(0)=3, and find y(2)y(2).
  1. Separate: y dy=−x dxy\,dy = -x\,dx.
  2. Integrate: y22=−x22+C\dfrac{y^2}{2} = -\dfrac{x^2}{2}+C, so x2+y2=2Cx^2+y^2 = 2C.
  3. Apply the initial condition: 02+32=2C⇒2C=90^2+3^2 = 2C \Rightarrow 2C=9, giving the implicit solution x2+y2=9x^2+y^2=9 — a circle. Since y(0)=3>0y(0)=3>0, take the positive branch: y=9−x2y=\sqrt{9-x^2}. At x=2x=2: y(2)=9−4=5≈2.236y(2) = \sqrt{9-4} = \sqrt5 \approx 2.236.
  4. Check by differentiating the implicit equation directly: 2x+2ydydx=0⇒dydx=−xy2x+2y\dfrac{dy}{dx}=0 \Rightarrow \dfrac{dy}{dx}=-\dfrac{x}{y} — matches the original equation, confirming the solution without redoing the separation.

Common Mistakes on the AP Exam

How This Appears on the AP Exam

Try a timed AP-style question on this topic — free.

Start Free

Frequently Asked Questions

What makes a differential equation "separable"?

One where dy/dxdy/dx can be written as a product (or quotient) of a function of xx alone and a function of yy alone, so every yy-term can be moved to one side with dydy and every xx-term to the other side with dxdx.

Do you always need to solve explicitly for y?

No — many AP problems accept an implicit relation between xx and yy as the final answer, especially when solving explicitly for yy would require choosing between multiple branches or isn’t algebraically clean.

What happens to the two constants of integration when you integrate both sides?

They combine into a single constant, since subtracting one constant from the other just gives a new constant — write only one constant of integration overall, not one on each side.

How do you find the particular solution instead of the general one?

Substitute the given initial condition (a known xx and yy pair) into the general solution and solve for the constant of integration, then substitute that specific value back in.

How can you check that a separable differential equation’s solution is correct?

Differentiate your solution (implicitly, if it is not solved explicitly for yy) and confirm it reproduces the original differential equation exactly.

Related Topics

Keep going with timed tests & full mocks, study materials for every unit, DME Nova — your AI tutorthat won't make up an answer, and FRQ feedback scored against an exam-style rubric.

Start Free

Written by the DME AP Calculus team — 20+ years of AP & STEM teaching.

Last updated: 2026-10-08

AP® is a registered trademark of the College Board, which is not affiliated with, and does not endorse, this site.