Sorry this is late, but the only way a line slope could be undefined
is if the difference between two x co-ordinates on the line is zero.
(delta y)/(delta x) = (delta y)/0
the line would be vertical at x = 1, so the line is x = 1,
though that's not in the format requested,
however that is the equation of that line.