STEM-TutorLearn • Practice • ExcelBook Free DemoFree demo

Differential equations, explained with examples

A differential equation links a quantity to its rate of change. They model population growth, cooling, radioactive decay and much more, and they appear in the second year of A level Maths.

On this page
  1. What a differential equation is
  2. Separating variables
  3. Worked examples
  4. Forming differential equations from context
  5. Interpreting and criticising models
  6. Common mistakes
  7. Practice questions
  8. Frequently asked questions
  9. Key takeaways
  10. Related guides
xygrowth: y = Aekxdecay: y = Ae−kx
Solutions of dy/dx = ky. When k > 0 the quantity grows faster and faster; when k < 0 it decays towards zero but never reaches it.

What a differential equation is

A differential equation contains a derivative, such as dy/dx or dP/dt. Instead of telling you y directly, it tells you how y changes. Solving it means finding the function y that makes the equation true. For example, dy/dx = 2x is solved by y = x² + c, because differentiating x² + c gives 2x.

The general solution contains an arbitrary constant c and describes a whole family of curves. A particular solution uses a given condition, such as y = 3 when x = 0, to find the value of c and pick out one curve from the family.

Separating variables

At A level, the main technique is separation of variables. It works when the equation can be written as dy/dx = f(x)g(y): a function of x times a function of y.

  1. Rearrange so all the y terms (with dy) are on one side and all the x terms (with dx) on the other: (1/g(y)) dy = f(x) dx.
  2. Integrate both sides. Add one constant of integration, on the x side.
  3. Rearrange to make y the subject if the question asks for it.
  4. Use any given condition to find the constant.

Worked examples

Example 1: a simple separation

Solve dy/dx = 6x²/y, given y = 4 when x = 0.

Example 2: exponential growth

Solve dy/dx = 3y, given y = 2 when x = 0.

Example 3: a product on the right

Solve dy/dx = xy, given y = 1 when x = 0.

Example 4: separating with partial fractions

Solve dy/dx = y/(x(x + 1)) for x > 0, given y = 1 when x = 1.

Forming differential equations from context

Many questions describe a situation in words and ask you to write the equation. Key phrases translate directly:

“Proportional to” introduces a constant k. Use a negative sign when the quantity is decreasing, so that k itself stays positive.

Example 5: population growth

A population grows at a rate proportional to its size. Initially it is 500, and after 2 years it is 800. Find the population after 5 years.

Example 6: Newton's law of cooling

A cup of tea at 90 °C cools in a room at 20 °C. The rate of cooling is proportional to the difference between its temperature θ and the room. After 10 minutes it is 60 °C. Find the time for it to reach 40 °C.

Interpreting and criticising models

Exam questions often ask about the model itself. An exponential growth model predicts that a population grows forever, which is unrealistic because food and space are limited. A cooling model predicts the tea approaches room temperature but never quite reaches it. Comment on whether the model's long-term behaviour makes sense, and suggest a refinement, such as a maximum population. These short answers carry real marks and need context.

Common mistakes

Practice questions

Try each one before opening the answer.

Q1. Solve dy/dx = 4y, with y = 5 when x = 0.

Show answer
y = 5e4x.

Q2. Solve dy/dx = cos x / y, with y = 2 when x = 0.

Show answer
y²/2 = sin x + 2, so y = √(2 sin x + 4).

Q3. Write a differential equation for: the rate of decrease of N is proportional to N.

Show answer
dN/dt = −kN, k > 0.

Q4. A substance decays with half-life 5 years. Find k in m = m0e−kt.

Show answer
e−5k = 1/2, so k = ln 2/5 ≈ 0.139.

Frequently asked questions

Are differential equations in A level Maths?

Yes. First-order equations solved by separating variables, and modelling with them, are in the second year of A level Maths. Second-order equations are in Further Maths.

Are differential equations in AP Calculus?

Yes. Separation of variables and exponential models are in Unit 7 of both AB and BC, and BC adds Euler's method and logistic growth.

Key takeaways