AP-CALCBC-7.6-7.7

U7.6 Separation of Variables

Master separable differential equations for AP Calculus BC: separate variables, integrate both sides, and use initial conditions to find particular solutions.

What you'll do in this lesson

A voice-first session with the Crimsora tutor on U7.6 Separation of Variables, then targeted practice and FRQs — with the tutor adapting to where you get stuck.

What this lesson covers

A separable differential equation is one you can rearrange so that all the yy stuff lives on one side with dydy and all the xx stuff lives on the other with dxdx. Once separated, you integrate both sides — and suddenly a scary-looking equation like dydx=xy\frac{dy}{dx}=xy becomes a routine integration problem.

This lesson shows you the exact algebra-then-integrate procedure, how to handle the constant of integration correctly, and how to lock down a particular solution using an initial condition. These skills are tested every year, both on multiple-choice items and as a signature step inside free-response questions, so getting the mechanics automatic pays off directly.

What makes an equation separable

A first-order differential equation is separable if you can write it in the form dydx=f(x)g(y)\frac{dy}{dx}=f(x)\cdot g(y) — a product of a function of xx alone and a function of yy alone. The test is purely algebraic: can you factor the right-hand side so that xx-terms and yy-terms are multiplied, not added?

For example, dydx=xy\frac{dy}{dx}=xy is separable because it is xx times yy. So is dydx=x2y\frac{dy}{dx}=\frac{x^2}{y}, since it equals x21yx^2\cdot\frac{1}{y}. But dydx=x+y\frac{dy}{dx}=x+y is not separable — a sum cannot be split into a clean product.

Once you confirm separability, divide both sides by g(y)g(y) and multiply by dxdx to gather like variables:1g(y)dy=f(x)dx\frac{1}{g(y)}\,dy = f(x)\,dx
EquationSeparable?Separated form
dydx=xy\frac{dy}{dx}=xyYes1ydy=xdx\frac{1}{y}dy=x\,dx
dydx=x2y\frac{dy}{dx}=\frac{x^2}{y}Yesydy=x2dxy\,dy=x^2\,dx
dydx=x+y\frac{dy}{dx}=x+yNo
Recognizing separability quickly is often the first graded step on an FRQ.

The separate-and-integrate procedure

Solving proceeds in a fixed sequence. First, separate variables so one side has only yy and dydy, the other only xx and dxdx. Second, integrate both sides. Third, add a single constant of integration CC — you only need one, conventionally placed on the xx-side. Fourth, solve for yy explicitly when possible.

Consider dydx=xy\frac{dy}{dx}=xy. Separate: 1ydy=xdx\frac{1}{y}\,dy = x\,dx. Integrate both sides:lny=x22+C\ln|y| = \frac{x^2}{2} + CTo solve for yy, exponentiate: y=ex2/2eC|y| = e^{x^2/2}\cdot e^{C}. Since eCe^{C} is just a positive constant, replace ±eC\pm e^{C} with a new constant kk:y=kex2/2y = k\,e^{x^2/2}This is the general solution — a whole family of curves, one for each value of kk.

A common misconception is writing +C+C on both sides; that is not wrong but wastes time, since you can combine them into one constant. A more serious error is forgetting the constant entirely, which makes it impossible to satisfy an initial condition. Always integrate first, then apply the initial condition — never before.

General versus particular solutions

The general solution contains the arbitrary constant and represents infinitely many curves. A particular solution pins down that constant using an initial condition of the form y(x0)=y0y(x_0)=y_0.

There are two valid orders for using the initial condition, and choosing the efficient one saves algebra. Method one: solve completely for yy, then substitute. Method two: substitute the initial condition right after integrating, while the equation still contains lny\ln|y| or an implicit form, to find CC first. On the AP exam, method two is frequently cleaner because it avoids exponentiating an unknown constant.

Using the earlier example with condition y(0)=3y(0)=3: at lny=x22+C\ln|y|=\frac{x^2}{2}+C, substitute x=0x=0, y=3y=3: ln3=0+C\ln 3 = 0 + C, so C=ln3C=\ln 3. Then lny=x22+ln3\ln y = \frac{x^2}{2}+\ln 3, giving y=3ex2/2y = 3e^{x^2/2}.

Two details the AP exam rewards: keep the domain in mind — the particular solution is only valid on the interval containing x0x_0 where the function is continuous — and choose the correct sign or branch based on the initial condition (for instance, if y(0)=3>0y(0)=3>0, drop the absolute value as y>0y>0).

How the exam tests it and common traps

On multiple-choice, you may be handed a general solution and asked which matches a differential equation, or given an initial condition and asked for yy at a specific point. On free-response, separation of variables is a multi-point workhorse: separating correctly, antidifferentiating correctly, including +C+C, using the initial condition, and solving for yy are each often worth points.

The most frequent trap is dropping the constant of integration or applying the initial condition before integrating. Another is mishandling absolute values — if the integral gives lny\ln|y|, you must justify removing the bars using the sign implied by the initial condition. A third is antidifferentiation slips, especially forgetting the chain-rule-driven factors like 12\frac{1}{2} when integrating xx.
StepPoints-earning actionTrap to avoid
SeparateCorrect dydy/dxdx splitSplitting a sum
IntegrateBoth antiderivatives rightMissing +C+C
Apply ICSubstitute after integratingSubstituting too early
Solve for yyCorrect branch/signWrong absolute-value sign
Write legibly and show the separated equation explicitly; readers award the separation step even before the integration is finished.

Key terms

