3.1–3.3 - Gradients, perpendicular lines and distance

3.1–3.3 - Gradients, perpendicular lines and distance

Measure a line's direction using its gradient and its length using Pythagoras' theorem. In 3.1 you will calculate gradients, in 3.2 you will recognise parallel and perpendicular directions, and in 3.3 you will work out exact distances and use them to check coordinate arguments.

Gradient as a ratio of changes

Do A(−2,1)A(-2,1), B(4,5)B(4,5) and C(6,2)C(6,2) make a right-angled triangle? None of its sides is horizontal or vertical, so a quick look at a sketch may not settle it. By the end you will have two exact ways to check.

A line's direction is described by how much its height changes compared with its horizontal change. Moving 44 units right and 22 units up gives the same direction as moving 88 units right and 44 units up: both rise by 12\frac12 a unit per unit across.

Gradient

The gradient of a non-vertical straight line is its change in yy divided by its change in xx. A positive gradient rises from left to right; a negative gradient falls. For example, a rise of 33 over a horizontal change of 22 gives gradient 32\frac32, not 23\frac23.

Use signed changes rather than just positive lengths. Keep the same point order in the numerator and denominator: going from AA to BB in one must mean going from AA to BB in the other.

Gradient between two points

For distinct points (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2), with x2≠x1x_2\ne x_1,

m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}

A horizontal line has gradient 00. A vertical line has no defined gradient because its horizontal change is 00.
Not on the formulae sheet: learn it.

Here are two lines with the same horizontal change. Only the second point's height will change.

Worked example 1: a positive gradient

Question. Work out the gradient of the line through P(−3,2)P(-3,2) and Q(5,6)Q(5,6).

Plan. Subtract coordinates in the order Q−PQ-P, then divide the vertical change by the horizontal change.

Δy=6−2=4change in heightΔx=5−(−3)=8change acrossm=48=12vertical change over horizontal change\begin{aligned} \Delta y&=6-2=4 && \text{change in height}\\ \Delta x&=5-(-3)=8 && \text{change across}\\ m&=\frac48=\frac12 && \text{vertical change over horizontal change} \end{aligned}

Why this step? Subtracting a negative xx-coordinate adds its distance to the left of zero: the horizontal gap is 88, not 22.

Answer. The gradient is 12\frac12.

Check. Moving 88 units right at 12\frac12 unit up per unit across gives a rise of 44, from 22 to 66.

Worked example 2 changes only QQ's height, from 66 to −2-2. The line now falls as you move right.

Worked example 2: a negative gradient

Question. Work out the gradient of the line through P(−3,2)P(-3,2) and R(5,−2)R(5,-2).

Plan. Use the same point order for both signed changes.

Δy=−2−2=−4a fallΔx=5−(−3)=8a move rightm=−48=−12divide the signed changes\begin{aligned} \Delta y&=-2-2=-4 && \text{a fall}\\ \Delta x&=5-(-3)=8 && \text{a move right}\\ m&=\frac{-4}{8}=-\frac12 && \text{divide the signed changes} \end{aligned}

Why this step? The negative numerator records a fall. Removing that sign would describe a different direction.

Answer. The gradient is −12-\frac12.

Check. Reversing both differences gives 2−(−2)−3−5=4−8=−12\frac{2-(-2)}{-3-5}=\frac4{-8}=-\frac12, the same gradient.

Horizontal and vertical lines need no fraction calculation. Points (−1,4)(-1,4) and (7,4)(7,4) share a height, so their line has gradient 00. Points (2,−3)(2,-3) and (2,6)(2,6) share an xx-coordinate, so their line is vertical and has an undefined gradient.

Watch out

Wrong: m=ΔxΔym=\frac{\Delta x}{\Delta y}, or subtracting in opposite orders above and below. Right: m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}. Give the resulting number as your gradient, rather than a term involving xx.

Now the fall is steeper and the coordinates cross zero in both directions.

Parallel and perpendicular gradients

Parallel lines keep the same direction; perpendicular lines differ by a right-angle turn.

