The first derivative is the tool for locating the relative maxima and minima of a function. A necessary condition links every differentiable extremum to the vanishing of (stationary point); the first derivative test, by observing the sign change of , then distinguishes maxima, minima and inflections with a horizontal tangent.