Unit 7Separation of Variables
Concept 4.78Built for May 2027 AP Exam

Separation of Variables

Reviewed by ACEpath AP Math Editorial Team

Last Updated: September 2026

30-second summary

Separation of variables turns one differential equation into two ordinary integrals. You move every yy to the left with dydy, every xx to the right with dxdx, and integrate each side against its own variable. The result is an equation relating yy and xx with one constant of integration. Rearrange it into an explicit formula only if the question asks for one, because many correct answers stay implicit. Two details decide the score. The constant is written once, on one side, since putting it on both sides merely renames it; and the integral of 1y−a\frac{1}{y-a} carries an absolute value that must survive until the constant absorbs it. After that, an initial condition selects the single member of the family.

On the AP Exam

AP Calculus AB tests this skill through the representations and reasoning described below.

What you’ll see
The middle two parts of a differential-equation question. A slope-field sketch usually comes first, then a part that says “use separation of variables to find an expression for M(t)M(t),” and occasionally a follow-up asking for a limit or a value at a later time.
What you’ll do
Move the variables, integrate both sides, evaluate any constant from the given condition, and then either solve for the function or leave it in a form the question accepts.
Memory hook
yy goes with dydy, xx goes with dxdx. If a variable is on the wrong side after the split, the equation was not separated.
Use it on the exam
For MCQs: Differentiate the offered answers instead of integrating. Only the correct family differentiates back to the given dydx\frac{dy}{dx} for every xx. For FRQs: Write the separated line before integrating. The split is often a scored step, so an answer that jumps straight to the solution can lose a point even when the solution is right.

Concept Review

Why Separating Works

Figure 1 — Four lines, no cleverness. The variables are split, each side is integrated against its own variable, and one constant is carried along.

The method rests on the chain rule read backwards. If yy is a function of xx, then dydx\frac{dy}{dx} is the derivative of yy with respect to xx, and the expression 1y−adydx\frac{1}{y-a}\frac{dy}{dx} is the derivative of ln⁡∣y−a∣\ln|y-a|. So integrating that expression with respect to xx is the same as integrating 1y−a\frac{1}{y-a} with respect to yy. Writing dydy and dxdx on opposite sides is shorthand for that substitution, not a licence to treat derivatives as fractions.

Four lines, no cleverness. The variables are split, each side is integrated against its own variable, and one constant is carried along.

The Mechanics in Four Moves

MoveWhat you writeWhat can go wrong
1isolate dydx\frac{dy}{dx} if it is not already alonethe equation is solved for the wrong quantity
2divide by every factor containing yy, multiply by dxdxa stray yy survives on the right
3integrate each side against its own variablethe constant is written twice, or not at all
4solve for yy if an explicit form is requesteda sign is lost when the logarithm is undone

Step 2 is where most errors happen, and it is the step that is easiest to check: after the split, the left side must contain no xx and the right side no yy.

The Logarithmic Case and the Absolute Value

The integral ∫dyy−a=ln⁡∣y−a∣\int \frac{dy}{y-a} = \ln|y-a| needs the absolute value because y−ay-a can be negative, and the logarithm of a negative number is not real. The absolute value is not decoration; it is what allows a single formula to cover solutions that stay below aa as well as those above it.

Undoing the logarithm gives ∣y−a∣=eCekx|y-a| = e^{C}e^{kx}, and the absolute value turns into a ±\pm that the constant absorbs:

y−a=±eCekx=Aekx,A≠0y - a = \pm e^{C}e^{kx} = Ae^{kx}, \qquad A \neq 0

That is why the general solution of dydx=k(y−a)\frac{dy}{dx} = k(y-a) is written y=a+Aekxy = a + Ae^{kx} with AA allowed to be any real number. The sign of AA records which side of the equilibrium the solution lives on, and it comes from the initial condition rather than from the integration.

One Constant, Not Two

