Chapter 11/11.2Foundationabout 5 min
Functions and their graphs
A machine takes a number, multiplies it by 2 and then adds 1. What comes out when you put in 3? When you put in −2? What must you put in to get 15 out?
Out come 7 and −3. To get 15 out, run the machine backwards: take away 1 to get 14, then halve to get 7.
function A function is a rule that gives exactly one output for each input. For example, "multiply by 2 and add 1" is a function: the input 3 gives the output 7.
We usually call the input x and the output y, and write the rule as an equation: y = 2x + 1. A table of values lists some inputs with their outputs. Each pair in the table is a point (x, y), and plotting the points draws the function.
The points lie on a straight line, so we join them with a ruler. The line also gives outputs for inputs not in the table: at x = 1.5 it gives y = 4, and 2 × 1.5 + 1 = 4.
Why a straight line? Look down the table. Each time x goes up by 1, y goes up by 2, because the rule doubles x. So every step of 1 to the right climbs the same height, 2. A path that climbs the same height at every equal step is a straight line, as you saw for direct proportion in Chapter 5.
Sequences are functions. In Chapter 10 the position to term rule Tn = 4n − 1 took a position n and gave a term. That is a function, with n as the input. Plotting the points (1, 3), (2, 7), (3, 11), ... gives points on a straight line, which is why arithmetic sequences are called linear. The common difference, 4, is the climb at each step.
Find the rule for this table: x = 0, 1, 2, 3 gives y = 4, 7, 10, 13.
Lines that are not slanted. All the points with y = 3, such as (−1, 3), (0, 3) and (5, 3), lie on a horizontal line, whose equation is simply y = 3. All the points with x = −2 lie on a vertical line, x = −2. A vertical line is not the graph of a function, because the one input −2 has many outputs.
Check your understanding 11.2
- For y = 5 − 2x, copy and complete the table for x = −1, 0, 1, 2, 3. Plot the points and draw the line.
Show answerHide answer
y = 7, 5, 3, 1, −1. The points lie on a line going down to the right. - A function machine subtracts 4 and then multiplies by 3. What is the output for an input of 10? What input gives an output of 0?
Show answerHide answer
(10 − 4) × 3 = 18. For output 0, the input is 4. - Find the rule for the table x = 0, 1, 2, 3, y = 10, 8, 6, 4.
Show answerHide answer
y = 10 − 2x - Does the point (4, 9) lie on the line y = 3x − 2? Does (−1, −5)?
Show answerHide answer
3 × 4 − 2 = 10, not 9, so (4, 9) is not on it. 3 × (−1) − 2 = −5, so (−1, −5) is on it.
