Final answer:
The equation of the line with an undefined slope and passing through the point (-2,4) is x = -2.
Step-by-step explanation:
To write the equation of a line with an undefined slope and passing through the point (-2,4), we can use the fact that an undefined slope means the line is vertical. A vertical line has the equation x = a, where 'a' is the x-coordinate of any point on the line. In this case, since the point (-2,4) lies on the line, the equation of the line is x = -2.