MathematicsCore24 min read

Differential Equations

Turning a sentence about a rate of change into a function of time

This topic appears in:

01

An equation about a rate, not about a number

Definition

Differential equation — An equation relating a quantity to its own rate of change, whose solution is a function rather than a number.

Every equation so far has had a number as its answer. A differential equation is different: it contains a derivative, and its answer is a function. It describes how something is changing, and solving it recovers the thing itself.

This matters because rates are usually what we can observe. Nobody measures the formula for a population; they measure how fast it grows. Nobody measures the temperature curve of a cooling drink; they notice it cools faster when it is hotter. In both cases the sentence you can state is about a rate, and the function you want has to be recovered from it.

02

Translating the sentence into symbols

Most of the difficulty in these questions is in the first line, not the calculus. The wording follows a small number of patterns, and once you can convert them the rest is integration you already know.

The key move is that "proportional to" introduces a constant, and the sign of that constant carries the meaning: positive for growth, negative for decay. Writing dP/dt = −kP with k positive is clearer than hiding the minus inside k, and examiners prefer it.

The sentenceThe equationNote
rate of increase is proportional to NdN/dt = kNgrowth; k > 0
rate of decrease is proportional to NdN/dt = −kNdecay; k still written positive
rate of change is inversely proportional to xdx/dt = k/x
cools at a rate proportional to the excess over 20°dθ/dt = −k(θ − 20)the excess, not the temperature
rate is proportional to the product of x and (100 − x)dx/dt = kx(100 − x)the logistic pattern
volume increases at a constant rate of 5dV/dt = 5constant, so no variable on the right

Read what it is proportional to

Newton's law of cooling is proportional to the difference between the object and its surroundings, not to the temperature itself. Writing dθ/dt = −kθ instead of −k(θ − θ₀) is the most common modelling error in the topic, and it predicts that a drink cools all the way to absolute zero.

03

Separating the variables

The syllabus needs one solution method, and it works whenever the right-hand side can be written as a function of x multiplied by a function of y. Get every y with the dy and every x with the dx, then integrate both sides.

Treating dy/dx as a fraction that can be split is not strictly legitimate, but it produces the correct result and is exactly what the syllabus expects you to write.

dy/dx = f(x) g(y)⌠ 1⎮ ──── dy = ⎮ f(x) dx⌡ g(y)one arbitrary constant, on one side onlyseparate, integrate both sides, then rearrange for y
+ c
the arbitrary constantone is enough — combining both sides gives a single c
general solution
the family with c unknowna whole set of curves
particular solution
c found from a given conditionone specific curve
Worked example

Solve dy/dx = 2xy given that y = 5 when x = 0.

  1. Separate: (1/y) dy = 2x dx.Every y on the left with dy, every x on the right with dx. This is possible because the right-hand side is a product of a function of x and a function of y.
  2. Integrate both sides: ln|y| = x² + c.The integral of 1/y is ln|y|. One constant on the right is sufficient.
  3. Apply the condition: ln 5 = 0 + c, so c = ln 5.Substituting the given condition immediately, before rearranging, usually keeps the algebra simpler.
  4. ln y − ln 5 = x², so ln(y/5) = x².Using the subtraction law for logarithms to combine before exponentiating.
  5. y = 5e^(x²).Exponentiating both sides. The modulus can be dropped because y = 5 is positive at the given point, so y stays positive.

y = 5e^(x²)

04

General and particular solutions

Integrating introduces an arbitrary constant, so a differential equation does not have one solution — it has a family of them, one for every value of c. That family is the general solution, and geometrically it is a set of curves filling the plane, none of them crossing.

A single extra piece of information — an initial condition, a boundary condition, a value at a known moment — picks out one member of that family. That is the particular solution, and it is what a modelling question always wants, because a real population has an actual size today.

The method, start to finish

  1. Write the differential equation from the wording, with a constant of proportionality where needed.
  2. Separate the variables so each side contains one letter only.
  3. Integrate both sides, adding a single arbitrary constant.
  4. Use the given condition to evaluate the constant.
  5. Rearrange into the form the question asks for — usually y or the modelled quantity as the subject.
  6. Answer the actual question, which is often a value or a limit rather than the solution itself.
05

Reading the answer back into the situation

The final part of a modelling question rarely asks for the solution. It asks what happens in the long run, or when some value is reached, and the marks are for interpreting rather than calculating.

The behaviour as t → ∞ is usually decided by a single exponential term. Since e^(−kt) → 0 for positive k, any term carrying that factor vanishes and whatever is left is the long-term value. Reading off that limiting value is a standard final mark.

Worked example

