14.3 Graphing linear functions — Learn
Prerequisites: finding the output of a function from Section 14.2, and the order of operations from Section 1.4.
Objectives: plot points on the coordinate plane; make a table of values for a linear function; draw the graph and join the points with a straight line; read a value from a graph.
By the end of this section, you can draw the graph of a linear function and read values from it.
The coordinate plane
A graph is drawn on a grid with two number lines.
- The horizontal axis runs left to right. It is the -axis.
- The vertical axis runs bottom to top. It is the -axis.
- The two axes cross at the origin, which is the point .
A point is named by an ordered pair . The first number is how far across to go, and the second number is how far up to go.
The point is 3 across and 5 up. The point is on the vertical axis, because it is 0 across.
A table of values
A function gives you the height of the graph at each input. A table of values lists those heights.
Example 1. Make a table of values for for , , and .
| 0 | 1 | |
| 1 | 3 | |
| 2 | 5 | |
| 3 | 7 |
Each row is one point: , , and .
Drawing the graph
Plot the four points on a grid, and then join them with a straight line. Use a ruler, and carry the line on a little past the last point.
Every function of the form has a straight-line graph. The values of and decide where the line sits and how steep it is.
- The line crosses the vertical axis at the value , which is the output for .
- The number in front of decides the steepness. Each step of 1 to the right changes by .
For , the line crosses the vertical axis at 1, and each step of 1 to the right raises the line by 2.
Going up and going down
The sign of decides the direction.
- When is positive, the line goes up as you move to the right.
- When is negative, the line goes down as you move to the right.
Example 2. Make a table for for , , and .
| 0 | 3 | |
| 1 | 2 | |
| 2 | 1 | |
| 3 | 0 |
The values go down by 1 each time, so the line falls to the right. It crosses the vertical axis at 3.
Reading a value from the graph
A graph answers two kinds of question.
- Given , find : start on the horizontal axis, go up to the line, then across to the vertical axis.
- Given , find : start on the vertical axis, go across to the line, then down to the horizontal axis.
Example 3. The graph of is a straight line. Find the input that gives the output 7.
Solve . Subtract 1 to get , and divide by 2.
The point is on the line.
The garden bed: the fenced length
The fenced length of the garden bed is a function of the width.
Example 4. Make a table for for , , , , , and .
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | |
|---|---|---|---|---|---|---|---|
| 12 | 10 | 8 | 6 | 4 | 2 | 0 |
Plot the points and join them with a straight line. The line starts at and goes down to . It falls by 2 for each step of 1 to the right, because the two widths take 2 m of fence for each extra metre of width.
Example 5. Use the table or the graph to find the fenced length when the width is 4 m.
The fenced length is 4 m. On the graph this is the point .
Progress check
Return to the chapter problem. The fenced length of the garden bed is metres.
- Copy and complete the table for , , and .
- Plot the points and draw the line.
- Use the graph to find the fenced length when the width is 3 m.
- Use the graph to find the width that leaves a fenced length of 0 m.
In Section 14.4 you will graph the area of the bed, which is a curve rather than a line.
You should now be able to
- plot a point on the coordinate plane;
- make a table of values for a linear function;
- draw the graph of a linear function as a straight line;
- read a value of or of from the graph;
- explain what the number in front of does to the line.