01 · Learn the idea
What makes a function linear
A linear function is a function whose graph is a straight line. Its outputs change at a constant rate: every time the input goes up by 1, the output changes by the same amount.
Take y = 2x + 1. A table of some of its values is x: 0, 1, 2, 3 and y: 1, 3, 5, 7. Each time x goes up by 1, y goes up by 2. Plot those four points and they line up, as the graph shows.
Every linear function can be written in the form y = mx + b, where m and b are fixed numbers. The number m is the rate of change, and b is the value of y when x is 0. In y = 2x + 1, m is 2 and b is 1.
You will meet functions in three forms: an equation, a graph and a table. Each form has its own test for "linear".
- y = 2x + 1
02 · Build understanding
Worked example: testing an equation
An equation is a linear function if it can be written as y = mx + b. Is 3y − 6x = 12 a linear function?
Step 1: Get y alone, so you can compare with y = mx + b. Add 6x to each side: 3y = 6x + 12.
Step 2: Divide every term by 3: y = 2x + 4.
Step 3: Compare. The equation has the form y = mx + b with m = 2 and b = 4, so it is a linear function.
Step 4: Check with a point. If x = 1, then y = 2(1) + 4 = 6. In the original equation, 3(6) − 6(1) = 18 − 6 = 12, which is true.
Some linear equations don’t look like y = mx + b at first. y = 4 − 3x is linear, with m = −3 and b = 4. y = x/2 is linear, with m = 1/2 and b = 0. y = 5 is linear, with m = 0 and b = 5: its graph is a flat line.
An equation is not linear when x is squared or cubed, as in y = x² or y = x³, or when x is in a denominator, as in y = 6/x. None of those can be rewritten as y = mx + b.
03 · Build understanding
Testing a graph
A function is linear when its graph is a straight line that is not vertical. Lay a ruler along it: if the whole graph follows the ruler’s edge, the function is linear.
The graph here shows two functions. The straight one is y = −x + 2, and it is linear. The curved one is y = x² − 3. It bends, so it is not linear, even though it is a function.
A straight line can rise, fall or be flat and still be linear. A vertical line is different. On a vertical line one x-value is paired with every y-value, so a vertical line is not a function at all, and it can’t be a linear function.
- y = −x + 2
- y = x² − 3
04 · Build understanding
Worked example: a table with equal steps
A table shows x: 1, 2, 3, 4 and y: 9, 6, 3, 0. Could it represent a linear function?
Step 1: Check the inputs. They go up by 1 each time, and none repeats.
Step 2: Find the change in y from each row to the next. 6 − 9 = −3, 3 − 6 = −3 and 0 − 3 = −3.
Step 3: Decide. When the x-steps are equal and the y-steps are equal, the rate of change is constant. Here it is −3 for each step of 1, so the table could represent a linear function.
Step 4: Check with a rule. The rule y = −3x + 12 fits every row: for x = 1 it gives 9 and for x = 4 it gives 0.
The answer says "could" because a table shows only a few points. These four points fit a line, but the table can’t tell you what happens between them or beyond them.
05 · Build understanding
Worked example: a table with unequal steps
A plumber’s bills are shown in a table. Hours worked: 1, 3, 4, 8. Bill in dollars: 95, 185, 230, 410. Could the bill be a linear function of the hours?
Step 1: Notice that the hours go up by 2, then 1, then 4. The steps are unequal, so comparing the changes in the bill alone won’t work. You need the rate of change: change in dollars divided by change in hours.
Step 2: From 1 hour to 3 hours, the bill changes by 185 − 95 = 90 dollars over 2 hours. 90 ÷ 2 = 45 dollars per hour.
Step 3: From 3 hours to 4 hours, the bill changes by 230 − 185 = 45 dollars over 1 hour. That is 45 dollars per hour.
Step 4: From 4 hours to 8 hours, the bill changes by 410 − 230 = 180 dollars over 4 hours. 180 ÷ 4 = 45 dollars per hour.
Step 5: Decide. The rate is $45 per hour between every pair of rows, so the table could represent a linear function. Check with a rule: 45 dollars per hour plus a $50 visit fee gives 45(1) + 50 = 95 and 45(8) + 50 = 410, which match the first and last rows.
Unequal steps can fool you. In the table x: 1, 2, 4, 8 and y: 5, 8, 11, 14, y goes up by 3 every time, which looks constant. But x goes up by 1, then 2, then 4, so the rates are 3 ÷ 1 = 3, 3 ÷ 2 = 1.5 and 3 ÷ 4 = 0.75. The rate changes, so this table could not represent a linear function.
06 · Build understanding
When a table is not a function at all
Before you test for a constant rate, make sure the table can be a function. Look at x: 2, 3, 3, 5 and y: 7, 9, 11, 13.
The input 3 appears twice, once with the output 9 and once with the output 11. One input has two different outputs, so the table does not determine a function. It can’t represent a linear function, because it does not represent any function.
Notice how easy this is to miss. The y-values go up by 2 each time, so someone who looks only at the y column sees a steady pattern. Always scan the inputs for a repeat first.
07 · Build understanding
Mistakes to watch for
Checking only the y column. If the x-steps are unequal, equal y-steps do not mean a constant rate. Divide each change in y by the matching change in x.
Thinking a linear equation must show both a positive m and a b. y = −0.5x is linear, with m = −0.5 and b = 0. y = 5 is linear, with m = 0. Negative, fraction and zero values of m are all fine.
Calling every function with x and y in it linear. y = x² is a function, but its rate of change is not constant: from x = 0 to 1 it rises 1, and from x = 1 to 2 it rises 3.
Skipping the function check on a table. A repeated input with two different outputs rules out every kind of function, linear or not.
Apply and explain
Your turn
A table shows x: 0, 1, 3, 6 and y: 10, 8, 4, 0. Rhea says it could be linear because y keeps going down by a steady pattern. Decide whether the table could represent a linear function, and show the numbers that prove it.
Use paper or explain your thinking aloud before opening the solution.
Check your reasoning
First, no input repeats, so the table can be a function. The x-steps are 1, 2 and 3, which are unequal, so find each rate of change. From x = 0 to 1, y changes by −2 over 1, a rate of −2. From x = 1 to 3, y changes by −4 over 2, a rate of −2. From x = 3 to 6, y changes by −4 over 3, a rate of −4/3. The rates are not all the same, so the table could not represent a linear function.
- Checks that no input is repeated with a different output.
- Computes all three rates of change using the change in y divided by the change in x.
- Concludes the table is not linear because the last rate, −4/3, differs from −2.
Ready to practice?
Try the questions, get feedback, and review your reasoning.
Is the function linear?: practice →