 Fermat’s treatment of maxima and minima contains the germ of the fertile technique of “infinitesimal variation”, that is, the investigation of the behavior of a function by subjecting its variables to small changes. Fermat applied this method in determining tangents to curves and centers of gravity.