Extrema and mean value theorems
Compare the hypotheses for existence of extrema, stationary points, Rolle’s theorem and Cauchy’s mean value theorem.
The extreme value theorem
The extreme value theorem (Weierstrass’s theorem) guarantees that a continuous real-valued function on a nonempty compact domain attains its maximum and minimum. An optimisation problem starts with this existence question: is the best possible value achieved by any admissible choice?
On a closed, bounded interval , a continuous function stays bounded and takes both its largest and its smallest value. Neither extreme can lie just beyond an excluded endpoint.
Statement
Let be continuous on a nonempty closed, bounded interval. There exist points
such that, for every ,
The number is the absolute minimum and the absolute maximum. Several points may attain the same extreme value.
More generally, if is a nonempty compact set and is continuous, then attains both extremes on :
In , the Heine–Borel theorem characterises compact sets as closed and bounded. In other spaces, closed and bounded sets need not be compact.
Boundedness and attainment
The theorem has two conclusions:
- The function is bounded above and below on its domain.
- At least one point attains its supremum and at least one attains its infimum.
Attainment is stronger than boundedness. For on , the infimum is and the supremum is . Neither is a function value because neither endpoint belongs to the domain.
The theorem gives existence. To locate extrema in a typical one-variable problem, investigate
- Interior stationary points.
- Interior points where the derivative does not exist.
- Interval endpoints.
- Any additional points singled out by domain restrictions.
Compare the function values at the candidates.
Why the theorem holds
First prove boundedness. Otherwise we could choose with
Compactness gives a convergent subsequence . Continuity forces , contradicting . The image is therefore bounded and nonempty.
Its supremum is now a well-defined real number:
By the definition of supremum, choose a sequence in such that
Compactness again gives a convergent subsequence in the domain:
By continuity,
Hence and the supremum is attained. Apply the same reasoning to the infimum. Compactness supplies a limit point in the domain, and continuity identifies the corresponding function value.
What can fail without the hypotheses?
On the open interval the function
is continuous and bounded, yet attains neither extreme.
On the unbounded interval the function
has its minimum at but no maximum.
Even a closed, bounded interval does not suffice for an arbitrary discontinuous function. Consider
on . It is discontinuous at and unbounded above.
These examples show why the separate hypotheses matter for the guarantee. Some functions that fail them still have extrema.
Connections with other theorems
Several different results bear the name Weierstrass:
- The Bolzano–Weierstrass theorem concerns bounded sequences and convergent subsequences.
- The Weierstrass substitution is a technique in trigonometric integration.
- The Casorati–Weierstrass theorem concerns essential singularities in complex analysis.
Here the relevant connections are Rolle’s theorem, the intermediate value theorem and the Heine–Cantor theorem. A continuous function on a compact domain is bounded, attains its extrema and is uniformly continuous. If the domain is also connected, as a closed interval is, it takes every value between its minimum and maximum.
Existence in design and numerical models
A continuous objective on a nonempty compact feasible set has an admissible minimiser and maximiser. This matters when comparing component dimensions, optimising a process or looking for a maximum temperature in a continuous field.
In finite dimensions, check that the feasible set includes its boundary and prevents parameters from escaping to infinity. A strict constraint may exclude the limiting optimum. Artificially adding a boundary point is justified only if it represents an admissible physical design.
Check continuity where operating regimes meet. Contact, phase changes, switching, saturation and piecewise laws require attention. A geometric singularity may produce unbounded stresses in an ideal continuum model even when a discretisation returns a finite largest stress.
The theorem guarantees neither uniqueness nor convexity and supplies no algorithm. Different starts can find different local minima or nearly flat regions. Compare boundary values, refine the search, and use independent upper or lower bounds where available.
Document the feasible domain, continuity, active constraints, singularities and units. Assess sensitivity to tolerances: existence alone does not ensure a stable optimum. For function spaces, specify the norm or topology and establish compactness in that setting. Comparing a calculated maximum with an analytical bound can help distinguish errors in the mesh, model and optimisation.
Common errors
- A supremum is a maximum only if some point attains it.
- Check points excluded by an open domain.
- On an unbounded interval continuity alone does not guarantee extrema.
- The theorem does not find the maximising or minimising point.
- Check continuity even on a compact domain.
- Include the boundary in multivariable searches.
- Distinguish the extreme value theorem from the other results named after Weierstrass.
Explore the connections between compactness, extrema, uniform continuity and connectedness in these worked multivariable problems.
Related reading
See continuity, compact sets, maximum, minimum, supremum, infimum, Bolzano–Weierstrass, the calculus formula sheet and worked problems on absolute extrema.
Fermat’s stationary-point theorem
Fermat’s stationary-point theorem says that a differentiable function has derivative zero at an interior local extremum. This necessary condition identifies candidates when seeking critical points, analysing a function or solving an optimisation problem.
Here Fermat’s theorem concerns stationary points in real analysis. Fermat’s little theorem and his last theorem belong to number theory.
Statement
Suppose is defined near and that
- is an interior point of the domain.
- The function has a local maximum or minimum at .
- The derivative exists at .
Then
Geometrically, the graph has a horizontal tangent at a differentiable interior extremum.
Why the point must be interior
At an endpoint, a function can have a local or absolute extremum without a zero slope.
For example, restrict the affine function
to . Its absolute minimum is at and its maximum is at . The restriction lacks a two-sided derivative at either endpoint, although the extension satisfies
The one-sided derivatives of the restriction also equal . At an endpoint only one direction of variation is available, so Fermat’s interior argument does not apply.
Proof
Consider a local maximum. The proof for a local minimum reverses the inequalities. In a neighbourhood of a maximum ,
For sufficiently small ,
and therefore
Taking the limit as gives
For sufficiently small , we also have
Dividing by reverses the inequality:
Taking the limit as gives
Differentiability makes the one-sided limits equal:
Only zero is both and , so
The argument uses admissible increments of both signs and the existence of a two-sided derivative.
Stationary points
A point satisfying
is called a stationary point. Every differentiable interior local extremum is stationary. Stationarity alone does not establish an extremum.
For example, the function
has derivative
At the tangent is horizontal, but the function increases through the origin. This is a stationary inflection point. To classify a stationary point, examine changes in sign of , use a second-derivative or Taylor test when applicable, or compare nearby function values.
Corners and other points without a derivative
Fermat’s condition does not apply where the derivative fails to exist. The function
attains its local and absolute minimum at . Its left derivative is and its right derivative is .
Include possible extrema at corners, cusps, vertical tangents, discontinuities in the model and domain boundaries. Solving only can miss them.
How Fermat, Rolle and Weierstrass fit together
To prove Rolle’s theorem, the extreme value theorem gives an attained maximum and minimum. Under Rolle’s endpoint condition, a nonconstant function attains at least one of them inside the interval. Fermat then gives a zero derivative there.
The mean value theorem extends Rolle by relating a derivative to the secant slope. This chain of results underlies monotonicity tests and bounds on change:
Fermat’s theorem supplies the step from the existence of an interior extremum to a condition on slopes.
Functions of several variables
Suppose a function is differentiable:
At an interior local extremum , the gradient vanishes:
For each direction , consider the one-variable function
It has a local extremum at . Fermat’s theorem gives
The derivative is the directional derivative of along . A differentiable function has directional derivative equal to the gradient dotted with . Vanishing in every direction therefore forces a zero gradient.
A zero gradient may indicate a local minimum, a local maximum or a saddle. The Hessian matrix often helps distinguish them.
Unconstrained and constrained optimisation
In nonlinear optimisation, the necessary condition for a differentiable, unconstrained interior optimum is
An algorithm may report a small gradient norm or stationarity residual near a minimum, maximum, saddle or flat region. This alone cannot establish global optimality.
On a boundary or constraint surface, only feasible directions matter. Lagrange multipliers or other constrained optimality conditions may be appropriate.
Checking a numerical stationary point
The first-order condition says that local sensitivity vanishes at a smooth interior optimum. It applies to sizing, calibration, process settings and objectives such as energy, mass, cost or error when the model is differentiable and no constraint is active.
Classify a candidate using curvature, changes in feasible directions and direct objective comparisons. Nonconvex problems may require multiple starts or a global bound.
Geometric limits, saturation, backlash, dry friction and piecewise laws can place an optimum at a boundary or corner. Include these feasible candidates and apply constrained conditions where needed.
Computed derivatives depend on variable scales, units and solver accuracy. A badly chosen finite-difference step, noise or ill-conditioning can imitate a zero derivative. Scale the variables, check gradients independently and compare predicted and actual objective changes.
Record the domain, constraints, gradient norm, tolerances, constraint residuals and sensitivity to perturbations. For control or identification problems, assess feasibility and stability as well as numerical convergence.
Common errors
The condition is necessary at a differentiable interior extremum but is insufficient to classify the point.
A global maximum or minimum may lie at a boundary with nonzero one-sided slope.
Absolute values, piecewise functions, cusps and saturation can give extrema where does not apply.
Specify which theorem of Fermat you mean: this one is a result in calculus.
Related reading
See derivatives, critical points, maxima, minima, nondifferentiability, Rolle’s theorem, the mean value theorem, the extreme value theorem, worked problems on Fermat, Rolle and Lagrange, optimisation and absolute extrema problems.
Rolle’s theorem
Rolle’s theorem says that a function continuous on a closed interval and differentiable inside it has at least one interior stationary point if its endpoint values agree. A graph that starts and finishes at the same height under these conditions must have a horizontal tangent somewhere in between.
Conditions at a glance
Three conditions must hold together:
|
Condition |
Where to check |
What to look for |
|---|---|---|
|
Continuity |
|
Defined throughout, with no gaps or jumps. |
|
Differentiability |
|
A finite two-sided derivative at each interior point, excluding corners, cusps or vertical tangents. |
|
Endpoint values |
and |
|
There is then at least one with . The theorem gives neither its location nor its uniqueness.
Statement
Let . Suppose satisfies
- is continuous on .
- It is differentiable on .
- Its endpoint values satisfy .
Then some satisfies
Continuity is required up to both endpoints. Differentiability is required only in the open interval.
The geometric picture
If , the secant from to is horizontal. Rolle’s theorem gives a tangent parallel to that secant at an interior point.
A graph that rises above its common endpoint height must attain an interior maximum. If it falls below that height it must attain an interior minimum. For a constant function every interior point satisfies .
Proof
Combine two earlier results:
- The extreme value theorem gives absolute extrema for a continuous function on a closed, bounded interval.
- Fermat’s theorem gives a zero derivative at a differentiable interior local extremum.
The function attains its maximum and minimum . If , it is constant and for every .
If , equal endpoint values cannot account for both extreme values. At least one extremum occurs in the open interval. At that point Fermat’s theorem gives
Each hypothesis is used: continuity gives attainment, endpoint equality gives an interior extremum in the nonconstant case, and differentiability gives the horizontal tangent.
Applying the theorem
Check the hypotheses before finding the points:
- Verify continuity throughout .
- Check differentiability on .
- Evaluate both endpoint values.
- State why Rolle applies.
- Solve .
- Keep only the solutions inside .
A stationary point can exist even when the theorem’s hypotheses fail. Conversely, establishing that Rolle applies proves existence before any derivative equation is solved.
Example 1. One stationary point
Consider the function
on . A polynomial is continuous and differentiable, and its endpoint values are
Rolle applies. Differentiate:
Solving gives
The point lies in , at the vertex of the parabola.
Example 2. Two stationary points
Take
on . The function is continuous and differentiable, with
Its derivative is
In there are two solutions to :
The calculation finds two points. The theorem guaranteed at least one.
What can go wrong?
Dropping any one of the conditions can invalidate the conclusion.
|
Missing condition |
Example |
Consequence |
|---|---|---|
|
Continuity on |
An endpoint jump |
Equal endpoint values can occur with no interior horizontal tangent: take on and . |
|
Differentiability on |
on |
The function has a corner at zero and no derivative there. |
|
Equal endpoint values |
on |
Its derivative is everywhere. |
In particular, has equal values at and , but its derivative is nonzero wherever it exists. The corner at prevents application of the theorem.
Connection with mean value theorems
Apply Rolle to suitable auxiliary functions to derive the ordinary mean value theorem or Cauchy’s mean value theorem. Conversely, taking the identity as Cauchy’s second function yields the ordinary result. The remainder in Taylor’s formula uses related arguments.
Schematically,
Thus a theorem about a horizontal tangent also proves results about arbitrary secant slopes.
Stationary points and zero counting
Two frequent applications are
- Proving that an interior critical point exists.
- Bounding the number of zeros, often as part of an existence-and-uniqueness argument.
Any two distinct zeros of a function satisfying Rolle’s regularity assumptions have a zero of the derivative between them. If never vanishes on an interval, the function has at most one zero there.
The same argument applies to two occurrences of any given function value.
Interpreting repeated measurements
A smooth trajectory that returns to the same height has an intermediate instant with zero vertical velocity. This gives qualitative information about oscillations, profiles and calibration curves.
If a derivative never vanishes on an interval, the function is injective there. A calibration equation can then have at most one solution, an important condition for inverting a sensor response.
Impacts, switching, hysteresis, backlash and saturation can introduce jumps or corners. Two equal readings do not establish regularity of the underlying continuous-time model.
An oscillating signal may have several stationary points. Noise and numerical differentiation can add apparent zeros. Use a model, isolating intervals and appropriate tolerances to estimate their locations.
Specify the interval and regularity. For a model with exact endpoint equality, use Rolle directly. For measured values, include uncertainty before drawing a conclusion. To count roots of an approximation error, apply the same principle only if the error function satisfies the hypotheses. Document tolerances and check candidates in the original function.
Common errors
- Equal endpoints alone do not suffice.
- The guaranteed point belongs to , excluding the endpoints.
- Several points may satisfy the conclusion.
- Use an actual real interval contained in the domain.
- The existence of a zero derivative somewhere does not establish all of Rolle’s hypotheses.
Further practice
A progression through the material:
- Review continuity, derivatives and critical points.
- Work through problems on Fermat, Rolle and Lagrange to distinguish existence, uniqueness and counterexamples.
- Apply the theorem to polynomial functions.
- Continue with the ordinary mean value theorem and Cauchy’s generalisation.
Explain why on meets the continuity and endpoint conditions but fails differentiability.
Related reading
See Fermat’s theorem, the mean value theorem, Cauchy’s theorem, continuity and derivatives.
Cauchy’s mean value theorem
Cauchy’s mean value theorem extends the ordinary mean value theorem to two functions on the same interval. It compares a finite change in with a finite change in .
The name here refers to a theorem in real analysis. Cauchy’s integral theorem and Cauchy’s integral formula concern holomorphic functions in complex analysis.
1. The general cross-multiplied identity
Let and suppose satisfy both requirements:
- Both are continuous on .
- Both are differentiable on .
Then there exists a such that
This identity involves no division, so it remains valid even when or is zero.
2. The ratio form
Suppose in addition that
Then . Otherwise Rolle’s theorem would give some with .
Both denominators in the following expression are now nonzero:
Requiring throughout the open interval is a convenient sufficient condition for the ratio form.
3. Geometric interpretation
In the ordinary mean value theorem, the derivative equals the slope of a secant at some interior point. For Cauchy’s ratio form, consider the parametric curve
The endpoints give a secant through and , with slope
At some intermediate parameter , the tangent to the parametric curve has that same slope:
This compares directly with even when both were specified as functions of an auxiliary parameter .
4. Proof using an auxiliary function
To apply Rolle’s theorem, define a function with equal values at the two endpoints:
By construction,
The function inherits continuity on and differentiability on . Rolle therefore gives a with .
Differentiate:
At , this gives
This is the general identity. If throughout , then too. Divide by to obtain
The auxiliary linear combination was chosen precisely to give equal endpoint values without first dividing.
5. Recovering the ordinary mean value theorem
Choose the second function to be
Then and . Cauchy’s theorem becomes
the ordinary real-variable mean value theorem.
Rolle relates equal endpoints to a stationary point, the ordinary theorem relates an increment to a slope, and Cauchy compares two increments:
6. Connection with l’Hôpital’s rule
In the case of l’Hôpital’s rule, extend the functions by when their limits permit it. Apply Cauchy on the interval with endpoints and .
For each nearby there is an intermediate such that
As tends to , so does . If the derivative ratio has a limit ,
then
provided the regularity and denominator hypotheses hold. The argument explains why l’Hôpital’s rule works under those conditions.
7. Eliminating a parameter in applications
The theorem helps compare changes in two quantities that depend on the same parameter, even when that parameter is not the quantity of physical interest.
Applications include:
- Limits and asymptotic expansions, where a derivative ratio can determine a function ratio.
- Transient response, comparing finite changes to local sensitivities.
- Linearisation, interpreting an incremental ratio in terms of differential response somewhere along the path.
- Numerical error estimates using auxiliary functions or a change of variable.
- Thermodynamics and continuum models, where one quantity may be differentiated with respect to another.
Under the stated ratio-form assumptions, the overall ratio of changes equals a local derivative ratio at some interior point.
Interpreting a measured sensitivity
When two regular quantities follow the same parameter, the secant slope in their plane describes the overall response. Cauchy’s theorem gives an intermediate point where the local sensitivity equals that slope.
A nowhere-zero denominator derivative is a sufficient condition for the ratio form. If the denominator quantity stops changing or reverses direction, the derivative ratio can become undefined. The cross-multiplied identity still holds under the original hypotheses.
In a thermodynamic, kinematic or calibration model, the intermediate state need not be uniquely determined and sensitivity need not be constant. Treating the observed slope as a coefficient throughout the interval requires an additional error estimate.
Numerical differentiation amplifies noise and depends on step size. Fit or filter measurements where justified, estimate uncertainty and compare against an independent sensitivity calculation. One observed agreement cannot establish regularity on the full interval.
Specify the parameter, orientation, units and interval. Check differentiability, endpoint continuity and denominator behaviour before choosing a theorem form. Compare the resulting sensitivity with physical bounds or tolerances and keep the conclusion within the stated path.
8. Worked example
Take
Both functions are continuous and differentiable, and
On the derivative of never vanishes. Some therefore satisfies
Since the increment of is , this becomes
Existence of such a point can be useful even when its exact location is unknown.
9. Common errors
Check these points:
- Distinguish the real mean value theorem from Cauchy’s integral results in complex analysis.
- Verify continuity at both endpoints as well as differentiability in the interior.
- Use the cross-multiplied identity if division has not been justified.
- Establish existence without presuming uniqueness of .
- Before using l’Hôpital’s rule, check the indeterminate form, regularity and limit of the derivative ratio.
- Apply the real-variable result on an interval with ordered endpoints.
Related reading
See continuity, derivatives, Rolle’s theorem, the ordinary mean value theorem, Fermat’s theorem and l’Hôpital’s rule. For complex analysis, see Cauchy’s integral theorem and Cauchy’s integral formula.
Back to contents