Coordinates and straight-line graphs

Maths · Algebra. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Maths topics

The idea

A straight-line graph is fixed by two things: how steep it is and where it crosses the y-axis. In y = mx + c, m is the gradient and c is the y-intercept. The gradient is how far the line goes up for each 1 unit across; a negative gradient slopes down from left to right.

You can read m and c only when the equation is in the form y = ..., so rearrange first.

Parallel lines have the same gradient. Perpendicular lines meet at 90° and their gradients multiply to −1. For two points you can also find the midpoint (average the coordinates) and the distance between them (Pythagoras).

Rules to remember

Common mistake

Reading the gradient before rearranging. For 2y = 6x + 8 the gradient is 3, not 6, because the equation must first be divided by 2 to give y = 3x + 4.

Worked example

Find the equation of the straight line through (−1, 8) and (3, −4).

  1. Gradient: m = (−4 − 8)/(3 − (−1)) = −12/4 = −3.
  2. Put (−1, 8) into y = −3x + c: 8 = −3 × (−1) + c = 3 + c, so c = 5.
  3. Check with (3, −4): −3 × 3 + 5 = −4.

Answer: y = −3x + 5

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Keep going

← Formulae, identities, proof and functionsQuadratic and other graphs →Take a Maths test