Integrating both sides produces a constant on each side, F(y)=G(x)+C1+C2F(y) = G(x) + C_1 + C_2. The two constants combine into one, because a constant plus a constant is a constant. Writing CC twice is not wrong arithmetic, but it is a signal that the writer does not yet see the equation as a single relation, and on a scored part it costs clarity if not points.

When the Answer Stays Implicit

Not every equation can be solved for yy in closed form. dydx=xy+1\frac{dy}{dx} = \frac{x}{y+1} gives (y+1)2=x2+C\left(y+1\right)^{2} = x^{2} + C, which can be solved, but dydx=sin⁡yx\frac{dy}{dx} = \frac{\sin y}{x} gives ln⁡∣x∣=∫dysin⁡y\ln|x| = \int \frac{dy}{\sin y} and no elementary rearrangement exists. The exam accepts an implicit answer whenever the explicit one is not required, and it prefers a correct implicit answer to a wrong explicit one produced by forcing a square root.

Common Misconception Check

  • Myth 1: “dydx\frac{dy}{dx} is a fraction, so I can multiply by dxdx.” Truth: The manipulation is justified by substitution, not by fraction algebra. It gives the right answer, but the justification matters when the integral is not elementary.
  • Myth 2: “Every problem needs an explicit y=f(x)y = f(x).” Truth: An implicit relation is a complete answer unless the question asks for a function.
  • Myth 3: “The absolute value can be dropped immediately.” Truth: It can be absorbed into the constant only after you write the exponential form.

Topic-Specific Study Method

Split, Then Integrate Each Side

Borrowed idea: Get all the yy on one side, all the xx on the other. Then integrate both sides. That is the method. It works because dydy and dxdx can be treated as separate objects here. You get an equation, not a function. Solve for yy only if the question asks. The constant appears once, on one side, though both integrals produced one.

Exam disguiseWhat you see on the pageWhat your brain must translateRequired execution
Rate equation in contextdhdt=−h10\frac{dh}{dt} = -\frac{h}{10}hh with dhdh, tt with dtdtintegrate, then apply h(0)h(0)
Cooling or limited growthdHdt=k(A−H)\frac{dH}{dt} = k\left(A - H\right)the shift by AA is part of the variableintegrate dHH−A\frac{dH}{H-A}
Product on the rightdydx=2x(y+3)\frac{dy}{dx} = 2x\left(y+3\right)divide by (y+3)\left(y+3\right) firsttwo logs, one constant
Implicit answer expected“find an expression for yy”an implicit form may be enoughstop before forcing a root
Second patient, new constantsame equation, different y(0)y(0)the family is unchangedreapply the condition, do not re-integrate

① Separate before integrating. The unsplit equation cannot be integrated, and attempting it is the most common way a correct idea stalls.

② Keep the absolute value until the constant appears. Dropping it early can silently delete half the solution set.

③ Apply the initial condition to the general solution, not to the separated line. Substituting too early turns a family into a single curve before the constant exists.


Training & Error Diagnosis

Core Archetype (Simplest Form): Find the general solution of dydx=2xy\frac{dy}{dx} = 2xy.

Standard Execution:

  1. Separate. dyy=2x dx\frac{dy}{y} = 2x\,dx, valid for y≠0y \neq 0.
  2. Integrate. ln⁡∣y∣=x2+C\ln|y| = x^{2} + C.
  3. Exponentiate. ∣y∣=eCex2|y| = e^{C}e^{x^{2}}, so y=Aex2y = Ae^{x^{2}} with A≠0A \neq 0.
  4. Note the missing member. y=0y = 0 is also a solution, so the general solution is y=Aex2y = Ae^{x^{2}} for any real AA.

Exam Variation (Context / Parameter Shift): Water drains from a barrel so that dhdt=−h10\frac{dh}{dt} = -\frac{h}{10}, with h(0)=5h(0) = 5 feet. Find h(t)h(t) and the time at which the height reaches 11 foot.