A cup of coffee at 90 °C is left in a room at 20 °C. It cools so that dθ/dt = −k(θ − 20). After 5 minutes it is 70 °C. Find θ in terms of t, and state the temperature it approaches.

  1. Separate: 1/(θ − 20) dθ = −k dt.The excess over room temperature is the quantity that appears, so it is what must be isolated.
  2. Integrate: ln|θ − 20| = −kt + c.The left side integrates to a logarithm of the bracket, since its derivative is 1.
  3. At t = 0, θ = 90: ln 70 = c.The initial condition gives c directly.
  4. So ln((θ − 20)/70) = −kt, giving θ = 20 + 70e^(−kt).Combining the logarithms and exponentiating. The structure — room temperature plus a decaying excess — is worth recognising on sight.
  5. At t = 5, θ = 70: 50 = 70e^(−5k), so e^(−5k) = 5/7 and k = (1/5)ln(7/5) = 0.0673.The second condition fixes the rate constant. Note the reciprocal flip when taking the logarithm.
  6. θ = 20 + 70e^(−0.0673t). As t → ∞, e^(−0.0673t) → 0, so θ → 20 °C.The coffee approaches room temperature, which is the sensible answer — a good check that the model was set up correctly.

θ = 20 + 70e^(−0.0673t), approaching 20 °C

Check the answer against common sense

A solved differential equation makes a physical claim, so it can be sanity-checked. Does the population grow rather than shrink? Does the coffee approach room temperature rather than absolute zero? Does the value at t = 0 match the stated starting value? These checks cost seconds and catch sign errors that are otherwise invisible.

Practice questions

5 questions · 19 marks · full working on every one

Try each one on paper first, then open the working. The marks are shown where they are actually awarded, because that is where they are actually lost.

Short questions

2 · 4 marks

Two marks each, in the style of the short-question section of the paper. Answer in two or three lines.

SQ1[2 marks]
Explain the difference between the general solution and a particular solution of a differential equation.
Model answer

The general solution contains an arbitrary constant and therefore describes a whole family of curves. A particular solution is the single member of that family obtained by using a given condition to find the value of the constant.

Examiner tip. One mark for the arbitrary constant and the family, one for the condition picking out a single member.

SQ2[2 marks]
A colony of bacteria decreases at a rate proportional to the number present. Write down a differential equation for the number N at time t, explaining your notation.
Model answer

dN/dt = −kN, where k is a positive constant. The minus sign is needed because the colony is decreasing, so the rate of change is negative while N and k are both positive.

Examiner tip. The mark for the minus sign is separate from the mark for the proportionality — state explicitly that k is positive.

Solved numericals

2 · 8 marks

Full working, one step per line, with the marks shown where they are awarded.

N1[4 marks]
Solve the differential equation dy/dx = 3x²y, given that y = 2 when x = 0.
Full working
  1. Separate: (1/y) dy = 3x² dxEach variable with its own differential.[1]
  2. Integrate: ln|y| = x³ + cA single arbitrary constant is enough.[1]
  3. x = 0, y = 2 gives ln 2 = cApplying the condition before rearranging keeps the algebra simple.[1]
  4. ln(y/2) = x³, so y = 2e^(x³)Exponentiating both sides; y stays positive so the modulus can be dropped.[1]

y = 2e^(x³)

N2[4 marks]
Solve dy/dx = (1 + y²)/x for x > 0, given that y = 1 when x = 1.
Full working
  1. Separate: 1/(1 + y²) dy = (1/x) dxRecognising that the right side factorises into a function of x times a function of y.[1]
  2. Integrate: tan⁻¹ y = ln x + cThe integral of 1/(1 + y²) is arctan y — a standard result worth knowing on sight.[1]
  3. x = 1, y = 1: tan⁻¹1 = ln 1 + c, so c = π/4ln 1 = 0, and tan⁻¹1 = π/4 in radians.[1]
  4. y = tan(ln x + π/4)Rearranged with y as the subject, as required.[1]

y = tan(ln x + π/4)

Exam questions

1 · 7 marks

Multi-part questions with a full mark scheme.

Q1[7 marks]
A tank contains 500 litres of water. Water leaks out so that the volume V litres at time t minutes satisfies dV/dt = −0.02V.
(a) Find V in terms of t.
(b) Find the volume after 30 minutes.
(c) Find the time taken for the volume to halve.
(d) State, with a reason, whether the tank ever empties according to this model.
Mark scheme
  1. (a) Separate and integrate: (1/V) dV = −0.02 dt gives ln V = −0.02t + cV is positive throughout, so the modulus is unnecessary.[1]
  2. At t = 0, V = 500, so c = ln 500, giving V = 500e^(−0.02t)The standard exponential-decay shape.[1]
  3. (b) V = 500e^(−0.6) = 500 × 0.5488 = 274 litresTo 3 significant figures.[1]
  4. (c) 250 = 500e^(−0.02t), so e^(−0.02t) = 0.5Halving means setting V to 250, not subtracting 250.[1]
  5. −0.02t = ln 0.5, so t = 34.7 minutesln 0.5 is negative, and dividing by −0.02 makes t positive — a useful sign check.[1]
  6. (d) As t → ∞, e^(−0.02t) → 0, so V → 0 but never reaches it.An exponential decay approaches zero asymptotically.[1]
  7. So according to this model the tank never completely empties, which shows the model is unrealistic for very small volumes.The final mark is for the interpretation, including the comment on the model's limitation.[1]

(a) V = 500e^(−0.02t); (b) 274 litres; (c) 34.7 min; (d) V → 0 but never reaches it