H7–H8PureStretch

Differential Equations

A biologist observes that a population's rate of growth is proportional to its current size, but has no formula for the population itself — only an equation connecting a rate of change to the quantity. Solving that equation, using integration, recovers the actual model.

34 min Video by TLMaths Integration

The big picture

A differential equation\textbf{differential equation} describes how a quantity CHANGES, typically as dydx=\dfrac{dy}{dx}= some expression, rather than giving yy directly. This chapter's technique — separating the variables\textbf{separating the variables} — collects every yy term on one side and every xx term on the other, so that integrating both sides recovers the actual relationship between yy and xx. This is precisely how real-world rates of change (population growth, cooling, chemical reactions) are converted into usable models.

A-Level Maths H7-01: Differential Equations: Introducing Differential EquationsCurated by Kepler, not produced by us. Watch it, then work through the notes below.
Open on YouTube

What you'll be able to do

  • Recognise a first-order differential equation of the form dydx=f(x)g(y)\dfrac{dy}{dx}=f(x)g(y)
  • Separate the variables and integrate both sides
  • Find the general solution and use a given condition to find the particular solution
  • Interpret differential equation models in real-world contexts
1

Separating the variables

When dydx\dfrac{dy}{dx} can be written as a function of xx multiplied by a function of yy, rearrange algebraically so every yy-term (and dydy) is on one side and every xx-term (and dxdx) is on the other, then integrate each side independently.

dydx=f(x)g(y)  ⇒  ∫1g(y) dy=∫f(x) dx\dfrac{dy}{dx} = f(x)g(y) \;\Rightarrow\; \int\dfrac{1}{g(y)}\,dy = \int f(x)\,dx
Separate, then integrate both sides.
Example 1Solve dydx=2xy\dfrac{dy}{dx}=2xy.
1Separate variables: 1y dy=2x dx\dfrac{1}{y}\,dy = 2x\,dx.
2Integrate both sides: ∫1y dy=∫2x dx\int\dfrac1y\,dy = \int2x\,dx.
3ln⁡∣y∣=x2+c\ln|y| = x^2+c.
Answer
ln⁡∣y∣=x2+c\ln|y|=x^2+c, or equivalently y=Aex2y=Ae^{x^2} (where A=±ecA=\pm e^c)

Tip — Only ONE constant of integration is needed overall — combine both sides' constants into a single cc (usually written on the side that gives the neater equation).

2

From general to particular solution

The result of integration is the general solution\textbf{general solution} — a whole family of curves, one for every value of the constant. A given initial condition (a specific point the solution must pass through) pins down the exact constant, giving the particular solution\textbf{particular solution}.

Example 1Solve dydx=yx\dfrac{dy}{dx}=\dfrac{y}{x} given that y=6y=6 when x=2x=2.
1Separate: 1y dy=1x dx\dfrac1y\,dy=\dfrac1x\,dx.
2Integrate: ln⁡∣y∣=ln⁡∣x∣+c\ln|y|=\ln|x|+c.
3Rewrite using laws of logs: ln⁡∣y∣−ln⁡∣x∣=c⇒ln⁡∣yx∣=c⇒yx=A\ln|y|-\ln|x|=c \Rightarrow \ln\left|\dfrac{y}{x}\right|=c \Rightarrow \dfrac{y}{x}=A (where A=ecA=e^c).
4Use the condition: 62=A\dfrac{6}{2}=A, so A=3A=3.
Answer
y=3xy=3x
Why this works

Converting a logarithmic general solution into the form y=A×(function of x)y=A\times(\text{function of }x) using the exponential/logarithm laws is a standard final step — it makes the constant much easier to interpret and solve for.

3

Modelling with differential equations

Real contexts describe a rate of change in words ("the rate of decrease is proportional to the amount present") — translating this into a differential equation, then separating and integrating, recovers the full model.

Example 1The mass mm of a substance decreases at a rate proportional to mm itself. Given m=50m=50 at t=0t=0 and m=25m=25 at t=10t=10, find mm in terms of tt.
1"Rate proportional to mm" means dmdt=−km\dfrac{dm}{dt}=-km (negative since it decreases), for some constant k>0k>0.
2Separate and integrate: ∫1m dm=∫−k dt⇒ln⁡m=−kt+c⇒m=Ae−kt\int\dfrac1m\,dm=\int-k\,dt \Rightarrow \ln m = -kt+c \Rightarrow m=Ae^{-kt}.
3Use t=0t=0, m=50m=50: A=50A=50.
4Use t=10t=10, m=25m=25: 25=50e−10k⇒e−10k=0.5⇒−10k=ln⁡0.5⇒k=ln⁡21025=50e^{-10k} \Rightarrow e^{-10k}=0.5 \Rightarrow -10k=\ln0.5 \Rightarrow k=\dfrac{\ln2}{10}.
Answer
m=50e−(ln⁡2/10)tm=50e^{-(\ln2/10)t} (exponential decay, halving every 10 units of tt)

Think like an examiner

  • Always check the differential equation CAN be separated (every xx term must be separable from every yy term by multiplication/division only) before attempting this method.
  • Combine the two integration constants into a single constant as early as possible, then convert a logarithmic solution into an exponential form using the laws of logs where it makes the answer clearer.
  • Use the given initial condition as the LAST step, substituting into the general solution to find the specific constant.

