# How do you write an equation of a line given (-1,2) slope is undefined?

Because the slope is undefined, by definition, this is a vertical where the value of $x$ does not change. The value of $x$ in the point given in the problem is $- 1$.
$x = - 1$