Mistake Master
Student view — seeing the site as a student does
Mistake Master · AP Calculus · Unit 7 · Step-Through Animation

Finding General Solutions Using Separation of Variables

Everything With a y on One Side

You'll learnto decide whether an equation separates before you start rearranging it, to bring the constant of integration in at the one step where it belongs, and to read off what that constant becomes once you solve for y.

Separation of variables is Unit 6's integration done twice at once, and almost all of its difficulty is bookkeeping. Move every y onto the side carrying dy and every x onto the side carrying dx, integrate both sides, then solve for y. Watch one thing above all: the constant of integration enters at exactly one moment, and where it ends up decides which family of curves you have written down. Twelve short steps; press Next for each one.

12 STEPS · 6 QUICK CHECKS · ONE CONSTANT, AND IT ENTERS AT THE INTEGRATION · v2

the constant enters at the integration, and never after it
Before you start
What you're looking at
A derivation worked down the page, one line per click. The constant of integration is drawn in teal wherever it stands alone.
The question
Does this equation separate, and once both sides are integrated, where does that single constant end up in the answer?
Step 1 / 12

Read all 12 steps as text
Step 1

The unknown is on both sides

In \(\frac{dy}{dx} = xy\) the thing you are looking for, \(y\), also appears on the right — so there is nothing you can integrate yet.

Step 2

Sort the two variables apart

Multiply both sides by \(dx\) and divide both sides by \(y\): now the left holds only \(y\) and \(dy\), and the right only \(x\) and \(dx\).

Step 3

The test is factoring

Separation works only when the right side is a product of something in \(x\) alone and something in \(y\) alone; a sum like \(x + y\) never factors.

Step 4

Two ordinary integrals

With the variables apart, each side is a Unit 6 integral in its own variable: the left gives a logarithm and the right gives a power.

Step 5

One constant, and here is where it enters

An antiderivative is only fixed up to a constant, so one \(C\) is added on the \(x\) side — and this is the only moment in the whole method at which it may appear.

Step 6

The constant becomes a factor

Exponentiating both sides sends \(C\) through the exponential as \(e^{C}\), a positive number multiplying the answer rather than added to it.

Step 7

Two families, same four numbers

Take the simplest case, \(\frac{dy}{dx} = 2y\), and draw both candidates from the same four constants \(-1\), \(0.5\), \(1\) and \(2\).

Step 8

Only one of them solves it

Differentiating \(e^{2x} + C\) gives \(2e^{2x}\), while \(2y\) is \(2e^{2x} + 2C\) — a gap of \(2C\) at every \(x\), so only \(C = 0\) survives.

Step 9

Other forms, other places

An exponential appears only when the left side is \(\frac{dy}{y}\); change that and the constant lands inside a sum, inside a denominator, or as a slope.

Step 10

Integrating before separating

A student writes \(dy = (x+y)\,dx\) and integrates on the spot, getting \(y = \frac{x^{2}}{2} + yx + C\) — but \(\int y\,dx\) is not \(yx\), because \(y\) is the unknown function of \(x\).

Step 11

Check it in one line

Differentiate the answer and substitute it into the original equation; if the two sides are the same expression, the answer is right.

Step 12

The routine

Factor, separate, integrate once with one constant, then solve for \(y\) and watch where that constant ends up.