Parallel and perpendicular lines
Two lines in the plane are related by their inclination: if they have the same gradient they are parallel, and if the product of their gradients is they are perpendicular. In the IB exam this appears when you are asked for “the line through this point that is parallel (or perpendicular) to this other one”, a step that repeats in problems about streets, fences, pipes and the perpendicular bisectors of Voronoi diagrams.
Parallel lines
Two parallel lines never meet: they have the same inclination. Since the gradient measures the inclination, it is enough to compare gradients.
Look at the figure: both lines have gradient . Every time you move 3 units to the right, both rise by 2.
[FIGURA mai-t4-a3-paralelas: Cartesian plane with a grid and labelled x and y axes, x from -4 to 8 and y from -4 to 6. Two blue parallel lines: r1 with equation y = (2/3)x - 1, which cuts the y-axis at (0,-1) and the x-axis at (1.5, 0), and r2 with equation y = (2/3)x + 2, which cuts the y-axis at (0,2). Labels "r1: y = 2x/3 - 1" and "r2: y = 2x/3 + 2" beside each line. On each line, a small stepped triangle: a horizontal run of 3 units (label "3") and a vertical rise of 2 units (label "2"), to show that both have the same gradient 2/3.]
If, in addition to the same gradient, they have the same y-intercept, they are not two different lines but the same line (coincident lines). If the lines are given in general form, , the gradient is : two lines with the same coefficients and (apart from a common factor) and a different are parallel.
Perpendicular lines
Two lines are perpendicular () when they meet forming a right angle of .
Why does it work? A line through the origin with gradient also passes through the point . If you rotate that point through about the origin, it lands at , and the line through the origin and this point has gradient . That is the perpendicular.
[FIGURA mai-t4-a3-perpendiculares: Cartesian plane with a grid and labelled axes, x from -4 to 4 and y from -4 to 4. Blue line L1 through the origin with gradient 2/3, that is y = 2x/3, drawn up to (3,2); with the right-angled triangle of legs 3 (horizontal, label "3") and 2 (vertical, label "2") beneath it. Red line L2 through the origin and (-2,3), that is y = -3x/2, with its right-angled triangle of legs 2 (horizontal, to the left, label "2") and 3 (vertical, label "3"). A small right-angle square at the origin between the two lines, labelled "90°". Labels "L1: m1 = 2/3" and "L2: m2 = -3/2", and below them, in a box, "m1 · m2 = (2/3)·(-3/2) = -1".]
Notice how the triangles in the figure swap their legs (3 and 2 become 2 and 3) and one of the runs changes direction: that is where the reciprocal and the negative sign come from.
In general form it is even quicker: the line has gradient , and the line has gradient . They are perpendicular: you swap and and change one sign.
Line through a point, parallel or perpendicular to another line
This is a typical exam task. It is solved with the point-gradient form, , where is the given point.
Worked examples
Streets in a neighbourhood
On the plan of a neighbourhood (one unit equals 100 m) there are three straight streets with these equations:
a) Find the gradient of each street.
b) State which streets are parallel and which pairs are perpendicular.
Solution
a) Street is already in explicit form: .
For , we rearrange for : , so and .
For : , so and .
b) and have the same gradient, , and different y-intercepts ( and ): they are parallel.
Check the product with : . Therefore and, since has the same gradient as , also .
The perpendicular pairs are - and -.
A pipe to run alongside
On a map with units of 1 km, a water pipe follows the line . From the reservoir at , a channel parallel to the pipe and an access track perpendicular to it are to be built.
a) Find the equation of the channel (line through parallel to ) in the form with , and integers and .
b) Find the equation of the track (line through perpendicular to ) in the same form.
Solution
The gradient of is .
a) Parallel: same gradient, . With the point : Check: , so satisfies the equation.
b) Perpendicular: . With the point : Check: . Also .
Paths in a triangular park
A park is triangular in shape, with vertices , and on a plan with units of 100 m. Two straight paths are to be built: one from perpendicular to the side , and another from perpendicular to the side .
a) Find the equation of the path starting at in the form , with , , integers and .
b) Find the equation of the path starting at in the same form.
c) The paths cross at the point . Find its coordinates.
d) Calculate the product of the gradients of and and interpret the result.
[FIGURA mai-t4-a3-parque: Cartesian plane with a grid and labelled x and y axes (x from -3 to 6, y from -1 to 8). Triangle ABC with vertices marked as dots and labelled: A(-2, 1), B(4, 3) and C(0, 7). Sides drawn in grey. From C, a blue line goes down to meet side AB; from B, a red line goes towards side AC. Both lines cross at the point H(1, 4), labelled inside the triangle. Small right-angle squares where each line meets the side it is perpendicular to. Dotted segment from A to H.]
Solution
a) The gradient of is . The path from is perpendicular to , so its gradient is . Through :
b) The gradient of is . The path from is perpendicular to : gradient . Through :
c) The point satisfies both equations. From the first, . Substituting into the second: So , hence . (Using the GDC, it is enough to draw both lines and ask for the intersection; check that it agrees.)
d) The gradient of is and that of is . The product is , so : the path joining with would be perpendicular to the side . The three paths from each vertex, perpendicular to the opposite side, meet at a single point, .
In the exam: each part earns marks for the calculation of the gradient, the use of the relation and the final equation in the required form. In part c), write down the system you solve, even if you do it on the GDC.
Common mistakes
Summary
- Two lines are parallel if they have the same gradient, (and different y-intercepts; otherwise they coincide).
- Two lines are perpendicular if , that is, : invert the gradient and change its sign.
- In general form, has gradient ; the lines and are perpendicular.
- Vertical lines () and horizontal lines () are treated separately: two verticals are parallel, and a vertical line is perpendicular to a horizontal one.
- To find the line through parallel or perpendicular to another line: gradient of the given line, gradient of the required line, and .
- Always check that the point satisfies the equation and that the product or equality of gradients is correct; on the GDC, draw both lines with the axes at the same scale.
Want to work on it together?
Free first consultation: we look at your level and your exam, and build a plan. Álvaro replies on WhatsApp.
Message us on WhatsApp