Maths WorkshopMaths problems with full solutions
Exercise 788Calculus › Single-variable calculus › Differentiation › Mean Value TheoremL2Added 2 Nov 2026

The limit of the derivative theorem

#mean value theorem#derivative at a point#extension

Statement

Let ff be continuous on [a,b)[a,b) and differentiable on (a,b)(a,b), and suppose f′(x)→ℓ∈Rf'(x)\to\ell\in\mathbb{R} as x→a+x\to a^+. Prove that ff is differentiable at aa from the right, with f+′(a)=ℓf'_+(a)=\ell.

Then apply this to f(x)=e−1/x2f(x)=e^{-1/x^2} for x≠0x\ne0, f(0)=0f(0)=0, to show that ff is differentiable at 00 with f′(0)=0f'(0)=0.

Hint

The difference quotient f(x)−f(a)x−a\dfrac{f(x)-f(a)}{x-a} is exactly what the mean value theorem handles.

Show solutionHide solution

Solution

Proof. For x∈(a,b)x\in(a,b), the mean value theorem on [a,x][a,x] gives cx∈(a,x)c_x\in(a,x) with
f(x)−f(a)x−a=f′(cx).\frac{f(x)-f(a)}{x-a}=f'(c_x).
As x→a+x\to a^+, cx→a+c_x\to a^+ so f′(cx)→ℓf'(c_x)\to\ell. Hence the right derivative at aa exists and equals ℓ\ell.

Application. ff is continuous at 00 because e−1/x2→0e^{-1/x^2}\to0. For x≠0x\ne0,
f′(x)=2x3e−1/x2.f'(x)=\frac2{x^3}e^{-1/x^2}.
With u=1x2→+∞u=\frac1{x^2}\to+\infty, ∣f′(x)∣=2∣x∣−3e−u=2u3/2e−u→0|f'(x)|=2|x|^{-3}e^{-u}=2u^{3/2}e^{-u}\to0 (the exponential beats powers). So f′(x)→0f'(x)\to0 at 0±0^\pm, and by the theorem (applied on each side) f′(0)=0f'(0)=0.

Remark. This function is very flat at 00: all its derivatives vanish there. It is a famous example of a smooth function that is not equal to its Taylor series.