When dy/dx is undefined means when the gradient is undefined, this is when the tangent to the curve at a point is vertical, ie perpendicular to the x-axis.
It's useful in determining where a curve might look something like:
#____
|/this
|\____
OR
____
t his \|
____/|