Search

Search papers and lessons

Mean Value Theorem

Level 2 · 8 min read

If a smooth curve rises from one point to another, then at some point in between its slope equals the average slope over the whole trip.

On this page

  • Colour = topic mix
  • Calculus
  • Discrete math
  • Sign in to see your progress

TL;DR

Suppose a function is smooth on an interval: no jumps and no sharp corners. Draw the straight line joining its values at the two ends. The theorem says that somewhere in between, the curve's slope is exactly the slope of that line. The average rate of change over an interval is always matched by the instantaneous rate at some moment inside it.

Where you'll see it: in proofs that a function is increasing when its derivative is positive, in error bounds for numerical approximations, and in the remainder term of Taylor series.

Intuition

Start from a trip you already know

You drive 150 km in 2 hours. Your average speed is 75 km/h. Did your speedometer ever read exactly 75 km/h? Almost certainly yes. You may have started slowly, sped up on the motorway and slowed for a town, but a continuous trip that covers 150 km in 2 hours cannot avoid passing through exactly the average speed at some moment.

That is the whole theorem. The average rate over an interval is the slope of the straight line joining the endpoints (a secant). The instantaneous rate is the derivative. The theorem says the two are equal at some point in between.

A picture

Take a curve that rises from the point (0,0)(0, 0) to the point (2,4)(2, 4). The straight line joining them has slope 22. The curve starts flatter than that line and ends steeper, so somewhere in between it must be tilted exactly like the line. That tangent point is the one the theorem promises.

−0.500.511.522.5−1012345xy
  • f(x) = x^2
  • secant from (0, 0) to (2, 4)
The secant has slope 2. At x = 1 the curve has slope 2 too, so its tangent is parallel to the secant.

Why the conditions matter

The curve must be unbroken, otherwise it can jump over the average slope. It must have no sharp corners, otherwise the slope can change abruptly without ever taking the average value. The formal conditions are Continuity on the closed interval (the interval including both endpoints) and a Derivative at every point strictly inside it.

The math

Statement

Definition: Mean value theorem

Let ff be a function that is continuous on the closed interval [a,b][a, b] and differentiable on the open interval (a,b)(a, b). Then there is a point cc with a<c<ba \lt c \lt b such that

f′(c)=f(b)−f(a)b−a.f'(c) = \frac{f(b) - f(a)}{b - a}.

Here f(b)−f(a)f(b) - f(a) is the change in height across the interval, b−ab - a is its width, and their ratio is the average slope. The theorem says the derivative f′(c)f'(c), the slope at one point, equals that average. The theorem does not say where cc is. It only promises that such a point exists.

The special case: Rolle's theorem

If f(a)=f(b)f(a) = f(b), the average slope is 00, and the theorem says f′(c)=0f'(c) = 0 for some cc inside. This is Rolle's theorem. It says a smooth curve that returns to the same height must have a flat point between.

Why is it true? A continuous function on a closed interval reaches a highest and a lowest value (the extreme value theorem: a curve with no breaks drawn over a bounded stretch has a top and a bottom). If the highest and lowest values both equal the common endpoint height f(a)=f(b)f(a) = f(b), the function is constant and every interior point has zero slope. Otherwise at least one of the highest or lowest values differs from the endpoint height, so it occurs at some interior point cc. At an interior maximum or minimum of a differentiable function, the slope must be zero: moving slightly left or right cannot increase or decrease the value at a peak or valley.

Deriving the general case from Rolle

Set the secant slope m=f(b)−f(a)b−am = \frac{f(b) - f(a)}{b - a} and define a new function

g(x)=f(x)−f(a)−m(x−a).g(x) = f(x) - f(a) - m(x - a).

Subtracting the straight line from ff tilts the picture so the secant becomes horizontal. Check the endpoints: g(a)=f(a)−f(a)−0=0g(a) = f(a) - f(a) - 0 = 0 and g(b)=f(b)−f(a)−m(b−a)=0g(b) = f(b) - f(a) - m(b - a) = 0, because m(b−a)=f(b)−f(a)m(b-a) = f(b) - f(a). So g(a)=g(b)g(a) = g(b). Rolle's theorem gives cc with g′(c)=0g'(c) = 0. Since g′(x)=f′(x)−mg'(x) = f'(x) - m, this says f′(c)=mf'(c) = m.

Worked examples

Example
Example 1: a parabola (tiny)

Let f(x)=x2f(x) = x^2 on [0,2][0, 2].

  1. Endpoint values: f(0)=0f(0) = 0 and f(2)=4f(2) = 4.
  2. Average slope: 4−02−0=2\frac{4 - 0}{2 - 0} = 2.
  3. Derivative: f′(x)=2xf'(x) = 2x.
  4. Solve 2c=22c = 2, which gives c=1c = 1.
  5. Check: c=1c = 1 lies inside (0,2)(0, 2), and f′(1)=2f'(1) = 2, as the theorem promises.
  6. Interpretation: the parabola is steepest at its right end, but at x=1x = 1 its tangent happens to match the average slope.
Example
Example 2: a cubic (standard)

