A function has a critical point if its derivative fails to exist at the point or if its derivative is zero at that point.

If a function is not continuous at then it has no derivative at so that is a critical value.

On the other hand, the slope on the left at may not be the slope on the right at , in that case we call that a "spike". There is no derivative there.