Common misconceptions

Writing two separate constants of integration, one on each side.
Combine them into a SINGLE constant cc (or AA) once both sides have been integrated — two separate constants are mathematically redundant.
Forgetting the modulus signs when integrating ∫1y dy=ln⁡∣y∣+c\int\dfrac1y\,dy=\ln|y|+c.
Strictly, integrating 1y\dfrac1y gives ln⁡∣y∣\ln|y|, though in modelling contexts with y>0y>0 throughout, the modulus is often dropped for readability.
Applying the initial condition before fully solving for the general solution.
Complete the separation and integration FIRST to get the general solution, then substitute the given point to find the constant.

Separating variables

∫1g(y) dy=∫f(x) dx\int\dfrac{1}{g(y)}\,dy = \int f(x)\,dx
Separate then integrate both sides.
dydx=ky⇒y=Aekx\dfrac{dy}{dx}=ky \Rightarrow y=Ae^{kx}
A very common exponential growth/decay result.

Stretch yourself

Solve the differential equation dydx=xy2\dfrac{dy}{dx} = \dfrac{x}{y^2}, given that y=2y=2 when x=0x=0.

Hint — Separate so all y-terms (including y2 dyy^2\,dy) are on one side and all x-terms on the other, then integrate both sides before applying the initial condition.

Reveal solution
SolutionSeparate: y2 dy=x dxy^2\,dy = x\,dx. Integrate: y33=x22+c\dfrac{y^3}{3}=\dfrac{x^2}{2}+c. Use x=0x=0, y=2y=2: 83=0+c\dfrac{8}{3}=0+c, so c=83c=\dfrac83. General solution: y33=x22+83\dfrac{y^3}{3}=\dfrac{x^2}{2}+\dfrac83, so y3=3x22+8y^3=\dfrac{3x^2}{2}+8, giving y=3x22+83y=\sqrt[3]{\dfrac{3x^2}{2}+8}. ■\blacksquare

Questions students ask

What does it mean to "separate the variables"?
It means rearranging the differential equation algebraically so every term involving yy (and dydy) is on one side of the equation, and every term involving xx (and dxdx) is on the other — then each side can be integrated independently.
What is the difference between a general and particular solution?
The general solution is the result of integration, containing an unknown constant — it represents a whole family of solutions. The particular solution uses a given point (initial condition) to find the exact value of that constant.
Why do so many models end up as y=Aekxy=Ae^{kx}?
Because "rate of change proportional to current amount" is an extremely common real-world description (population growth, radioactive decay, cooling), and separating variables on dydx=ky\dfrac{dy}{dx}=ky always produces exactly this exponential form.

Key takeaways

  • A differential equation of the form dydx=f(x)g(y)\dfrac{dy}{dx}=f(x)g(y) can be separated: ∫1g(y) dy=∫f(x) dx\int\dfrac1{g(y)}\,dy=\int f(x)\,dx.
  • Integrating both sides gives the general solution, with one combined constant.
  • An initial condition (a known point) gives the particular solution by finding that constant.
  • Many real models follow dydx=ky\dfrac{dy}{dx}=ky, giving the exponential solution y=Aekxy=Ae^{kx}.

How this fits the course

Test yourself

Answer a few questions, then review anything you missed.

Prefer paper? Open the written self-check

Answer each question before opening its answer. This self-check does not record a quiz score.

  1. To separate variables in dydx=xy\dfrac{dy}{dx}=xy, you write:

    • 1y dy=x dx\dfrac1y\,dy=x\,dx
    • y dy=x dxy\,dy=x\,dx
    • 1y dy=1x dx\dfrac1y\,dy=\dfrac1x\,dx
    • dy=xy dxdy=xy\,dx
    Show answer and explanation

    Answer: 1y dy=x dx\dfrac1y\,dy=x\,dx

    Divide by y and multiply by dx to separate.

  2. The general solution of a differential equation contains:

    • An unknown constant
    • No unknowns at all
    • Two unknown constants
    • Only x, no y
    Show answer and explanation

    Answer: An unknown constant

    Integration introduces one constant of integration.

  3. An initial condition is used to:

    • Find the exact value of the constant
    • Change the differential equation itself
    • Remove the need to integrate
    • Find the second derivative
    Show answer and explanation

    Answer: Find the exact value of the constant

    Substituting a known point solves for the constant.

  4. Solving dydx=ky\dfrac{dy}{dx}=ky (k constant) gives a solution of the form:

    • y=Aekxy=Ae^{kx}
    • y=kx+Ay=kx+A
    • y=Axky=Ax^k
    • y=Aln⁡(kx)y=A\ln(kx)
    Show answer and explanation

    Answer: y=Aekxy=Ae^{kx}

    A classic exponential growth/decay result.

  5. Integrating ∫1y dy\int\dfrac1y\,dy gives:

    • ln⁡∣y∣+c\ln|y|+c
    • y22+c\dfrac{y^2}{2}+c
    • 1y2+c\dfrac1{y^2}+c
    • yln⁡y+cy\ln y+c
    Show answer and explanation

    Answer: ln⁡∣y∣+c\ln|y|+c

    The standard integral of 1/y.

Finished this lesson?

Loading your progress…

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 13 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.