Sub topic 11
Exponential versus linear change
This chapter assumes you can write and evaluate f(x) = a·b^x, convert a percent rate to a growth or decay factor, and read a table of values. Here you learn to tell exponential change from linear change in data, predict which one wins over a long horizon, and avoid the usual mistakes when comparing them.
Two ways to change by the same amount at first
A linear function adds the same amount each step. An exponential function multiplies by the same factor each step.
- Linear: f(x) = c + m·x. The constant m is the slope, the amount added per step.
- Exponential: f(x) = a·b^x. The constant b is the growth factor, the multiplier per step.
Take two plans that both start at 100. Plan L adds 10 per period, so L(x) = 100 + 10x. Plan E grows 10% per period, so E(x) = 100·1.1^x.
| Period x | Linear L(x) | Exponential E(x) |
|---|---|---|
| 0 | 100 | 100.00 |
| 1 | 110 | 110.00 |
| 2 | 120 | 121.00 |
| 5 | 150 | 161.05 |
| 10 | 200 | 259.37 |
| 20 | 300 | 672.75 |
| 30 | 400 | 1744.94 |
The two plans agree at x = 0 and x = 1. After that the gap widens in favor of the exponential plan. By period 30 it is more than four times the linear value.
Between x = 0 and x = 1 the exponential plan is slightly lower. At x = 0.5, E is about 104.88 and L is 105. A curve that bends upward stays below the straight line joining two of its points and rises above that line outside them. You only see the dip if you evaluate at non-integer inputs.
What actually differs: absolute versus relative change
For a linear function, the absolute change per step is constant. The percent change shrinks over time. For L(x), the first step is +10 on 100, which is 10%. By period 30 the step is +10 on 390, about 2.6%.
For an exponential function, the percent change per step is constant. The absolute change grows. The change from step x to x + 1 is
a·b^(x+1) − a·b^x = a·b^x·(b − 1)
This is proportional to the current value. For E(x), the change in the first period is 10. The change from period 9 to period 10 is 100·1.1^9·0.1, about 23.58.
That proportionality is the core idea. In a linear model, the amount added does not depend on how much you already have. In an exponential model, every unit you already have contributes to further change.
| Feature | Linear c + m·x | Exponential a·b^x |
|---|---|---|
| Constant per step | Difference (add m) | Ratio (multiply by b) |
| Absolute change per step | Constant | Proportional to current value |
| Percent change per step | Shrinks (growth) | Constant, b − 1 |
| Initial value | c, the y-intercept | a, the y-intercept |
| Horizontal asymptote | None | y = 0 (for the basic form) |
| Doubling time | Grows with each doubling | Constant |
| Decay reaches zero? | Yes, at a finite x | Never |
Telling them apart from data
Suppose you have values at equally spaced inputs. Compute two things:
- The differences between consecutive outputs. If these are constant, the data is linear.
- The ratios of consecutive outputs. If these are constant, the data is exponential.
For example, 5, 10, 20, 40, 80 has differences 5, 10, 20, 40 and ratios 2, 2, 2, 2. It is exponential with b = 2. The sequence 5, 8, 11, 14, 17 has constant differences of 3 and is linear.
You can automate the check. The function below returns the model type and its constant.
import math
def classify(ys):
diffs = [b - a for a, b in zip(ys, ys[1:])]
if all(math.isclose(d, diffs[0], abs_tol=1e-9) for d in diffs):
return "linear", diffs[0]
if all(y != 0 for y in ys):
ratios = [b / a for a, b in zip(ys, ys[1:])]
if all(math.isclose(r, ratios[0], rel_tol=1e-9) for r in ratios):
return "exponential", ratios[0]
return "neither", None
print(classify([5, 10, 20, 40, 80])) # ('exponential', 2.0)
print(classify([5, 8, 11, 14, 17])) # ('linear', 3)
print(classify([1, 4, 9, 16])) # ('neither', None)The function tests the linear case first. A constant sequence such as 3, 3, 3 has difference 0 and ratio 1, so it fits both models. The function reports it as linear.
The method only works if the inputs are equally spaced. If they are not, compare the slope between each pair of points for the linear test. For the exponential test, compare the ratio y2/y1 raised to the power 1/(x2 − x1).
Real measurements contain noise, so exact equality rarely holds. Look for roughly constant differences or ratios, and use more than three points before you commit to a model.
Which one wins in the long run
Every exponential function with b > 1 and a > 0 eventually exceeds every linear function with positive slope, however large the linear starting value or slope. The exponential may start far behind, but the crossing point exists.
Compare L(x) = 1000 + 100x with E(x) = 100·1.1^x. E starts ten times lower and the line climbs by 100 each period. This loop finds the first whole period at which E is larger.
x = 0
while 100 * 1.1 ** x <= 1000 + 100 * x:
x += 1
print(x) # 42At x = 41, E is about 4978 and L is 5100. At x = 42, E is about 5476 and L is 5200. The exponential takes over at period 42 and never gives the lead back.
Doubling behaves differently
Linear growth takes longer to double each time. For L(x) = 100 + 10x, the value doubles from 100 to 200 at x = 10. Doubling again to 400 takes until x = 30, which is 20 more periods.
An exponential at 10% growth doubles every ln 2 / ln 1.1, about 7.27 periods, no matter where you start. That constant doubling time is a signature of exponential change. Chapter-level tools for computing it with logarithms appear in the earlier chapters on doubling time and solving for time.
Decay: the difference at zero
The comparison also applies to decreasing quantities. Start at 100 and compare two decay plans:
- Linear: D(x) = 100 − 10x. It loses 10 per period and reaches 0 at x = 10. After that the formula gives negative values.
- Exponential: R(x) = 100·0.9^x. It loses 10% of the current value per period. At x = 10 it is about 34.87, and it stays positive for every x.
The linear plan crosses the x-axis, so the model needs a stopping rule. The exponential plan approaches the horizontal asymptote y = 0 and never touches it. That is why half-life problems can always ask "how much remains after more time" without the answer turning negative.
Common errors
Treating a percent rate as a fixed amount
"Grows 5% per year" on 1000 does not mean adding 50 every year. That is the linear model, called simple interest in finance. After 10 years it gives 1500. The exponential model gives 1000·1.05^10, about 1628.89. The two differ because the exponential model applies 5% to the larger, updated amount each year.
Judging by a short window
If b is close to 1 and you only look at a few points, the data can look nearly straight. For example, 100·1.02^x for x = 0 to 5 gives 100, 102, 104.04, 106.12, 108.24, 110.41. The differences are 2, 2.04, 2.08, 2.12, 2.17. They are close to constant but not equal. Always compute ratios as well as differences, and prefer a longer span of data.
Extrapolating a line through exponential data
Fitting a line to early exponential data and extending it underestimates the future by a large margin. In the 10% example, a line through the first two points (0, 100) and (1, 110) predicts 400 at x = 30. The exponential value is about 1745.
Mixing up "doubles" and "increases by 100%"
These mean the same thing for one step, since a factor of 2 is a 100% increase. They are different for several steps. Doubling twice is a factor of 4, which is a 300% total increase, not 200%. Multiply factors across steps. Do not add percents.
Applying the model outside its range
An exponential fit describes a stretch of data. It does not promise the pattern continues. The final chapter covers why real systems eventually leave the exponential regime.
Checking a model against two data points
If you have two points and need to pick between a line and an exponential, you can fit either one exactly. Two points cannot tell you which is right, because both models pass through any two points with positive y-values. A third point is what distinguishes them. Compute what each model predicts at the third input and compare it with the observed value.
Exercise
A savings account balance over four equally spaced years is 2000, 2300, 2645, 3041.75. Is the change linear or exponential, and what is the constant?
Show answer
The differences are 300, 345 and 396.75, which are not constant. The ratios are 2300/2000 = 1.15, 2645/2300 = 1.15 and 3041.75/2645 = 1.15. The change is exponential with growth factor b = 1.15, a 15% increase per year.
Exercise
Plan A starts at 200 and adds 25 each week. Plan B starts at 200 and grows 10% each week. In which week does B first exceed A, and what are the two values then?
Show answer
Compare 200·1.1^x with 200 + 25x. At week 5, B is 322.10 and A is 325, so B is still behind. At week 6, B is 200·1.1^6 ≈ 354.31 and A is 350. B first exceeds A in week 6.
Exercise
A stock of 100 units loses 10 units per period in model P and loses 10% of its current value per period in model Q. Which model reaches 0, and why does the other one not?
Show answer
Model P is linear, 100 − 10x, so it reaches 0 at x = 10. Model Q is 100·0.9^x. Multiplying a positive number by 0.9 repeatedly always gives a positive number, so Q approaches 0 but never reaches it.