Find 
Slope of a Line 
that passes through 
two given Points

QUESTION: What is the slope of the line that passes through points (-2, 7) and (-2, 9)?

SOLUTION: 

Detailed step-by-step solved example of finding Slope of a line that passes through two given points

As we can see in the image above that the line passing through the points (-2, 7) and (-2, 9) is parallel to y-axis, so its slope will be infinity.

This can be proved by the formula also.

Slope m of a line passing through two points `(x_1,y_1)` and `(x_2,y_2)` is:

m =`\frac{(y_2-y_1)}{(x_2-x_1)}` --------------(1)

Here

`(x_1,y_1)`= (-2, 7)

which implies

`x_1` = -2 and `y_1` = 7


And


`(x_2,y_2)` = (-2, 9)

which implies

`x_2`= -2 and `y_2`= 9


Put values of `x_1`, `y_1`, `x_2` , `y_2` in equation (1)


m =`\frac{(y_2-y_1)}{(x_2-x_1)}`

m =`\frac{9-7}{-2-(-2)}`

m =`\frac{2}{-2+2}`

m =∞


RELATED POSTS

Find Perpendicular Distance between a Point and the Line