Growth and decay · Mathematics Class 11–12 | StemPy Lab
Course 13.3·Lesson 1 of 3
Growth and decay
When the rate of change of a quantity is proportional to the amount present, the equation is dtdN=kN
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
turn "the rate is proportional to the amount" into dtdN=kN and solve it;
find the doubling time or the half-life, and use them to read a percentage rate;
use the decay law to find the age of a sample, and meet the logistic equation;
follow an equation step by step on the computer with Euler's method.
A rate that follows the amount
A colony of bacteria has more cells today than yesterday. Each cell divides at about the same pace, so a colony that is twice as big adds new cells twice as fast. The rate of growth is proportional to the number of cells. In symbols, with N the number of cells at time t,
dtdN=kN.
The constant k is the rate constant. Its unit is "per hour", "per year" or whatever the time unit is. To solve, separate the variables:
Write NdN=kdt.
Integrate both sides: lnN=kt+c.
Write N=ecekt. At t=0 we have N=N0, so ec=N0.
The solution is
N=N0ekt.
If k>0 the amount grows, and we call this exponential growth. If k<0 the amount falls, and we call it exponential decay. The same equation covers a savings account with continuous interest, a population with plenty of food and a radioactive sample.
A graph of the amount N in cells against the time t in hours, from 0 to 8 hours. A blue curve starts at 100 cells and rises faster and faster, passing 200 cells at 2 hours and 400 cells at 4 hours, so it doubles every 2 hours. An orange curve starts at 100 cells and falls more and more slowly, passing 50 cells at 2 hours and 25 cells at 4 hours, so it halves every 2 hours. A dotted line marks the starting amount of 100.
Doubling time and half-life
How long does a growing amount take to double? Put N=2N0 in the solution: ekT=2, so
Tdouble=kln2.
For decay, put N=21N0 and k=−λ with λ>0. The time for the amount to halve is the half-life:
T1/2=λln2.
Both times depend on k alone. They do not depend on N0. After n doubling times the amount is 2nN0, and after n half-lives it is N0/2n. This lets you work without a calculator when the time is a whole number of half-lives.
Example. A sample of a radioactive isotope has a half-life of 12h. Find λ, and the fraction left after 30h.
λ=12hln2=0.05776h−1.
The fraction is e−λt=e−0.05776×30=e−1.733=0.1768. As a check, 30h is 2.5 half-lives, and 2−2.5=0.1768.
Percentage rates
A bank adds 5% each year, so the amount is multiplied by 1.05 every year. After t years it is N0×1.05t. Write this as N0ekt and we get k=ln1.05=0.04879 per year. In general, a yearly rate r corresponds to k=ln(1+r).
If the interest is added at every instant, we say it is compounded continuously. Then k=r itself, and the factor after one year is er. For r=6% and a deposit of 1000 rupees over 10 years:
once a year: 1000×1.0610=1790.85;
continuously: 1000×e0.6=1822.12.
The continuous way pays slightly more, because the interest earns interest at every instant.
Radioactive decay and the age of a sample
A radioactive nucleus decays at random, but a large sample follows dtdN=−λN. The constant λ is the decay constant. The activityA=λN is the number of decays each second, in becquerel (Bq). Activity falls by the same factor as N.
Living things take in carbon-14, and the amount of it in a living tree stays at a steady level. After death the carbon-14 decays, with a half-life of 5730 years. We use this standard value. Older books print 5568 years, the first value measured, so a textbook answer may differ slightly. If a sample has the fraction f of the carbon-14 of living wood, then f=e−λt and
t=λ1lnf1=ln2T1/2lnf1.
Example. A beam has 40% of the carbon-14 of living wood. Its age is ln25730ln2.5=7574.6 years, about 7600 years.
When growth meets a limit
No colony grows for ever. Food, space or disease set a limit. The logistic equation keeps the idea "growth is proportional to the amount" but slows it down near the limit M, called the carrying capacity:
dtdP=kP(1−MP).
When P is small the bracket is close to 1, and the growth is almost exponential. When P is near M the bracket is close to 0, and the growth stops. The solution, which the next course shows how to find, is
P=1+Ae−ktM,A=P0M−P0.
You can check it without any method. Put u=Ae−kt, so that dtdu=−ku and P=1+uM.
Differentiate: dtdP=−(1+u)2Mdtdu=(1+u)2Mku.
Now 1−MP=1−1+u1=1+uu. So kP(1−MP)=k1+uM1+uu=(1+u)2Mku.
The two sides agree. At t=0, P=1+AM=P0 for the stated A.
The growth rate kP(1−P/M) is largest when P=2M, and then it is 4kM. The curve has its steepest point there.
A graph of a population P in animals against the time t in years, from 0 to 14 years. A blue S-shaped curve starts at 100, rises slowly, then steeply, and levels off at the red dashed line at 1000 animals, the carrying capacity. A green dot on the curve at the height of 500 marks the point of fastest growth. A grey dashed curve shows plain exponential growth with the same start and the same constant k. It keeps rising and leaves the picture, while the blue curve stays below 1000.
Euler's method
Many equations have no neat formula. A computer can still follow the solution. At a point we know the slope dtdN from the equation. Take a small step h along that slope, then find the slope at the new point and step again. This is Euler's method:
Nnew=Nold+h×f(t,Nold).
A graph of the amount N against the time t in hours, from 0 to 2 hours. A blue curve is the exact solution 100 e to the power 0.4 t, rising from 100 to about 222.6. An orange line made of four straight pieces, with dots at t = 0, 0.5, 1, 1.5 and 2, is the result of Euler's method with step 0.5. It starts at 100 and runs through 120, 144, 172.8 and 207.4, always below the blue curve, because each piece uses the slope at its left end.
For dtdN=0.4N with N0=100 and h=0.5, the first step gives 100+0.5×40=120, and the second gives 120+0.5×48=144. The picture shows the four steps to t=2. They stay below the true curve, because the curve bends upwards and each step uses the slope at its left end. A smaller step gives a smaller error.
Practise with new numbers
Try it in Python
The program uses Euler's method for dtdN=0.4N and compares the result at t=2 with the exact answer. It tries three step sizes.
Common mistakes
Using the wrong unit for k. If time is in hours, k is per hour. A half-life in days gives λ per day.
Writing ekt for a yearly percentage. A rate of 5% a year gives k=ln1.05, not 0.05. The two are close for small rates, but not equal.
Forgetting the minus sign in decay. The law is N=N0e−λt with λ>0.
Adding instead of multiplying. Doubling every 3 hours means multiplying by 2 each time. It does not add N0.
Trusting one big Euler step. The estimate improves as the step shrinks.
Remember these
dtdN=kN gives N=N0ekt. A negative k is decay.
Doubling time kln2 and half-life λln2 do not depend on the starting amount.
A yearly rate r means k=ln(1+r). Continuous interest at rate r means k=r.
The logistic solution is P=1+Ae−ktM. Its steepest growth, 4kM, is at P=2M.
Euler's method: new value = old value + h× slope.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
The number of cells in a colony is multiplied by 3 every 4 hours. Find k per hour, to four decimal places.
A sample has a half-life of 8 days. What fraction of it is left after 20 days?
A deposit earns 7% a year, compounded continuously. How long does it take to double?
A piece of wood has 30% of the carbon-14 of living wood. Find its age, using a half-life of 5730 years.
In the logistic equation with k=0.4 per year and M=800 animals, what is the largest growth rate?
References
OpenStax, Calculus Volume 2, Chapter 4, section 4.2 Direction Fields and Numerical Methods, and section 4.4 The Logistic Equation.