For a vertical line on a coordinate grid, the slope is undefined. This is because the values of x remains unchanged no matter the change in the value of the y coordinate.
Hence, the equation of the line is represented by the only given value of x, which in this instance is negative 2.
ANSWER:
The equation of the vertical line that passes through the point (-2, 5) is

This is illustrated below;