Parallel and Perpendicular Lines
Learning goals
- Match slopes for parallel lines with different intercepts
- Take the negative reciprocal for a perpendicular slope
- Treat vertical and horizontal lines as the exception to the product rule
- Classify two lines by comparing their slopes
- Write the required line through a point with point-slope form
Parallel lines: equal slopes
Slope measures direction, the tilt of a line as rise over run. Two lines point the same way exactly when they climb at the same rate, so it should feel right that parallel lines have equal slopes. Suppose one line rises two units for every unit across and the other rises three. Then the steeper one is slowly pulling away from the flatter one, and sooner or later they cross. Only when the two rates match does the distance between the lines hold steady forever, and holding a steady distance is what it means to be parallel.
That picture is convincing, but the algebra makes it exact. The algebra also sorts out the one case the picture glosses over: two lines with the same slope that are secretly the same line.
Why equal slopes mean parallel#
Take two non-vertical lines and write each in slope-intercept form, and . The lines meet at any point where their -values agree, so set the right-hand sides equal and see which can satisfy both:
Gather the -terms on one side:
Everything now hinges on whether the slopes are equal. Suppose first that they differ, so . Then is not zero, and you may divide by it:
That is one definite number, a single where the lines cross. Different slopes force exactly one crossing, so lines with different slopes are never parallel.
Now suppose the slopes are equal, . Then , and the equation collapses to . If the intercepts differ, , this says equals a nonzero number, which is impossible: no works, the lines share no point, and they are parallel. If instead the intercepts are also equal, , then every works, and the two equations describe one and the same line lying on top of itself.
So among non-vertical lines, equal slopes with different intercepts is precisely the parallel case, and it is the only way two such lines can fail to cross.
One family sits outside this argument because it has no slope to compare: the vertical lines. A vertical line has the equation and an undefined slope, so slope-intercept form never applies to it. Even so, any two vertical lines run straight up and down side by side and never meet, so all vertical lines are parallel to one another. You handle them by inspection rather than by matching a slope number.
Worked example 1 Decide whether two lines are parallel
Are the lines and parallel? Parallelism is about slope, so get both slopes into view. The first line is already in slope-intercept form, and its slope is .
The second line is in standard form, so solve it for to expose its slope. Subtract from both sides, then divide every term by :
Its slope is as well. The two slopes are equal, , and the intercepts differ, , so the lines are parallel and not the same line.
Check your understanding
Are the lines and parallel, perpendicular, or neither?
Find each slope, converting the second line to slope-intercept form.
Both slopes equal , and the intercepts differ ( versus ), so the lines are parallel. They are not the same line, because a line with the same slope and a different intercept sits alongside the first, never on it.
Perpendicular lines: negative reciprocal slopes
Perpendicular is the right-angle case, and the slope rule for it is less obvious than for parallel lines. Two non-vertical lines are perpendicular exactly when their slopes are negative reciprocals: flip one slope over and change its sign to get the other. Written as an equation, the slopes satisfy
So a line of slope is perpendicular to a line of slope . A line of slope is perpendicular to a line of slope , and in every case the product of the two slopes is . This is not a rule to accept on faith. It falls out of a single idea: a perpendicular line is the original line turned a quarter turn. Turning a slope triangle a quarter turn does a predictable thing to its rise and run.
Why perpendicular slopes are negative reciprocals#
Start with a line that is neither horizontal nor vertical. Write its slope as a fraction, , where is a horizontal run and is the matching vertical rise. Both and are nonzero, since the line tilts. Pick any point on . Starting at , step to the right and then upward, and you land on a second point of . The two steps form a slope triangle with a horizontal leg of length and a vertical leg of length .
Now rotate the whole figure a quarter turn (ninety degrees counterclockwise) about the point . Rotation is rigid and turns every direction by the same angle. So the line swings to a new line through , and that new line meets at a right angle. That is exactly a line perpendicular to , so finding the slope of finds the slope of the perpendicular direction.
Track the slope triangle through the turn. A quarter turn counterclockwise sends a step ” to the right” to a step ” upward”. The same turn sends a step ” upward” to a step ” to the left”. In vector form, the arrow that points along becomes the arrow that points along . So starting again at , the rotated triangle runs units to the left and rises units up. Its run is (leftward is negative) and its rise is , which makes the slope of
Compare that with : the fraction has been flipped and its sign changed, so is the negative reciprocal of . Multiplying the two slopes confirms it directly:
The argument runs backward too. Suppose two non-vertical lines have slopes whose product is , which forces one slope to be when the other is . Then the same quarter turn carries the first line onto a line parallel to the second. Parallel lines lean the same way, so the two lines meet at a right angle. Perpendicular and “slopes multiply to ” are therefore the same condition, each guaranteeing the other.
With the rule in hand, the two jobs it does are quick: reading off a perpendicular slope, and testing whether two given lines are perpendicular.
Worked example 2 Find a perpendicular slope, then test a pair of lines
First, find the slope of any line perpendicular to . Solve for to read its slope. Subtract and divide by :
so this line has slope . A perpendicular line has the negative reciprocal slope: flip to and change the sign,
Second, are and perpendicular? Multiply their slopes and check for :
The product is , so yes, the two lines meet at a right angle.
Check your understanding
What is the slope of any line perpendicular to the line through the points and ?
First find the slope of the given line with the slope formula.
A perpendicular line has the negative reciprocal slope: flip to and change the sign, giving . As a check, .
The horizontal and vertical case
The negative-reciprocal rule quietly assumes both lines have real-number slopes. So one pair of perpendicular lines slips through the cracks and has to be handled on its own: a horizontal line and a vertical line.
A horizontal line has slope , and a vertical line has an undefined slope. Picture the -axis and the -axis: one runs flat, the other stands straight up, and they cross at a perfect right angle. So a horizontal line is perpendicular to every vertical line, plainly and by sight. But you cannot confirm it with , because a vertical line has no slope number to multiply, and times “undefined” is not a meaningful product. On the horizontal side the trouble shows up differently: the negative reciprocal of would be . Dividing by zero is not allowed, so slope has no negative reciprocal at all. The perpendicular partner of a horizontal line is a vertical line, and you know it because it stands upright, not because a slope product came out to .
The takeaway is a small exception to keep in your pocket. Horizontal is perpendicular to vertical always, but that one pair is verified by the picture, not by the slope formula, which needs two ordinary slopes to work.
Testing whether two lines are parallel, perpendicular, or neither
Every classification problem reduces to the same short routine. Find the slope of each line, putting each equation into slope-intercept form or applying the slope formula to two points if that is what you are given. Then compare the two slopes: if they are equal, the lines are parallel (or the same line, when the intercepts match too). If their product is , the lines are perpendicular. If neither the equal-slope test nor the product test holds, the lines are neither, crossing at some angle that is not a right angle.
Worked example 3 Classify three pairs of lines
Classify each pair as parallel, perpendicular, or neither.
Pair A: and . Both slopes are , and the intercepts differ, so the lines are parallel.
Pair B: and . Convert the second: , so . The slopes are and , and their product is
so the lines are perpendicular.
Pair C: and . The slopes are and . They are not equal, so the lines are not parallel, and their product is , not , so they are not perpendicular either. This pair is neither. Watch the trap: the slopes look related, but a sign flip alone is not the same as a negative reciprocal, which also flips the fraction.
Check your understanding
The lines and are which of the following?
Solve each for to read its slope.
The slopes are and , negative reciprocals of each other. Their product is , so the lines are perpendicular.
The figure below opens on Pair C, the trap from the worked example: and . Read the sentence under it. It reports that the slopes are different and the lines cross once, and it says nothing about a right angle, because there is not one there.
Now fix the trap by hand. Leave the first line alone and change the second to a slope of : take its rise to and its run to . A sign flip was never enough, and this is the step it was missing, the fraction turning over. The moment you arrive the sentence changes to name the right angle, and the two lines visibly square up.
Two more things are worth doing while it is in front of you. Set both lines to the same slope and watch the crossing dot disappear: parallel lines have nowhere to meet, and the figure stops claiming one. Then, holding that, walk the second line’s crossing point onto the first line’s. The picture now shows what looks like a single line, and this is the one moment where looking is not enough. The sentence is what tells you the two equations describe the same line, so every point on it satisfies both, rather than a pair that never meets.
Parallel, perpendicular, or neither?
y = 2x + 1. y = -2x + 1. The slopes 2 and -2 are different, so they cross exactly once. They cross at (0, 1).
Writing equations of parallel and perpendicular lines
The slope rules also let you build a line to specification. Given a line and a point not on it, write the line through that point that is parallel, or perpendicular, to the one you were handed. When the given line has a slope, the plan is two steps. Get the slope you need from it (the same slope for parallel, the negative reciprocal for perpendicular). Then feed that slope and the given point into point-slope form and simplify.
Worked example 4 A line through a point, parallel to a given line
Write the equation of the line through that is parallel to , in slope-intercept form.
Parallel means the same slope, and the given line has slope , so the new line also has slope . Now use point-slope form with the point :
Subtract from both sides to reach slope-intercept form:
As a check, the slope is as required, and at the equation gives , so the line passes through .
Worked example 5 A line through a point, perpendicular to a given line
Write the equation of the line through that is perpendicular to , in slope-intercept form.
The given line has slope , so a perpendicular line has the negative reciprocal slope: flip to and change the sign, giving . Use point-slope form with the point :
Add to both sides:
The slope is the negative reciprocal of , and at the equation gives , so the line runs through as required.
Worked example 6 Perpendicular to a line given in standard form
Write the equation of the line through that is perpendicular to .
First get the slope of the given line by solving for : , so its slope is . The perpendicular slope is the negative reciprocal of : flip to and change the sign, giving . Now use point-slope form with :
Distribute and add :
The slope times the original gives , confirming perpendicularity, and the line passes through since .
Check your understanding
Which is the equation of the line through that is perpendicular to ?
The given line has slope , so the perpendicular slope is the negative reciprocal: flip to and change the sign, giving .
The point is the -intercept, so and the equation is . The slope (a parallel line) and the slope (a reciprocal without the sign flip) are the classic wrong turns.