Determine whether two lines are parallel or perpendicular
Find the equations of parallel and perpendicular lines
Write the equations of lines that are parallel or perpendicular to a given line
Parallel lines have the same slope and different y-intercepts. Lines that are parallel to each other will never intersect. For example, the figure below shows the graphs of various lines with the same slope, m=2.
Parallel lines
All of the lines shown in the graph are parallel because they have the same slope and different y-intercepts.
Lines that are perpendicular intersect to form a 90∘ -angle. The slope of one line is the negative reciprocal of the other. We can show that two lines are perpendicular if the product of the two slopes is −1:m1⋅m2=−1. For example, the figure above shows the graph of two perpendicular lines. One line has a slope of 3; the other line has a slope of −31.
m1⋅m2=−13⋅(−31)=−1
Perpendicular lines
Example: Graphing Two Equations, and Determining Whether the Lines are Parallel, Perpendicular, or Neither
Graph the equations of the given lines, and state whether they are parallel, perpendicular, or neither: 3y=−4x+3 and 3x−4y=8.
Answer:
The first thing we want to do is rewrite the equations so that both equations are in slope-intercept form.
First equation:
3y=−4x+3y=−34x+1
Second equation:
3x−4y=8−4y=−3x+8y=43x−2
See the graph of both lines in the graph below.
From the graph, we can see that the lines appear perpendicular, but we must compare the slopes.
m1=−34m2=43m1⋅m2=(−34)(43)=−1
The slopes are negative reciprocals of each other, confirming that the lines are perpendicular.
Try It now
Graph the two lines and determine whether they are parallel, perpendicular, or neither: 2y−x=10 and 2y=x+4.
Answer:
Parallel lines: equations are written in slope-intercept form.
Check your work with Desmos.
Writing Equations of Perpendicular Lines
We can use a very similar process to write the equation for a line perpendicular to a given line. Instead of using the same slope, however, we use the negative reciprocal of the given slope. Suppose we are given the following function:
f(x)=2x+4
The slope of the line is 2, and its negative reciprocal is −21. Any function with a slope of −21 will be perpendicular to f(x). So the lines formed by all of the following functions will be perpendicular to f(x).
⎩⎨⎧g(x)=−21x+4h(x)=−21x+2p(x)=−21x−21
As before, we can narrow down our choices for a particular perpendicular line if we know that it passes through a given point. Suppose then we want to write the equation of a line that is perpendicular to f(x) and passes through the point (4, 0). We already know that the slope is −21. Now we can use the point to find the y-intercept by substituting the given values into the slope-intercept form of a line and solving for b.
⎩⎨⎧g(x)=mx+b0=−21(4)+b0=−2+b2=bb=2
The equation for the function with a slope of −21 and a y-intercept of 2 is g(x)=−21x+2.
So g(x)=−21x+2 is perpendicular to f(x)=2x+4 and passes through the point (4, 0). Be aware that perpendicular lines may not look obviously perpendicular on a graphing calculator unless we use the square zoom feature.
Q & A
A horizontal line has a slope of zero and a vertical line has an undefined slope. These two lines are perpendicular, but the product of their slopes is not –1. Doesn’t this fact contradict the definition of perpendicular lines?No. For two perpendicular linear functions, the product of their slopes is –1. However, a vertical line is not a function so the definition is not contradicted.
How To: Given the equation of a function and a point through which its graph passes, write the equation of a line perpendicular to the given line.
Find the slope of the function.
Determine the negative reciprocal of the slope.
Substitute the new slope and the values for x and y from the coordinate pair provided into g(x)=mx+b.
Solve for b.
Write the equation for the line.
Example: Finding the Equation of a Perpendicular Line
Find the equation of a line perpendicular to y=3x+3 that passes through the point (3, 0).
Answer:
The original line has slope m = 3, so the slope of the perpendicular line will be its negative reciprocal, or −31. Using this slope and the given point, we can find the equation for the line.
⎩⎨⎧y2=−31x+b0=−31(3)+b1=bb=1
The line perpendicular to y that passes through (3, 0) is y2=−31x+1.
Analysis of the Solution
A graph of the two lines is shown in the graph below.
Try It
Given the line y=2x−4, write an equation for the line passing through (0, 0) that is
parallel to y
perpendicular to y
Answer:
y=2xis parallel
y=−21xis perpendicular
Example: Finding the Equation of a Line Perpendicular to a Given Line Passing Through a Given Point
Find the equation of the line perpendicular to 5x−3y+4=0(−4,1).
Answer:
The first step is to write the equation in slope-intercept form.
5x−3y+4=0−3y=−5x−4y=35x+34
We see that the slope is m=35. This means that the slope of the line perpendicular to the given line is the negative reciprocal, or −53. Next, we use the point-slope formula with this new slope and the given point.
Revision and Adaptation.Provided by: Lumen LearningLicense: CC BY: Attribution.
CC licensed content, Shared previously
College Algebra.Provided by: OpenStaxAuthored by: Abramson, Jay et al..Located at: https://openstax.org/books/college-algebra/pages/1-introduction-to-prerequisites.License: CC BY: Attribution. License terms: Download for free at http://cnx.org/contents/9b08c294-057f-4201-9f48-5d6ad992740d@5.2.
Question ID 1436.Authored by: WebWork-Rochester.License: CC BY: Attribution. License terms: IMathAS Community License CC- BY + GPL.
Question ID 110960, 110970, 110971.Authored by: Lumen Learning.License: CC BY: Attribution. License terms: IMathAS Community License CC- BY + GPL.