Lesson Explainer: Equations of Parallel and Perpendicular Lines | Nagwa Lesson Explainer: Equations of Parallel and Perpendicular Lines | Nagwa

Lesson Explainer: Equations of Parallel and Perpendicular Lines Mathematics

Join Nagwa Classes

Attend live Mathematics sessions on Nagwa Classes to learn more about this topic from an expert teacher!

In this explainer, we will learn how to write the equation of a line parallel or perpendicular to another line.

Parallel lines are straight lines that never intersect. To understand the link between parallel lines and their slopes, let us consider two lines of equations 𝑦=𝑚𝑥+𝑏 and 𝑦=𝑚𝑥+𝑏.

We can solve for the point of intersection by setting the expressions for 𝑦 to be equal: 𝑚𝑥+𝑏=𝑚𝑥+𝑏.

Now, we rearrange so that the 𝑥-terms are on the same side of the equation: 𝑚𝑥𝑚𝑥=𝑏𝑏.

By factoring, we find (𝑚𝑚)𝑥=𝑏𝑏.

Finally, we note that we can isolate the variable 𝑥 by dividing by 𝑚𝑚, and so, only if 𝑚𝑚, this gives 𝑥=𝑏𝑏𝑚𝑚.

This shows us that two lines intersect only if their slopes are not equal. Conversely, we can conclude that lines of the same slope do not intersect; a pair of parallel lines will have the same slopes.

We can see this by considering the slopes of a pair of parallel lines.

For every 𝑥 units we go across on either line, we must travel 𝑦 units in the vertical direction on both lines; otherwise, the lines will intersect. It is worth noting that there is one small problem with this reasoning, which is if we have vertical lines. In this case, we cannot talk about the slope, since vertical lines do not have a slope. However, we can note that a pair of distinct vertical lines will be parallel. We have the following result.

Property: Slopes of Parallel Lines

If two nonvertical lines are parallel, then they have the same slopes.

If two distinct lines have the same slopes (𝑚=𝑚) or are both vertical, then they are parallel.

This allows us to check if two lines are parallel. For example, consider the lines 𝑦=3𝑥+2 and 3𝑥+𝑦=1. We can recall that a line given in the form 𝑦=𝑚𝑥+𝑐 has a slope of 𝑚 and a 𝑦-intercept of 𝑐. The first line is given in this form, so its slope is given by the coefficient of 𝑥, which is 3. We can subtract 3𝑥 from both sides of the equation of the second line to get 𝑦=3𝑥+1.

The coefficient of 𝑥 is 3, so its slope is also 3. It is important to check that the 𝑦-intercepts of the two lines are different. If they had the same 𝑦-intercept, then the two lines would actually be the same line (called coincident lines).

Since the two lines are distinct and have the same slopes, we can conclude that they are parallel. This property allows us to check if any two lines are parallel.

We can now ask the question of how to check if two lines are perpendicular. We can do this by sketching any nonvertical lines, including a right triangle representing its slope.

A line perpendicular to this line will meet the line at right angles. We can find any line like this by rotating the red line 90. If we rotate the line 90, we will also rotate the triangle 90.

We can then calculate the slope of the perpendicular line: for every 𝑏 units we move across, we move 𝑎 units down. Its slope is 𝑎𝑏. Thus, if a line has slope 𝑏𝑎, then the lines perpendicular to this line have slope 𝑎𝑏. We can think of this in two ways: either we take the negative of the reciprocal of the slope or the product of the slopes as 1. The same is true in reverse: if two lines have slopes whose product is 1, then they are perpendicular. We have the following property.

Property: Slopes of Perpendicular Lines

If two nonvertical lines are perpendicular, then their slopes are the negative of the reciprocal of each other. Alternatively, the product of their slopes gives 1.

If two lines have slopes 𝑚 and 𝑚 such that 𝑚=1𝑚, then they are perpendicular.

The only caveat to this property is if we have horizontal or vertical lines. In this case, we can note that horizontal and vertical lines are perpendicular to each other even though their slopes do not satisfy this property.

