Source: algebrica.org - CC BY-NC 4.0 https://algebrica.org/lagrange-theorem/ Fetched from algebrica.org post 6193; source modified 2026-02-25T22:38:28.
Statement
The Lagrange’s theorem, also known as the mean value theorem, states the following. Consider a function $f(x)$, continuous in the closed and bounded interval $[a, b]$ and differentiable at every point inside the interval. Then, there exists at least one point $c$ inside the interval such that the following relation holds:
This means that there exists at least one point where the derivative of the function is equal to the slope of the secant line connecting $a$ and $b$. In other words, at some point in the interval, the instantaneous rate of change of the function matches its average rate of change.
A geometric view of Lagrange’s theorem
From a geometric point of view, the theorem states that there exists at least one point $c$ where the tangent line at that point is parallel to the secant line connecting points $A$ and $B$ on the graph.

In the right-angled triangle $ABH$, we have $\overline{BH} = \overline{AH} \cdot \tan{\alpha}$ that is:
We have:
The slope of segment $AB$ is equal to $\tan\alpha$ that is:
Since the tangent at $c$ to the curve is parallel to $AB$, both have the same slope, hence:
Proof
To prove Lagrange’s theorem we define an auxiliary function $\varphi(x)$ as follows:
We verify that $\varphi(x)$ satisfies the hypotheses of Rolle’s Theorem:
- $f(x)$ is continuous on the closed interval $[a, b]$.
- $f(x)$ is differentiable on the open interval $(a, b)$.
- $\varphi(a) = \varphi(b)$.
By calculating $\varphi(a)$ and $\varphi(b)$, we obtain:
Therefore, $\varphi(a) = \varphi(b) = 0$.
Applying Rolle’s Theorem to $\varphi(x)$, we find that there exists at least one point $c$ within the interval $]a, b[$ such that $\varphi’ \left(c \right) = 0$. Calculating the derivative of $\varphi(x)$, we have:
Now, we calculate the derivative of $\varphi(x)$ at the point $c$ and set it equal to 0. From this, we obtain:
That is:
which corresponds exactly to the thesis we wanted to prove.
A special case: when the derivative is zero everywhere
From Lagrange’s theorem, it follows that if a function $f(x)$ is continuous on the interval $[a,b]$, differentiable on the interval $]a,b[$, and $f’(x)$ is zero at every point in the interior of the interval, then $f(x)$ is constant on the entire interval $[a,b]$.

Indeed, if we take a point $\overline{x} \in [a,b]$ and apply the theorem to the interval $[a, \overline{x}]$, then there exists a point $c \in ]a, \overline{x}[$ such that:
Since $f’(\overline{x}) = 0$ for every point in $]a,b[$, it follows that $f’\left( c \right) = 0$ as well. For this reason, it must be:
For this reason, $f$ is constant on the entire interval $[a,b]$.
A numerical example
To see the theorem at work, let us examine a concrete case. We want to identify a point $c$ inside a given interval where the instantaneous rate of change of a function coincides with its average rate of change on that interval. The computation also shows that such a point is not something one can usually predict by inspection. Consider the polynomial:
on the closed interval $[1,4]$. Being a polynomial, $f$ is continuous on $[1,4]$ and differentiable on $(1,4)$. The assumptions of Lagrange’s theorem are therefore satisfied. We begin by evaluating the function at the endpoints:
The slope of the secant line through the points $(1,4)$ and $(4,10)$ is
This number represents the average rate of change of $f$ over $[1,4]$. Next we compute the derivative:
We look for values of $c$ such that $f’(c) = 2.$ This leads to the equation:
Applying the quadratic formula gives:
We obtain two candidates:
Lagrange’s theorem guarantees a solution inside the open interval $]1,4[$. Among the two values found, only:
lies in $]1,4[$. The other root falls outside the interval and is therefore not relevant in this context. At this point, the tangent line to the graph of $f$ is parallel to the secant line joining $(1,48)$ and $(4,10)$.
This example shows that the equation $f’(c)=2$ may admit more than one solution, yet only those inside the interval are meaningful for the theorem.
The solution is:
Selected references
Harvard University, O. Knill. The Mean Value Theorem
Stony Brook University. Lecture 18: Mean Value Theorem
University of California Davis, D. Kouba. Mean Value Theorem – Problems and Proofs
University of Cambridge, W. T. Gowers. What is the point of the Mean Value Theorem?