Move the point P. When P becomes one of the two critical points the slope of the tangent to the curve at P is zero. The critical points can be local maxima or minima.