You start a summer job and save 25 dollars every week. After 1, 2, 3 and 4 weeks you have 25, 50, 75 and 100 dollars: the total goes up by the same amount each week. Meanwhile a friend posts a video that gets 100 views on day 1, and the number of views doubles every day: 100, 200, 400, 800, 1600. Here the jumps get bigger and bigger. Both situations connect two quantities (time and money, time and views), so both are relations. The first is a linear relation, and its graph is a straight line. The second is non-linear, and its graph curves upward. In this lesson you will learn a quick test, called first differences, that tells the two kinds apart from a table of values, and you will see why the difference matters when you try to predict what happens next.
Relations, variables and tables of values
A relation is a connection between two variables. You can describe it in words, with a table of values, with a graph, or with an equation. The independent variable is the one you choose or that changes on its own, such as time or the stage number of a pattern. It is usually called and goes on the horizontal axis. The dependent variable is the one that depends on it, such as money saved or number of tiles. It is usually called and goes on the vertical axis. A table of values lists matching pairs: each row is one ordered pair and one point on the graph.
First differences
When the -values in a table go up by equal steps (most often by 1), subtract each -value from the next one. These results are the first differences. If every first difference is the same number, the relation is linear: each equal step to the right gives the same rise or fall, so the points line up in a straight line. If the first differences are not all the same, the relation is non-linear and its graph curves. For the -values have first differences . For the -values have first differences , which keep changing.
Shapes of graphs
| What the table shows (equal x-steps) | Type of relation | Shape of the graph |
|---|---|---|
| Same positive first difference, e.g. +4, +4, +4 | Linear, growing | Straight line rising from left to right |
| Same negative first difference, e.g. −3, −3, −3 | Linear, shrinking | Straight line falling from left to right |
| First differences all 0, e.g. 6, 6, 6, 6 | Linear, constant | Horizontal straight line |
| First differences change, e.g. +1, +3, +5, +7 | Non-linear | A curve |
| Each y is the previous y times 2, e.g. 3, 6, 12, 24 | Non-linear, growing faster and faster | A curve that gets steeper |
| Each y is half the previous y, e.g. 64, 32, 16, 8 | Non-linear, shrinking more and more slowly | A curve that flattens out |
Growing and shrinking patterns
Patterns can grow or shrink, and either way they can be linear or not. A tile pattern with 5, 9, 13, 17 tiles in stages 1 to 4 grows by 4 tiles each stage: linear and growing. A 24 cm candle that burns down 3 cm every hour has heights 24, 21, 18, 15: first differences of , so it is linear and shrinking. A square patio that is 1, 2, 3, 4 tiles wide needs 1, 4, 9, 16 tiles: first differences 3, 5, 7, so it is non-linear. A ball dropped from 160 cm that bounces back to half its height each time reaches 80, 40, 20, 10 cm: first differences , so it is non-linear and shrinking. One more detail: a pattern with stage numbers only has whole-number stages (there is no stage 2.5), so you plot separate points. Time, distance and volume can take any value in between, so for them you join the points with a line or curve.
- Graph is a straight line
- Equal x-steps give equal first differences
- Changes by adding the same amount each step
- Equation looks like (no , no in an exponent)
- Graph is a curve
- Equal x-steps give first differences that change
- Change speeds up or slows down
- Equations such as or
Why does this matter? For a linear relation you can predict by adding the same first difference again and again: savings after 10 weeks are dollars. For a non-linear relation that shortcut fails badly. The video's views go up by 100 from day 1 to day 2, but on day 10 the views are , not the 1000 you would get by adding 100 per day. Deciding linear or non-linear first tells you which kind of rule to look for.