Suppose a table of measurements lands on your desk and you need to predict the next value. Before you can write an equation you have to answer a more basic question: what kind of function is this? Pick the wrong type and your predictions can be wildly off. A linear model, a quadratic model and an exponential model can agree closely for the first few values and then disagree by thousands a little further out. In Graphs of Exponential Functions you saw the quick version: lines have constant first differences, exponentials have constant ratios. This lesson finishes the job. You will add quadratics to the comparison, see why each pattern appears, learn what goes wrong when the -values are unevenly spaced, deal with real data that is only roughly exponential, and explain which type eventually grows fastest.
Three tests on one table
With the -values equally spaced, run three tests on the -values. First differences: subtract each -value from the next one. If they are all the same, the function is linear. Second differences: subtract consecutive first differences. If those are all the same (and the first differences were not), the function is quadratic. Ratios: divide each -value by the one before it. If those are all the same, the function is exponential. Always subtract and divide in the same direction, later value minus (or divided by) earlier value, so the signs mean something: a negative first difference means the values are falling, and a ratio between 0 and 1 means decay. Check that the -values really are equally spaced before you start, and if none of the three columns is constant, the data fit none of the three types exactly. Real measurements often land there, so look for the test that is nearly constant.
Why each pattern appears
The tests are not rules of thumb; each follows from the algebra. For a line , moving one step right always adds , so the first differences are all . For a quadratic , the first difference from to works out to . That is itself a linear expression in , so the first differences go up by the same amount each time and the second differences are all : halve the second difference to get the leading coefficient. For an exponential , the product law gives , so each step multiplies by and the ratios are all . Now look at the exponential's first differences. Factoring out (the formula below) shows that each difference is the current -value times the constant , so the differences form an exponential with the same ratio . Take differences again and you get yet another exponential with ratio , forever. That is the tell-tale sign of an exponential in a difference table: no column of differences ever settles down, but every column grows by the same factor as the -values. In the figure, has -values and first differences , all doubling. (With an -step of instead of 1, the constants become , and .)
Uneven x-steps
Measurements are not always taken at even intervals, and when they are not, raw differences and ratios lie. The line sampled at gives , and the first differences look anything but constant. The fix is to compare each change with the size of its step. For a line, divide each by its : are all 2, so it really is linear with slope 2. For an exponential, a ratio across a step of is , so take the -th root to get the factor per unit step.
| x | Step | Ratio | Factor per unit step | |
|---|---|---|---|---|
| 0 | 1 | |||
| 1 | 3 | 1 | ×3 | 3 |
| 3 | 27 | 2 | ×9 | |
| 4 | 81 | 1 | ×3 | 3 |
Reading the type from a graph or an equation
| Clue | Linear | Quadratic | Exponential |
|---|---|---|---|
| Equation | : to the first power | : highest power | : in the exponent |
| Examples | , | , | |
| Table (equal steps) | constant first differences | constant second differences | constant ratios |
| Graph shape | straight line | parabola, symmetric about its axis | J-shaped curve on one side of an asymptote |
| Turns around? | never | once, at the vertex | never |
| Asymptote? | none | none | horizontal, y = c |
| Long run (growing) | grows by a fixed amount | grows by an increasing amount | grows by a fixed factor: fastest |
Real data: approximately exponential
Real measurements contain noise, so the ratios of genuinely exponential data will not match exactly. A bacteria culture counted every hour gave The ratios are about . They wobble, but they wobble around one value, with no upward or downward trend, which is what exponential data with measurement error looks like. Compare a quadratic: gives ratios , which drift steadily toward 1. A steady drift is a pattern, not noise, and it says "not exponential". In the same way, look at all three tests and ask which one is closest to constant: here the first differences and the second differences both keep climbing, so exponential is the clear best choice.
Which grows fastest in the long run?
Any exponential with eventually passes any linear or quadratic function, however large their coefficients. The ratio test explains why. Each step right multiplies by 2, always. Each step multiplies by , which is 1.21 at , about 1.14 at , and keeps shrinking toward 1. A fixed factor of 2 beats a factor that is sinking toward 1, so the exponential must catch up and then pull away. Concretely, is far behind at first ( against ), but it first passes at and at , and never falls behind again. The same reasoning ranks a quadratic ahead of a linear function in the long run: passes for every . A decaying exponential () is the exception: it heads toward its asymptote and is eventually passed by any increasing line.