1. Home
  2. Blog
  3. Mean Value Theorem

The Mean Value Theorem in one picture, and the two conditions it needs

The Mean Value Theorem says that if f is continuous on [a,b] and differentiable on (a,b), then somewhere strictly between a and b the tangent line is parallel to the secant line through the two endpoints: f′(c) equals the average rate of change. Take away either condition and that guarantee is gone. Here is the picture, a counterexample for each condition, and a self-check with answers.

The statement, one piece at a time

  1. The secant line joins the endpoints (a,f(a)) and (b,f(b)). Its slope is the average rate of change of f over the interval: f(b)−f(a)b−a
  2. The tangent line at a point c has slope f′(c), the instantaneous rate of change there.
  3. The theorem. If f is continuous on the closed interval [a,b] and differentiable on the open interval (a,b), then there is at least one number c in (a,b) with f′(c)=f(b)−f(a)b−a

In words: at some moment, the instantaneous rate equals the average rate. A car that covers 120 km in 1.5 hours averages 80 km/h, so at some instant its speedometer read exactly 80 km/h.

The picture, worked through

Take f(x)=4−4x on [1,4].

  1. Check both conditions. f is a rational function whose only break is at x=0, outside [1,4], so it is continuous on [1,4]. Its derivative, f′(x)=4x2, exists at every x≠0, so f is differentiable on (1,4).
  2. Average rate of change. f(1)=0 and f(4)=3, so f(4)−f(1)4−1=3−03=1
  3. Find c. Solve 4c2=1: c2=4, so c=2 or c=−2. Only c=2 lies in (1,4).
  4. Check the picture. At c=2 the point is (2,2), and the tangent there is y=2+1·(x−2), that is y=x. The secant through (1,0) and (4,3) is y=x−1. Same slope, different lines: parallel.
x y 3 5 −1 1 2 3 (1, 0) (2, 2) (4, 3) y = 4 − 4/x secant, slope 1 tangent at c = 2, slope 1 a = 1 c = 2 b = 4
The secant (solid) and the tangent at c=2 (dashed) both have slope 1. Notice that c=2 is not the midpoint of [1,4]: the theorem says that a c exists, not where it is.

Why continuity on the closed interval matters

Continuity has to hold at the endpoints too. Let g(x)=x2 for 0≤x<2, and set g(2)=−1.

  • g is differentiable on (0,2), with g′(x)=2x.
  • The average rate of change is g(2)−g(0)2−0=−1−02=−12.
  • But g′(c)=2c is positive for every c in (0,2), so no c works.

The only defect is at x=2: the values climb toward 4 and the graph then lands at −1. One misplaced endpoint is enough to break the guarantee.

Why differentiability on the open interval matters

Let p(x)=x2/3 on [−1,1]. It is continuous everywhere, and p(−1)=p(1)=1, so the average rate of change is 0: the secant is horizontal. A parallel tangent would need p′(c)=0, but

p′(x)=23x3(x≠0)

is never 0, and at x=0 the graph has a cusp with no derivative at all. No c exists: the graph turns around at the origin without ever being flat.

x y 1 2 −1 2 4 (2, −1) Jump at an endpoint secant slope −1/2, every tangent slope > 0 x y −1 1 (−1, 1) (1, 1) Cusp inside the interval secant slope 0, no horizontal tangent
Left: g, which jumps at x=2. Right: p(x)=x2/3, which has a cusp at 0. In both, no tangent line is parallel to the secant.

Why the endpoints only need continuity

The theorem asks for differentiability on the open interval, and that is deliberate. The upper half of a circle, s(x)=4−x2 on [−2,2], has a vertical tangent at each endpoint, so it has no derivative at x=±2. It is still continuous on [−2,2] and differentiable on (−2,2), so the theorem applies: the secant is horizontal, and the tangent at c=0, the top of the arc, is horizontal too.

The endpoints have to be attached to the curve, which is what continuity there means. How steep the curve is at a or b never matters.

When a condition fails, the theorem says nothing. The correct conclusion is “the Mean Value Theorem does not apply”: a suitable c is no longer guaranteed. The trap is writing “so no such c exists”. Sometimes one exists anyway, as question 5 below shows. To prove that none exists, you have to check the derivative directly, as in the two counterexamples above.

What the theorem is for

