because undefined is also infinite.
so there is rise, but no run, therefore has to be vertical, parallel to the y axis.
take an example where there is just 2 pts.
use the gradient formula .
y1-y2/x1-x2
if x1-x2=0 then the points are above and below each other, and if u get 0 on bottom of fraction then it is undefined, therefore is vertical.
find the gradient for the normal and u will get 0.
because, there is no rise and only run. so parallel to the x axis.