Scroll to turn the page
Precalculus · AP Precalculus
growth by multiplying
Some quantities grow by adding the same amount over each step. Others grow by multiplying by the same factor. The second kind starts slowly and then outruns every line.
The blue curve is : each step of 1 to the right doubles the height, from 0.25 at x = −2 to 8 at x = 3. The red curve undoes it. asks which power of 2 gives x, so it turns 8 back into 3.
The two curves are mirror images across the dashed line : the point (x, 2x) on one is (2x, x) on the other.
This chapter goes from sequences to exponential functions and their models, then through composition and inverses to logarithms, the equations they solve, and the semi-log plots that turn exponential data into a straight line. It is Unit 2 of AP Precalculus.
adding, or multiplying
A sequence is a function whose inputs are whole numbers n. In an arithmetic sequence each term adds the same common difference d; in a geometric sequence each term multiplies by the same common ratio r.
The blue dots are and the red dots . Both start at 2. The arithmetic one climbs by 3 every step; the geometric one climbs by more each time, and by n = 6 it is ahead.
| n | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|---|
| an | 2 | 5 | 8 | 11 | 14 | 17 | 20 |
| gn | 2 | 3 | 4.5 | 6.75 | 10.13 | 15.19 | 22.78 |
Any known term can serve as the starting point: and . Example. If and , the difference is . If and , then , so r = 1.5.
The same two patterns, for every real input instead of whole steps, are linear and exponential functions.
equal steps in, equal differences or equal ratios out
Over input intervals of equal length, a linear function changes by equal differences; an exponential function changes by equal ratios. Linear change is additive, exponential change multiplicative.
Slide the window [x, x + 1] along both curves. On the rise is always 3. On the rise grows, but the ratio of the two heights is always 1.5:
The forms say the same thing. starts at b and adds m per unit; starts at a and multiplies by r per unit. Arithmetic sequences are linear functions on the whole numbers, and geometric sequences exponential ones.
Over an interval of length 2 the linear function adds 6, twice 3, while the exponential multiplies by . Given two points, a linear model is and an exponential one .
a·bˣ, and what b decides
An exponential function has the form with initial value a ≠ 0 and base b > 0, b ≠ 1. Its graph passes through (0, a).
The red curve is as b sweeps from 2 down through 1 to and back. For a > 0:
At b = 1 the curve is the flat line y = 1, which is why 1 is ruled out as a base. If a < 0 the graph flips below the axis and its concavity reverses.
Example. starts at 3 and halves with each unit: . As x grows it approaches 0 but never reaches it.
a shift is a stretch
The laws of exponents rewrite an exponential function in equivalent forms, and each form shows something different about the graph.
| product | |
|---|---|
| power | |
| negative exponent | |
| rational exponent |
By the product law, . So moving left by k (blue) gives exactly the same curve as stretching it vertically by (red). The figure sweeps k from 0 to 2: the point (1, 2) slides left to (1 − k, 2) and rises to (1, ), and both land on the red curve.
A horizontal translation of an exponential is always a vertical dilation. The other laws give more: is a reflection of in the y-axis, and . Every exponential can be written with any positive base other than 1, including the natural base e ≈ 2.7183.
a constant percent change
An exponential model fits a quantity that changes by the same proportion over equal times: a population, an investment, a radioactive sample.
Carbon-14 has a half-life of 5,730 years: every 5,730 years, half of what is left decays. With t in years, the percent left is
Per-unit rewriting gives the yearly factor: . A sample with 30% left is about 9,953 years old, between one and two half-lives (2.13 shows how to solve for t).
Other forms come from the context:
A model is only as good as its assumptions: it may stop fitting outside the data, or once a real limit (food, space) is reached.
what the model missed
A residual is the actual value minus the value the model predicts. A model is appropriate when its residual plot shows no pattern.
The counts are hypothetical: a bacteria culture counted every hour. Two models are fitted to them, the least-squares line (blue) and the exponential (red).
| hour | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|---|
| count | 52 | 77 | 131 | 202 | 322 | 532 | 834 |
| linear residual | 114 | 16 | −53 | −105 | −108 | −21 | 158 |
| exponential residual | 2 | −3 | 3 | −3 | −5 | 10 | 1 |
The line's residuals run positive, negative, then positive again: a U shape, the sign of curvature the line cannot follow. The exponential's residuals scatter above and below 0 with no pattern, so the exponential model is the better choice.
The sign reads directly: a positive residual means the model underestimates there, a negative one that it overestimates. At hour 3 the line predicts 307 against an actual 202, an overestimate by 105.
one function’s output, the next one’s input
The composition , also written , applies g first and then f to the result.
Here and . Follow the dots down: x on the top line, then g(x), one less, then 2 to that power.
So . The other order is a different function: , and , not 4. In general .
Compositions can be read from tables or graphs too: find g(x), then look that value up as an input of f.
undoing a function
The inverse of a function reverses it: if then , and .
Swapping input and output reflects the graph across : the point (a, b) on f becomes (b, a) on . The domain of f becomes the range of , and the range its domain.
An inverse function exists only if f is one-to-one: each output comes from just one input. The blue line meets the whole parabola twice, at , so has no inverse on all reals. Restricting the domain to x ≥ 0 keeps the half where it is one-to-one, and there the inverse is (red).
Finding an inverse. Write , swap x and y, and solve for y:
Check: and . The inverse undoes f step by step in reverse order: add 4, then divide by 3.
the exponent, asked for
The logarithm is the exponent a that turns the base b into c, for b > 0, b ≠ 1 and c > 0:
| expression | ||||
|---|---|---|---|---|
| because | ||||
| value | 3 | −4 | 3 | 0 |
Two bases have their own names: the common logarithm has base 10, and the natural logarithm has base e. Always and .
The figure lays the values on a logarithmic scale (red), under their exponents (blue). Equal lengths on the scale are equal ratios: 1 to 10, 10 to 100 and 100 to 1000 are the same distance. That is how a log scale fits values of very different sizes on one line.
Estimates come from neighboring powers: 50 is between 10 and 100, so is between 1 and 2; it is 1.699.
the logarithm undoes bˣ
is one-to-one, so it has an inverse, and that inverse is the logarithm .
Swap every row of a table of and you get a table of . The red dots in the figure do exactly that: each (x, 2x) flies across to (2x, x).
| x | −2 | −1 | 0 | 1 | 2 | 3 |
|---|---|---|---|---|---|---|
| 2x | 0.25 | 0.5 | 1 | 2 | 4 | 8 |
| x | 0.25 | 0.5 | 1 | 2 | 4 | 8 |
|---|---|---|---|---|---|---|
| log2 x | −2 | −1 | 0 | 1 | 2 | 3 |
So the two functions swap their features. has domain all reals, range y > 0 and the horizontal asymptote y = 0; has domain x > 0, range all reals and the vertical asymptote x = 0. Each undoes the other:
For base e, and are inverses: and .
multiply the input, add to the output
A logarithmic function has the form with a ≠ 0, b > 0 and b ≠ 1. It turns multiplicative change into additive change.
On , each doubling of the input adds 1 to the output: the blue staircase runs from (1, 0) to (2, 1), (4, 2), (8, 3), (16, 4). Over input intervals with the same ratio, the outputs change by the same difference: exactly the reverse of an exponential.
| x | 1 | 2 | 4 | 8 | 16 |
|---|---|---|---|---|---|
| log2 x | 0 | 1 | 2 | 3 | 4 |
For a > 0 and b > 1:
Its slowness is a feature: the output goes up 1 every time the input doubles, so only reaches 10 at x = 1024.
a stretch is a shift
Each law of exponents has a logarithm twin, because a logarithm is an exponent.
| product | |
|---|---|
| quotient | |
| power | |
| change of base |
By the product law, . Squeezing toward the y-axis by a factor 1/k (blue) gives the same curve as lifting it by (red). As k sweeps from 1 to 4 the point (2, 1) moves in to (2/k, 1) and up to (2, 1 + ), both on the red curve.
So a horizontal dilation of a logarithm is a vertical translation, the twin of 2.4. The power law makes a vertical dilation by n, and a reflection in the x-axis.
Examples. ; ; and by change of base, . Every logarithmic function is a constant multiple of .
undo, then check
To solve an exponential equation, isolate the power and take a logarithm; to solve a logarithmic one, isolate the log and exponentiate. The inverse undoes the function.
The figure solves for every level c at once: the curve crosses the blue line at . At :
The inequality needs only the direction: is increasing, so it holds for x > 3, the red stretch of the axis. A decreasing function (base between 0 and 1) reverses the inequality.
With base e. gives , so .
A logarithmic equation. combines to , so and x = 4 or x = −2. But −2 is outside the domain of : it is extraneous. The only solution is x = 4. Always check solutions in the original equation.
The same steps find inverses: has .
quick gains, then slower
A logarithmic model fits a quantity that grows quickly at first and then ever more slowly, or one where equal ratios of the input give equal differences in the output.
The data are hypothetical: one typist’s speed, in words per minute, after each week of practice. Logarithmic regression gives
Each doubling of the weeks adds words per minute: from week 1 to 2 as much as from week 4 to 8. Predicted at week 10, , an extrapolation beyond the data, to be trusted less.
Logarithmic scales measure many real quantities, because the values range over many powers of 10:
Logarithmic and exponential models are inverses: if y grows exponentially with x, then x grows logarithmically with y.
exponential data, straightened
A semi-log plot keeps a linear x-axis and puts y on a logarithmic scale. On it, exponential data fall on a straight line.
Take the log of an exponential model :
That is a line in , with slope and vertical intercept . Any base n > 1 works the same way.
The bacteria counts of 2.6 (hypothetical) curve upward on ordinary paper and line up on semi-log paper. Their best-fit line is , so
The model is : about 60% more bacteria each hour.
A semi-log plot is a test as well as a tool: data that line up are exponential; data that still curve are not, and need another model.
← Polynomial and rational functions · Trigonometric and polar functions →