# How do you find the slope of a line passing through the points (2, 5) and (2, 7)?

Feb 16, 2016

It is a vertical Line and parallel to x-axis. Hence its slope is infinity.

#### Explanation:

Given -

${x}_{1} = 2$
${y}_{1} = 5$
${x}_{2} = 2$
${y}_{2} = 7$

Slope $m = \frac{{y}_{2} - {y}_{1}}{{x}_{2} - {x}_{1}} = \frac{7 - 5}{2 - 2} = \frac{2}{0} = \infty$

It is a vertical Line and parallel to x-axis. Hence its slope is infinity.