We already know how to write the equation of a line from its slope and starting height, and now we want to compare two lines or build a new line that runs parallel or perpendicular to a given one.
1
Why Parallel Lines Have the Same Slope
Parallel lines are two lines that run alongside each other forever and never touch. To see what makes two equations parallel, we look at how their step instructions compare.
Why Parallel Lines Have the Same Slope
In y=mx+b, the starting height b only shifts where the line begins on the y-axis, while the slope m gives the step instructions that set the line's direction:
y=32x+1andy=32x+4
Because both lines step right 3 and climb up 2, the vertical gap between them stays at 3 forever.
Any difference between the two slopes makes the lines cross each other on one side; the vertical gap between them only stays at 3 everywhere when both lines take the exact same step of right 3, up 2.
A second line only keeps a steady gap of 3 from the first line when it takes the exact same right-3, up-2 step, while any other tilt makes the lines cross.
2
Why Perpendicular Slopes Flip and Change Sign
Perpendicular lines cross each other at a 90∘ angle. Instead of following the same step instructions, rotating a line by 90∘ turns its step triangle on its side.
Why Perpendicular Slopes Flip and Change Sign
Rotating a step of right 3, up 2 by 90∘ swings the horizontal step of 3 straight down and tips the vertical step of 2 sideways, turning an uphill slope into a downhill slope:
Slope 32flip and change signPerpendicular slope −23
When a nonzero slope is a whole number, writing it over 1 shows both steps before flipping.
5=15flip and change sign−51
For a nonzero slope, rotating the line 90∘ swaps the horizontal and vertical steps and turns an uphill line into a downhill line or a downhill line into an uphill line, so the perpendicular slope has the flipped fraction and the opposite sign.
For a nonzero slope, a 90° turn swaps the horizontal and vertical steps and changes the slope’s sign, so the perpendicular slope is the flipped fraction with the opposite sign.
3
Parallel, Perpendicular, or Neither?
When we are given two equations and asked whether the lines are parallel, perpendicular, or neither, we only need to compare their slopes. As long as two lines with the same slope have different starting heights, they are separate parallel lines rather than the exact same line drawn twice.
Parallel, Perpendicular, or Neither?
y=mx+b
Parallel, perpendicular,
or neither?
Comparing the slopes of each pair shows how the lines meet:
⟹⟹y=3x+2andy=3x−5Same slope (3 and 3),different heightsParallel
⟹⟹y=32x+1andy=−32x+4Sign changed,fraction did not flip (32 and −32)Neither
⟹⟹y=32x+1andy=23x−4Fraction flipped,sign did not change (32 and 23)Neither
4
Finding a Parallel Line Through a Point
Now instead of testing two lines we already have, we want to find the equation of the line parallel to y=2x+1 that passes through (3,10).
Finding a Parallel Line Through a Point
Text solution
Keep the parallel slope and drop the old starting height Because our line is parallel to y=2x+1, it takes the same slope of 2, while the +1 is only the first line's starting height and is no longer needed:
y=2x+b
Plug in (3,10) to find the new starting height b Substituting x=3 and y=10 finds where the line must start on the y-axis so that climbing by 2 across 3 steps lands at height 10:
10104=2(3)+b=6+b=b
Or build the line directly from (3,10) in point-slope form Starting at height 10 and adding 2 for every step past x=3 gives the exact same equation once simplified:
y−10y−10y=2(x−3)=2x−6=2x+4
So y=2x+4 climbs by 2 on every step just like y=2x+1, shifted up to start at height 4 so it passes through (3,10).
For any point (x,y) we choose, a line with slope 2 has b=y−2x, since b+2x=y. If the point lies on y=2x+1, then b=1 and we get the original line itself.
Every parallel line keeps the same slope of 2, so the point it passes through sets its y-intercept (its starting height on the y-axis).
5
Finding a Perpendicular Line Through a Point
Next, we want to find the equation of the line perpendicular to y=32x−4 that passes through (4,−1). The only change from building a parallel line is how we get the slope in the first step.
Finding a Perpendicular Line Through a Point
y=32x−4
Perpendicular line
through (4,−1)?
Text solution
Flip the slope and change the sign, then drop the old starting height Rotating the step of 32 by 90∘ gives the perpendicular slope −23, and we ignore the −4 from the original equation:
y=−23x+b
Plug in (4,−1) and solve for b Substituting x=4 and y=−1 shows that dropping by 6 over 4 steps to land at height −1 means the line started at height 5:
−1−15=−23(4)+b=−6+b=b
So y=−23x+5 crosses y=32x−4 at a 90∘ angle and passes through (4,−1).
6
Finding the Slope from Standard Form
Sometimes an equation is given in standard form with x and y on the same side, such as 4x+2y=10, and we need to compare it to y=21x−3 or build a new line from it.
Finding the Slope from Standard Form
4x+2y=10
Slope=?
Text solution
Subtract the x-term and divide to get y alone Because slope is how much one y changes when x goes up by 1, we solve 4x+2y=10 for y before reading the slope:
4x+2y2yy=10=−4x+10=−2x+5
Compare the real slope to the second line Writing the slope −2 as −12 shows that it is the flipped fraction with the opposite sign of the slope 21 in y=21x−3:
−12flip and change sign21
So 4x+2y=10 has a real slope of −2 (not 4), which makes it perpendicular to y=21x−3.
7
Parallel and Perpendicular to Horizontal and Vertical Lines
What if the given equation only has one letter? Here we want to find the line perpendicular to y=3 that passes through (5,2).
Parallel and Perpendicular to Horizontal and Vertical Lines
y=3
Perpendicular line
through (5,2)?
Text solution
Sketch the given single-letter line The equation y=3 means the height y is always 3, which is a flat horizontal line at height 3:
y=3(horizontal line)
Draw the perpendicular line through (5,2) and see which coordinate stays the same A line perpendicular to a flat horizontal line goes straight up and down, and every point on the vertical line through (5,2) sits at an x-value of 5:
x=5
So x=5 is the vertical line that meets y=3 at a 90∘ angle and passes through (5,2).
Key concepts
Everything here comes down to reading the real slope, picking the new slope, and plugging in the point:
See the real slope first
If an equation already has y by itself, like y=32x+1, read the slope directly off x. If x and y are together on the same side, like 4x+2y=10, solve for y first (y=−2x+5) so you don't mistake 4 for the slope.
Match the angle to the slope rule
Distinct nonvertical lines with the same slope are parallel (m=32→32), and two distinct vertical lines are parallel too. For a nonzero slope, flip the fraction and change the sign to get a perpendicular slope (m=32→−23, and 5=15→−51). In the pairs 32 and −32, or 32 and 23, the lines are neither.
Build the new line from its point
Once you have your slope, ignore the old line's starting height and plug your point (3,10) into y=2x+b (or point-slope form y−10=2(x−3)) to get y=2x+4.
When not to use y=mx+b
If the given equation only has one letter, like the horizontal line y=3, skip slope formulas and draw a quick sketch: a line perpendicular to y=3 through (5,2) goes straight up and down where x is always 5, giving x=5.
8
Practice
1
Are the lines y=53x−2 and y=35x+4 parallel, perpendicular, or neither?
Both equations already have y alone, so check both the fractions and the signs of the two slopes.
Compare the slopes 53 and 35. The fraction flipped from 53 to 35, but both slopes are positive, so the sign did not change.
(Watch out: Answering perpendicular just because 53 flipped to 35 overlooks the sign. Two positive slopes both climb uphill and cannot meet at 90∘.)
AnswerNeither
2
Find the equation of the line parallel to y=−3x+5 that passes through (2,1).
What slope does a parallel line take from y=−3x+5, and what do you do with the +5?
Keep the parallel slope m=−3 and ignore the +5:
y=−3x+b
(Watch out: Flipping the slope to 31 uses the perpendicular rule when the problem asks for a parallel line.)
Plug in x=2 and y=1:
117=−3(2)+b=−6+b=b
(Watch out: Subtracting 6 instead of adding 6 to undo −6 gives b=−5 and the wrong equation y=−3x−5.)
Answery=−3x+7 (or y−1=−3(x−2))
3
Find the equation of the line perpendicular to y=−52x+7 that passes through (4,13).
Rotate the slope −52 by 90∘ first, then use (4,13) to find the new starting height b.
Flip −52 and change the sign from negative to positive to get m=25, ignoring the +7:
y=25x+b
(Watch out: Flipping the fraction without changing the sign keeps m=−25, which leads to 13=−10+b⟹b=23 and the wrong line y=−25x+23.)
Plug in x=4 and y=13:
13133=25(4)+b=10+b=b
Answery=25x+3 (or y−13=25(x−4))
4
Find the equation of the line perpendicular to y=4x−9 that passes through (8,−3).
Write the whole-number slope 4 as a fraction over 1 so you can see both steps to flip.
Write 4=14, then flip the fraction and change the sign to get m=−41:
y=−41x+b
(Watch out: Changing the sign without flipping 14 gives m=−4, which leads to −3=−4(8)+b⟹b=29 and y=−4x+29.)
Plug in x=8 and y=−3:
−3−3−1=−41(8)+b=−2+b=b
(Watch out: Dropping the minus sign when multiplying −41(8) gives −3=2+b⟹b=−5 and the wrong line y=−41x−5.)
Answery=−41x−1 (or y+3=−41(x−8))
5
Are the lines 6x+3y=12 and y=21x−1 parallel, perpendicular, or neither?
In 6x+3y=12,y is not by itself yet. Solve for a single y before comparing slopes.
Get y alone in 6x+3y=12:
6x+3y3yy=12=−6x+12=−2x+4
(Watch out: Reading 6 directly off 6x, or forgetting to subtract 6x and getting y=2x+4 with slope +2, misses the negative sign and leads to the wrong answer neither.)
Comparing the slope −2=−12 with 21, the fraction is flipped and the signs are opposite.
AnswerPerpendicular
6
Find the equation of the line parallel to 2x−5y=15 that passes through (10,6).
Get y alone in 2x−5y=15 first, keeping careful track of the minus sign in front of 5y.
Solve 2x−5y=15 for y to find its slope:
2x−5y−5yy=15=−2x+15=52x−3
(Watch out: Losing the negative sign on −5y when dividing gives m=−52, which leads to 6=−52(10)+b⟹b=10 and the wrong line y=−52x+10.)
Keep the parallel slope m=52, ignore the −3, and plug in (10,6):
662=52(10)+b=4+b=b
Answery=52x+2 (or y−6=52(x−10))
7
Find the equation of the line perpendicular to y=−4 that passes through (3,7).
The equation y=−4 only has one letter. Sketch which way y=−4 runs, then draw a line crossing it at 90∘ through (3,7).
The line y=−4 is a flat horizontal line at height −4. A line perpendicular to it must go straight up and down through (3,7), where every point has an x-coordinate of 3:
x=3
(Watch out: Writing y=7 uses the y-coordinate of (3,7) instead, which gives the horizontal line parallel to y=−4 rather than perpendicular to it.)