Sub topic 2
Reading the graph: intercept and horizontal asymptote
This chapter assumes you can evaluate integer and fractional exponents, convert percents to decimals, and sketch simple graphs. The model is f(x) = a·b^x, with a ≠ 0, b > 0, and b ≠ 1.
The intercept and the asymptote
The y-intercept is the point where x = 0. Because b^0 = 1, f(0) = a, so the initial value a is where the graph crosses the y-axis.
The horizontal asymptote is y = 0. The curve gets closer and closer to this line but never touches it. For growth (b > 1), the left side of the graph approaches y = 0. For decay (0 < b < 1), the right side does.
Building a model from two data points
Suppose the points are (x1, y1) and (x2, y2). Dividing y2 by y1 cancels a, which leaves b^(x2 − x1). Solve for b, then solve for a.
def fit_two_points(x1, y1, x2, y2):
b = (y2 / y1) ** (1 / (x2 - x1))
a = y1 / b ** x1
return a, b
a, b = fit_two_points(1, 6, 3, 24)
print(a, b) # 3.0 2.0The result is f(x) = 3·2^x. Check it: f(1) = 6 and f(3) = 24.
Doubling time and half-life
Doubling time is the period a growth model needs to double. Half-life is the period a decay model needs to halve. For N(t) = N0·(1/2)^(t/h), h is the half-life.
import math
N0, h = 100.0, 8.0 # 100 g, half-life 8 days
t = h * math.log(10 / N0) / math.log(0.5)
print(round(t, 2)) # 26.58Exercise
For f(x) = 5·3^x, what is the y-intercept?
Show answer
5. Since f(0) = 5·3^0 = 5·1 = 5.
Exercise
A substance has a half-life of 8 days. How many days until 100 g falls to 25 g?
Show answer
16 days. The amount halves twice (100 to 50 to 25), so that is 2 × 8 = 16 days.