Open Mathhh

Distance between points and gradient of a line

Level 15: Coordinate Geometry and Trigonometry · worksheets 1 to 20 · 3 min read

I can

  • find the distance between two points, also in simplest surd form
  • find the midpoint of two points
  • find the slope of a line from two points or from its equation
  • write the equation of a line from a point and a slope

Key idea

For points A(x₁, y₁) and B(x₂, y₂):

  • the distance is √((x₂ − x₁)² + (y₂ − y₁)²)
  • the midpoint is the average of each coordinate: ((x₁ + x₂)/2, (y₁ + y₂)/2)
  • the slope is (y₂ − y₁)/(x₂ − x₁)

For a line ax + by + c = 0, the slope is −a/b. A line through (p, q) with slope m is y − q = m(x − p). Write the answer as y = something.

A surd answer such as 4√2 can be typed as 4sqrt(2). Give a fraction as 3/10 and a point as (x, y).

Worked examples

Example 1: distance between A(2, 1) and B(5, 5)

Watch it: distance between A(2, 1) and B(5, 5), step by step:

  1. Find the horizontal and vertical differences.
  2. Distance = √(3² + 4²) = √25 = 5.
  3. The distance is 5.
  4. A right triangle with sides 3 and 4 has hypotenuse 5.
  1. Differences: 5 − 2 = 3 and 5 − 1 = 4.
  2. Distance = √(3² + 4²) = √25.

Distance = 5

Example 2: distance and midpoint of A(0, 2) and B(4, 6)

Watch it: distance and midpoint of A(0, 2) and B(4, 6), step by step:

  1. 6 − 2 = 4 and 4 − 0 = 4.
  2. Distance = √(4² + 4²) = √32.
  3. 32 = 16 × 2, and 16 is a square.
  4. √16 = 4, so the distance is 4√2.
  5. Average the x values and the y values.
  6. Both answers.
  7. The midpoint (2, 4) is halfway along AB.
  1. Differences are 4 and 4, so the distance is √(16 + 16) = √32.
  2. √32 = √16 × √2 = 4√2.
  3. Midpoint: (0 + 4)/2 = 2 and (2 + 6)/2 = 4.

Distance = 4√2, midpoint = (2, 4)

Example 3: slope of 3x − 6y − 5 = 0, then a line

Watch it: slope of 3x − 6y − 5 = 0, then a line through (2, 3), step by step:

  1. For ax + by + c = 0, the slope is −a/b.
  2. −3 ÷ (−6) = 1/2.
  3. Use y − y₁ = m(x − x₁).
  4. Put in the point (2, 3) and the slope 2.
  5. Expand the bracket.
  6. −4 + 3 = −1.
  1. Slope = −a/b = −3/(−6) = 1/2.
  2. A different line goes through (2, 3) with slope 2: y − 3 = 2(x − 2).
  3. y = 2x − 4 + 3.

Slope = 1/2, and the second line is y = 2x − 1

Try it

Find the distance between A(1, 2) and B(4, 6).
Show answer5
Find the midpoint of A(2, −1) and B(6, 5).
Show answer(4, 2)
Find the slope of the line through (1, 1) and (5, 9).
Show answer2
Find the slope of the line 2x + 4y − 7 = 0.
Show answer-1/2
Find the equation of the line through (1, 2) with slope 3. y =
Show answer3x - 1

Common mistakes

  • Forgetting the square root. The distance is √25 = 5, not 25.
  • Mixing the order in the slope. Use y-change over x-change, and subtract in the same order on top and bottom.
  • Using a/b for the slope of ax + by + c = 0. It is −a/b.

Remember

  • Distance uses Pythagoras. Midpoint is the average. Slope is rise over run.
  • Simplify surds by taking out square factors, for example √32 = 4√2.

Practise this

Worksheets 1 to 20 of Level 15 practise this note. Sign in to Mathhh, write your answers by hand and see your marks straight away.

Open Mathhh

More Level 15 notes

Keep learning

All Level 15 notes · All study notes