Mathematics · IGCSE 0580 · §3.1–3.7

Coordinate Geometry

Every straight line reduces to a handful of numbers — a gradient, an intercept, a midpoint — and Cambridge expects you to move between them fluently.

Mathematics · 0580 Extended Topic 6 of 12

Coordinates and gradient

x y run rise A B M perpendicular
FIG 3.0 A line's gradient, its midpoint, and its perpendicular bisector — the three ideas this chapter builds outward from.

Every point is fixed by two numbers, and every straight line reduces to two more: how steeply it climbs, and where it crosses the axes.

Definition
Cartesian coordinates and gradient
An ordered pair (x, y) fixes a point's position relative to the origin (0, 0), where the axes cross. A line's gradient measures its steepness: how much y increases for every 1 unit increase in x.

Coordinates and straight-line graphs

A point is written as an ordered pair (x, y). A straight-line graph is usually given as an equation — most often y = mx + c, where m is the gradient and c is the y-intercept.

Finding the gradient

The gradient of a line joining two points is the change in y divided by the change in x: m = (y₂ − y₁) / (x₂ − x₁). Mixing up the order of subtraction is the most common mistake.

x y run rise P₁ P₂
FIG 3.1 The gradient of a line is its rise divided by its run.

Worked example: a line passes through (1, 3) and (5, 11). m = (11 − 3) ÷ (5 − 1) = 8 ÷ 4 = 2 — the line climbs 2 units for every 1 unit moved right.

Examiner note
State coordinates and equations in exactly the form the question asks for — y = mx + c and ax + by = c are not interchangeable once a question specifies one.
Why this matters
A road sign showing a percentage gradient is describing exactly this ratio — rise divided by run.

Length and midpoint

Length and midpoint both start from the same two coordinates — one measures the distance between them, the other finds the point exactly between them.

Definition
Midpoint and length
The midpoint of a line segment is the average of the endpoints’ x-coordinates, and the average of their y-coordinates. The length of a segment is the straight-line distance between two coordinates, found using Pythagoras’ theorem on the horizontal and vertical differences.

Length of a line segment

The segment is the hypotenuse of a right triangle formed by the horizontal and vertical differences between its endpoints: d = √[(x₂ − x₁)² + (y₂ − y₁)²].

x y A B M
FIG 3.2 AB is the hypotenuse of a right triangle; M is the midpoint of AB.

Midpoint of a line segment

The midpoint is the average of the two x-coordinates, and the average of the two y-coordinates: ( (x₁ + x₂)/2 , (y₁ + y₂)/2 ).

Worked example: A(−2, 3) and B(4, −5) are the endpoints of a segment. AB = √[(4 − (−2))² + (−5 − 3)²] = √(6² + (−8)²) = √(36 + 64) = √100 = 10. Midpoint = ( (−2 + 4)/2 , (3 + (−5))/2 ) = (1, −1). Bracketing negative coordinates before subtracting keeps both calculations sign-safe.

Examiner note
Bracket negative coordinates before subtracting — (−3) − (2) is a common sign slip that costs the accuracy mark.
Why this matters
GPS and mapping software use exactly this formula to find the halfway meeting point between two locations.

Equations of a line

Once two points — or a gradient and a point — are known, the equation of the line through them is fully determined. Cambridge always wants that equation fully simplified, in the form the question specifies.

Definition
y-intercept and linear equation
The y-intercept is the value of y where a line crosses the y-axis — the point where x = 0. A linear equation is an equation whose graph is a straight line; x and y each appear only to the power 1.

Finding an equation from two points

Find the gradient first, then substitute one point into y = mx + c to find c. Worked example: a line through (−1, −2) and (3, 6). m = (6 − (−2)) ÷ (3 − (−1)) = 8 ÷ 4 = 2. Substituting (3, 6) into y = 2x + c gives c = 0, so y = 2x. Writing c = 0 explicitly avoids the common slip of dropping the constant term altogether.

