James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
A level Maths › Pure · Integration › Differential equations

Differential equations

First-order differential equations: what a solution is, general and particular solutions, separating the variables, and modelling with differential equations in context.

Pure 7.6, 8.7, 8.8Year 2≈ 80 min to work through
Before you start: integration, including standard integrals and logarithms. See Integration and areas and Further derivatives.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Verify that a function satisfies a differential equationY2
  • Solve separable equations and find general and particular solutionsY2
  • Set up and solve a differential equation model in contextY2

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

A differential equation (DE) is an equation involving a derivative, such as dydx=xy. It tells you the gradient at every point, which you can draw as a slope field. Solving the DE means finding the curves that follow the slopes. There is a whole family of them (the general solution, with a constant C); a starting point picks out one (a particular solution).

2.1 Verifying a solution

Worked example 1No calculator
Show that y=Ae2x satisfies dydx=2y for any constant A.
dydx=2Ae2x=2(Ae2x)=2y ✓

2.2 Separable equations

Separating the variables
dydx=f(x)g(y) ⇒ ∫1g(y)dy=∫f(x)dx

Put all the y’s with dy and all the x’s with dx, integrate both sides, and include one constant.

Worked example 2No calculator
Solve dydx=xy, given that y=2 when x=0.
∫1ydy=∫xdx⇒ln|y|=x22+C
y=Aex2/2, where A=±eC
Rewriting eC as a new constant A is standard and saves work.
y(0)=2⇒A=2. So y=2ex2/2
Worked example 3No calculator
Solve dydx=x(1+y2), given that y=1 when x=0.
∫11+y2dy=∫xdx⇒arctany=x22+C
Standard arctan integral.
x=0,y=1: arctan1=π4=C
y=tan(x22+π4)
Why is separating allowed?

Writing "1ydy=xdx" treats dydx like a fraction, which it is not. The honest version: dividing by g(y) gives 1g(y)dydx=f(x), and integrating both sides with respect to x turns the left side into ∫1g(y)dy by the chain rule (substitution). The shortcut always gives the same result.

2.3 Modelling

Many models say "the rate of change is proportional to something". Translate that sentence into a DE, solve it, then use the data to find the constants.

Worked example 4Calculator
A cup of tea at 90∘C is left in a room at 20∘C. Its temperature T satisfies dTdt=−k(T−20), where t is in minutes. After 10 minutes it is at 60∘C. Find when it reaches 30∘C.
∫dTT−20=−∫kdt⇒T−20=Ae−kt. At t=0: A=70.
40=70e−10k⇒k=110ln74=0.05596
10=70e−kt⇒t=ln7k=34.8 minutes

3Explore it

The short lines show the gradient dydx at each point. Move the starting point and the red curve follows the slopes: it is the particular solution through that point.

4Common mistakes & exam tips

Common mistakes

  • Forgetting the constant of integration, or adding it to both sides and not combining.
  • Writing ln|y|=x22+C⇒y=ex2/2+C. It is y=Aex2/2.
  • Finding the constant before rearranging, then making an algebra slip; either order is fine but be consistent.
  • Forgetting to substitute v=yx back at the end.

Exam tips

  • Show the separated form with integral signs on both sides: it earns the first method mark.
  • Give the final answer in the form asked for, e.g. "y in terms of x".
  • In models, interpret the constants (e.g. k is the cooling rate) when asked.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Solve dydx=2xy, with y=3 when x=0.
y2=2x2+9
FluencyP2
Solve dydx=ex−y, with y=ln2 when x=0.
ey=ex+1⇒y=ln(ex+1)
FluencyP3
Solve dydx=3y, with y=5 when x=0.
y=5e3x
Problem solvingP4
Solve dydx=x2+3y22xy, x>0, given y=1 when x=1.
xv′=1+v22v⇒1+v2=Ax: x2+y2=2x3
Problem solvingP5
A population grows at a rate proportional to its size. It doubles in 5 years. How long does it take to triple?
P=P0ekt, k=ln25: t=5ln3ln2=7.92 years

6Exam-style questions

Original exam-style questions with full markschemes. Edexcel papers allow a calculator throughout, but questions labelled “No calculator” practise exact working. Allow about 1.2 minutes per mark.

Question 1No calculator[6 marks]

Solve the differential equation dydx=ex−y, given that y=ln2 when x=0. Give your answer in the form y=f(x).

∫eydy=∫exdxM1A1
ey=ex+CA1
2=1+CM1
C=1A1
y=ln(ex+1)A1
Question 2Calculator[6 marks]

A cup of coffee at 85∘C cools in a room at 20∘C. Its temperature T after t minutes satisfies dTdt=−k(T−20). After 5 minutes it is at 70∘C.

  • (a)Show that T=20+65e−kt.[3]
  • (b)Find the time taken for the coffee to cool to 40∘C.[3]
(a)
∫dTT−20=−∫kdtM1
ln(T−20)=−kt+CA1
t=0: T−20=65A1AG
(b)
50=65e−5k⇒k=0.0525A1
20=65e−ktM1
t=22.5 minutesA1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real Edexcel A level questions. Past papers and markschemes are on the Pearson website.

PaperQuestionFocusDifficulty
June 2024 · Paper 1Q7Leaking tank: solve a simple differential equation model★★☆
June 2025 · Paper 2Q10Water in a container: form and solve a differential equation★★☆
Specimen · Paper 2Q16Partial fractions, then a population model for meerkats★★★
June 2019 · Paper 2Q14Substitution, then a differential equation for tree height★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake