Write equations of parallel and perpendicular lines
Write the equations of parallel and perpendicular lines
The relationships between slopes of parallel and perpendicular lines can be used to write equations of parallel and perpendicular lines.
Let’s start with an example involving parallel lines.
Example
Write the equation of a line that is parallel to the line x–y=5 and goes through the point (−2,1).
Show Solution
Rewrite the line you want to be parallel to into the y=mx+b form, if needed.
x–y=5−y=−x+5y=x–5
Identify the slope of the given line.
In the equation above, m=1 and b=−5.
Since m=1, the slope is 1.
To find the slope of a parallel line, use the same slope.
The slope of the parallel line is 1.
Use the method for writing an equation from the slope and a point on the line. Substitute 1 for m, and the point (−2,1) for x and y.
y=mx+b1=1(−2)+b
Solve for b.
1=−2+b3=b
Write the equation using the new slope for m and the b you just found.
Answer
y=x+3
Determine the Equation of a Line Parallel to Another Line Through a Given Point
Determine the Equation of a Line Perpendicular to Another Line Through a Given Point
When you are working with perpendicular lines, you will usually be given one of the lines and an additional point. Remember that two non-vertical lines are perpendicular if the slope of one is the negative reciprocal of the slope of the other. To find the slope of a perpendicular line, find the reciprocal, and then find the opposite of this reciprocal. In other words, flip it and change the sign.
Example
Write the equation of a line that contains the point (1,5) and is perpendicular to the line y=2x–6.
Show Solution
Identify the slope of the line you want to be perpendicular to.
The given line is written in y=mx+b form, with m=2 and b=−6. The slope is 2.
To find the slope of a perpendicular line, find the reciprocal, 12, then the opposite, −12.
The slope of the perpendicular line is −12.
Use the method for writing an equation from the slope and a point on the line. Substitute −12 for m, and the point (1,5) for x and y.
y=mx+b5=−12(1)+b
Solve for b.
5=−12+b112=b
Write the equation using the new slope for m and the b you just found.
Answer
y=−12x+112
Determine the Equation of a Line Perpendicular to a Line in Slope-Intercept Form
Example
Write the equation of a line that is parallel to the line y=4 through the point (0,10).
Show Solution
Rewrite the line into y=mx+b form, if needed.
You may notice without doing this that y=4 is a horizontal line 4 units above the x-axis. Because it is horizontal, you know its slope is zero.
y=4y=0x+4
Identify the slope of the given line.
In the equation above, m=0 and b=4.
Since m=0, the slope is 0. This is a horizontal line.
To find the slope of a parallel line, use the same slope.
The slope of the parallel line is also 0.
Since the parallel line will be a horizontal line, its form is
y=a constant
Since we want this new line to pass through the point (0,10), we will need to write the equation of the new line as:
y=10
This line is parallel to y=4 and passes through (0,10).
Answer
y=10
Example
Write the equation of a line that is perpendicular to the line y=−3 through the point (−2,5).
Show Solution
In the equation above, m=0 and b=−3.
A perpendicular line will have a slope that is the negative reciprocal of the slope of y=−3, but what does that mean in this case?
The reciprocal of 0 is 10, but we know that dividing by 0 is undefined.
This means that we are looking for a line whose slope is undefined, and we also know that vertical lines have slopes that are undefined. This makes sense since we started with a horizontal line.
The form of a vertical line is x=a constant, where every x-value on the line is equal to some constant. Since we are looking for a line that goes through the point (−2,5), all of the x-values on this line must be −2.
The equation of a line passing through (−2,5) that is perpendicular to the horizontal line y=−3 is therefore,
x=−2
Answer
x=−2
Try It
Find the Equation of a Perpendicular and Horizontal Line to a Horizontal Line
Summary
When lines in a plane are parallel (that is, they never cross), they have the same slope. When lines are perpendicular (that is, they cross at a 90° angle), their slopes are opposite reciprocals of each other. The product of their slopes will be −1, except in the case where one of the lines is vertical causing its slope to be undefined. You can use these relationships to find an equation of a line that goes through a particular point and is parallel or perpendicular to another line.