Functions: Linear vs Nonlinear
A function is a rule that never hesitates — every input produces exactly one output. Whether that rule draws a straight line or a curve changes everything about how it grows.
A rule that never hesitates
Think of a vending machine. You press B4, and every single time it drops the same snack — never sometimes chips and sometimes candy. That reliability is exactly what mathematicians mean by a function: a rule that assigns each input one, and only one, output.
Not every rule behaves this way. “Give me a number whose square is 9” could answer 3 or −3 — two outputs for one input — so that is not a function. A function is stricter: input in, exactly one output out, guaranteed.
Spotting a function in a table or graph
In a table, a rule is a function as long as no input value is listed twice with two different output values. On a graph, there is a quick visual check: the vertical line test. If any vertical line you could draw crosses the graph more than once, some input has two outputs, and the graph is not a function.
- List the inputs: 1, 2, 3, 2.
- The input 2 appears twice — once paired with output 4, once with output 9.
- One input (2) produces two different outputs, which breaks the one−output−per−input rule.
Rate of change: how fast is the output moving?
Once you know a rule is a function, the next question is how it changes. The rate of change compares how much the output changes for a given change in the input — the same idea as slope, applied to any function, not just lines.
- Find the first differences in y: 8 − 5 = 3, then 11 − 8 = 3, then 14 − 11 = 3.
- Every first difference equals 3 — it is constant.
- Constant first differences (with evenly spaced inputs) mean the rule changes by the same amount each step, which is the signature of a linear rule.
- Find the first differences: 4 − 1 = 3, 9 − 4 = 5, 16 − 9 = 7.
- The differences are 3, 5, 7 — not the same value each time.
- Since the first differences are not constant, the output is not changing at a steady rate.
Comparing functions across representations
The same function can be shown four ways: as an equation (a compact rule), a table (specific input−output pairs), a graph (a visual picture), or a verbal description (a sentence). Learning to move between them — and to compare two functions given in different forms, like one as an equation and another as a graph — is a core Grade 8 skill. Whichever form you're given, the fastest way to check linearity is usually the same: look for a constant rate of change.
Reading a graph qualitatively
Not every graph needs numbers to describe. You can often read a story straight from its shape: is the output increasing or decreasing? Is it changing at a constant rate (a straight segment) or a varying rate (a curve)? A car travelling at a steady speed produces a straight, increasing graph of distance over time — equal distances in equal times, so the first differences are constant. A car that is speeding up covers more ground in each successive second, so its distance-time graph bends upward into a curve.
Check your understanding
- A function assigns each input exactly one output; repeated inputs with different outputs break the rule.
- The vertical line test spots non-functions on a graph: a vertical line crossing more than once means one input has two outputs.
- Rate of change compares output change to input change; for a straight line it is the same value everywhere.
- Constant first differences across evenly spaced inputs are the signature of a linear rule; changing differences signal nonlinear.
- The same function can appear as an equation, table, graph, or description — and graphs can be read qualitatively for increasing, decreasing, linear, or nonlinear behaviour without any numbers at all.