Parallel and perpendicular lines

Distinct parallel lines never meet and have the same direction. Perpendicular lines meet at 90∘90^\circ. For non-vertical lines, equal gradients give parallel directions; equal gradients can also describe the same line, so check that the lines are distinct before calling them parallel.

A right-angle turn exchanges the horizontal and vertical changes and reverses one sign. For example, a move 44 right and 33 up turns into 33 left and 44 up. The gradients are 34\frac34 and −43-\frac43, whose product is −1-1. The two moves also have the same length: both form a 33, 44, 55 triangle.

Parallel and perpendicular directions

For non-vertical lines with gradients m1m_1 and m2m_2,

parallel directions: m1=m2perpendicular directions: m1m2=−1\begin{aligned} \text{parallel directions: }&m_1=m_2\\ \text{perpendicular directions: }&m_1m_2=-1 \end{aligned}

When m1≠0m_1\ne0, the perpendicular gradient is −1m1-\frac1{m_1}. A horizontal line is perpendicular to a vertical line; the product rule cannot be used there because the vertical gradient is undefined.
Not on the formulae sheet: learn it.

Calculate the gradients before deciding the relationship. A sketch is useful for a check, but an apparent right angle on a stretched grid is not proof.

Worked example 3: equal directions

Question. Line LL passes through A(1,2)A(1,2) and B(5,5)B(5,5). Line MM passes through C(−2,−1)C(-2,-1) and D(2,2)D(2,2). Show that the lines are parallel.

Plan. Calculate both gradients and confirm that these are distinct lines with the same gradient.

mL=5−25−1=34gradient of ABmM=2−(−1)2−(−2)=34gradient of CD\begin{aligned} m_L&=\frac{5-2}{5-1}=\frac34 && \text{gradient of }AB\\ m_M&=\frac{2-(-1)}{2-(-2)}=\frac34 && \text{gradient of }CD \end{aligned}

Why this step? A matching ratio of changes establishes the same direction, regardless of where the line sits.

Answer. Both gradients are 34\frac34. The lines are distinct: from CC, moving 33 units right along MM reaches height −1+94=54-1+\frac94=\frac54, not AA's height 22. Therefore the lines are parallel.

Check. Both point pairs move 44 units right and 33 units up, so their directions agree.

Worked example 4 changes only the point DD, turning the second line while the first stays fixed.

Worked example 4: a right-angle turn

Question. Line LL passes through A(1,2)A(1,2) and B(5,5)B(5,5). Line NN passes through C(−2,−1)C(-2,-1) and E(1,−5)E(1,-5). Show that the lines are perpendicular.

Plan. Calculate both gradients and test whether their product is −1-1.

mL=5−25−1=34first directionmN=−5−(−1)1−(−2)=−43second directionmLmN=34(−43)=−1perpendicular-gradient test\begin{aligned} m_L&=\frac{5-2}{5-1}=\frac34 && \text{first direction}\\ m_N&=\frac{-5-(-1)}{1-(-2)}=-\frac43 && \text{second direction}\\ m_Lm_N&=\frac34\left(-\frac43\right)=-1 && \text{perpendicular-gradient test} \end{aligned}

Why this step? The sign changes and the fraction inverts. Either change on its own would not give a right-angle turn.

Answer. The lines are perpendicular because their gradients multiply to −1-1.

Check. The first direction moves 44 right and 33 up; the second moves 33 right and 44 down, a clockwise quarter-turn.

The exceptions fit the geometry: every horizontal line is perpendicular to every vertical line, while two distinct vertical lines are parallel. Neither needs an invented “infinite gradient”.

Exam tip

For “Show that”, finish with the required relationship and the reason. Two correct gradients leave your argument unfinished unless you explain why they establish parallel or perpendicular directions.

Test a new pair, stating which gradient relationship proves your decision.

Distance from coordinate differences

The horizontal and vertical gaps between two points form the shorter sides of a right-angled triangle, so Pythagoras' theorem gives their direct distance.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account