Salam Academy
Integration · Subtopic 5 of 7

Separating the Variables

Gather every yy with dydy on one side and every xx with dxdx on the other, integrate, and add one constant. The method that solves almost every Paper 3 differential equation.

Cambridge 9709 Paper 3Edexcel YMA01 WMA14Edexcel 9MA0 Paper 1Edexcel 9MA0 Paper 2AQA 7357 Paper 1AQA 7357 Paper 2≈ 35 minRevision 6 · updated 2026-10-27
Section 1 of 14

Learning objectives

  • Recognise when dydx=f(x) g(y)\dfrac{dy}{dx}=f(x)\,g(y) can be separated.
  • Separate, integrate both sides and include one arbitrary constant.
  • Rearrange to y=…y=\ldots, handling logarithms and exponentials correctly.
  • Use a condition to choose one curve from the family of solutions.
Pause and think

dydx=2xy\dfrac{dy}{dx}=2xy. If you divide both sides by yy, what is the left-hand side the derivative of?

Section 2 of 14

Core idea

Start hereFrom a rule about change to a formula

"Grows in proportion to its size": dydx=y\frac{dy}{dx}=y. Which functions do that? We could guess exe^x, but guessing doesn't scale. If the xx's and yy's can be pulled to opposite sides, we can integrate each side and find every solution.

The big idea

If dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y): separate to ∫1g(y)dy=∫f(x) dx\int\frac1{g(y)}dy=\int f(x)\,dx, integrate both sides, add one constant. A given point fixes the constant (particular solution).

1. The method

Why separating is legitimate
  1. 1g(y)dydx=f(x)\frac1{g(y)}\frac{dy}{dx}=f(x)
    Divide by g(y)g(y).
  2. ∫1g(y)dydxdx=∫f(x) dx\int\frac1{g(y)}\frac{dy}{dx}dx=\int f(x)\,dx
    Integrate both sides with respect to xx.
  3. ∫1g(y)dy=∫f(x) dx\int\frac1{g(y)}dy=\int f(x)\,dx
    Substitution rule: dydxdx\frac{dy}{dx}dx becomes dydy.
Worked exampledydx=y\frac{dy}{dx}=y

Find the general solution.

Goal
yy in terms of xx.
Strategy
Separate.
  1. ∫1y dy=∫1 dx\int\frac1y\,dy=\int1\,dx
    Separate.
  2. ln⁡∣y∣=x+c\ln|y|=x+c
    Integrate.
  3. ∣y∣=ex+c=ecex⇒y=Aex|y|=e^{x+c}=e^ce^x\Rightarrow y=Ae^x
    Un-log; A=±ecA=\pm e^c.
Answery=Aexy=Ae^x.
✓ CheckddxAex=Aex=y\frac{d}{dx}Ae^x=Ae^x=y ✓.
dy/dx = y: the family y = A eˣ
−2−112−6−4−22460xyy = A eˣstarts at (0, A)
Every curve in the family obeys dydx=y\dfrac{dy}{dx}=y. The value of AA is fixed by one known point.
Worked exampledydx=xy\frac{dy}{dx}=xy, y(0)=2y(0)=2

Find the particular solution.

Goal
yy.
Strategy
Separate; find cc; rearrange.
  1. ∫dyy=∫x dx⇒ln⁡y=12x2+c\int\frac{dy}y=\int x\,dx\Rightarrow\ln y=\tfrac12x^2+c
    Integrate.
  2. ln⁡2=c\ln2=c
    Condition.
  3. y=ex2/2+ln⁡2=2ex2/2y=e^{x^2/2+\ln2}=2e^{x^2/2}
    Un-log.
Answery=2ex2/2y=2e^{x^2/2}.
✓ Checky′=2xex2/2=xyy'=2xe^{x^2/2}=xy ✓; y(0)=2y(0)=2 ✓.
Worked exampledydx=y22x2\frac{dy}{dx}=\frac{y^2}{2x^2} through (1,1)(1,1)

Find yy.

Goal
yy explicitly.
Strategy
Separate; negative powers.
  1. ∫y−2dy=∫12x−2dx\int y^{-2}dy=\int\tfrac12x^{-2}dx
    Separate.
  2. −1y=−12x+c-\frac1y=-\frac1{2x}+c
    Integrate.
  3. −1=−12+c⇒c=−12-1=-\tfrac12+c\Rightarrow c=-\tfrac12
    Point.
  4. 1y=x+12x⇒y=2xx+1\frac1y=\frac{x+1}{2x}\Rightarrow y=\frac{2x}{x+1}
    Rearrange.
Answery=2xx+1y=\frac{2x}{x+1}.
✓ Checky(1)=1y(1)=1 ✓.
Common misconceptionTwo constants One constant is enough: c2−c1c_2-c_1 is just another constant.
Pause and think

Solve dydx=cos⁡xy\frac{dy}{dx}=\frac{\cos x}y, y(0)=2y(0)=2.

Summary

  • Separate, integrate, one constant.
  • Use the condition, then rearrange.
Key words
General solution
Contains an arbitrary constant.
Particular solution
One curve fixed by a condition.
Solutions of dy/dx = y: one curve for each starting value
−2−1.5−1−0.50.511.52123456780xyA = 0.5A = 1A = 2(0, 1) picks A = 1
Separating: ∫1y dy=∫1 dx\int\tfrac1y\,dy=\int1\,dx, so ln⁡y=x+c\ln y=x+c and y=Aexy=Ae^x. A boundary condition chooses one curve from the family.
HistoryLeibniz and the fraction that is not a fraction. Gottfried Wilhelm Leibniz invented the notation dydx\dfrac{dy}{dx} and, around 1691, the method of separating the variables. His notation is so well designed that moving dxdx across "like a fraction" gives the right answer, even though dydx\dfrac{dy}{dx} is really a limit, not a fraction.
Keep reading for free

Create a free account to read the rest of this lesson: key formulae, worked examples, explore the graph, common mistakes, exam tip, guided practice and more. Your answers are checked and your progress is saved.