Subsection 9.1.1 Horizontal and Vertical Lines
In Section 1.5 we learned that the general form for a linear equation is
\begin{gather*}
Ax + By = C
\end{gather*}
What happens if \(A = 0\text{?}\) For example, what does the graph of
\begin{gather*}
0x + y = 3, \quad \text{ or } \quad y = 3
\end{gather*}
look like? This equation tells us that every point on the line must have \(y\)-coordinate 3, but it puts no restrictions on the \(x\)-coordinates. For example,
\begin{gather*}
(−1, 3), \quad (2, 3),\quad \text{ and } \quad (4, 3)
\end{gather*}
are all solutions of the equation. These points lie on a horizontal line, as shown below left.
On the other hand, if \(B = 0\text{,}\) we have an equation such as
\begin{gather*}
x + 0y = -2, \quad \text{ or }\quad x = -2
\end{gather*}
This equation tells us that any point with \(x\)-coordinate \(-2\) lies on the graph. For example, \((-2, 3)\) and \((-2, -1)\) are solutions. All the solutions lie on the vertical line shown above right.
Note that the horizontal line \(y = 3\) has \(y\)-intercept \((0, 3)\) but no \(x\)-intercept, and the vertical line \(x = -2\) has \(x\)-intercept \((-2, 0)\) but no \(y\)-intercept.
Horizontal and Vertical Lines.
The equation of the horizontal line passing through \((0, b)\) is
\begin{gather*}
\blert{y=b}
\end{gather*}
The equation of the vertical line passing through \((a,0)\) is
\begin{gather*}
\blert{x=a}
\end{gather*}
Example 9.1.1.
Give the equation of each line.
Solution.
This is a horizontal line with \(y\)-intercept \((0, -2)\text{,}\) so its equation is \(y = -2\text{.}\)
This is a vertical line with \(x\)-intercept \((3,0)\text{,}\) so its equation is \(x=3\text{.}\)
Now let’s compute the slopes of the two lines in the previous
Example.
\(~\alert{\text{[TK]}}\) We choose two points on the graph of
\(y=-2\text{,}\) say
\((-5, -2)\) and
\((4, -2)\text{,}\) and use these points to compute the slope.
\begin{gather*}
m=\frac{y_2-y_1}{x_2-x_1}= \frac{-2-(-2)}{4-(-5)}=\frac{0}{9}=0
\end{gather*}
The slope of the horizontal line \(y = -2\) is zero. In fact, the slope of any horizontal line is zero, because the \(y\)-coordinates of all the points on the line are equal. Thus, for any horizontal line
\begin{gather*}
m=\frac{y_2-y_1}{x_2-x_1}=\frac{0}{x_2-x_1}=0
\end{gather*}
On a vertical line, the \(x\)-coordinates of all the points are equal. For example, two points on the line \(x = 3\) are \((3, 1)\) and \((3, 6)\text{.}\) Using these points to compute the slope, we find
\begin{gather*}
m=\frac{y_2-y_1}{x_2-x_1}= \frac{6-1}{3-3}=\frac{5}{0}
\end{gather*}
which is undefined. The slope of any vertical line is undefined because the expression \(x_2-x_1\) equals zero.
Slopes of Horizontal and Vertical Lines.
The slope of a horizontal line is zero.
The slope of a vertical line is undefined.
Checkpoint 9.1.2. Practice 1.
What is the slope of any line parallel to the \(x\)-axis?
What is the slope of any line parallel to the \(y\)-axis?
Checkpoint 9.1.3. QuickCheck 1.
Decide whether each statement is true or false.
A horizontal line has no slope.
The equation of a vertical line is undefined.
A vertical line is not the graph of a function.
The graph of \(x = 6\) is a point.
Subsection 9.1.2 Parallel and Perpendicular Lines
Lines that lie in the same plane but never intersect are called parallel lines. They have the same "steepness" or inclination, so it is easy to understand that parallel lines have the same slope. You can verify that the parallel lines in the figure at right both have slope \(m = 2.\)
Perpendicular lines in a plane meet at right angles, or 90°. The relationship between the slopes of perpendicular lines is not so easy to see as the relationship for parallel lines. However, for the perpendicular lines shown at left, you can verify that
\begin{equation*}
m_1=\frac{1}{2} \quad\text{ and } \quad m_2 =-2
\end{equation*}
Note that the product of \(m_1\) and \(m_2\) is \(-1\text{,}\) that is,
\begin{equation*}
m_1 m_2 = \frac{1}{2}(-2)=-1
\end{equation*}
This relationship holds for any pair of perpendicular lines. We summarize these results as follows.
Parallel and Perpendicular Lines.
Two lines are parallel if their slopes are equal, that is, if
\begin{equation*}
\blert{m_1 = m_2}
\end{equation*}
or if both lines are vertical.
Two lines are perpendicular if the product of their slopes is \(-1\text{,}\) that is, if
\begin{equation*}
\blert{m_1 m_2 = -1}
\end{equation*}
or if one of the lines is horizontal and one is vertical.
Another way to state the condition for perpendicular lines is
\begin{equation*}
m_2=\frac{-1}{m_1}
\end{equation*}
Because of this relationship, we often say that the slope of one perpendicular line is the negative reciprocal of the other.
Example 9.1.4.
Decide whether the lines
\begin{equation*}
2x + 3y = 6 \qquad \text{ and } \qquad 3x − 2y = 6
\end{equation*}
are parallel, perpendicular, or neither.
Solution.
We could graph the lines, but we can’t be sure from a graph if the lines are exactly parallel or exactly perpendicular. A more accurate way to settle the question is to find the slope of each line. To do this we write each equation in slope-intercept form; that is, we solve for \(y\text{.}\)
\begin{align*}
2x + 3y \amp = 6 \qquad\qquad \amp 3x − 2y\amp = 6\\
3y\amp= -2x+6 \qquad\qquad\amp −2y\amp=-3x + 6\\
y\amp= \frac{-2}{3}x+2 \qquad\qquad\amp y\amp=\frac{-3}{2}x-3
\end{align*}
The slope of the first line is \(m_1=\dfrac{-2}{3}\text{,}\) and the slope of the second line is \(m_2=\dfrac{3}{2}\text{.}\) The slopes are not equal, so the lines are not parallel. However, the product of the slopes is
\begin{equation*}
m_1 m_2 = \left(\frac{-2}{3}\right)\left(\frac{3}{2}\right)=-1
\end{equation*}
so the lines are perpendicular.
Checkpoint 9.1.5. Practice 2.
What is the slope of a line that is parallel to \(x + 4y = 2\text{?}\)
What is the slope of a line that is perpendicular to \(x + 4y = 2\text{?}\)
Answer.
\(\displaystyle \dfrac{-1}{4} \)
\(\displaystyle 4\)
Checkpoint 9.1.6. QuickCheck 2.
Decide whether each statement is true or false.
The best way to test whether two lines are perpendicular is to graph them.
Two lines are perpendicular if their slopes are reciprocals.
If two lines are not parallel, they must be perpendicular.
A vertical line is perpendicular to a horizontal line.
Subsection 9.1.3 Applications to Geometry
These relationships for the slopes of parallel and perpendicular lines can help us solve numerous geometric problems.
Example 9.1.7.
Show that the triangle with vertices \(A (0, 8)\text{,}\) \(B (6, 2)\text{,}\) and \(C (-4, 4)\) is a right triangle.
Solution.
We will show that two of the sides of the right triangle are perpendicular. The line segment \(~\overline{AB}~\) has slope
\begin{equation*}
m_1=\frac{2-8}{6-0}=\frac{-6}{6}=-1
\end{equation*}
and the segment \(\overline{AC} ~ \) has slope
\begin{equation*}
m_2=\frac{4-8}{-4-0}=\frac{-4}{-4}=1
\end{equation*}
Because
\begin{equation*}
m_1 m_2 = (-1)(1)=-1
\end{equation*}
The sides \(\overline{AB}\) and \(\overline{AC}\) perpendicular, and therefore the triangle is a right triangle. \(~\alert{\text{[TK]}}\)
Checkpoint 9.1.8. Practice 3.
Show that the quadrilateral with vertices \(A (-5, 4)\text{,}\) \(B (7, -11)\text{,}\) \(C (12, 25)\text{,}\) and \(D(0, 40)\) is a parallelogram.
(Hint: Show that \(\overline{AB} \) is parallel to \(\overline{CD} \text{,}\) and that \(\overline{BC} \) is parallel to \(\overline{AD} \text{.}\))
Answer.
\(m_{AB}=m_{CD}=\dfrac{-5}{4}\text{;}\) \(m_{BC}=m_{AD}=\dfrac{36}{5}\)
Example 9.1.9.
Find an equation for the line that passes through the point \((1, 4)\) and is perpendicular to the line \(4x -2y = 6\text{.}\) \(~\alert{\text{[TK]}}\)
Solution.
First we find the slope of the desired line, then use the point-slope formula to write its equation. The line we want is perpendicular to the given line, so its slope is the negative reciprocal of \(m_1 = 2\text{,}\) the slope of the given line. Thus
\begin{equation*}
m_2=\frac{-1}{m_1}=\frac{-1}{2}
\end{equation*}
Now we use the point-slope formula with \(m =\dfrac{-1}{2}\) and \((x_1, y_1) = (1, 4)\text{.}\)
\begin{align*}
y-y_1 \amp=m(x-x_1) \\
y-4 \amp=\frac{-1}{2}(x-1) \amp\amp\blert{\text{Apply the distributive law.}}\\
y-4 \amp=\frac{-1}{2}x+\frac{1}{2} \amp\amp\blert{\text{Add 4 to both sides.}}\\
y \amp= \frac{-1}{2}x+\frac{9}{2} \amp\amp\blert{\frac{1}{2}+4=\frac{1}{2}+\frac{8}{2}=\frac{9}{2} }
\end{align*}
The given line and the perpendicular line are shown in the figure above.
Checkpoint 9.1.10. Practice 4.
Follow the steps to find an equation for the altitude of the triangle shown at right. (Recall that the altitude of a triangle is perpendicular to its base.)
Find the slope of the base.
\begin{equation*}
m_1=
\end{equation*}
Find the slope of the altitude.
\begin{equation*}
m_2=
\end{equation*}
Use the point-slope formula. Use \(m_2\) for the slope, and the vertex of the triangle for \((x_1, y_1)\text{.}\)
\begin{equation*}
y- y_1 = m (x- x_1)
\end{equation*}
Write your answer in slope-intercept form.
Answer.
\(y=\dfrac{-5}{2}x+\dfrac{17}{2} \)