5.14 Differential equations: separation of variables

5.14 Differential equations: separation of variables

IB Maths: Applications and Interpretation HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • "Proportional to" gives a constant kk: growth dGdt=kG\dfrac{dG}{dt}=kG, decay dmdt=−km\dfrac{dm}{dt}=-km, with k>0k>0.
  • Separate variables: ∫1g(y) dy=∫f(x) dx\int\dfrac1{g(y)}\,dy=\int f(x)\,dx, with one constant cc.
  • The general solution has a constant; an initial condition gives the particular solution.
  • dydx=ky\dfrac{dy}{dx}=ky has solution y=Aekxy=Ae^{kx}; use the starting value for AA and a later value for kk.
  • Doubling time for dGdt=kG\dfrac{dG}{dt}=kG is ln⁡2k\dfrac{\ln2}{k}.

Setting up the equation

"Proportional to" means a constant kk times the quantity; the minus sign shows a decrease, so keep kk positive.

A differential equation links a quantity to its rate of change. Define every symbol with units.

Do not put the minus sign into kk and also in the equation: keep k>0k>0 and let the equation show the decay.

1234567891020406080100xy(0, 100)A = 100e^(−kt)
dA/dt = −kA has solution A = 100e^(−kt) (initial amount 100). Drag k: a bigger k means faster decay.
  • Growth proportional to GGdGdt=kG\dfrac{dG}{dt}=kG
  • Decay proportional to mmdmdt=−km\dfrac{dm}{dt}=-km
  • Cooling towards 20 °CdTdt=−k(T−20)\dfrac{dT}{dt}=-k(T-20)

A population PP grows at a rate proportional to PP. Which equation models this, with k>0k>0?

Separation of variables

Put the yy terms with dydy on one side and the xx terms with dxdx on the other, then integrate both sides.

If dydx=f(x)g(y)\dfrac{dy}{dx}=f(x)g(y), separate the variables: ∫1g(y) dy=∫f(x) dx\int\dfrac1{g(y)}\,dy=\int f(x)\,dx. Add the constant on one side only, then use ec=Ae^c=A to tidy up.

  1. 1

    Separate

    yy terms with dydy, xx terms with dxdx

  2. 2

    Integrate both sides

    With one constant cc

  3. 3

    Rearrange

    For yy, if asked

Separation of variables

Worked example

Solve dydx=ky\dfrac{dy}{dx}=ky.

Separating dydx=xy\dfrac{dy}{dx}=\dfrac xy gives which integral?

General and particular solutions

The general solution has a constant; an initial condition makes it particular, and a second piece of information finds kk.

The general solution G=AektG=Ae^{kt} describes a whole family of curves. A particular solution uses an initial condition: G=50G=50 when t=0t=0 gives A=50A=50.

If G=80G=80 when t=4t=4, then 50e4k=8050e^{4k}=80 and k=ln⁡1.64=0.118k=\dfrac{\ln1.6}{4}=0.118. The solution grows if k>0k>0 and decays if k<0k<0.

12345620406080100120140160xy(0, 50)(4, 80)G = 50e^(0.118t)
G = 50e^(0.118t): the curve through (0, 50) and (4, 80)

y=Aekxy=Ae^{kx} with y=3y=3 when x=0x=0. What is AA?

Worked examples

Decay and cooling are separable too, and cooling approaches a limit rather than zero.

For decay dmdt=−km\dfrac{dm}{dt}=-km, m=Ae−ktm=Ae^{-kt}. For cooling, T=20+Ae−ktT=20+Ae^{-kt} levels off at the room temperature. Not every separable equation gives an exponential: check by substituting the initial condition back in.

Keep the exact kk in your GDC memory and round only the final answer.

5101520253020406080100xy20 °C(0, 90)T (example k = 0.1)
Cooling towards 20 °C: T = 20 + 70e^(−kt), here with k = 0.1

Worked example

A mass mm mg has dmdt=−km\dfrac{dm}{dt}=-km, m=200m=200 when t=0t=0 and m=150m=150 when t=5t=5. Find kk and the mass after 2020 years.

Worked example

Solve dvdt=−0.05v2\dfrac{dv}{dt}=-0.05v^2 with v=10v=10 when t=0t=0.

In T=20+70e−ktT=20+70e^{-kt} with k>0k>0, what is the temperature in the long term?

Interpreting the model

Link AA and kk back to the context, and comment on where the model stops being realistic.

In G=50ektG=50e^{kt}, 5050 g is the initial mass and kk the growth rate parameter (per day). State units and give 3 s.f.

Pure exponential growth predicts unlimited growth, which is unrealistic. To find the time to reach a target, set the solution equal to it and take natural logarithms.

123456789102004006008001000xy(0, 50)G = 50e^(kt)
G = 50e^(kt): 50 g is the initial mass; k controls how fast the model grows, and the model predicts unlimited growth.
  • Doubling time of dGdt=kG\dfrac{dG}{dt}=kGln⁡2k\dfrac{\ln2}{k}

Which expression gives the doubling time when dGdt=kG\dfrac{dG}{dt}=kG?

Try an exam question

The number of bacteria NN in a culture satisfies dNdt=kN\dfrac{dN}{dt}=kN, where tt is in hours and k>0k>0. Initially N=500N=500, and after 3 hours N=800N=800. (a) Solve the differential equation to show that N=500ektN=500e^{kt}. (b) Find kk. (c) Find the time for the number of bacteria to double.

[5 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which of the following is the general solution of dGdt=kG\frac{dG}{dt}=kG?

1 mark, marked against the mark scheme

Revision notes