Coordinate geometry

Coordinate geometry uses algebra to describe lines and circles. With the coordinates of points you can find gradients, midpoints and distances, write equations of lines, and spot parallel and perpendicular lines and circles.

Key facts

  • Gradient m = (y₂ − y₁)/(x₂ − x₁); a straight line is y = mx + c.
  • Parallel lines have equal gradients; perpendicular gradients multiply to −1.
  • Midpoint ((x₁ + x₂)/2, (y₁ + y₂)/2); distance √((x₂ − x₁)² + (y₂ − y₁)²).
  • Circle with centre (a, b) and radius r: (x − a)² + (y − b)² = r².
  • A tangent to a circle is perpendicular to the radius at that point.

Worked examples

Example 1

Find the equation of the line through (1, 3) and (4, 9).

  1. Go across from the first point to below the second: 3 across. 4 − 1 = 3
  2. Then up: 6. 9 − 3 = 6
  3. Gradient = up ÷ across. m = 6 ÷ 3 = 2
  4. Put (1, 3) into y = 2x + c to find where it crosses the y-axis. 3 = 2 + c, so c = 1
  5. Equation: y = 2x + 1

Answer: y = 2x + 1

Example 2

Find the equation of the line perpendicular to y = 3x − 2 that passes through (6, 1).

  1. Perpendicular gradients multiply to −1. Flip 3 and change its sign. m = −1/3
  2. Put (6, 1) into y = −(1/3)x + c. 1 = −2 + c, so c = 3
  3. The lines meet at right angles. y = −(1/3)x + 3

Answer: y = −(1/3)x + 3

Example 3

Find the centre and radius of the circle x² + y² − 6x + 4y − 12 = 0.

  1. Group the x terms and the y terms. (x² − 6x) + (y² + 4y) = 12
  2. Complete each square. (x − 3)² − 9 + (y + 2)² − 4 = 12
  3. Tidy up into (x − a)² + (y − b)² = r². (x − 3)² + (y + 2)² = 25
  4. Read off the centre and the radius. centre (3, −2), radius √25 = 5

Answer: Centre (3, −2), radius 5

Example 4

A is (−1, 2) and B is (5, 10). Find the midpoint and the length of AB.

  1. Average the coordinates for the midpoint. ((−1 + 5)/2, (2 + 10)/2) = (2, 6)
  2. Use Pythagoras for the length. √(6² + 8²) = 10

Answer: Midpoint (2, 6), length 10

Example 5

Show that the lines y = 2x + 1 and x + 2y = 6 are perpendicular.

  1. The first gradient is 2.
  2. Rearrange the second. y = −½x + 3, gradient −½
  3. Multiply the gradients. 2 × (−½) = −1, so they are perpendicular

Answer: Gradients 2 and −½ multiply to −1