Emzini weCodeUmhlahlandlelaMathematics 11.2 · Coordinates, Graphs and Functions NoticesAll books

Chapter 11/11.2Foundationabout 5 min

Functions and their graphs

Try this first

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.

Definition

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.

From rule to table to graph: y = 2x + 1The machine, the table and the graph all describe the same rule.1THE MACHINE2THE TABLEinputoutputThe machine doubles theinput, then adds 1.xy−2−3−1−101132537Each input gives one output.Each pair is a point.3THE GRAPH−3−2−11234−4−3−2−1123456780xyEach pair (x, y) in thetable is a point.The points lie on a line.Join them with a ruler.The light lines are atevery half, for readingvalues between thewhole numbers.3× 2+ 17(3, 7)y = 2x + 1
Figure 11.2 A function as a machine, a table and a graph. All three describe the same rule.

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.

Worked example 11.2

Find the rule for this table: x = 0, 1, 2, 3 gives y = 4, 7, 10, 13.

Each step of 1 in x adds 3 to y, so the rule starts "multiply by 3".
At x = 0 the output is 4, so we then add 4.
y = 3x + 4
Check: 3 × 3 + 4 = 13.

Now try one yourself

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

  1. 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.
  2. 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.
  3. Find the rule for the table x = 0, 1, 2, 3, y = 10, 8, 6, 4.
    Show answerHide answer
    y = 10 − 2x
  4. 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.