Junior Cycle Mathematics14.3 Graphing linear functions

All books

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.

A point is named by an ordered pair (x,y)(x,y). The first number is how far across to go, and the second number is how far up to go.

The point (3,5)(3,5) is 3 across and 5 up. The point (0,3)(0,3) 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 y=2x+1y=2x+1 for x=0x=0, 11, 22 and 33.

xx 2x+12x+1 yy
0 2×0+12\times0+1 1
1 2×1+12\times1+1 3
2 2×2+12\times2+1 5
3 2×3+12\times3+1 7

Each row is one point: (0,1)(0,1), (1,3)(1,3), (2,5)(2,5) and (3,7)(3,7).

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 y=mx+cy=mx+c has a straight-line graph. The values of mm and cc decide where the line sits and how steep it is.

For y=2x+1y=2x+1, 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 mm decides the direction.

Example 2. Make a table for y=−x+3y=-x+3 for x=0x=0, 11, 22 and 33.

xx −x+3-x+3 yy
0 −0+3-0+3 3
1 −1+3-1+3 2
2 −2+3-2+3 1
3 −3+3-3+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.

Example 3. The graph of y=2x+1y=2x+1 is a straight line. Find the input that gives the output 7.

Solve 2x+1=72x+1=7. Subtract 1 to get 2x=62x=6, and divide by 2.

x=3x = 3

The point (3,7)(3,7) is on the line.

The garden bed: the fenced length

The fenced length of the garden bed is a function of the width.

L(x)=12−2xL(x) = 12-2x

Example 4. Make a table for L(x)=12−2xL(x)=12-2x for x=0x=0, 11, 22, 33, 44, 55 and 66.

xx 0 1 2 3 4 5 6
L(x)L(x) 12 10 8 6 4 2 0

Plot the points and join them with a straight line. The line starts at (0,12)(0,12) and goes down to (6,0)(6,0). 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.

L(4)=12−2×4=12−8=4L(4) = 12-2\times4 = 12-8 = 4

The fenced length is 4 m. On the graph this is the point (4,4)(4,4).

Progress check

Return to the chapter problem. The fenced length of the garden bed is L(x)=12−2xL(x)=12-2x metres.

  1. Copy and complete the table for x=0x=0, 22, 44 and 66.
  2. Plot the points and draw the line.
  3. Use the graph to find the fenced length when the width is 3 m.
  4. 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

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.