Skip to content

First-Order Condition

Theorem

Let a<ba< b be real numbers, and let f ⁣:(a,b)→Rf \colon (a, b) \to \mathbb{R} be a function. If ff is differentiable at x=x0∈(a,b),x=x_0\in (a, b)\text{,} and ff attains a local maximum or minimum at x=x0,x=x_0\text{,} then f′(x0)=0.f'(x_0) = 0\text{.}


Interpretation

The first-order condition is a necessary criterion for local extrema: at an interior point where ff is differentiable, a local maximum or minimum forces a horizontal tangent, f′(x0)=0f'(x_0)=0. It turns the search for extrema into solving the equation f′(x)=0f'(x)=0.

The reason is a sign argument. At a local maximum, f(x)−f(x0)≤0f(x)-f(x_0)\le0 for all xx near x0x_0, so the difference quotient f(x)−f(x0)x−x0\frac{f(x)-f(x_0)}{x-x_0} is ≥0\ge0 for x<x0x<x_0 and ≤0\le0 for x>x0x>x_0. Its left-hand limit is therefore ≥0\ge0 and its right-hand limit ≤0\le0; both equal f′(x0)f'(x_0), so f′(x0)=0f'(x_0)=0. The case of a local minimum is the same with the signs reversed.

Each hypothesis is used. The point must be interior, so that xx can approach x0x_0 from both sides: f(x)=xf(x)=x on [0,1][0,1] has its minimum at 00 and its maximum at 11, and its one-sided derivative is 11 at both. And ff must be differentiable at x0x_0; otherwise an extremum can sit at a corner. This is why the candidates for extrema are the critical points together with the boundary points of the domain.

The condition is necessary, not sufficient: it only produces the stationary points as candidates, and each candidate still has to be checked by comparing f(x)f(x) with f(x0)f(x_0) nearby. Later tools such as the second-order condition make this check easier, and Math IV uses the same condition for functions of several variables in the unconstrained extrema conditions.


Key Results


Examples

  • The function f(x)=x2f(x)=x^2 satisfies f′(0)=0f'(0)=0 at its minimum.
  • The function f(x)=x3f(x)=x^3 satisfies f′(0)=0f'(0)=0 but has no extremum there.

Prerequisites

Sources

Aliases: FOC, first order condition, first-order necessary condition, Fermat's theorem on stationary points Keywords: interior extremum theorem Symbols: element of, real numbers

Last updated: 20 October 2026 03:02