Let f(x)=x3f(x) = x^3 on [0,2][0, 2].

  1. Endpoint values: f(0)=0f(0) = 0 and f(2)=8f(2) = 8.
  2. Average slope: 8−02=4\frac{8 - 0}{2} = 4.
  3. Derivative: f′(x)=3x2f'(x) = 3x^2.
  4. Solve 3c2=43c^2 = 4, so c2=43c^2 = \frac{4}{3} and c=23≈1.155c = \frac{2}{\sqrt{3}} \approx 1.155.
  5. Check: 1.1551.155 lies inside (0,2)(0, 2). Also 3(1.155)2=3×1.333=43(1.155)^2 = 3 \times 1.333 = 4, which matches.
  6. Interpretation: the theorem found the exact point, and it is not the midpoint x=1x = 1. The location depends on the function, which is why the theorem only promises existence.
Example
Example 3: a car trip (realistic, illustrative)

A car's position in kilometres after tt hours is s(t)=50t+12.5t2s(t) = 50t + 12.5t^2 for tt from 00 to 22. Its derivative is the speed, s′(t)=50+25ts'(t) = 50 + 25t.

  1. Start and end positions: s(0)=0s(0) = 0 and s(2)=100+50=150s(2) = 100 + 50 = 150.
  2. Average speed: 150−02−0=75\frac{150 - 0}{2 - 0} = 75 km/h.
  3. Solve s′(t)=75s'(t) = 75: 50+25t=7550 + 25t = 75, so t=1t = 1.
  4. Check: t=1t = 1 lies in (0,2)(0, 2), and s′(1)=75s'(1) = 75.
  5. Interpretation: the speedometer reads exactly the average speed 75 km/h one hour into the trip. The car started at 50 km/h and sped up to 100 km/h, so the average is reached on the way.

Tradeoffs and failure modes

The theorem is an existence result. It tells you a matching point exists but not how to find it, and you usually solve f′(c)f'(c) equal to the secant slope by other means.

Both hypotheses are needed. The function f(x)=∣x∣f(x) = |x| on [−1,1][-1, 1] has f(−1)=f(1)=1f(-1) = f(1) = 1, so the average slope is 00. Its derivative is ±1\pm 1 everywhere it exists, never 00. The theorem fails because ∣x∣|x| has a sharp corner at 00, where it is not differentiable.

SituationProblemBetter choice
Function has a jumpThe curve can skip the average slopeSplit the interval at the jump
Function has a cornerThe derivative may not exist at the cornerApply the theorem on each smooth piece
You need the actual point ccThe theorem gives no formulaSolve f′(c)=mf'(c) = m numerically
Need a bound, not a pointThe exact point is unnecessaryUse the bound min⁡f′≤m≤max⁡f′\min f' \le m \le \max f' on the interval

History

Michel Rolle published the special case, now called Rolle's theorem, in 1691, in a work on algebra rather than calculus. Joseph-Louis Lagrange stated the general form in the late 1700s, in his work on analytic functions. Augustin-Louis Cauchy gave a rigorous proof in the 1820s, once the notion of a continuous function was made precise. The theorem caught on because it turns information about averages into information about instants, which is the core move of calculus.

Recap

A continuous, smooth function has an average slope over an interval, and that slope is the derivative at some interior point. Rolle's theorem handles the flat-ends case, and subtracting the secant line reduces the general case to it. The theorem is the tool behind Taylor's theorem with its remainder term, and it proves that a positive derivative means a function is increasing.

Check yourself

QuestionRecall. State the two conditions the function must satisfy for the mean value theorem to apply on [a,b][a, b].Show answer

The function must be continuous on the closed interval [a,b][a, b], so it has no jumps, and differentiable on the open interval (a,b)(a, b), so it has no sharp corners inside.

QuestionComputation. Let f(x)=x2+xf(x) = x^2 + x on [0,3][0, 3]. Find the point cc promised by the theorem.Show answer

The average slope is f(3)−f(0)3=12−03=4\frac{f(3) - f(0)}{3} = \frac{12 - 0}{3} = 4. The derivative is f′(x)=2x+1f'(x) = 2x + 1. Solve 2c+1=42c + 1 = 4, which gives c=1.5c = 1.5. Check: 1.51.5 lies in (0,3)(0, 3).

QuestionWhy. Why does the theorem need the function to be continuous, not just differentiable on the open interval?Show answer

Differentiability on the open interval says nothing about the endpoints, so the function could jump there. For example, take f(x)=xf(x) = x on [0,1)[0, 1) with f(1)=0f(1) = 0: it is differentiable on (0,1)(0, 1) with slope 11 everywhere, but the average slope is 0−01=0\frac{0 - 0}{1} = 0, which the derivative never equals. The proof needs continuity on the closed interval so the extreme value theorem guarantees a highest and lowest value.

QuestionApplied. A runner covers 10 km in 1 hour. Explain why the theorem guarantees a moment when the instantaneous speed equals 10 km/h, assuming the position is smooth.Show answer

The average speed over the hour is 10−01=10\frac{10 - 0}{1} = 10 km/h. If the position function is continuous and differentiable over the hour, the mean value theorem gives a moment cc in (0,1)(0, 1) where the derivative, the instantaneous speed, equals 10 km/h. The runner may have been faster and slower at other times, but at some instant the speed matches the average.

Sources