Written as f(b)−f(a)=f′(c)(b−a), the theorem turns facts about the derivative into facts about the function. That is how results you use all year are proved:

  • If f′(x)>0 on an interval, then f is increasing there: for any a<b in the interval, f(b)−f(a)=f′(c)(b−a)>0.
  • If f′(x)=0 on an interval, then f is constant there.
  • A bound on f′ is a bound on how far f can move, which is question 6 below.

Using the theorem also means saying that it applies. The College Board's Course and Exam Description asks AP students to make a habit of “explicitly verifying that a theorem’s hypotheses are satisfied before applying the theorem.” Here that is one clause for continuity on [a,b] and one for differentiability on (a,b).

Check your understanding

No calculator needed.

  1. Find the value of c that the Mean Value Theorem guarantees for f(x)=lnx on [1,e].
  2. Find every value of c that the theorem guarantees for f(x)=x3−3x2 on [−1,4].
  3. Explain why the Mean Value Theorem does not apply to f(x)=1x on [−1,1], then show that no c in (−1,1) satisfies its conclusion.
  4. Does the theorem apply to g(x)=x3 on [0,8], even though g′(0) does not exist? If it does, find c.
  5. True or false: let h(x)=x3 for 0<x≤2 and h(0)=2. Because h is not continuous on [0,2], no c in (0,2) has h′(c) equal to the average rate of change of h over [0,2].
  6. A function f is differentiable everywhere, f(1)=2, and f′(x)≤4 for every x. What is the largest value f(6) can have?
  7. Find the error: “A cyclist rides 60 km in 3 hours, so by the Mean Value Theorem she was riding at exactly 20 km/h at t=1.5 h, halfway through the ride.”
Show the answers
  1. c=e−1≈1.72. The average rate is lne−ln1e−1=1e−1, and f′(c)=1c, so c=e−1, which lies in (1,e).
  2. c=1±213, about −0.53 and 2.53. Here f(−1)=−4 and f(4)=16, so the average rate is 205=4; then 3c2−6c=4 gives c=1±213. Both lie in (−1,4), so both count: the theorem promises at least one c, not exactly one.
  3. f is undefined at 0, which is inside [−1,1], so it is not continuous on the interval and the theorem guarantees nothing. The average rate is 1−(−1)2=1, but f′(x)=−1x2 is negative wherever it exists, so it never equals 1.
  4. Yes, with c=839≈1.54. g is continuous on [0,8] and differentiable on (0,8); the bad point x=0 is an endpoint, where only continuity is needed. The average rate is 2−08=14, and 13c2/3=14 gives c2/3=43, so c=(43)3/2.
  5. False. The average rate is h(2)−h(0)2−0=8−22=3, and h′(c)=3c2=3 at c=1, which is in (0,2). The theorem does not apply, so it promises nothing, but its conclusion can still happen to hold.
  6. 22. On [1,6] the theorem gives f(6)−f(1)=f′(c)·5≤4·5=20, so f(6)≤22. The line f(x)=4x−2 reaches it.
  7. The theorem promises some instant in (0,3) at which her speed was 20 km/h, not that the instant is the halfway point. If her distance were s(t)=60(t3)3 kilometres, she would be at 15 km/h at t=1.5 and reach 20 km/h only at t=3≈1.73 h.

For practice that asks you to check both conditions in writing, and to reject a c that lands outside the open interval, work through the free AP Calculus AB Unit 5 worksheet. CEGEP students will find the same theorem, alongside Rolle's theorem, in the free CEGEP Calculus I curve-sketching worksheet.

Want one-on-one help with this? I offer AP Calculus AB tutoring and exam preparation in Montreal, in person or online. Sessions start with a short written diagnostic, and a written recap goes to whoever books after every session.

Practise it on a free worksheet

Sources

  1. AP Calculus AB and BC Course and Exam Description (Unit 1 overview; topic 5.1, Using the Mean Value Theorem) — College Board. Checked 2026-10-05.

Ready to improve your grades?

WhatsApp is the way to reach me — tell me the course you're taking and what you're stuck on, and we'll sort out a first session from there.

Message Me on WhatsApp

or send a message

I reply within a day, usually sooner. Your details are used only to answer you — see the Privacy Policy.

Private math & science tutoring in Montreal, QC — Westmount · Outremont · Town of Mount Royal · Hampstead · Côte-Saint-Luc · NDG · Nuns' Island · West Island — and online across Quebec.

Chat with Marius