In our first example, we will determine the relationship between a pair of lines from their equations.

Example 1: Identifying Whether Two Lines Are Parallel, Perpendicular, or Otherwise

How would you describe the relation between the lines 𝑦=17𝑥+9 and 𝑥+7𝑦+4=0?

  1. Parallel
  2. Coincident
  3. Perpendicular
  4. Intersecting and not perpendicular

Answer

To determine if the lines are parallel or perpendicular, we first want to find their slopes. We can do this by writing both equations in the form 𝑦=𝑚𝑦+𝑐, where 𝑚 is the slope and 𝑐 is the 𝑦-intercept. The first equation is already in this form, so it has slope 17. We can rearrange the second equation to get 𝑥+7𝑦+4=07𝑦=𝑥4𝑦=17𝑥47.

Therefore, the second line also has a slope of 17. Since both lines have the same slopes, they are either parallel or coincident. We can see that the first line has a 𝑦-intercept of 9 but the second line has a 𝑦-intercept of 47. Since the two lines pass through different 𝑦-intercepts, they cannot be the same line, so they are not coincident.

Hence, since the lines have the same slopes and are not coincident, they must be parallel which is option A.

In our next example, we will find the equation of a line given a point on the line and the equation of a parallel line.

Example 2: Finding the Equation of a Line given a Point on the Line and a Parallel Line

Write, in the form 𝑦=𝑚𝑥+𝑐, the equation of the line through (1,1) that is parallel to the line 6𝑥𝑦+4=0.

Answer

We first recall that the equation of a line with a slope of 𝑚 that passes through (𝑥,𝑦) can be written as 𝑦𝑦=𝑚(𝑥𝑥). As we have the coordinates of a point on the line, we now need to find its slope. To do this, we use the fact that the line is parallel to the line 6𝑥𝑦+4=0. As parallel lines have the same slopes (unless they are both vertical), we want to find the slope of the line 6𝑥𝑦+4=0. We can do this by rewriting its equation in the form 𝑦=𝑚𝑥+𝑐.

We add 𝑦 to both sides of the equation to get 𝑦=6𝑥+4.

The coefficient of 𝑥 is 6, so the slope of this line, and thus of our line, is 6.

Substituting 𝑚=6, 𝑥=1, and 𝑦=1 into the equation 𝑦𝑦=𝑚(𝑥𝑥) gives us 𝑦(1)=6(𝑥(1))𝑦+1=6(𝑥+1).

We can now expand the brackets and rearrange to get 𝑦+1=6𝑥6𝑦=6𝑥7.

In our next example, we will find the equation of a line given a point on the line and two points on another parallel line.

Example 3: Finding the Equation of a Line given a Point on the Line and Two Points on Another Parallel Line

Find, in slope–intercept form, the equation of the straight line passing through the point (3,1) and parallel to the straight line passing through the two points (1,1) and (4,3).

Answer

We first recall that the slope–intercept form of a line is the equation 𝑦=𝑚𝑥+𝑐, where the line has a slope of 𝑚 and a 𝑦-intercept of 𝑐. We are not given the slope or 𝑦-intercept of this line.

Instead, we are given a point on the line and two points on a parallel line. We can recall that for the lines to be parallel, they need to have the same slopes. We can determine the slope of a line through (𝑥,𝑦) and (𝑥,𝑦) by using the formula 𝑚=𝑦𝑦𝑥𝑥.

Substituting 𝑥=1, 𝑦=1, 𝑥=4, and 𝑦=3 into the formula for the slope yields 𝑚=(1)(3)(1)(4)=23.

Therefore, the slope of our line is 23.

Now, we can write the equation of our line in the form 𝑦𝑦=𝑚(𝑥𝑥), where 𝑚 is its slope and (𝑥,𝑦) are the coordinates of a point it passes through. Substituting 𝑚=23, 𝑥=3, and 𝑦=1 into this equation gives us 𝑦1=23(𝑥3).

The last step is to rearrange this equation into the form 𝑦=𝑚𝑥+𝑐. We start by expanding the brackets to get 𝑦1=23𝑥+23(3)𝑦1=23𝑥+2.

