Algebra 1Linear Functions5 of 7
Linear Functions · 5

Parallel and Perpendicular Lines

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
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
y=23x+1y = \htmlClass{lc-pink}{\tfrac{2}{3}}x + \htmlClass{lc-blue}{1}
(0,1)\htmlClass{lc-blue}{(0,1)}
(0,4)\htmlClass{lc-violet}{(0,4)}

In y=mx+by = \slope{m}x + b, the starting height bb only shifts where the line begins on the yy-axis, while the slope m\slope{m} gives the step instructions that set the line's direction:

y\displaystyle y =23x+1andy\displaystyle = \slope{\frac{2}{3}}x + \firstline{1} \quad \text{and} \quad y =23x+4\displaystyle = \slope{\frac{2}{3}}x + \secondline{4}

Because both lines step right 33 and climb up 22, the vertical gap between them stays at 3\gap{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\gap{3} everywhere when both lines take the exact same step of right 33, up 22.

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∘90^\circ angle. Instead of following the same step instructions, rotating a line by 90∘90^\circ turns its step triangle on its side.

Why Perpendicular Slopes Flip and Change Sign
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
90∘90^\circ

Rotating a step of right 3\firstline{3}, up 2\firstline{2} by 90∘90^\circ swings the horizontal step of 3\firstline{3} straight down and tips the vertical step of 2\firstline{2} sideways, turning an uphill slope into a downhill slope:

Slope 23→flip and change signPerpendicular slope −32\displaystyle \text{Slope } \slope{\frac{2}{3}} \xrightarrow{\text{flip and change sign}} \text{Perpendicular slope } \slope{-\frac{3}{2}}

When a nonzero slope is a whole number, writing it over 11 shows both steps before flipping.

5\displaystyle \slope{5} =51→flip and change sign−15\displaystyle = \slope{\frac{5}{1}} \xrightarrow{\text{flip and change sign}} \slope{-\frac{1}{5}}

For a nonzero slope, rotating the line 90∘90^\circ 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\displaystyle y =mx+b\displaystyle = \slope{m}x + b
Parallel, perpendicular,\displaystyle \text{Parallel, perpendicular,}
or neither?\displaystyle \text{or neither?}
y=23x+1y = \htmlClass{lc-pink}{\tfrac{2}{3}}x + \htmlClass{lc-blue}{1}
3\htmlClass{lc-blue}{3}
2\htmlClass{lc-blue}{2}
y=−23x+4y = \htmlClass{lc-pink}{-\tfrac{2}{3}}x + \htmlClass{lc-violet}{4}
3\htmlClass{lc-violet}{3}
2\htmlClass{lc-violet}{2}
y=23x+1y = \htmlClass{lc-pink}{\tfrac{2}{3}}x + \htmlClass{lc-blue}{1}
3\htmlClass{lc-blue}{3}
2\htmlClass{lc-blue}{2}
y=32x−4y = \htmlClass{lc-pink}{\tfrac{3}{2}}x - \htmlClass{lc-violet}{4}
2\htmlClass{lc-violet}{2}
3\htmlClass{lc-violet}{3}

Comparing the slopes of each pair shows how the lines meet:

y=3x+2andy=3x−5  ⟹  Same slope (3 and 3),different heights  ⟹  Parallel\displaystyle \begin{aligned} & y = \slope{3}x + \firstline{2} \quad \text{and} \quad y = \slope{3}x - \secondline{5} \\ \implies & \text{Same slope } (\slope{3} \text{ and } \slope{3})\text{,} \\ & \text{different heights} \\ \implies & \text{Parallel} \end{aligned}
y=23x+1andy=−23x+4  ⟹  Sign changed,fraction did not flip (23 and −23)  ⟹  Neither\displaystyle \begin{aligned} & y = \slope{\frac{2}{3}}x + \firstline{1} \quad \text{and} \quad y = \slope{-\frac{2}{3}}x + \secondline{4} \\ \implies & \text{Sign changed,} \\ & \text{fraction did not flip } \left(\slope{\tfrac{2}{3}} \text{ and } \slope{{-}\tfrac{2}{3}}\right) \\ \implies & \text{Neither} \end{aligned}
y=23x+1andy=32x−4  ⟹  Fraction flipped,sign did not change (23 and 32)  ⟹  Neither\displaystyle \begin{aligned} & y = \slope{\frac{2}{3}}x + \firstline{1} \quad \text{and} \quad y = \slope{\frac{3}{2}}x - \secondline{4} \\ \implies & \text{Fraction flipped,} \\ & \text{sign did not change } \left(\slope{\tfrac{2}{3}} \text{ and } \slope{\tfrac{3}{2}}\right) \\ \implies & \text{Neither} \end{aligned}
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+1y = \slope{2}x + \firstline{1} that passes through (3,10)(3, 10).

Finding a Parallel Line Through a Point
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
y=2x+1y = \htmlClass{lc-pink}{2}x + \htmlClass{lc-blue}{1}
(3,10)(3,10)
Text solution
Keep the parallel slope and drop the old starting height Because our line is parallel to y=2x+1y = \slope{2}x + \firstline{1}, it takes the same slope of 2\slope{2}, while the +1\firstline{+1} is only the first line's starting height and is no longer needed:
y\displaystyle y =2x+b\displaystyle = \slope{2}x + \secondline{b}
Plug in (3,10)(3, 10) to find the new starting height b\secondline{b} Substituting x=3x = 3 and y=10y = 10 finds where the line must start on the yy-axis so that climbing by 2\slope{2} across 33 steps lands at height 1010:
10=2(3)+b10=6+b4=b\displaystyle \begin{aligned} 10 &= \slope{2}(3) + \secondline{b} \\ 10 &= \slope{6} + \secondline{b} \\ \secondline{4} &= \secondline{b} \end{aligned}
Or build the line directly from (3,10)(3, 10) in point-slope form Starting at height 1010 and adding 2\slope{2} for every step past x=3x = 3 gives the exact same equation once simplified:
y−10=2(x−3)y−10=2x−6y=2x+4\displaystyle \begin{aligned} y - 10 &= \slope{2}(x - 3) \\ y - 10 &= \slope{2}x - 6 \\ y &= \slope{2}x + \secondline{4} \end{aligned}

So y=2x+4y = \slope{2}x + \secondline{4} climbs by 2\slope{2} on every step just like y=2x+1y = \slope{2}x + \firstline{1}, shifted up to start at height 4\secondline{4} so it passes through (3,10)(3, 10).

For any point (x,y)(x, y) we choose, a line with slope 2\slope{2} has b=y−2x\secondline{b} = y - \slope{2}x, since b+2x=y\secondline{b} + \slope{2}x = y. If the point lies on y=2x+1y = \slope{2}x + \firstline{1}, then b=1\secondline{b} = \firstline{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=23x−4y = \slope{\frac{2}{3}}x - \firstline{4} that passes through (4,−1)(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\displaystyle y =23x−4\displaystyle = \slope{\tfrac{2}{3}}x - \firstline{4}
Perpendicular line\displaystyle \text{Perpendicular line}
through (4,−1)?\displaystyle \text{through } (4,-1)\text{?}
Text solution
Flip the slope and change the sign, then drop the old starting height Rotating the step of 23\slope{\frac{2}{3}} by 90∘90^\circ gives the perpendicular slope −32\slope{-\frac{3}{2}}, and we ignore the −4\firstline{-4} from the original equation:
y\displaystyle y =−32x+b\displaystyle = \slope{-\frac{3}{2}}x + \secondline{b}
Plug in (4,−1)(4, -1) and solve for b\secondline{b} Substituting x=4x = 4 and y=−1y = -1 shows that dropping by 6\slope{6} over 44 steps to land at height −1-1 means the line started at height 5\secondline{5}:
−1=−32(4)+b−1=−6+b5=b\displaystyle \begin{aligned} -1 &= \slope{-\frac{3}{2}}(4) + \secondline{b} \\ -1 &= \slope{-6} + \secondline{b} \\ \secondline{5} &= \secondline{b} \end{aligned}

So y=−32x+5y = \slope{-\frac{3}{2}}x + \secondline{5} crosses y=23x−4y = \slope{\frac{2}{3}}x - \firstline{4} at a 90∘90^\circ angle and passes through (4,−1)(4, -1).

6

Finding the Slope from Standard Form

Sometimes an equation is given in standard form with xx and yy on the same side, such as 4x+2y=10\firstline{4}x + \firstline{2}y = \firstline{10}, and we need to compare it to y=12x−3y = \slope{\frac{1}{2}}x - \secondline{3} or build a new line from it.

Finding the Slope from Standard Form
4x+2y\displaystyle \firstline{4}x + \firstline{2}y =10\displaystyle = \firstline{10}
Slope\displaystyle \text{Slope} =  ?\displaystyle = \;?
Text solution
Subtract the xx-term and divide to get yy alone Because slope is how much one yy changes when xx goes up by 11, we solve 4x+2y=10\firstline{4}x + \firstline{2}y = \firstline{10} for yy before reading the slope:
4x+2y=102y=−4x+10y=−2x+5\displaystyle \begin{aligned} \firstline{4}x + \firstline{2}y &= \firstline{10} \\ \firstline{2}y &= -\firstline{4}x + \firstline{10} \\ y &= \slope{-2}x + \firstline{5} \end{aligned}
Compare the real slope to the second line Writing the slope −2\slope{-2} as −21\slope{-\frac{2}{1}} shows that it is the flipped fraction with the opposite sign of the slope 12\slope{\frac{1}{2}} in y=12x−3y = \slope{\frac{1}{2}}x - \secondline{3}:
−21→flip and change sign12\displaystyle \slope{-\frac{2}{1}} \xrightarrow{\text{flip and change sign}} \slope{\frac{1}{2}}

So 4x+2y=10\firstline{4}x + \firstline{2}y = \firstline{10} has a real slope of −2\slope{-2} (not 4\firstline{4}), which makes it perpendicular to y=12x−3y = \slope{\frac{1}{2}}x - \secondline{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=3y = \firstline{3} that passes through (5,2)(5, 2).

Parallel and Perpendicular to Horizontal and Vertical Lines
y\displaystyle y =3\displaystyle = \firstline{3}
Perpendicular line\displaystyle \text{Perpendicular line}
through (5,2)?\displaystyle \text{through } (5,2)\text{?}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
y=3y = \htmlClass{lc-blue}{3}
(5,2)(5, 2)
x=5x = \htmlClass{lc-violet}{5}
(5,0)(5, 0)
(5,3)(5, 3)
Text solution
Sketch the given single-letter line The equation y=3y = \firstline{3} means the height yy is always 3\firstline{3}, which is a flat horizontal line at height 3\firstline{3}:
y\displaystyle y =3(horizontal line)\displaystyle = \firstline{3} \quad (\text{horizontal line})
Draw the perpendicular line through (5,2)(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)(5, 2) sits at an xx-value of 5\secondline{5}:
x\displaystyle x =5\displaystyle = \secondline{5}

So x=5x = \secondline{5} is the vertical line that meets y=3y = \firstline{3} at a 90∘90^\circ angle and passes through (5,2)(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 yy by itself, like y=23x+1y = \slope{\frac{2}{3}}x + \firstline{1}, read the slope directly off xx. If xx and yy are together on the same side, like 4x+2y=10\firstline{4}x + \firstline{2}y = \firstline{10}, solve for yy first (y=−2x+5y = \slope{-2}x + \firstline{5}) so you don't mistake 4\firstline{4} for the slope.

Match the angle to the slope rule

Distinct nonvertical lines with the same slope are parallel (m=23→23\slope{m} = \slope{\frac{2}{3}} \to \slope{\frac{2}{3}}), 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=23→−32\slope{m} = \slope{\frac{2}{3}} \to \slope{-\frac{3}{2}}, and 5=51→−15\slope{5} = \slope{\frac{5}{1}} \to \slope{-\frac{1}{5}}). In the pairs 23\slope{\frac{2}{3}} and −23\slope{-\frac{2}{3}}, or 23\slope{\frac{2}{3}} and 32\slope{\frac{3}{2}}, 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)(3, 10) into y=2x+by = \slope{2}x + \secondline{b} (or point-slope form y−10=2(x−3)y - 10 = \slope{2}(x - 3)) to get y=2x+4y = \slope{2}x + \secondline{4}.

When not to use y=mx+by = \slope{m}x + b

If the given equation only has one letter, like the horizontal line y=3y = \firstline{3}, skip slope formulas and draw a quick sketch: a line perpendicular to y=3y = \firstline{3} through (5,2)(5, 2) goes straight up and down where xx is always 5\secondline{5}, giving x=5x = \secondline{5}.

8

Practice

1

Are the lines y=35x−2y = \slope{\frac{3}{5}}x - \firstline{2} and y=53x+4y = \slope{\frac{5}{3}}x + \secondline{4} parallel, perpendicular, or neither?

Both equations already have yy alone, so check both the fractions and the signs of the two slopes.

Compare the slopes 35\slope{\frac{3}{5}} and 53\slope{\frac{5}{3}}. The fraction flipped from 35\slope{\frac{3}{5}} to 53\slope{\frac{5}{3}}, but both slopes are positive, so the sign did not change.
(Watch out: Answering perpendicular just because 35\slope{\frac{3}{5}} flipped to 53\slope{\frac{5}{3}} overlooks the sign. Two positive slopes both climb uphill and cannot meet at 90∘90^\circ.)
AnswerNeither
2

Find the equation of the line parallel to y=−3x+5y = \slope{-3}x + \firstline{5} that passes through (2,1)(2, 1).

What slope does a parallel line take from y=−3x+5y = \slope{-3}x + \firstline{5}, and what do you do with the +5\firstline{+5}?

Keep the parallel slope m=−3\slope{m} = \slope{-3} and ignore the +5\firstline{+5}:
y\displaystyle y =−3x+b\displaystyle = \slope{-3}x + \secondline{b}
(Watch out: Flipping the slope to 13\slope{\frac{1}{3}} uses the perpendicular rule when the problem asks for a parallel line.)
Plug in x=2x = 2 and y=1y = 1:
1=−3(2)+b1=−6+b7=b\displaystyle \begin{aligned} 1 &= \slope{-3}(2) + \secondline{b} \\ 1 &= \slope{-6} + \secondline{b} \\ \secondline{7} &= \secondline{b} \end{aligned}
(Watch out: Subtracting 66 instead of adding 66 to undo −6-6 gives b=−5\secondline{b} = \secondline{-5} and the wrong equation y=−3x−5y = \slope{-3}x - \secondline{5}.)
Answery=−3x+7y = \slope{-3}x + \secondline{7} (or y−1=−3(x−2)y - 1 = \slope{-3}(x - 2))
3

Find the equation of the line perpendicular to y=−25x+7y = \slope{-\frac{2}{5}}x + \firstline{7} that passes through (4,13)(4, 13).

Rotate the slope −25\slope{-\frac{2}{5}} by 90∘90^\circ first, then use (4,13)(4, 13) to find the new starting height b\secondline{b}.

Flip −25\slope{-\frac{2}{5}} and change the sign from negative to positive to get m=52\slope{m} = \slope{\frac{5}{2}}, ignoring the +7\firstline{+7}:
y\displaystyle y =52x+b\displaystyle = \slope{\frac{5}{2}}x + \secondline{b}
(Watch out: Flipping the fraction without changing the sign keeps m=−52\slope{m} = \slope{-\frac{5}{2}}, which leads to 13=−10+b13 = \slope{-10} + \secondline{b}   ⟹  \implies b=23\secondline{b} = \secondline{23} and the wrong line y=−52x+23y = \slope{-\frac{5}{2}}x + \secondline{23}.)
Plug in x=4x = 4 and y=13y = 13:
13=52(4)+b13=10+b3=b\displaystyle \begin{aligned} 13 &= \slope{\frac{5}{2}}(4) + \secondline{b} \\ 13 &= \slope{10} + \secondline{b} \\ \secondline{3} &= \secondline{b} \end{aligned}
Answery=52x+3y = \slope{\frac{5}{2}}x + \secondline{3} (or y−13=52(x−4)y - 13 = \slope{\frac{5}{2}}(x - 4))
4

Find the equation of the line perpendicular to y=4x−9y = \slope{4}x - \firstline{9} that passes through (8,−3)(8, -3).

Write the whole-number slope 4\slope{4} as a fraction over 11 so you can see both steps to flip.

Write 4=41\slope{4} = \slope{\frac{4}{1}}, then flip the fraction and change the sign to get m=−14\slope{m} = \slope{-\frac{1}{4}}:
y\displaystyle y =−14x+b\displaystyle = \slope{-\frac{1}{4}}x + \secondline{b}
(Watch out: Changing the sign without flipping 41\slope{\frac{4}{1}} gives m=−4\slope{m} = \slope{-4}, which leads to −3=−4(8)+b-3 = \slope{-4}(8) + \secondline{b}   ⟹  \implies b=29\secondline{b} = \secondline{29} and y=−4x+29y = \slope{-4}x + \secondline{29}.)
Plug in x=8x = 8 and y=−3y = -3:
−3=−14(8)+b−3=−2+b−1=b\displaystyle \begin{aligned} -3 &= \slope{-\frac{1}{4}}(8) + \secondline{b} \\ -3 &= \slope{-2} + \secondline{b} \\ \secondline{-1} &= \secondline{b} \end{aligned}
(Watch out: Dropping the minus sign when multiplying −14(8)\slope{-\frac{1}{4}}(8) gives −3=2+b  ⟹  b=−5-3 = \slope{2} + \secondline{b} \implies \secondline{b} = \secondline{-5} and the wrong line y=−14x−5y = \slope{-\frac{1}{4}}x - \secondline{5}.)
Answery=−14x−1y = \slope{-\frac{1}{4}}x - \secondline{1} (or y+3=−14(x−8)y + 3 = \slope{-\frac{1}{4}}(x - 8))
5

Are the lines 6x+3y=126x + 3y = 12 and y=12x−1y = \slope{\frac{1}{2}}x - \secondline{1} parallel, perpendicular, or neither?

In 6x+3y=126x + 3y = 12, yy is not by itself yet. Solve for a single yy before comparing slopes.

Get yy alone in 6x+3y=12\firstline{6}x + \firstline{3}y = \firstline{12}:
6x+3y=123y=−6x+12y=−2x+4\displaystyle \begin{aligned} \firstline{6}x + \firstline{3}y &= \firstline{12} \\ \firstline{3}y &= -\firstline{6}x + \firstline{12} \\ y &= \slope{-2}x + \firstline{4} \end{aligned}
(Watch out: Reading 6\firstline{6} directly off 6x\firstline{6}x, or forgetting to subtract 6x\firstline{6}x and getting y=2x+4y = \slope{2}x + \firstline{4} with slope +2\slope{+2}, misses the negative sign and leads to the wrong answer neither.)
Comparing the slope −2=−21\slope{-2} = \slope{-\frac{2}{1}} with 12\slope{\frac{1}{2}}, the fraction is flipped and the signs are opposite.
AnswerPerpendicular
6

Find the equation of the line parallel to 2x−5y=152x - 5y = 15 that passes through (10,6)(10, 6).

Get yy alone in 2x−5y=152x - 5y = 15 first, keeping careful track of the minus sign in front of 5y5y.

Solve 2x−5y=15\firstline{2}x - \firstline{5}y = \firstline{15} for yy to find its slope:
2x−5y=15−5y=−2x+15y=25x−3\displaystyle \begin{aligned} \firstline{2}x - \firstline{5}y &= \firstline{15} \\ -\firstline{5}y &= -\firstline{2}x + \firstline{15} \\ y &= \slope{\frac{2}{5}}x - \firstline{3} \end{aligned}
(Watch out: Losing the negative sign on −5y-\firstline{5}y when dividing gives m=−25\slope{m} = \slope{-\frac{2}{5}}, which leads to 6=−25(10)+b6 = \slope{-\frac{2}{5}}(10) + \secondline{b}   ⟹  \implies b=10\secondline{b} = \secondline{10} and the wrong line y=−25x+10y = \slope{-\frac{2}{5}}x + \secondline{10}.)
Keep the parallel slope m=25\slope{m} = \slope{\frac{2}{5}}, ignore the −3\firstline{-3}, and plug in (10,6)(10, 6):
6=25(10)+b6=4+b2=b\displaystyle \begin{aligned} 6 &= \slope{\frac{2}{5}}(10) + \secondline{b} \\ 6 &= \slope{4} + \secondline{b} \\ \secondline{2} &= \secondline{b} \end{aligned}
Answery=25x+2y = \slope{\frac{2}{5}}x + \secondline{2} (or y−6=25(x−10)y - 6 = \slope{\frac{2}{5}}(x - 10))
7

Find the equation of the line perpendicular to y=−4y = \firstline{-4} that passes through (3,7)(3, 7).

The equation y=−4y = \firstline{-4} only has one letter. Sketch which way y=−4y = \firstline{-4} runs, then draw a line crossing it at 90∘90^\circ through (3,7)(3, 7).

The line y=−4y = \firstline{-4} is a flat horizontal line at height −4\firstline{-4}. A line perpendicular to it must go straight up and down through (3,7)(3, 7), where every point has an xx-coordinate of 3\secondline{3}:
x\displaystyle x =3\displaystyle = \secondline{3}
(Watch out: Writing y=7y = \secondline{7} uses the yy-coordinate of (3,7)(3, 7) instead, which gives the horizontal line parallel to y=−4y = \firstline{-4} rather than perpendicular to it.)
Answerx=3x = \secondline{3}