A universe of knowledge for every stage of learningGlobal portal
Home › Mathematics › Grade 8 › Horizontal and Vertical Line Slopes
MATHEMATICS · Grade 8

Horizontal and Vertical Line Slopes

Distinguish zero slope from undefined slope. Connect horizontal and vertical lines to their equations.

5 min · Expressions and equations · Foundations

Learning goals

  • Distinguish zero slope from undefined slope.
  • Connect horizontal and vertical lines to their equations.

Understand the concept

Slope is the change in y divided by the change in x between two distinct points. On a horizontal line, y is constant, so the numerator is zero and the denominator is nonzero. Its slope is zero and its equation is y = c.

On a vertical line, x is constant, so the denominator is zero. Its slope is undefined, not zero or a real number called infinity. Its equation is x = c. A vertical line is not the graph of a function y of x, because one x has multiple y values.

Worked example 1

The points (−2, 5) and (3, 5) give slope (5 − 5)/(3 − (−2)) = 0. Their line is y = 5.

Worked example 2

The points (4, −1) and (4, 7) give (7 − (−1))/(4 − 4) = 8/0. The slope is undefined and the line is x = 4.

PRACTICE TIME

Check your understanding

1. What is the slope of y = −7?
Show worked answer

0. The y-coordinate is constant.

2. What is the slope through (2, 1) and (2, 6)?
Show worked answer

Undefined. The change in x is zero.

3. Which equation describes a vertical line through (−3, 8)?
Show worked answer

x = −3. All points on the vertical line have x-coordinate −3.

UNVRST English edition · Educational support · Editorial policy