We now add 1 to both sides of the equation to obtain 𝑦=23𝑥+3.

In our next example, we will find the equation of a line given a point on the line and the equation of a perpendicular line.

Example 4: Finding the Equation of a Line given a Point on the Line and a Perpendicular Line

Find, in slope–intercept form, the equation of the line perpendicular to 𝑦=2𝑥4 that passes through the point 𝐴(3,3).

Answer

We first recall that the slope–intercept form of a line is the equation 𝑦=𝑚𝑥+𝑐, where the line has a slope of 𝑚 and a 𝑦-intercept of 𝑐. We are not given the slope or 𝑦-intercept of this line.

Instead, we are given a point on the line and the equation of a perpendicular line. We can determine the slope of the line by noting that it is perpendicular to the line 𝑦=2𝑥4; perpendicular lines have slopes that multiply to give 1 (unless one is a vertical line).

We can see that we are given the equation of the perpendicular line in slope–intercept form. The coefficient of 𝑥 is 2, so the slope of this line is 2. The slope of the line we want to find is the negative of the reciprocal of this value. We have 𝑚=12.

We know that the equation of a line with a slope of 𝑚 that passes through (𝑥,𝑦) can be written in the form 𝑦𝑦=𝑚(𝑥𝑥).

Substituting 𝑚=12, 𝑥=3, and 𝑦=3 into this equation gives us 𝑦(3)=12(𝑥3)𝑦+3=12(𝑥3).

We can now expand the brackets and rearrange to get 𝑦+3=12𝑥+32𝑦=12𝑥32.

In our next example, we will find the equation of a line given a point on the line and two points on a perpendicular line.

Example 5: Finding the Equation of a Line given a Point on the Line and Two Points on Another Perpendicular Line

Find the equation of the straight line passing through the point (1,1) and perpendicular to the straight line passing through the points (9,9) and (6,3).

Answer

We want to determine the equation of a straight line given a point on the line and two points on a perpendicular line. We can do this by recalling that the equation of a line of slope 𝑚 that passes through the point (𝑥,𝑦) is 𝑦𝑦=𝑚(𝑥𝑥). We already know that our line passes through the point (1,1), so we just need its slope.

We can find the slope of the line by recalling that its product with the slope of the line perpendicular to it will be 1. We can determine the slope of a line passing through (𝑥,𝑦) and (𝑥,𝑦) using the formula 𝑦𝑦𝑥𝑥. Substituting 𝑥=9, 𝑦=9, 𝑥=6, and 𝑦=3 into this formula gives us the slope 𝑚 of the perpendicular line: 𝑚=9(3)(9)6=45.

Taking the negative of the reciprocal of this value gives us the slope 𝑚 of our line: 𝑚=1𝑚=54.

We can now substitute 𝑚=54, 𝑥=1, and 𝑦=1 into the equation of a line to get 𝑦1=54(𝑥(1)).

We can now expand the brackets and rearrange to obtain 𝑦1=54𝑥+54𝑦=54𝑥+54+1𝑦=54𝑥+94.

In our next example, we will determine whether the lines between two pairs of points are parallel, perpendicular, or neither.

Example 6: Determining Whether the Lines Between Given Points Are Parallel, Perpendicular, or Neither

Given that the coordinates of the points 𝐴, 𝐵, 𝐶, and 𝐷 are (15,8), (6,10), (8,7), and (6,16), respectively, determine whether 𝐴𝐵 and 𝐶𝐷 are parallel, perpendicular, or neither.

Answer

We can check the relationship between a pair of lines by comparing the slopes. We recall that parallel lines have the same slopes and perpendicular lines have slopes that multiply to give 1, provided that neither line is vertical.

We can calculate the slope of a line passing through (𝑥,𝑦) and (𝑥,𝑦) using the formula 𝑚=𝑦𝑦𝑥𝑥. Substituting 𝑥=15, 𝑦=8, 𝑥=6, and 𝑦=10 into the formula gives 𝑚=81015(6)=29.