Solution: Separating gives dhh=−110dt\frac{dh}{h} = -\frac{1}{10}dt, so ln⁡∣h∣=−t10+C\ln|h| = -\frac{t}{10} + C and h=Ae−t/10h = Ae^{-t/10}. The condition h(0)=5h(0) = 5 fixes A=5A = 5, giving h(t)=5e−t/10h(t) = 5e^{-t/10}. Setting h=1h = 1 gives e−t/10=15e^{-t/10} = \frac{1}{5}, so −t10=ln⁡15-\frac{t}{10} = \ln\frac{1}{5} and t=10ln⁡5≈16.09t = 10\ln 5 \approx 16.09 seconds. Note that the absolute value is legitimate to drop here because the height is positive for all tt, and the answer must be justified on that ground rather than assumed.

Common Traps & Failure Signals:

  1. Unseparated integrand (Signal: an xx still on the left after the split): the variables did not actually separate.
  2. Absolute value dropped early (Signal: ln⁡(y−a)\ln(y-a) written with no bars and no justification): the sign information is lost.
  3. Condition applied too early (Signal: a number substituted into the separated line): the constant never gets determined properly.

6D Cognitive Error Diagnosis (Where Your Thinking Broke):

  • Split Skipped: You integrated the unsplit equation.
  • Constant Doubled: You carried CC on both sides and then solved for one of them, which is bookkeeping with no mathematical content and a frequent source of algebra slips.
  • Explicit Forced: You took a square root to produce y=f(x)y = f(x) when the question accepted the implicit relation, and the branch you chose was wrong for the given initial condition.

Past 10-Year AP Exam Appearance

Testing Frequency
Nearly Every Year
Eight of the nine released exams since 2017 contain a part whose required work is to separate the variables and integrate each side, and every one of those parts supplies an initial condition in the same sentence
10-Year Total Count
8 of 9 Exams · 8 FRQ Parts
The five that name “separation of variables” explicitly and the three that only say “find an expression” are counted together, because the scored work is identical
FRQ Years Appeared
2017 (Q4c), 2018 (Q6c), 2019 (Q4c), 2021 (Q6c), 2022 (Q5d), 2023 (Q3d), 2024 (Q3c), 2026 (Q3D) ---

Practice Examples

MCQ 1

The Plain Family

The general solution of dydx=2xy\frac{dy}{dx} = 2xy is

MCQ 2

A Shifted Equilibrium

The general solution of dydx=2x(y+3)\frac{dy}{dx} = 2x\left(y + 3\right) is

MCQ 3

Where the Sign Comes From

A solution of dydt=ky\frac{dy}{dt} = ky satisfies y(0)=−4y(0) = -4. In the form y=Cekty = Ce^{kt}, the constant CC must be

FRQ 4

From a Rate Equation to a Function

(a) Water drains from a barrel so that dhdt=−h10\frac{dh}{dt} = -\frac{h}{10}, where hh is in feet and tt in seconds. Given h(0)=5h(0) = 5, find h(t)h(t) and the time at which h=1h = 1.

(b) Find the solution of dydx=xy+1\frac{dy}{dx} = \frac{x}{y+1} that satisfies y(0)=1y(0) = 1, in explicit form.

(c) A student writes ln⁡∣y−a∣=kx+C1+C2\ln|y - a| = kx + C_1 + C_2 after integrating both sides separately. Explain why the two constants can be replaced by one.

Cheatsheet

Core Reference

ActionFailure if skipped
1isolate dydx\frac{dy}{dx}the split is performed on the wrong expression
2divide by every yy-factor, multiply by dxdxvariables never separate
3integrate each side against its own variablethe constant is misplaced
4keep the absolute value until the exponential formhalf the family disappears
5apply the initial condition to the general solutionthe constant stays unknown

Sentences That Score

TOPIC REVIEW • NEXT STEP IN YOUR LEARNING LOOP

Ready to check your understanding?

Strengthen this topic with AP-style practice, or continue to next topic.