Fermat's theorem on stationary points, also known as Fermat's theorem on interior local extrema, is a fundamental theorem in calculus that establishes a necessary condition for a function to have a local extremum at an interior point of its domain. This elegant result serves as a cornerstone for optimization problems and demonstrates the deep connection between derivatives and function behavior.
Fermat's theorem states that if a function f(x) has a local maximum or minimum at an interior point c of its domain, and if f is differentiable at c, then the derivative of f at c must be zero. In mathematical notation:
Points where f'(x) = 0 are called stationary points or critical points. These points represent potential locations of local extrema, though not all critical points necessarily correspond to extrema.
This theorem is named after Pierre de Fermat (1607-1665), a French mathematician who made significant contributions to number theory, probability theory, and analytic geometry. Although Fermat predates the formal development of calculus by Newton and Leibniz by several decades, he developed methods for finding maxima and minima that anticipated derivative-based approaches.
Fermat used a technique he called the "method of adequality" to find extrema of functions. This method involved comparing the value of a function at a point with its value at a nearby point, setting the quantities "almost equal," and then canceling terms to find the extremum. While not expressed in modern calculus notation, this approach contained the essential idea that would later be formalized in Fermat's theorem.
The proof can be divided into two cases: when f has a local maximum at c, and when f has a local minimum at c.
Let f have a local maximum at c, meaning there exists an open interval I containing c such that f(x) f(c) for all x in I. For small positive h, both c+h and c-h are in this interval, so f(c+h) f(c) and f(c-h) f(c).
For small h > 0:
Taking the limit as h approaches 0 from the positive side gives the right-hand derivative:
Similarly, for the left-hand derivative:
Since f is differentiable at c, both one-sided limits must equal f'(c). Therefore:
The only way both inequalities can hold is if f'(c) = 0.
The proof for a local minimum follows similar logic but with the inequalities reversed. If f has a local minimum at c, then f(c+h) f(c) for small values of h. This leads to:
Again, the only solution is f'(c) = 0.
Consider the function f(x) = x - 3x. To find its local extrema, we first calculate the derivative:
Setting f'(x) = 0, we find the critical points x = 0 and x = 2. These are the only possible locations of local extrema since they're the only points where the derivative equals zero. To determine their nature, we can examine the sign of f'(x) around these points.
A firm's profit function is given by P(q) = -2q + 8q - 3, where q is the quantity of goods produced. To maximize profit, we find the critical point by setting P'(q) = 0:
Solving for q gives q = 2. Since the second derivative is negative (P''(q) = -4 < 0), this critical point corresponds to a local maximum, which is also the global maximum in this case.
Fermat's theorem provides a necessary but not sufficient condition for local extrema. That is, if a function has a local extremum at an interior point where it is differentiable, then the derivative must be zero there, but not every point where the derivative is zero corresponds to an extremum.
For example, consider f(x) = x. The derivative is f'(x) = 3x, which equals zero at x = 0. However, x = 0 is not a local extremum of this function; it's a point of inflection. The function increases on both sides of x = 0.
Additionally, Fermat's theorem does not apply when:
The theorem can be extended to functions of several variables. If f: has a local extremum at an interior point c where f is differentiable, then all partial derivatives at c must be zero.
Fermat's theorem is closely related to several other important results in calculus:
Rolle's theorem can be proven using Fermat's theorem (when a function has equal values at the endpoints, the extreme value theorem guarantees the existence of a maximum or minimum in the interior). Similarly, the Mean Value Theorem can be derived from Rolle's theorem.
In modern practice, finding local extrema often involves computational methods, especially for complex functions or in higher dimensions. Numerical techniques include:
Fermat's theorem on interior local extrema stands as a fundamental pillar of calculus, establishing a crucial connection between local extrema and derivatives. Despite its simple formulation, this theorem has profound implications for optimization problems across mathematics, science, engineering, economics, and many other fields.
The theorem's elegant proof demonstrates the power of analytical reasoning in mathematics. Its applications are ubiquitous, from finding maximum profits in economics to determining optimal trajectories in physics to solving design problems in engineering.
Understanding Fermat's theorem provides mathematicians and scientists with a powerful tool for analyzing and optimizing functions, making it an essential component of mathematical education and research. It continues to be taught in calculus courses around the world and applied in countless practical scenarios where optimization is required.
