5.14 · AHL · HL onlyPaper 1Paper 2Paper 3

Setting up and separating differential equations

In a minute

A says how fast something changes, such as "the drug leaves the blood at a rate proportional to the amount left". You'll turn sentences like that into equations, then solve them by . The answer is a model you can use to predict and interpret.

You'll be able to

  • Turn a description of a rate, such as "decreases at a rate proportional to A\sqrt{A}", into a differential equation, and find the constant from given data.
  • Solve dydx=f(x) g(y)\frac{\mathrm{d}y}{\mathrm{d}x} = f(x)\,g(y) by separating the variables, and write down the .
  • Show that dydx=ky\frac{\mathrm{d}y}{\mathrm{d}x} = ky gives the exponential model y=Aekxy = A\mathrm{e}^{kx}, and use a known value to find the .
  • Set up and solve a model in context, then use it to predict, and interpret its long-term behaviour and limits.
Before you start3 quick questions on what this builds on
Check yourself
A tank holds VV litres of water tt minutes after a valve opens. At t=4t = 4, dVdt=−3\frac{\mathrm{d}V}{\mathrm{d}t} = -3. What does this tell you?
Check yourself
Find ∫42x+1 dx\int \frac{4}{2x + 1}\,\mathrm{d}x.
Check yourself
Solve 50e−0.2t=1550\mathrm{e}^{-0.2t} = 15. Give tt to 3 s.f.

Revise first: 1.5 Exponents and introductory logarithms, 2.2 Function concepts, domain and range, 2.5 Modelling with functions, 2.6 Fitting and testing models, 2.9 Further function models, 5.1 Limits and the derivative as a rate of change, 5.5 Antidifferentiation, definite integrals and area, 5.9 Differentiation rules and related rates and 5.11 Standard integrals and substitution

Setting up a differential equation

Many models start from how fast something changes, not from a formula. A hot drink, for example, cools faster when it is much hotter than the room.

To set one up, translate the sentence piece by piece. If a quantity BB changes with time tt, "the rate of change of BB" is dBdt\frac{\mathrm{d}B}{\mathrm{d}t}.

"Proportional to" means "equals a constant times". So "the rate of change of BB is proportional to BB" becomes dBdt=kB\frac{\mathrm{d}B}{\mathrm{d}t} = kB. The constant kk is the constant of proportionality.

If the quantity decreases, its rate is negative. Write −k-k with k>0k > 0, so the sign is visible: "TT decreases at a rate proportional to T−21T - 21" becomes dTdt=−k(T−21)\frac{\mathrm{d}T}{\mathrm{d}t} = -k(T - 21), where k>0k > 0.

Worked exampleAfter rain, a circular puddle dries in the sun. Its area, A cm2A\text{ cm}^{2}, decreases at a rate proportional to A\sqrt{A}, where tt is the time in minutes. Write down a differential equation for AA.

Try it first, then reveal one step at a time.

  1. "The rate of change of AA" with time is dAdt\frac{\mathrm{d}A}{\mathrm{d}t}.

An exam often gives one rate at one moment. Substitute both values into your equation to find kk.

Worked exampleA culture contains BB bacteria tt hours after it is set up. The number grows at a rate proportional to BB. When B=2400B = 2400, it is growing at 180180 bacteria per hour. Find the differential equation, and interpret the constant.

Try it first, then reveal one step at a time.

  1. Translate: dBdt=kB\frac{\mathrm{d}B}{\mathrm{d}t} = kB. The number grows, so k>0k > 0.
Check yourself
In a town of 50005000 people, HH people have heard a rumour tt days after it starts. HH increases at a rate proportional to the number of people who have not yet heard it. Which equation models this, with k>0k > 0?
Check yourself
A coffee's temperature TT °C falls at a rate proportional to T−21T - 21, where 2121 °C is the room temperature, so dTdt=−k(T−21)\frac{\mathrm{d}T}{\mathrm{d}t} = -k(T - 21) with tt in minutes. When T=88T = 88, it is cooling at 3.23.2 °C per minute. Find kk to 3 s.f.

Separating the variables

In 5.5 you solved dydx=f(x)\frac{\mathrm{d}y}{\mathrm{d}x} = f(x) by integrating with respect to xx. In dBdt=0.075B\frac{\mathrm{d}B}{\mathrm{d}t} = 0.075B the right side contains BB, which you don't know yet. So you can't integrate it with respect to tt.