ExtendedReading a gradient and intercept from ax + by = c

This form hides m and c until it is rearranged. Worked example: find the gradient and y-intercept of 5x + 4y = 8. Rearranging: 4y = −5x + 8, so y = −5/4 x + 2. The rearranged form now matches y = mx + c directly: m = −5/4, c = 2.

Examiner note
The syllabus requires the equation in fully simplified form — 2y = 4x + 6 will not earn the final mark if y = 2x + 3 is expected.
Why this matters
A fixed call-out charge plus a per-minute rate is a straight line: total cost = rate × minutes + fixed fee.

Parallel and perpendicular lines

Equal gradients mean parallel; gradients multiplying to −1 mean perpendicular: m₁ = m₂ for parallel lines, and m₁ × m₂ = −1 for perpendicular lines.

Definition
Parallel and perpendicular lines
Parallel lines never meet — they have exactly the same gradient. Perpendicular lines cross at a right angle; a perpendicular bisector crosses a segment at its midpoint, at a right angle.
P line parallel perpendicular
FIG 3.3 Parallel lines share a gradient; perpendicular gradients multiply to −1.

Parallel lines

A parallel line has the same gradient — only the y-intercept differs. Worked example: the line parallel to y = 3x − 2 through (2, 5) has m = 3; substituting gives 5 = 3(2) + c, so c = −1, and the line is y = 3x − 1.

Perpendicular lines and the perpendicular bisector

A perpendicular gradient is the negative reciprocal of the original. Worked example: the perpendicular bisector of the segment joining (−3, 8) and (9, −2). Midpoint M = (3, 3). Gradient of the segment m = (−2 − 8) ÷ (9 − (−3)) = −10 ÷ 12 = −5/6, so the perpendicular gradient is 6/5. Substituting M into y = (6/5)x + c: 3 = (6/5)(3) + c, so c = −3/5, giving y = (6/5)x − 3/5.

Examiner note
A perpendicular gradient needs both steps — invert the fraction, then change its sign. Doing only one is a common half-mark error.
Why this matters
Perpendicular lines are the basis of squared-off design — a building's right-angled walls rely on this relationship.

Exam advice

Common mistakes

Subtracting coordinates in the wrong order
Mixing an x-difference with a y-difference, or reversing the point order, flips the sign of the gradient and loses the accuracy mark.
Leaving the equation of a line unsimplified
2y = 4x + 6 is not accepted where y = 2x + 3 is expected — the syllabus requires the fully simplified form.
Finding the reciprocal of a gradient but forgetting to negate it
A perpendicular gradient needs both steps — invert the fraction, then change its sign — not just one.
Skipping the midpoint step in a perpendicular bisector question
Substituting one of the original endpoints instead of the midpoint gives the wrong line entirely.
Sign errors when substituting negative coordinates
Bracketing each coordinate before subtracting avoids losing a negative sign midway through the calculation.

Model answer

Find the equation of the straight line that passes through the points (2, 0) and (0, 4). Give your answer in the form y = mx + c.
[3 marks]
m
Uses a valid method to find the gradient
m = (0 − 4) ÷ (2 − 0) = −2
c
Uses the y-intercept given by the point (0, 4)
Substituting into y = mx + c gives c = 4.
ans
States the fully combined equation
y = −2x + 4

Recall checklist

  • State the gradient formula for a line joining two points.
  • Calculate the gradient of a line from two given coordinates.
  • Calculate the length of a line segment joining two points.
  • Calculate the midpoint of a line segment.
  • State the equation of a straight line in the form y = mx + c.
  • Find the equation of a line parallel to a given line through a given point.
  • Explain the gradient relationship between two perpendicular lines.
  • Find the equation of the perpendicular bisector of a line segment.

Every Mathematics topic, in one PDF you keep

Print it, write on it, revise with no wifi and no ads. One payment — not a subscription.

Get the Mathematics PDF

Ready to test this topic? Practise with Mathematics past papers and mark schemes →