Straight-Line Graphs

Grade 4

The equation of a straight line

Every straight line (that is not vertical) has the equation y = mx + c, where m is the gradient (steepness) and c is the y-intercept (where the line crosses the y-axis).

To draw the line: plot the y-intercept at (0, c), then use the gradient to find a second point — go 1 across, m up — and draw through both.

Finding the gradient

gradient = rise / run = (y₂ − y₁) / (x₂ − x₁)

Pick any two points on the line. Divide the vertical change by the horizontal change. A positive gradient goes up left-to-right; a negative gradient goes down.

Worked example — find the equation from two points

EXAMPLE
Find the equation of the line through (1, 3) and (4, 9).
Gradient: (9 − 3) / (4 − 1) = 6/3 = 2. Use y = 2x + c. Substitute (1, 3): 3 = 2(1) + c, so c = 1. Equation: y = 2x + 1.

Parallel and perpendicular lines

Parallel lines have the same gradient. Perpendicular lines have gradients that multiply to −1 — so the perpendicular gradient is the negative reciprocal: if m = 3, the perpendicular gradient is −1/3.

To find the perpendicular gradient: flip the fraction and change the sign. Gradient 2 → perpendicular is −1/2.
Nova
Try this one

A straight line passes through the point \((0, 4)\) and has gradient \(2\).

xy012-1-2123-1-2(0, 4)Not drawn accurately

(a) Write down the equation of the line. [1]

(b) Another line is parallel to this line and passes through the point \((0, -1)\). Write down the equation of this second line. [1]

(c) Do the two lines ever meet? Give a reason for your answer. [1]

Nova's hint:

This question uses the straight-line equation \(y = mx + c\) and the idea of parallel lines.

Ask yourself: 'If two lines are parallel, what do they have in common — and what is different about them?' Remember that \(m\) is the gradient and \(c\) is where the line meets the y-axis.

Try to Solve it with Nova?