impera Open Impera

A levels Mathematics · Pure: calculus and numerical methods

Differential equations

1What a differential equation is

A differential equation links a function with its derivatives, for example $\dfrac{dy}{dx} = 3y$ or $\dfrac{dP}{dt} = kP$.

Solving it means finding the function itself.

  • The general solution contains an arbitrary constant: a family of curves.
  • A particular solution uses a given condition (such as $y = 2$ when $x = 0$) to fix the constant.

Differential equations model change: populations, cooling, radioactive decay, the flow of liquid out of a tank.

Check yourself

What does a particular solution use that a general solution does not?

  • A given condition to fix the constant

  • A second derivative of the function

  • A different variable from the first

  • The trapezium rule to estimate it

Show the answer

A given condition to fix the constant

It picks one curve from the family.

2Separating the variables

For equations of the form $\dfrac{dy}{dx} = f(x)g(y)$, separate the variables:

$$\int \frac{1}{g(y)}\,dy = \int f(x)\,dx$$

Put all the $y$ terms with $dy$ on one side and all the $x$ terms with $dx$ on the other, then integrate both sides. One constant is enough.

Worked example

Separating

  1. Solve $\dfrac{dy}{dx} = 6x^2y$.
  2. $\displaystyle\int \frac{1}{y}\,dy = \int 6x^2\,dx$, so $\ln|y| = 2x^3 + c$.
  3. $y = e^{2x^3 + c} = Ae^{2x^3}$, where $A = e^c$.
Check yourself

What is the first step in solving dy/dx = x/y?

  • Integrate x/y directly

  • Differentiate both sides

  • Separate: ∫ y dy = ∫ x dx

  • Set y = 0

Show the answer

Separate: ∫ y dy = ∫ x dx

Gather y with dy and x with dx.

3Particular solutions

Worked example

Using a condition

  1. Solve $\dfrac{dy}{dx} = \dfrac{x}{y}$, given $y = 3$ when $x = 4$.
  2. $\displaystyle\int y\,dy = \int x\,dx$, so $\frac{y^2}{2} = \frac{x^2}{2} + c$.
  3. $\frac{9}{2} = 8 + c$, so $c = -\frac{7}{2}$.
  4. $y^2 = x^2 - 7$, so $y = \sqrt{x^2 - 7}$ (positive, since $y = 3 > 0$).
Worked example

A trig equation

  1. Solve $\dfrac{dy}{dx} = y\cos x$, with $y = 1$ when $x = 0$.
  2. $\ln|y| = \sin x + c$; at $x = 0$: $0 = 0 + c$, so $c = 0$.
  3. $y = e^{\sin x}$.
Check yourself

After separating and integrating, where do you put the constant?

  • On one side only

  • Nowhere

  • On both sides, as different constants

  • Only on the y side, always

Show the answer

On one side only

Two constants combine into one.

4Forming differential equations

Many questions describe a rate in words. Translate:

  • "the rate of change of $P$ is proportional to $P$": $\dfrac{dP}{dt} = kP$
  • "decreases at a rate proportional to the square root of $h$": $\dfrac{dh}{dt} = -k\sqrt{h}$
  • "cools at a rate proportional to the difference between its temperature $T$ and room temperature 20°C": $\dfrac{dT}{dt} = -k(T - 20)$

A negative sign shows a decrease (with $k > 0$).

Worked example

Forming and solving

  1. The rate at which a population $P$ grows is proportional to $P$. Initially $P = 200$; after 3 years $P = 300$.
  2. $\dfrac{dP}{dt} = kP$, so $P = Ae^{kt}$, with $A = 200$.
  3. $300 = 200e^{3k}$, so $k = \frac{1}{3}\ln 1.5 \approx 0.135$.
Check yourself

How would you write "V decreases at a rate proportional to V"?

  • dV/dt = −k

  • dV/dt = −kV

  • dV/dt = kV

  • V = −kt

Show the answer

dV/dt = −kV

Negative sign, with k > 0.

5Modelling with differential equations

Worked example

Newton's law of cooling

  1. Tea at 90°C cools in a 20°C room: $\dfrac{dT}{dt} = -k(T - 20)$.
  2. Separate: $\displaystyle\int \frac{1}{T - 20}\,dT = -\int k\,dt$, so $\ln(T - 20) = -kt + c$.
  3. $T = 20 + Ae^{-kt}$; at $t = 0$, $A = 70$.
  4. If $T = 60$ after 10 minutes: $40 = 70e^{-10k}$, so $k = \frac{1}{10}\ln\frac{7}{4} \approx 0.0560$.
  5. Long term: $T \to 20$, the room temperature.
Worked example

A draining tank

  1. $\dfrac{dh}{dt} = -0.2\sqrt{h}$, with $h = 16$ m at $t = 0$.
  2. $\displaystyle\int h^{-1/2}\,dh = -0.2\int dt$, so $2\sqrt{h} = -0.2t + c$, $c = 8$.
  3. Empty when $h = 0$: $t = 40$ seconds.

Evaluate the model: does it predict sensible long-term behaviour? What does it ignore?

Check yourself

In T = 20 + 70e^(−kt), what does T approach as t grows?

  • 90

  • 70

  • 20

  • 0

Show the answer

20

The exponential term dies away.

6Partial fractions in differential equations

Sometimes the separated integral needs partial fractions.

Worked example

Logistic-style growth

  1. Solve $\dfrac{dx}{dt} = x(1 - x)$ for $0 < x < 1$.
  2. $\displaystyle\int \frac{1}{x(1 - x)}\,dx = \int dt$.
  3. $\dfrac{1}{x(1 - x)} = \dfrac{1}{x} + \dfrac{1}{1 - x}$.
  4. $\ln x - \ln(1 - x) = t + c$, so $\dfrac{x}{1 - x} = Ae^t$.
  5. Rearranged: $x = \dfrac{Ae^t}{1 + Ae^t}$, which tends to 1 as $t \to \infty$.

This logistic model describes growth that levels off at a limit, unlike pure exponential growth.

Check yourself

What does the logistic solution x = Aeᵗ/(1 + Aeᵗ) tend to as t → ∞?

  • ∞

  • A

  • 1

  • 0

Show the answer

1

Growth levels off at a ceiling.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera