Parallel and Perpendicular Lines
Progress can't be saved in this browser, so this lesson's status can't be set.
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
If two nonvertical lines have the same slope, their heights change at the same rate. Their vertical gap stays fixed as you move across. Different slopes make that gap change: one line rises units per unit across, for example, while the other rises . The second line gains unit on the first for each unit to the right. Extending the lines in both directions lets that difference reach zero, where the lines cross. Equal slopes keep the gap fixed: a nonzero gap means the lines never meet, while a zero gap means the two equations describe 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 equations describe one line. The general calculation below has the same three outcomes.
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:
What happens next depends 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. So two lines with different slopes cross at exactly one point, and they are not 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 the same line.
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.
For vertical lines, compare their equations directly. The lines with different values of never meet, so they are parallel: a point cannot have both and , for example. Two copies of describe the same line, not a parallel pair. There is no slope number to compare in either case.
Worked example 1 Decide whether two lines are parallel
Are the lines and parallel? To decide, compare their slopes. 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
A line of slope is perpendicular to a line of slope . A line of slope is perpendicular to a line of slope . In each pair, flipping one slope’s fraction and changing its sign gives the other. These numbers are negative reciprocals.
Two nonvertical lines with slopes and are perpendicular exactly when
Both slopes must then be nonzero, and you can also write . A horizontal line’s perpendicular partner is vertical, so two nonvertical perpendicular lines cannot be horizontal. The reason comes from turning a slope triangle through a right angle.
Why perpendicular slopes are negative reciprocals#
The triangle above has run and rise , giving slope . Turn it degrees counterclockwise about . The step right turns into a step up ; the step up turns into a step left . Thus the new rise is and the new run is :
If the original rise is instead, the downward step turns to the right. The rotated triangle has run and rise , giving slope , and again .
Now the general case. Take a line that is neither horizontal nor vertical. Write its slope as , using a positive run and matching nonzero rise . The sign of tells whether the line rises or falls to the right.
Choose a point on the line and turn the line and its slope triangle degrees counterclockwise about . The turned line passes through at a right angle to . This covers any line perpendicular to : choose their meeting point as , and the quarter turn gives that perpendicular line, since there is only one perpendicular through .
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:
For the reverse direction, suppose two nonvertical lines have slopes whose product is . Their slopes are nonzero and have opposite signs, so they differ. The parallel-line proof above shows they meet at one point . Rotate the first line degrees about . By the calculation above, the rotated line has the second line’s slope. It also passes through , so it is the second line itself: a point and a slope fix one line. Their angle is therefore a right angle.
With this rule you can quickly find a perpendicular slope and test 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
A horizontal line and a vertical line meet at a right angle, just as the two coordinate axes do. Their slopes are and undefined, so the product test cannot be used: there is no second slope number to multiply. Applying the negative-reciprocal rule to slope would give , which has no value. Instead, use the picture: a horizontal line’s perpendicular partner is vertical.
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. 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 starts with Pair C: and . Their slopes multiply to , so the crossing is not a right angle. Try these changes in order:
- Make line B’s slope by setting Rise B to and Run B to . The lines are now perpendicular; the readout confirms the right angle.
- Set Crosses B to , then match line A by setting Rise B to and Run B to . Equal slopes and different intercepts make the lines parallel, so the crossing dot disappears.
- Keep those equal slopes and return Crosses B to . Now both equations describe the same line. There is still no single crossing dot, but the readout explains that every point is shared.
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
To construct a parallel line through a point outside a given nonvertical line, keep its slope. To construct a perpendicular line when the given slope is nonzero, take the negative reciprocal. Then substitute the new slope and the given point into point-slope form. A perpendicular line may pass through a point either on or off the original line.
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 ().