Learn Differential equations from scratch
Before this: Derivatives, Integrals
1What a differential equation is
A differential equation links a quantity to its own rate of change. It describes how something changes, not what it is.
Bacteria divide, so a bigger colony grows faster. The growth rate is proportional to the number of cells N:
dN/dt = k · N
Here dN/dt is the derivative of N with respect to time t, and k is the rate constant. With k = 0.4 h⁻¹ and N = 1000 cells, the colony grows by 400 cells per hour at that moment.
Solving the equation means finding the function N(t) itself. You also need a starting value, such as N(0) = 200. This is called an initial condition.
Self-check A population follows dN/dt = 0.2 · N. At this moment N = 500. How fast is it growing?
- 0.2 per hour
- 100 per hour
- 2500 per hour
- 500 per hour
Answer: 100 per hour. Put the numbers into the equation: dN/dt = 0.2 · 500 = 100. Dividing 500 by 0.2 gives 2500, which uses k the wrong way round.
2Exponential growth and decay
The equation dy/dt = k·y always has the same solution, an exponential function:
y(t) = y0 · ekt
Here y0 is the value at t = 0. A positive k means growth. For decay the equation is dy/dt = −k·y and the solution is y = y0e−kt.
Radioactive decay is often given by its half-life t½: the time after which half of the substance is left. The rate constant follows from it:
k = ln 2 / t½
To find a time, take the natural logarithm of both sides:
t = ln(y / y0) / k
For example, 200 cells growing with k = 0.4 h⁻¹ reach 1000 cells after t = ln(5)/0.4 ≈ 4.02 h.
Self-check A substance has a half-life of 10 days. You start with 80 mg. How much is left after 20 days?
- 0 mg
- 20 mg
- 40 mg
- 60 mg
Answer: 20 mg. 20 days is two half-lives: 80 → 40 → 20 mg. 0 mg comes from thinking that two halves make the whole; the amount halves each time.
3Cooling and linear equations
Newton’s law of cooling: a hot object cools faster when it is much hotter than the room. With the room temperature Ta:
dT/dt = −k · (T − Ta) ⇒ T(t) = Ta + (T0 − Ta) · e−kt
The difference T − Ta decays exponentially, so the temperature moves towards the room temperature and never goes below it.
To find k from one measurement, put the known values in and take ln: k = −ln[(T1 − Ta)/(T0 − Ta)] / t1.
A first-order linear equation has the form y′ + p(x)·y = q(x). Multiply it by the integrating factor μ:
μ = e∫p dx, (μ·y)′ = μ·q
Then integrate both sides and divide by μ. For p = 2/x, μ = e2 ln x = x².
Self-check Tea at 90 °C is left in a room at 20 °C. Which temperature does it approach after a very long time?
- 0 °C
- 20 °C
- 55 °C
- 90 °C
Answer: 20 °C. The term (T0 − Ta)e−kt goes to 0, so T approaches Ta = 20 °C. 0 °C would be the answer if you forgot the room temperature.
4The method step by step
- Recognise the type: dy/dt = ky (growth or decay), Newton’s cooling, or y′ + p(x)y = q(x).
- Write down the standard solution for that type.
- Use the given data to find the constants: y0 from the start, k from a half-life or a second measurement.
- Answer the question: put in a time to find a value, or use ln to find a time.
- Check the units of k (h⁻¹, min⁻¹) against the units of t.
For a linear equation: find μ, integrate (μy)′ = μq, add the constant C, then use the initial condition to find C.
5A worked example
Follow every step. Try to predict the next one before you open it.
Worked exampleA radioactive tracer has a half-life of 8 days. A sample contains 60 mg at the start. The decay follows dm/dt = −k·m. How much m remains after 12 days?
1This is exponential decay, so the solution is:
m(t) = m0 · e−kt, m0 = 60 mg
2k = ln 2 / 8 = 0.6931 / 8 = 0.08664 day⁻¹
3k · t = 0.08664 · 12 = 1.0397
m = 60 · e−1.0397 = 60 · 0.3536 = 21.21 mg
412 days is 1.5 half-lives. After 8 days 30 mg is left and after 16 days 15 mg, so 21.2 mg lies between them, as expected.
60 · 0.51.5 = 21.21 mg
Answer m ≈ 21.2 mg remains after 12 days.
6Common mistakes
- In Newton’s law of cooling, forgetting to subtract and add back the room temperature Ta.
- Using a positive exponent for decay, so the amount grows instead of shrinks.
- Using log10 instead of the natural logarithm ln.
- Mixing time units, such as k in min⁻¹ with t in hours.
- With an integrating factor, multiplying only the left-hand side by μ.
Self-check A part at 80 °C cools in a room at 20 °C. At some time t, e−kt = 0.5. What is its temperature then?
- 30 °C
- 40 °C
- 50 °C
- 60 °C
Answer: 50 °C. T = 20 + (80 − 20) · 0.5 = 20 + 30 = 50 °C. Halving 80 directly gives 40 °C, which forgets the room temperature.
7How exam questions look
- Easy: exponential growth and decay. Find the amount after a time, or the time to reach an amount, often from a half-life.
- Medium: Newton’s law of cooling. Use one measurement to find k, then find a temperature or a time.
- Hard: a first-order linear equation such as y′ + 2y/x = 3 with y(1) = 1. Use the integrating factor and find y at another x.
A quick check: decay and cooling answers must lie between the start value and the final value (0, or the room temperature).
Learn it step by step in the appLearn it step by step in the app