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:
- Find the horizontal and vertical differences.
- Distance = √(3² + 4²) = √25 = 5.
- The distance is 5.
- A right triangle with sides 3 and 4 has hypotenuse 5.
- Differences: 5 − 2 = 3 and 5 − 1 = 4.
- 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:
- 6 − 2 = 4 and 4 − 0 = 4.
- Distance = √(4² + 4²) = √32.
- 32 = 16 × 2, and 16 is a square.
- √16 = 4, so the distance is 4√2.
- Average the x values and the y values.
- Both answers.
- The midpoint (2, 4) is halfway along AB.
- Differences are 4 and 4, so the distance is √(16 + 16) = √32.
- √32 = √16 × √2 = 4√2.
- 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:
- For ax + by + c = 0, the slope is −a/b.
- −3 ÷ (−6) = 1/2.
- Use y − y₁ = m(x − x₁).
- Put in the point (2, 3) and the slope 2.
- Expand the bracket.
- −4 + 3 = −1.
- Slope = −a/b = −3/(−6) = 1/2.
- A different line goes through (2, 3) with slope 2: y − 3 = 2(x − 2).
- y = 2x − 4 + 3.
Slope = 1/2, and the second line is y = 2x − 1
Try it
Show answer
5Show answer
(4, 2)Show answer
2Show answer
-1/2Show answer
3x - 1Common 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