Find the gradient of the line joining (0,p) and (0,q).

The two points lie on the same vertical line, x=0

so the gradient is undefined.