The fix: move everything with BB to the side with dB\mathrm{d}B, and everything with tt to the side with dt\mathrm{d}t. Then integrate each side with respect to its own variable.

Learn this
dydx=f(x) g(y)  ⇒  ∫1g(y) dy=∫f(x) dx\frac{\mathrm{d}y}{\mathrm{d}x} = f(x)\,g(y) \;\Rightarrow\; \int \frac{1}{g(y)}\,\mathrm{d}y = \int f(x)\,\mathrm{d}x

It works when the right side is a function of xx times a function of yy, and needs g(y)≠0g(y) \neq 0, because you divide by it.

1. Rearrange so that yy and dy\mathrm{d}y are on the left, and xx and dx\mathrm{d}x are on the right.

2. Integrate both sides. Add one constant, + C+\,C, as soon as you integrate: constants on both sides would combine into one.

3. Rearrange to make yy the subject, if the question asks for it. Then use a known value to find the constant.

The most important case is dydx=ky\frac{\mathrm{d}y}{\mathrm{d}x} = ky: the rate is proportional to the amount. Separating gives ∫1y dy=∫k dx\int \frac{1}{y}\,\mathrm{d}y = \int k\,\mathrm{d}x, so ln⁡∣y∣=kx+c\ln|y| = kx + c.

Undo the log: ∣y∣=ekx+c=ec ekx|y| = \mathrm{e}^{kx + c} = \mathrm{e}^{c}\,\mathrm{e}^{kx}. Call ±ec\pm\mathrm{e}^{c} the new constant AA.

Learn this
dydx=ky  ⇒  y=Aekx\frac{\mathrm{d}y}{\mathrm{d}x} = ky \;\Rightarrow\; y = A\mathrm{e}^{kx}

This is why the of 2.5 work: they are the models whose growth rate is proportional to their size. At x=0x = 0, y=Ay = A, so AA is the starting value.

Worked exampleA patient is given 150150 mg of a drug. The amount left in the bloodstream tt hours later, DD mg, satisfies dDdt=−0.23D\frac{\mathrm{d}D}{\mathrm{d}t} = -0.23D. Find the general solution, then find DD in terms of tt.

Try it first, then reveal one step at a time.

  1. Separate: ∫1D dD=∫−0.23 dt\int \frac{1}{D}\,\mathrm{d}D = \int -0.23\,\mathrm{d}t.
0 2 4 6 8 10 12 0 50 100 150 200 Time, t (hours) Amount of drug, D (mg) A = 50 A = 100 A = 150 (passes through (0, 150)) A = 200
Four members of the general solution D=Ae−0.23tD = A\mathrm{e}^{-0.23t}. The condition D=150D = 150 at t=0t = 0 picks out the particular solution.
Check yourself
Find the general solution of dPdt=0.06P\frac{\mathrm{d}P}{\mathrm{d}t} = 0.06P.

The same steps work when the right side is not just kyky. Write a root as a power before you integrate.

Worked exampleThe puddle from earlier satisfies dAdt=−1.2A\frac{\mathrm{d}A}{\mathrm{d}t} = -1.2\sqrt{A}, and A=900A = 900 when t=0t = 0. Find AA in terms of tt, and state when the model stops being valid.

Try it first, then reveal one step at a time.

  1. Separate, writing 1A=A−12\frac{1}{\sqrt{A}} = A^{-\frac{1}{2}}: ∫A−12 dA=∫−1.2 dt\int A^{-\frac{1}{2}}\,\mathrm{d}A = \int -1.2\,\mathrm{d}t.
Check yourself
For the drug model D=150e−0.23tD = 150\mathrm{e}^{-0.23t}, find the of the drug in the bloodstream, in hours, to 3 s.f.

Solving a model in context

Exam questions join the two skills: set up the equation, solve it, then use the solution. Often the right side is a linear expression, such as −k(T−21)-k(T - 21). Integrate 1T−21\frac{1}{T - 21} by inspection, as in 5.11.

Integrating gives ln⁡∣T−21∣\ln|T - 21|. You may drop the modulus only when the context fixes the sign, and you should say why. Otherwise keep it.

Worked exampleA bowl of soup at 9090 °C is left in a room at 2121 °C. Its temperature TT °C after tt minutes satisfies dTdt=−k(T−21)\frac{\mathrm{d}T}{\mathrm{d}t} = -k(T - 21), with k>0k > 0. After 55 minutes it is at 7070 °C. Find how long the soup takes to cool to 4040 °C. Give your answer to 3 s.f.

