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#
Try it first on the two lines drawn above, and . A meeting point is an where both right-hand sides agree, so set them equal:
Subtract from both sides:
That is false for every , so no meeting point exists: the lines never cross, exactly as the picture shows. Now compare a pair with different slopes, and . Setting those equal gives , so and : one definite crossing. Last, compare the first line with itself, against . Setting those equal gives , true for every , so every point is shared: the two equations describe one line written twice. Three splits, three outcomes: different slopes cross once, equal slopes with different intercepts never cross, and equal slopes with equal intercepts share every point. Nothing about any of that depended on these particular numbers. The general argument below repeats the same moves with letters in place of digits, so it settles every pair of lines at once.
Take two nonvertical 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 nonvertical 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 with different run straight up and down side by side and never meet, so distinct vertical lines are always parallel to one another. Two vertical lines with the same , such as and , are not a parallel pair at all: they are the same line written twice, exactly the coincident case you already saw for slanted lines. You handle vertical lines 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 lines with defined, nonzero slopes 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#
Try it first on the line drawn above: it has slope , built from a rise of and a run of . Starting at , step to the right and up, and you reach a second point on the line. That is the slope triangle in the picture, with legs across and up. Rotate that triangle a quarter turn (90 degrees counterclockwise) about . The step right becomes a step up, and the step up becomes a step left, a run of . The turned triangle has rise and run , so the rotated line has slope . Multiply the two slopes to check: , exactly as the rule predicts. If the line tilts down instead, with rise and run (slope ), the same turn sends that downward step to a step right. The turned triangle then has run and rise : slope , and again . None of that depended on the particular numbers and , or on the line tilting up rather than down. Redo the same three moves: mark off a rise and a run, then turn the triangle a quarter turn. Use letters instead of digits, and the same pattern holds for every slope.
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: pick positive, and let carry the sign of the slope, so is negative exactly when tilts down. Both and are nonzero, since the line tilts. Pick any point on . Starting at , step to the right and then up or down according to its sign, and you land on a second point of . The two steps form a slope triangle with a horizontal leg and a vertical leg .
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 ” up”. The same turn sends the step ” up or down” to a horizontal step of : an upward step ( positive) turns to a step left, and a downward step ( negative) turns to a step right. Starting again at , the rotated triangle has run and rise , 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 nonvertical 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 .
Testing whether two lines are parallel, perpendicular, or neither
Check for a vertical line first, since the slope tests below need a real slope on both sides. If either line is vertical: two vertical lines are parallel when their equations differ and the same line when they match, a vertical line and a horizontal line are perpendicular, and a vertical line paired with any other slanted line is neither.
Once both lines have a real slope, the rest of the routine is short. 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 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 readout 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. Then try these three changes in order.
First, fix the trap. Leave the first line alone and change the second line’s slope to : set 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 readout sentence changes to name the right angle, and the two lines visibly square up.
Second, make the two lines parallel. Move the second line’s -intercept away from the first line’s, to , then set its rise and run to match the first line’s. Now the two lines have the same slope and different intercepts, and the crossing dot disappears: parallel lines have nowhere to meet, and the readout sentence stops naming a crossing point.
Third, make them coincide. Holding that same slope, walk the second line’s -intercept back onto the first line’s. The picture now shows what looks like a single line, and the dot is still gone, this time because the two lines meet at every point rather than none. This is the one moment where looking is not enough: only the readout sentence tells you the two equations describe the same line.
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.
When the given line is vertical or horizontal instead, skip point-slope form and use what you already know about writing and equations, together with this lesson’s exception: a vertical line’s parallel partner is vertical, and its perpendicular partner is horizontal. Through the point , the line parallel to is (still vertical, now through ), and the line perpendicular to is (horizontal, at the point’s height).
Check your understanding
What is the equation of the line through that is perpendicular to ?
The given line is horizontal, so its perpendicular partner is vertical: a vertical line has every point sharing one -coordinate. The point has , so the equation is . The option is the parallel line through the same point, not the perpendicular one.
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 . Use point-slope form with :
As a check, at this gives . The other options are the classic wrong turns: keeping slope (parallel, not perpendicular), flipping the fraction without changing the sign (), and changing the sign without flipping the fraction ().