# What is the slope of the line that contains the points (-2, 8) and (-2, 1)?

Apr 13, 2018

The slope is undefined.

#### Explanation:

We have the coordinates $\left(- 2 , 8\right)$ and $\left(- 2 , 1\right)$

The formula to find the slope of a line is $\left(\text{change of y")/("change of x}\right)$ or $\frac{{y}_{2} - {y}_{1}}{{x}_{2} - {x}_{1}}$, where $x$ and $y$ are the points of two coordinates.

In this example we are given two coordinates so we can plug them into the formula:
$\frac{1 - 8}{- 2 - \left(- 2\right)}$

And now we simplify:
$- \frac{7}{- 2 + 2}$

$- \frac{7}{0}$

undefined

The slope is undefined.

Hope this helps!