When we talk about a line with an undefined slope, we’re referring to a vertical line. Vertical lines have an equation in the form of x = a>, where a is a constant. This means that no matter what the value of y is, x will always be equal to a.
In this case, the point given is (2, 4). Here, the x-coordinate is 2. Therefore, the equation of the line with an undefined slope that passes through this point is:
x = 2
This indicates that for any value of y, the x coordinate remains 2, which visually represents a vertical line on a graph at x = 2.