Separable differential equation.
A first-order equation writable as dydx=f(x)g(y)\frac{dy}{dx}=f(x)\cdot g(y), so variables can be split onto opposite sides.
Separation of variables.
The technique of rearranging a separable equation into 1g(y)dy=f(x)dx\frac{1}{g(y)}dy=f(x)dx and integrating both sides.
General solution.
The family of all solutions to a differential equation, containing an arbitrary constant of integration.
Particular solution.
A single specific solution obtained by using an initial condition to determine the constant.
Initial condition.
A given value y(x0)=y0y(x_0)=y_0 used to solve for the constant of integration.
Constant of integration.
The +C+C added after antidifferentiating; a single combined constant suffices for both sides.

Worked example

Solve the differential equation dydx=2xy\frac{dy}{dx}=\frac{2x}{y} with the initial condition y(0)=4y(0)=4, and give the particular solution.
First check separability: the right side is 2x1y2x\cdot\frac{1}{y}, a product of an xx-function and a yy-function, so it is separable.

Separate the variables by multiplying both sides by ydxy\,dx:ydy=2xdxy\,dy = 2x\,dxIntegrate both sides:y22=x2+C\frac{y^2}{2} = x^2 + CApply the initial condition immediately. Substitute x=0x=0 and y=4y=4:422=0+C    8=C\frac{4^2}{2} = 0 + C \implies 8 = CSo y22=x2+8\frac{y^2}{2} = x^2 + 8, which gives y2=2x2+16y^2 = 2x^2 + 16.

Solve for yy and pick the correct branch. Taking the square root gives y=±2x2+16y = \pm\sqrt{2x^2+16}. Since y(0)=4y(0)=4 is positive, choose the positive root:y=2x2+16y = \sqrt{2x^2 + 16}This is the particular solution. Quick check: at x=0x=0, y=16=4y=\sqrt{16}=4, matching the initial condition.

Practice questions

Which of the following is the general solution to dydx=3x2y\frac{dy}{dx}=3x^2 y?
  1. y=x3+Cy = x^3 + C
  2. y=Cex3y = Ce^{x^3}
  3. y=ex3+Cy = e^{x^3} + C
  4. y=Cx3y = Cx^3

Answer: y=Cex3y = Ce^{x^3}

Separate: 1ydy=3x2dx\frac{1}{y}dy = 3x^2 dx. Integrate: lny=x3+C\ln|y| = x^3 + C. Exponentiate: y=ex3eC|y| = e^{x^3}e^{C}, so y=Cex3y = Ce^{x^3} where CC absorbs ±eC\pm e^{C}. The additive-constant options fail because the constant appears as a multiplicative factor after exponentiating.
Solve dydx=cosx2y\frac{dy}{dx}=\frac{\cos x}{2y} given y(0)=1y(0)=1. Show your steps and give the particular solution.

Answer: y=sinx+1y = \sqrt{\sin x + 1}

Separate: 2ydy=cosxdx2y\,dy = \cos x\,dx. Integrate: y2=sinx+Cy^2 = \sin x + C. Apply y(0)=1y(0)=1: 1=sin0+C=C1 = \sin 0 + C = C, so C=1C=1 and y2=sinx+1y^2 = \sin x + 1. Since y(0)=1>0y(0)=1>0, take the positive root: y=sinx+1y=\sqrt{\sin x+1}. Verify: at x=0x=0, y=0+1=1y=\sqrt{0+1}=1.
A quantity satisfies dydx=xy2\frac{dy}{dx}=xy^2 with y(0)=1y(0)=-1. Find the particular solution and state where it is valid.

Answer: y=11+x22=22+x2y = \frac{-1}{1+\frac{x^2}{2}} = \frac{-2}{2+x^2}

Separate: y2dy=xdxy^{-2}dy = x\,dx. Integrate: y1=x22+C-y^{-1} = \frac{x^2}{2}+C, so 1y=x22+C-\frac{1}{y}=\frac{x^2}{2}+C. Apply y(0)=1y(0)=-1: 11=1=0+C-\frac{1}{-1}=1 = 0 + C, so C=1C=1. Then 1y=x22+1-\frac{1}{y}=\frac{x^2}{2}+1, giving y=1x22+1=22+x2y = \frac{-1}{\frac{x^2}{2}+1}=\frac{-2}{2+x^2}. Since 2+x22+x^2 is never zero, this solution is valid for all real xx.

FAQ

When can I drop the absolute value in lny\ln|y|?
Use the initial condition to determine the sign of yy. If the given point has y>0y>0, then y=y|y|=y and you can drop the bars; if y<0y<0, then y=y|y|=-y. The solution stays on one side of y=0y=0 because a continuous solution cannot cross zero here without violating the equation.
Do I need a +C+C on both sides of the equation?
No. Although both integrals technically produce constants, you can combine them into a single constant on one side (usually the xx-side). Writing one CC is standard and fully correct, and it saves time. Never omit the constant entirely, though — you need it to satisfy the initial condition.
Should I apply the initial condition before or after solving for y?
You may do either, but substituting right after integrating — before solving for yy — is usually cleaner because it avoids exponentiating or manipulating an unknown constant. Just never substitute the initial condition before you integrate, since the constant of integration doesn't exist yet.
How is separation of variables graded on the free-response section?
Points are typically distributed across separating the variables correctly, antidifferentiating both sides, including the constant of integration, using the initial condition, and solving for yy. Show the separated equation explicitly so you earn early steps even if a later antiderivative slips.

Learn this with a teacher, not a page

The Crimsora tutor teaches U7.6 Separation of Variables live — explaining on a whiteboard, asking you questions, and adapting to where you get stuck.