7.4: Equations of Vertical and Horizontal Lines
The equation of a vertical line is of the form \(x = c\), where \(c\) is any real number. The vertical line will always intersect the \(x\)−axis at the point \((c, 0)\). The slope of a vertical line is undefined .
Find the slope of the line \(x = 4\) and graph the line.
Solution
\(x = 4\) is the graph of a vertical line as shown in the figure below.
To find the slope of line \(x = 4\) choose any two distinct points on the line. Let the points be \((4, −1)\) and \((4, 3)\). Using the slope of a line formula,
\(\begin{array} &&m = \dfrac{y_2 − y_1}{x_2 − x_1} &\text{The slope of a line formula} \\ &= \dfrac{3 − (−1)}{4 − 4} &\text{Substitute values} \\ &= \dfrac{4}{0} &\text{Simplify} \end{array}\)
Now, if \(4\) is divided by \(0\), this is equivalent to asking the question, ”what number times zero gives \(4\)?” the answer is, there is no such number. Division by zero is undefined, and the slope of the vertical line \(x = 4\) is undefined .
The equation of a horizontal line is of the form \(y = k\), where \(k\) is any real number. The horizontal line will always intersect the \(y\)−axis at the point \((0, k)\). The slope of a horizontal line is Zero .
Find the slope of the line that passes through the points \((−3, −2)\) and \((4, −2)\). Plot the points and graph the line that passes through them.
Solution
Use the slope of the line formula. Thus,
\(\begin{array} &&m = \dfrac{y_2 − y_1}{x_2 − x_1} &\text{The slope of a line formula} \\ &= \dfrac{(−2) − (−2)}{4 − (−3)} &\text{Substitute values} \\ &= \dfrac{0}{7} &\text{Simplify} \\ &= 0 &\text{\(0\) divided by any nonzero number is equal to zero} \end{array}\)
Therefore, the line that passes through the two given points is a horizontal line, with slope equal zero, as shown in the figure below.
Graph the line \(y − 3 = 0\) and find its slope.
Solution
The line \(y − 3 = 0\) can be written as \(y = 3\) (add \(3\) to both sides of the equation). The line \(y = 3\) is a horizontal line, as shown in the figure below.
Now, to find the slope, choose any two distinct points on the line \(y = 3\). Consider points \((0, 3)\) and \((3, 3)\). Thus,
\(\begin{array} &&m = \dfrac{y_2 − y_1}{x_2 − x_1} &\text{The slope of a line formula} \\ &= \dfrac{3-3}{3-0} &\text{Substitute values} \\ &= \dfrac{0}{2} &\text{Simplify} \\ &= 0 &\text{\(0\) divided by any nonzero number is equal to zero} \end{array}\)
Therefore, the slope of the given line is \(m = 0.\)
Find the slope of each line.
- \(x = −\dfrac{1}{2}\)
- \(y − 1 = 0\)
- \(x + 7 = 10\)
- \(y + 2 = −9\)
- Find the slope of the line that passes through the points \((−4, 1)\) and \((2, 1)\). Plot the points and graph the line that passes through them.
- Find the slope of the line that passes through the points \((−3, 5)\) and \((−3, −7)\). Plot the points and graph the line that passes through them.