Draw straight-line graphs, find gradients and equations of lines, and work with parallel and perpendicular lines, lengths and midpoints.
Original learning companion
Original companion for selected outcomes of Cambridge IGCSE Mathematics (0580) syllabus topics 3.1–3.7 (Coordinate geometry): coordinates, straight-line graphs and gradient; equations of lines with parallel lines; and (Extended) length, midpoint and perpendicular lines. It is not a Cambridge publication and does not replace the syllabus or an endorsed textbook.
Watch: Coordinate geometry in three lessons
Silent animation. The same steps are explained in the lessons below.
Another tab updated this learning space. Your current work has not overwritten it.
Concept animations
Graph of a linear equation · Lesson 1Slope of a line · Lesson 1, 2, 3Equation of a straight line · Lesson 2Distance formula · Lesson 3Section and midpoint formula · Lesson 3
Silent animations of one idea each. An animation is shared by every lesson that teaches the idea.
Solution animations
Every problem of this chapter, solved step by step. Try the problem first, then watch.
Lesson 1 · Coordinates, straight-line graphs and gradient (9)
Lesson 2 · Equations of straight lines and parallel lines (9)
Lesson 3 · Length, midpoint and perpendicular lines (Extended) (9)
Read all lessons
These explanations remain available without JavaScript. The separate learner and solution pages can be printed on A4.
LESSON 1
Coordinates, straight-line graphs and gradient
Plot points, draw straight-line graphs from a table of values and find the gradient of a line, including from two points (Extended).
Graph of a linear equationSlope of a line
The point (3, −2) is 3 units right of the origin and 2 units down.
Drawing a straight-line graph
Make a table for y = 2x − 1: x = −1, 0, 1, 2, 3 gives y = −3, −1, 1, 3, 5. Plot the points and join them with a ruler. If one point is off the line, recheck its working.
Gradient as rise over run
Pick two points on the line, such as (1, 1) and (3, 5). The rise is 5 − 1 = 4 and the run is 3 − 1 = 2, so the gradient is 4 ÷ 2 = 2. For every 1 step right, the line goes up 2.
Negative gradients
A line that goes down from left to right has a negative gradient. y = 6 − 2x passes through (0, 6) and (3, 0): rise −6, run 3, gradient −6 ÷ 3 = −2.
Gradient from two points (Extended)
Use gradient = (y₂ − y₁) ÷ (x₂ − x₁). For (−2, 5) and (4, −1): (−1 − 5) ÷ (4 − (−2)) = −6 ÷ 6 = −1. Keep the points in the same order on the top and the bottom.
Worked example: A wheelchair ramp rises 1.2 m over a horizontal distance of 4.8 m. Its gradient is 1.2 ÷ 4.8 = 0.25, so it rises 25 cm for every metre across.
Watch for this: Gradient is rise ÷ run, not run ÷ rise. A line through (1, 1) and (3, 5) has gradient 4 ÷ 2 = 2, not 2 ÷ 4 = 0.5.
Discuss: Discuss what the gradient of a horizontal line is, and why a vertical line such as x = 3 cannot be given a gradient.
LESSON 2
Equations of straight lines and parallel lines
Read the gradient and y-intercept from y = mx + c, find the equation of a line and of a line parallel to it (Extended: lines in the form ax + by = c).
Slope of a lineEquation of a straight line
Substituting x = 2 into y = 4x − 3 gives y = 5.
Reading m and c
In y = 3x − 4 the gradient is m = 3 and the y-intercept is c = −4, so the line crosses the y-axis at (0, −4). Vertical lines have equations like x = 2; horizontal lines like y = 5.
Rearranging to y = mx + c (Extended)
To read m and c from 3x + 2y = 12, make y the subject: 2y = −3x + 12, so y = −1.5x + 6. The gradient is −1.5 and the y-intercept is 6.
Equation through two points
For the line through (1, 5) and (3, 11): m = (11 − 5) ÷ (3 − 1) = 3. Substitute (1, 5) into y = 3x + c: 5 = 3 + c, so c = 2. The equation is y = 3x + 2. Check (3, 11): 9 + 2 = 11.
Parallel lines
Parallel lines have the same gradient. For the line parallel to y = 2x + 7 through (3, 1): m = 2, so 1 = 2 × 3 + c and c = −5. The equation is y = 2x − 5.
Worked example: Extended: find the gradient and y-intercept of 2x − 5y = 15. Rearrange: −5y = −2x + 15, so y = 0.4x − 3. The gradient is 0.4 (or 2/5) and the y-intercept is −3.
Watch for this: c is where the line crosses the y-axis, not the x-axis. y = 3x − 4 crosses the y-axis at (0, −4) but the x-axis at (4/3, 0).
Discuss: Discuss why the lines y = 2x + 1 and 4x − 2y = 6 never meet, and how rearranging the second one shows this.
LESSON 3
Length, midpoint and perpendicular lines (Extended)
Extended: find the length and midpoint of a line segment and the equation of a perpendicular line or perpendicular bisector.
Distance formulaSlope of a line
Pythagoras: a right-angled triangle with shorter sides 6 and 8 has hypotenuse √(36 + 64) = 10.
Length of a segment
From (1, 2) to (7, 10) the across distance is 7 − 1 = 6 and the up distance is 10 − 2 = 8. By Pythagoras the length is √(6² + 8²) = √100 = 10.
Midpoint of a segment
Average the x-coordinates and the y-coordinates. The midpoint of (1, 2) and (7, 10) is ((1 + 7)/2, (2 + 10)/2) = (4, 6).
Perpendicular gradients
If two lines are perpendicular, their gradients multiply to −1, so turn the gradient upside down and change its sign. Perpendicular to y = 2x + 3 the gradient is −½. Perpendicular to a gradient of 4/3 it is −3/4.
Perpendicular bisector
For (1, 2) and (7, 10): midpoint (4, 6), segment gradient 8/6 = 4/3, so the bisector's gradient is −3/4. Then 6 = −¾ × 4 + c gives c = 9: y = −¾x + 9.
Worked example: Is the triangle A(0, 0), B(4, 2), C(2, 6) right-angled at B? Gradient AB = 2/4 = ½ and gradient BC = (6 − 2)/(2 − 4) = −2. Since ½ × (−2) = −1, AB is perpendicular to BC, so the angle at B is 90°. Check: AB² + BC² = 20 + 20 = 40 = AC².
Watch for this: The perpendicular gradient is the negative reciprocal, not just the negative. Perpendicular to gradient 2 is −½, not −2; check that 2 × (−½) = −1.
Discuss: Discuss why every point on the perpendicular bisector of AB is the same distance from A as from B, and how this could locate a mobile tower equally far from two villages.
Original companion for selected outcomes of Cambridge IGCSE Mathematics (0580) syllabus topics 3.1–3.7 (Coordinate geometry): coordinates, straight-line graphs and gradient; equations of lines with parallel lines; and (Extended) length, midpoint and perpendicular lines. It is not a Cambridge publication and does not replace the syllabus or an endorsed textbook.
Original HelioLearn teaching and questions, aligned to the listed Cambridge topics. It is not an official publication of the board or a textbook solution bank. Independent teacher review is pending.