Sub topic 3
Growth or decay: reading the factor b
This chapter assumes you can evaluate expressions with integer and fractional exponents, convert between percents and decimals, sketch simple function graphs, and solve simple linear equations. You should also have seen the form f(x) = a·b^x, where a is the initial value and b is the factor that multiplies the quantity at each step.
The goal here is to read b. Once you can look at b and say what the function does, you can predict the shape of the graph and the direction of change without computing anything.
The factor b sets the direction
In f(x) = a·b^x, each increase of x by 1 multiplies the output by b. The size of b compared with 1 decides what happens.
| Value of b | What each step does | Name | Example |
|---|---|---|---|
| b > 1 | Output gets larger in size | Exponential growth | 3·2^x |
| 0 < b < 1 | Output gets smaller in size, but stays positive | Exponential decay | 3·(0.5)^x |
| b = 1 | Output stays the same | Constant function | 3·1^x = 3 |
The middle row is the one that surprises people. A decaying quantity never reaches zero in a finite number of steps. Multiplying a positive number by 0.5 repeatedly gives smaller and smaller positive numbers: 100, 50, 25, 12.5, 6.25, and so on. The graph flattens toward the x-axis without touching it. Chapter 5 of this tutorial covers that horizontal asymptote in detail.
The spine's first code example shows both directions with the same formula. Only b changes.
def exp_model(a, b, x):
return a * b ** x
# A population of 1000 growing 5% per year (b = 1 + 0.05)
print(round(exp_model(1000, 1.05, 10), 2)) # 1628.89
# A value of 1000 losing 5% per year (b = 1 - 0.05)
print(round(exp_model(1000, 0.95, 10), 2)) # 598.74Both models start at 1000. After 10 steps one is at about 1629 and the other at about 599. Notice that the growth is not symmetric with the decay. A 5% gain followed by a 5% loss does not return you to the start, because the loss applies to a larger base. That is why 1.05 and 0.95 are not reciprocals of each other.
Why b must be positive
The definition of an exponential function requires b > 0, and b ≠ 1 if you want a function that actually changes. The case b ≤ 0 is excluded for concrete reasons.
Take b = −2. The outputs at whole numbers alternate in sign:
| x | (−2)^x |
|---|---|
| 0 | 1 |
| 1 | −2 |
| 2 | 4 |
| 3 | −8 |
At x = 1/2 the expression asks for the square root of −2, which is not a real number. The function would be undefined at most inputs, so its graph would be scattered points rather than a curve. The case b = 0 gives 0^x, which is 0 for positive x and undefined for negative x. Neither case models a quantity that changes smoothly by a constant percentage.
A decision procedure
You can reduce the reading of b to a short sequence of checks.
The same logic as code:
def classify(b):
if b <= 0:
raise ValueError("b must be positive for an exponential function")
if b > 1:
return "growth"
if b < 1:
return "decay"
return "constant"
for b in (2, 1.05, 1, 0.95, 0.5, 0.01):
print(b, classify(b))Running this prints growth for 2 and 1.05, constant for 1, and decay for 0.95, 0.5 and 0.01.
How far b is from 1 matters
The classification tells you the direction. The distance of b from 1 tells you the speed.
- b = 1.01 grows slowly. After 10 steps the output is about 1.105 times the start.
- b = 1.5 grows quickly. After 10 steps it is about 57.7 times the start.
- b = 0.99 decays slowly.
- b = 0.1 decays fast. Each step removes 90% of what remains.
A useful habit is to read b as "the fraction of the previous value that remains, or is multiplied in." If b = 0.8, each step keeps 80% of the previous amount. If b = 1.25, each step produces 125% of the previous amount. The next chapter formalizes this as a percent rate, where b = 1 + r and r is written as a decimal.
Reading b from a table
Often you are not handed a formula. You have a table, and you need to decide whether the data is exponential and what b is. For equally spaced x values, divide each output by the one before it. If the quotients are all the same, that common quotient is b.
| x | f(x) |
|---|---|
| 0 | 500 |
| 1 | 350 |
| 2 | 245 |
| 3 | 171.5 |
def successive_ratios(ys):
return [ys[i + 1] / ys[i] for i in range(len(ys) - 1)]
ratios = successive_ratios([500, 350, 245, 171.5])
print([round(r, 4) for r in ratios]) # [0.7, 0.7, 0.7]The ratios are all 0.7, so b = 0.7 and the model is decay. The value at x = 0 is 500, so f(x) = 500·(0.7)^x.
Compare this with a linear table, where you subtract instead. A linear function has a constant difference between outputs, and an exponential function has a constant ratio. If neither the differences nor the ratios are constant, the data follows some other pattern.
The role of a, and a common trap
The direction of change depends on b, not on a. The value a is the starting point and sets the vertical scale. But a can change how "growth" looks if it is negative.
Consider g(x) = −4·2^x. Here b = 2, so this is still a growth function in the sense that the multiplier is above 1. But the outputs are −4, −8, −16, −32. The quantity moves away from zero, and it moves downward. The graph is the mirror image of 4·2^x across the x-axis.
So the precise statement is this: b > 1 means the magnitude of the output grows by a constant factor, and b < 1 means the magnitude shrinks by a constant factor. For quantities that cannot be negative, such as populations, money balances and masses, a is positive and "growth" and "getting bigger" mean the same thing.
Growth and decay are mirror images
A decay function can always be written as a growth function with a reversed input. Since b^(−x) = (1/b)^x, the following holds:
- f(x) = 100·(0.5)^x is the same function as 100·2^(−x).
- Replacing x with −x reflects any exponential graph across the y-axis.
You can verify this with values:
| x | 100·(0.5)^x | 100·2^(−x) |
|---|---|---|
| −1 | 200 | 200 |
| 0 | 100 | 100 |
| 1 | 50 | 50 |
| 2 | 25 | 25 |
This has a practical meaning. Decay looking forward in time is growth looking backward in time. If a sample halves each day, then going back one day it was twice as large. This is also why a decay function with b = 0.5 and a growth function with b = 2 are closely related. They are reciprocal factors.
If you see a form like a·b^(−x) with b > 1, treat it as decay with factor 1/b. For example, 80·4^(−x) decays by a factor of 1/4 = 0.25 per step.
Changing the length of a step
The factor b belongs to a particular step size. If b = 1.05 per year, you may want the equivalent factor per month. Because twelve monthly steps must multiply to the yearly factor, the monthly factor c satisfies c^12 = 1.05, so c = 1.05^(1/12).
yearly = 1.05
monthly = yearly ** (1 / 12)
print(round(monthly, 6)) # 1.004074
print(round(monthly ** 12, 6)) # 1.05The monthly growth is about 0.4074%, not 5% ÷ 12 ≈ 0.4167%. Dividing the percent rate by 12 gives a different model, and it is the compound-interest idea covered later. The point for now is that you convert factors with exponents, not with division.
The reverse works too. If b is given per day and you want it per week, raise it to the 7th power.
Common errors
- Using the rate instead of the factor. A 5% decay is b = 0.95, not b = 0.05. Using 0.05 would mean 95% is lost each step.
- Treating decay as subtraction. A function that loses 5 units per step is linear. Exponential decay loses a fixed percentage, so the amount lost shrinks over time.
- Calling b = 0.5 "negative growth" and expecting negative outputs. Outputs stay positive when a is positive.
- Reading b off a single value. One output does not identify b. You need either a table with a known a, or two points.
- Ignoring the step size. A factor of 2 per hour and a factor of 2 per day are very different models.
- Misreading a negative exponent. In 3·2^(−x), the base is 2, but the function is decay, because 2^(−x) = (1/2)^x.
Putting it together
Given f(x) = a·b^x, work in this order. First check that b is positive and not 1. Then compare b with 1 to find the direction. Then measure |b − 1| to judge the speed. Finally, check the sign of a to know whether the outputs lie above or below the x-axis. Written as a function, this takes one line per step, and you can run it on any model you meet.
def describe(a, b):
if b <= 0 or b == 1:
return "not a changing exponential"
direction = "growth" if b > 1 else "decay"
side = "above" if a > 0 else "below"
return f"{direction}, {abs(b - 1) * 100:.1f}% per step, {side} the x-axis"
print(describe(1000, 1.05)) # growth, 5.0% per step, above the x-axis
print(describe(1000, 0.95)) # decay, 5.0% per step, above the x-axis
print(describe(-4, 2)) # growth, 100.0% per step, below the x-axisExercise
For each function, say whether it is growth, decay, or not an exponential function, and give the factor per step: (a) f(x) = 7·(1.2)^x, (b) g(x) = 12·(0.4)^x, (c) h(x) = 5·3^(−x), (d) k(x) = 2·(−3)^x.
Show answer
(a) Growth, b = 1.2. (b) Decay, b = 0.4. (c) Decay. Since 3^(−x) = (1/3)^x, the factor is 1/3 ≈ 0.333. (d) Not an exponential function, because the base −3 is negative and the expression is undefined for many real x, such as x = 1/2.
Exercise
A table shows f(0) = 64, f(1) = 48, f(2) = 36, f(3) = 27. Decide whether the data is exponential or linear, find b, and write the model. Then find the equivalent factor for a step of half the length (x increasing by 0.5).
Show answer
The differences are −16, −12, −9, so it is not linear. The ratios are 48/64 = 0.75, 36/48 = 0.75, 27/36 = 0.75, so the data is exponential decay with b = 0.75. Because f(0) = 64, the model is f(x) = 64·(0.75)^x. For half-length steps, the factor c satisfies c² = 0.75, so c = 0.75^(1/2) ≈ 0.866.
Exercise
A student says that 1000·(0.95)^x loses 5 units each step, so after 200 steps it is at −9000. Identify the two mistakes.
Show answer
First, the function loses 5% of its current value each step, not 5 units, so the loss shrinks as the value shrinks. Second, because b = 0.95 is positive and a = 1000 is positive, every output is positive. After 200 steps the value is 1000·0.95^200, which is about 0.035, small but still above zero.