6.2k views
1 vote
Why does a horizontal line have a slope of zero, but a vertical line have an undefined slope?

User Lotfio
by
9.0k points

1 Answer

5 votes
Refer to the diagram shown below.
Define two positions on each line as A (x₁, y₁) and B(x₂, y₂).
Then the slope is

m= (y_(2)-y_(1))/(x_(2)-x_(1))

Horizontal line:
Define A (0, 1) and B (1,1).
The slope is

m= (1-1)/(1-0)=0

Vertical line:
Define A( (1,0) and B(1,1).
The slope is

m= (1-0)/(1-1)= (1)/(0) (undefined)

Why does a horizontal line have a slope of zero, but a vertical line have an undefined-example-1
User Lanti
by
8.9k points