How to plot straight line graphs

Part of MathsAlgebra

Key points about straight line graphs

A pen and a piece of paper with question marks on it.
  • Coordinates such as (3, 8) have an 𝑥-coordinate (3) and 𝑦-coordinate (8) to show how far a point has moved horizontally and vertically from the .

  • Straight line graphs are represented by such as 𝑥 = 2, 𝑦 = 3𝑥 + 7 or 𝑥 + 2y = 10. The 𝑥 and 𝑦 in the equation relate to the 𝑥 and 𝑦 coordinates.

  • ​​​To help draw a straight line graph from its equation, fill in a table of 𝑥 and 𝑦 values. Plot the pairs of values as coordinates and join to make a line.​​

​​​​​​Make sure you are confident with ​substituting values into expressions and solving equations​ to understand how to plot straight line graphs.​

Back to top

Video – Straight line graphs

Watch this video to find out how the equation 𝑦 = 𝑚𝑥 + 𝑐 can be used to work out the gradient and 𝑦-intercept on a straight line graph.

Back to top

Check your understanding

Back to top

Plotting straight line graphs

  • Coordinates are points that are written in the form (𝑥, 𝑦). They can be plotted on a set of where (0, 0) is the .

  • Some straight line graphs are represented by equations with one , such as 𝑥 = 3 or 𝑦 = 1. Their graphs are either or .

  • A straight line graph with two variables is represented by an equation such as 𝑦 = 3𝑥 – 7. The equation shows the link between the 𝑥 and 𝑦-coordinates.

  • To plot a graph from its equation, substitute different values of 𝑥 into the equation to give the corresponding 𝑦-coordinates. The pairs of 𝑥 and 𝑦 values can be recorded in a table.

Follow the working out below

GCSE exam-style questions

  1. Complete the table for 𝑦 = 3𝑥 − 2.
     
x:-3,-2,-1,0,1,2. y:_, -8, _, -2, _, 4.

  1. Use the table of values to write five coordinates that would exist on the line ​𝑦 = 3𝑥 − 2​.​​ ​
x: –2, y: –8. x: –1, y: –5. x: 0, y: –2. x: 1, y:1. x: 2, y:4.

Back to top

Plotting more complex straight line graphs

The equations of some straight line graphs contain a negative of 𝑥, such as 𝑦 = 5 − 3𝑥.

When filling in a table of values for 𝑥 and 𝑦, the of 𝑥 values leads to calculations with negative numbers.

Remember

     

Remember:

Subtracting a negative value gives the same result as adding. For example:

3 − −2
= 3 + 2
= 5

To draw the equation of a line that does not begin with “𝑦 =”, such as in the example 2𝑥 + 3𝑦 = 12, the table of values can be reduced to two pairs of values.

One set of values is the point where 𝑥 = 0, and the other is where 𝑦 = 0.

To draw the equation of the line, plot these two points on a set of axes and draw a line between them.

Follow the working out below

GCSE exam-style questions

  1. Complete the table for 𝑦 = 5 − 3𝑥.
x:-2,-1,0,1,2. y: 11,_,5,_,-1.

  1. At which two coordinates would the line 𝑥 − 2𝑦 = 4 cross the 𝑥 and 𝑦-axis?

Back to top

Quiz – Plotting straight line graphs

Practise what you have learned about plotting straight line graphs with this quiz.

Now that you have revised how to plot straight line graphs, why not try taking a look at equations of parallel and perpendicular lines?

Back to top