Try it first, then reveal one step at a time.

  1. Separate: ∫1T−21 dT=∫−k dt\int \frac{1}{T - 21}\,\mathrm{d}T = \int -k\,\mathrm{d}t, so ln⁡(T−21)=−kt+c\ln(T - 21) = -kt + c. No modulus is needed: the soup stays warmer than the room, so T−21>0T - 21 > 0.
Worked exampleA new app has NN downloads tt weeks after launch, with N=400N = 400 at t=0t = 0. Its growth slows over time: dNdt=0.5Ne−0.2t\frac{\mathrm{d}N}{\mathrm{d}t} = 0.5N\mathrm{e}^{-0.2t}. Find NN in terms of tt, and the long-term number of downloads the model predicts.

Try it first, then reveal one step at a time.

  1. Separate: ∫1N dN=∫0.5e−0.2t dt\int \frac{1}{N}\,\mathrm{d}N = \int 0.5\mathrm{e}^{-0.2t}\,\mathrm{d}t.
Check yourself
A drip adds a medicine to a patient's blood at 33 mg per minute, and the body removes it at 0.15M0.15M mg per minute, where MM mg is the amount in the blood. So dMdt=3−0.15M\frac{\mathrm{d}M}{\mathrm{d}t} = 3 - 0.15M, with M=0M = 0 at t=0t = 0. Which is the particular solution?
Check yourself
Using M=20−20e−0.15tM = 20 - 20\mathrm{e}^{-0.15t}, find how long it takes for the amount of medicine to reach 1515 mg. Give your answer in minutes, to 3 s.f.

Common mistakes

  • Leaving out + C+\,C, or adding it only after rearranging. Without the constant you can't find the particular solution, and you usually lose the marks for the steps that use it. Add it the moment you integrate.
  • Integrating kyky with respect to xx as if yy were a number, giving kxy+Ckxy + C. yy changes with xx, so separate the variables first.
  • Dropping the modulus from ln⁡∣y∣\ln|y| with no reason. Keep it, or state why yy (or T−21T - 21) is positive in the context.
  • Rounding kk before using it. Keep its full GDC value or its exact ln⁡\ln form until the final answer.
  • Using +k+k for a quantity that decreases, then treating kk as positive. Write −k-k with k>0k > 0, or say that kk is negative.

Exam tips

  • "Write down a differential equation": no working is needed, but every part of the sentence must appear, including the constant kk and the sign for a decrease.
  • "Use separation of variables": write the separated line ∫1g(y) dy=∫f(x) dx\int \frac{1}{g(y)}\,\mathrm{d}y = \int f(x)\,\mathrm{d}x. That line earns the method mark, and the + C+\,C is needed for the marks that follow.
  • "Show that" a given solution: work forwards from the differential equation, find the constant from the given value, and make your last line match the given result.
  • Write down the equation you solve before the GDC value. When asked to interpret, give the long-term value with its units and say what it means in the context.

Key takeaways

Learn this"Proportional to" means "equals a constant kk times". For a quantity that decreases, write −k-k with k>0k > 0.
Learn thisSeparating: dydx=f(x) g(y)\frac{\mathrm{d}y}{\mathrm{d}x} = f(x)\,g(y), with g(y)≠0g(y) \neq 0, gives ∫1g(y) dy=∫f(x) dx\int \frac{1}{g(y)}\,\mathrm{d}y = \int f(x)\,\mathrm{d}x. Add one + C+\,C as soon as you integrate.
Learn thisThe general solution of a first-order differential equation has one arbitrary constant. A known value, such as the value at t=0t = 0, fixes it and gives the particular solution.
Learn thisdydx=ky\frac{\mathrm{d}y}{\mathrm{d}x} = ky has general solution y=Aekxy = A\mathrm{e}^{kx}, where AA is the value of yy at x=0x = 0.
Learn thisef(x)+c=Aef(x)\mathrm{e}^{f(x) + c} = A\mathrm{e}^{f(x)}: the constant multiplies. Drop the modulus in ln⁡∣y∣\ln|y| only when the context fixes the sign of yy.

Practise this

32 past-paper questions on Differential equations in the AI HL bank, each with a mark scheme and a worked explanation.

Practise Differential equations →