Question: what direction is an undefined slope?
Answer: An undefined slope has a change of zero in the x-direction, as when a line is vertical. It is undefined because slope is the ratio of the change in the y-direction to the change in the x-direction. When there is no change in the x-direction you will be attempting to divide by zero, and that operation is not defined.