Lagrange’s theorem, also called the mean value theorem, states that for a well-behaved function the average slope over the interval is realised as the instantaneous slope at at least one interior point.

Theorem — Lagrange

If ff is continuous on [a,b][a,b] and differentiable on (a,b)(a,b), there exists at least one c(a,b)c\in(a,b) such that: f(c)=f(b)f(a)ba.f'(c) = \frac{f(b)-f(a)}{b-a}.

Remark — Geometric meaning

The right-hand side is the gradient of the secant through (a,f(a))(a,f(a)) and (b,f(b))(b,f(b)). The theorem says that there exists at least one point cc where the tangent is parallel to the secant.

At cc the tangent (red) is parallel to the secant (orange) joining the endpoints (a,f(a))(a,f(a)) and (b,f(b))(b,f(b)).

Example — Maturità exam question 2007: Lagrange on f(x)=x3+8f(x)=x^3+8

We show that f(x)=x3+8f(x) = x^3+8 satisfies Lagrange’s theorem on [2,2][-2,2] and we find cc.

Hypotheses: ff is a polynomial, hence continuous and differentiable ✓.

Computation: f(2)f(2)2(2)=(8+8)(8+8)4=164=4\dfrac{f(2)-f(-2)}{2-(-2)} = \dfrac{(8+8)-(-8+8)}{4} = \dfrac{16}{4} = 4.

Finding cc: I impose f(c)=3c2=4    c2=43    c=±23±1,15f'(c) = 3c^2 = 4 \implies c^2 = \dfrac{4}{3} \implies c = \pm\dfrac{2}{\sqrt{3}} \approx \pm 1{,}15.

Check: c±1,15(2,2)c\approx \pm 1{,}15 \in (-2,2) ✓.

In the simulation below you can move the endpoints aa and bb: the point cc updates in real time and the tangent at cc always stays parallel to the chord ABAB.

Drag the sliders $a$ and $b$: the tangent at $c$ is always parallel to the chord $AB$.

Topics: Calculus theorems
Concepts: Secant · Tangent · Mean value theorem · Lagrange’s theorem
Methods: Rolle Lagrange
People: Joseph-Louis Lagrange