3.2 Parallel and perpendicular lines — Learn
Prerequisites: the gradient and the equation of a line from 3.1; rearranging a formula; solving two linear equations at once.
By the end of this section you can: decide from their gradients whether two lines are parallel or perpendicular; find the equation of a line parallel or perpendicular to a given line through a point; find the midpoint of a line segment; find the shortest distance from a point to a line.
1. Parallel lines
Two lines are parallel when they point in the same direction. Direction is the gradient, so parallel lines have the same gradient.
Example 1. Find the equation of the line through parallel to .
The gradient is , the same as the given line. Use with the point :
Expand and simplify:
The lines are parallel because both have gradient . They are different lines because the intercepts are different.
2. Perpendicular lines
Two lines are perpendicular when they meet at a right angle. Their gradients multiply to :
The second gradient is the negative reciprocal of the first. Turn the fraction upside down, and change the sign.
Example 2. A line has gradient . Find the gradient of a line perpendicular to it.
The reciprocal of is . Change the sign:
Check: . The product is , so the lines are perpendicular.
A gradient of is the one case that needs care. A horizontal line has gradient , and a vertical line has no gradient at all. They are perpendicular, and the rule cannot express that. Handle vertical lines by writing their equation as .
Example 3. Find the equation of the line through perpendicular to .
Rearrange the given line to see its gradient:
The gradient is . The perpendicular gradient is the negative reciprocal:
Now use the point :
Expand and simplify:
Multiplying by gives the whole-number form .
3. The midpoint of a segment
The midpoint of the segment joining and is the average of the two endpoints:
Example 4. Find the midpoint of the segment from to .
The midpoint sits on the perpendicular bisector of the segment: the line through the midpoint at right angles to the segment. Every point on that line is the same distance from the two endpoints.
4. The shortest distance from a point to a line
The shortest path from a point to a line meets the line at a right angle. So the distance is measured along the perpendicular.
To find it, follow three steps. Write the perpendicular line through the point. Find where it meets the original line. Then work out the distance between the two points.
Example 5. Find the shortest distance from to the line .
The line has gradient , so the perpendicular has gradient . The perpendicular through is
Find the intersection of with . Substitute:
Then . The foot of the perpendicular is . The distance is
The same answer comes from one formula. For the line and the point , the shortest distance is
Here , so , and . Then
Both routes agree. Use the three steps when a question asks for the foot of the perpendicular, and the formula when it asks only for the distance.
Watch out. Two traps come from the signs.
The negative reciprocal, not the reciprocal. The perpendicular to a line of gradient has gradient , not . The sign is what makes the product , so check the product before you carry on.
A line in the form hides its gradient. For the gradient is , not and not . Re-check: rearrange to make the subject first, then read the coefficient of .
You should now be able to
- decide whether two lines are parallel from their gradients;
- find a perpendicular gradient as the negative reciprocal;
- find the equation of a line parallel or perpendicular to a given line through a point;
- handle the vertical and horizontal case separately;
- find the midpoint of a segment;
- find the shortest distance from a point to a line, and the foot of the perpendicular.