Substituting 𝑥=8, 𝑦=7, 𝑥=6, and 𝑦=16 into the formula gives 𝑚=7(16)8(6)=92.

We see that the product of the slopes of the lines is 1: 𝑚×𝑚=29×92=1.

Thus, the lines are perpendicular.

In our final example, we will use the fact that adjacent sides in a rectangle are perpendicular and opposite sides are parallel to determine the coordinates of the final vertex in a rectangle given the coordinates of the other three vertices.

Example 7: Determining Whether the Lines Between Given Points Are Parallel, Perpendicular, or Neither

The vertices of a rectangle 𝐴𝐵𝐶𝐷 have the coordinates 𝐴(3,5), 𝐵(3,7), 𝐶(6,2), and 𝐷(𝑥,𝑦). Determine the values of 𝑥 and 𝑦.

Answer

We first recall that the adjacent sides in a rectangle are perpendicular. This means that 𝐴𝐵 is perpendicular to 𝐶𝐷. We can find expressions for the slopes of these lines and then use the fact that the lines are parallel to find an equation involving 𝑥 and 𝑦.

We can calculate the slope of a line passing through (𝑥,𝑦) and (𝑥,𝑦) using the formula 𝑚=𝑦𝑦𝑥𝑥. Substituting 𝑥=3, 𝑦=5, 𝑥=3, and 𝑦=7 into the formula gives 𝑚=5733=13.

Substituting 𝑥=6, 𝑦=2, 𝑥=𝑥, and 𝑦=𝑦 into the formula gives 𝑚=2𝑦6𝑥.

Since the lines are parallel, they will have the same slopes. Hence, 𝑚=𝑚13=2𝑦6𝑥.

We can rearrange this equation to get 3(2𝑦)=6𝑥3𝑦6=6𝑥3𝑦=12𝑥.

This is not enough information to find the values of 𝑥 and 𝑦. We can follow this process again with 𝐴𝐵 and 𝐴𝐷. This time, the sides are adjacent, so they must be perpendicular.

Substituting 𝑥=3, 𝑦=5, 𝑥=𝑥, and 𝑦=𝑦 into the formula gives 𝑚=5𝑦3𝑥.

We can note that 𝐴𝐵 is neither horizontal nor vertical, so 𝐴𝐷 will not be horizontal or vertical. Thus, the product of the slopes of the lines will be 1, since they are perpendicular: 𝑚×𝑚=113×5𝑦3𝑥=1.

We can rearrange this equation to get 5𝑦=3(3𝑥)5𝑦=3𝑥+9𝑦=3𝑥+4.

We now have a pair of simultaneous equations involving 𝑥 and 𝑦. We can solve these to determine the values of 𝑥 and 𝑦. Using the second equation, we have 𝑦=(3𝑥+4)=3𝑥4.

We can substitute this expression for 𝑦 into the equation 3𝑦=12𝑥 to get 3(3𝑥4)=12𝑥.

Expanding the brackets yields 9𝑥+12=12𝑥.

We can then solve for 𝑥9𝑥+𝑥=121210𝑥=0𝑥=0.

Substituting 𝑥=0 into the equation 𝑦=3𝑥4 gives us 𝑦=3(0)4=4.

Hence, 𝑥=0 and 𝑦=4.

Let us finish by recapping some of the important points from this explainer.

Key Points

  • If two nonvertical lines are parallel, then they have the same slopes.
  • If two distinct lines have the same slopes (𝑚=𝑚) or are both vertical, then they are parallel.
  • If two nonvertical lines are perpendicular, then their slopes are the negatives of the reciprocals of each other. Alternatively, the product of their slopes gives 1.
  • If two lines have slopes 𝑚 and 𝑚 such that 𝑚=1𝑚, then they are perpendicular.
  • Distinct vertical lines are parallel to each other.
  • Horizontal and vertical lines are perpendicular to each other.
  • We can check if the sides of polygons are parallel or perpendicular from the coordinates of their vertices by comparing the slopes of the sides.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy