AP · Calculus AB · The Mean Value and Extreme Value Theorems

The Mean Value Theorem

18 min readUpdated November 30, 2026FreeAP Calculus AB, Analyzing Functions with Derivatives

The Mean Value Theorem says that if ff is continuous on [a,b][a, b] and differentiable on (a,b)(a, b), then at some cc between aa and bb the derivative f′(c)f'(c) equals the average rate of change f(b)−f(a)b−a\frac{f(b) - f(a)}{b - a}. On the AP® Calculus AB exam you use it to prove that such a cc exists, and the proof counts only if you check both conditions.

Quick check

  1. Is f(x)=∣x−2∣f(x) = |x - 2| differentiable at x=2x = 2?Show answerHide answer

    No. The graph has a corner at x=2x = 2: the slope is −1-1 on the left and 11 on the right, so no single derivative exists there.

  2. What is the average rate of change of f(x)=x2f(x) = x^2 on [1,4][1, 4]?Show answerHide answer

    f(4)−f(1)4−1=16−13=5\frac{f(4) - f(1)}{4 - 1} = \frac{16 - 1}{3} = 5.

  3. A car covers 120 miles in 2 hours. Must its speedometer have read exactly 60 miles per hour at some moment?Show answerHide answer

    Yes. Its average speed is 60 miles per hour, and the Mean Value Theorem guarantees an instant when the speed equals that average, since position is a differentiable function of time.

Know these already? Jump to the practice questions

What you'll be able to do

  • State the two conditions of the Mean Value Theorem and what it guarantees.
  • Verify the conditions for a given function on a closed interval.
  • Find every value of cc that the theorem guarantees.
  • Justify, from a table of values, that a derivative must take a stated value, with units.
  • Explain why the conclusion can fail when a condition does not hold.

Key terms

Average rate of change

For ff on [a,b][a, b], the number f(b)−f(a)b−a\frac{f(b) - f(a)}{b - a}, which is the slope of the secant line through (a,f(a))(a, f(a)) and (b,f(b))(b, f(b)).

In plain English
The total change in output divided by the change in input.
Don't write
f′(a)+f′(b)2\frac{f'(a) + f'(b)}{2}. The average rate comes from values of ff, not values of f′f'.

Mean Value Theorem (MVT)

If ff is continuous on [a,b][a, b] and differentiable on (a,b)(a, b), there is at least one cc with a<c<ba < c < b where f′(c)f'(c) equals the average rate of change of ff on [a,b][a, b].

In plain English
If the graph has no breaks and no corners, some tangent line is parallel to the secant line.
Don't write
"by the MVT" without stating the two conditions; the theorem gives nothing until both are checked.

What does the Mean Value Theorem guarantee?

When both conditions hold, there is at least one cc in (a,b)(a, b) with Learn this (there is no formula sheet):

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

The left side is the instantaneous rate at cc; the right side is the slope of the secant line. So somewhere strictly between aa and bb, the tangent line is parallel to the secant line.

Take f(x)=x2f(x) = x^2 on [1,4][1, 4]. The average rate is 16−14−1=5\frac{16 - 1}{4 - 1} = 5. Because f′(x)=2xf'(x) = 2x, you solve 2c=52c = 5, so c=2.5c = 2.5, which lies inside (1,4)(1, 4). The graph of y=x2y = x^2 with its secant line from x=1x = 1 to x=4x = 4 shows the tangent at x=2.5x = 2.5 running parallel to that secant, both with slope 55.

Key idea

The MVT turns an average rate over an interval into an instantaneous rate at some point inside it.

When f(a)=f(b)f(a) = f(b), the average rate is 00, so the theorem gives a horizontal tangent; this special case is called Rolle's Theorem. The theorem says cc exists, but not where, and there may be more than one.

Check yourself

Find the value of cc that the MVT guarantees for f(x)=x3f(x) = x^3 on [0,3][0, 3].
Show answerHide answer

c=3≈1.732c = \sqrt{3} \approx 1.732. The average rate is 27−03=9\frac{27 - 0}{3} = 9, and 3c2=93c^2 = 9 gives c2=3c^2 = 3; only the positive root lies in (0,3)(0, 3).

How do you check the two conditions?

You check both, then state them in your answer.

  • Continuous on the closed interval [a,b][a, b], endpoints included.
  • Differentiable on the open interval (a,b)(a, b); what happens at the endpoints does not matter.

Polynomials, sin⁡x\sin x, cos⁡x\cos x and exe^x always pass. A rational function passes on any interval that contains no zero of its denominator, and ln⁡x\ln x passes where x>0x > 0.

For example, f(x)=x+1x−2f(x) = \frac{x + 1}{x - 2} passes on [3,5][3, 5], because its only problem point, x=2x = 2, is outside that interval. On [0,3][0, 3] it fails, because x=2x = 2 is inside.

Differentiability implies continuity. So when a question tells you "ff is differentiable", both conditions follow at once, and you say so: "ff is differentiable, so it is continuous on [a,b][a, b] and differentiable on (a,b)(a, b)."

Examiner's eye

Marks go to answers that name the Mean Value Theorem and state both conditions on the right intervals before giving the conclusion.

Check yourself

Does the MVT apply to g(x)=xg(x) = \sqrt{x} on [0,4][0, 4]? If so, find cc.
Show answerHide answer

Yes. x\sqrt{x} is continuous on [0,4][0, 4], and g′(x)=12xg'(x) = \frac{1}{2\sqrt{x}} exists for x>0x > 0, so it is differentiable on (0,4)(0, 4). The average rate is 2−04=12\frac{2 - 0}{4} = \frac{1}{2}, and 12c=12\frac{1}{2\sqrt{c}} = \frac{1}{2} gives c=1c = 1.

How do you use the MVT with a table of values?

Free-response questions often give a differentiable function only at a few inputs. You cannot find cc, but you can prove that a certain rate happened. The water in a tank, W(t)W(t) gallons at time tt minutes, is differentiable:

tt (minutes)004410101212
W(t)W(t) (gallons)5050626280807474

Must there be a time tt, 4<t<104 < t < 10, when W′(t)=3W'(t) = 3 gallons per minute? The average rate on [4,10][4, 10] is 80−6210−4=3\frac{80 - 62}{10 - 4} = 3 gallons per minute. WW is differentiable, so it is continuous on [4,10][4, 10] and differentiable on (4,10)(4, 10). By the Mean Value Theorem, there is such a time.

The theorem only guarantees rates that equal an average rate between two table inputs. It cannot promise W′(t)=5W'(t) = 5 anywhere, because no pair of table values gives that rate.

Check yourself

From the same table, must there be a time tt, 10<t<1210 < t < 12, when W′(t)=−3W'(t) = -3 gallons per minute?
Show answerHide answer

Yes. The average rate is 74−8012−10=−3\frac{74 - 80}{12 - 10} = -3 gallons per minute, and WW is differentiable, so the MVT applies on [10,12][10, 12].

What goes wrong when a condition fails?

If a condition fails, the guarantee is gone, and the conclusion can fail.

A corner breaks differentiability. Take f(x)=∣x∣f(x) = |x| on [−1,2][-1, 2]. It is continuous, and its average rate is 2−12−(−1)=13\frac{2 - 1}{2 - (-1)} = \frac{1}{3}. But f′(x)=−1f'(x) = -1 for x<0x < 0 and f′(x)=1f'(x) = 1 for x>0x > 0, so the derivative never equals 13\frac{1}{3}.

A break in the graph breaks continuity. Take f(x)=1x2f(x) = \frac{1}{x^2} on [−1,1][-1, 1]. Here f(−1)=f(1)=1f(-1) = f(1) = 1, so the average rate is 00. But f′(x)=−2x3f'(x) = -\frac{2}{x^3} is never 00. The vertical asymptote at x=0x = 0 sits inside the interval.

A suitable cc may still exist by chance, so write "the MVT does not apply", not "no such cc exists".

Check yourself

Why does the MVT not apply to f(x)=∣x−3∣f(x) = |x - 3| on [0,5][0, 5]?
Show answerHide answer

ff has a corner at x=3x = 3, which is inside (0,5)(0, 5), so ff is not differentiable on (0,5)(0, 5). In fact no cc works: the average rate is −15-\frac{1}{5}, but f′(x)f'(x) is only ever −1-1 or 11.

Which method: which theorem fits the question?

The question wantsTheoremConditions to state
A value where f′(c)f'(c) equals an average rateMean Value TheoremContinuous on [a,b][a, b], differentiable on (a,b)(a, b)
A value where f(c)f(c) equals a number between f(a)f(a) and f(b)f(b)Intermediate Value TheoremContinuous on [a,b][a, b]
The largest or smallest value of ff on [a,b][a, b]Extreme Value Theorem (see the note on the Extreme Value Theorem and Absolute Extrema)Continuous on [a,b][a, b]

Worked example 1: Finding the value of c

Question: Find every value of cc that the Mean Value Theorem guarantees for f(x)=x3−3xf(x) = x^3 - 3x on [0,2][0, 2].

What tells you the method

"values of cc that the Mean Value Theorem guarantees" means: check the conditions, then set f′(c)f'(c) equal to the average rate and solve.

  1. Step 1: Check the conditions.

    ff is a polynomial, so it is continuous on [0,2][0, 2] and differentiable on (0,2)(0, 2).

    Why

    The theorem only applies once both conditions hold.

  2. Step 2: Find the average rate.

    f(0)=0f(0) = 0 and f(2)=8−6=2f(2) = 8 - 6 = 2, so 2−02−0=1\frac{2 - 0}{2 - 0} = 1.

    Why

    This is the slope that some tangent line must match.

  3. Step 3: Solve f′(c)=1f'(c) = 1.

    3c2−3=13c^2 - 3 = 1, so c2=43c^2 = \frac{4}{3} and c=±23=±233c = \pm\frac{2}{\sqrt{3}} = \pm\frac{2\sqrt{3}}{3}.

    Why

    f′(x)=3x2−3f'(x) = 3x^2 - 3.

  4. Step 4: Keep only values inside (0,2)(0, 2).

    −233-\frac{2\sqrt{3}}{3} is negative, so you reject it, leaving c=233≈1.155c = \frac{2\sqrt{3}}{3} \approx 1.155.

    Why

    The theorem promises cc strictly between aa and bb.

Check it

f′(1.155)=3(1.155)2−3≈1.00f'(1.155) = 3(1.155)^2 - 3 \approx 1.00, which matches the average rate.

Answer

c=233≈1.155c = \frac{2\sqrt{3}}{3} \approx 1.155.

Worked example 2: Verifying the conditions

Question: Let f(x)=x+4xf(x) = x + \dfrac{4}{x}. (a) Verify that the Mean Value Theorem applies to ff on [1,4][1, 4], and find the value of cc. (b) Explain why the theorem does not apply to ff on [−1,4][-1, 4].

What tells you the method

"verify" means check each condition by name; the 4x\frac{4}{x} term warns you that x=0x = 0 is a problem point.

  1. Step 1: Check the conditions on [1,4][1, 4].

    f′(x)=1−4x2f'(x) = 1 - \frac{4}{x^2}, and ff and f′f' exist for every x≠0x \neq 0, so ff is continuous on [1,4][1, 4] and differentiable on (1,4)(1, 4).

    Why

    The only problem point, x=0x = 0, is outside the interval.

  2. Step 2: Find the average rate.

    f(1)=5f(1) = 5 and f(4)=4+1=5f(4) = 4 + 1 = 5, so the average rate is 5−53=0\frac{5 - 5}{3} = 0.

    Why

    Equal endpoint values give an average rate of 00.

  3. Step 3: Solve f′(c)=0f'(c) = 0.

    1−4c2=01 - \frac{4}{c^2} = 0 gives c2=4c^2 = 4, so c=±2c = \pm 2, and only c=2c = 2 lies in (1,4)(1, 4).

    Why

    You keep only the values inside the open interval.

  4. Step 4: Look at [−1,4][-1, 4].

    ff is undefined at x=0x = 0, which lies in [−1,4][-1, 4], so ff is not continuous on [−1,4][-1, 4].

    Why

    One failed condition is enough to stop the theorem.

Check it

f′(2)=1−44=0f'(2) = 1 - \frac{4}{4} = 0, which matches the average rate.

Answer

(a) The conditions hold, and c=2c = 2. (b) ff is not continuous at x=0x = 0, which is inside [−1,4][-1, 4].

Worked example 3: Justifying from a table

Question: A cup of coffee cools in a room. Its temperature H(t)H(t), in degrees Fahrenheit, is a differentiable function of time tt in minutes.

tt (minutes)0033771212
H(t)H(t) (degrees Fahrenheit)190190172172150150136136

(a) Show that there must be a time tt, 0<t<120 < t < 12, at which H′(t)=−4.5H'(t) = -4.5 degrees Fahrenheit per minute. (b) Using two consecutive table values, find an interval [a,b][a, b] on which the MVT guarantees H′(t)=−5.5H'(t) = -5.5 for some tt in (a,b)(a, b).

What tells you the method

"there must be a time" plus a derivative value, with only a table, points to the Mean Value Theorem.

  1. Step 1: State the conditions.

    HH is differentiable, so it is continuous on [0,12][0, 12] and differentiable on (0,12)(0, 12).

    Why

    The conditions come first in a justification.

  2. Step 2: Find the average rate on [0,12][0, 12].

    136−19012−0=−5412=−4.5\frac{136 - 190}{12 - 0} = \frac{-54}{12} = -4.5 degrees Fahrenheit per minute.

    Why

    The MVT guarantees exactly this value of H′H'.

  3. Step 3: Conclude.

    By the Mean Value Theorem, there is a tt in (0,12)(0, 12) with H′(t)=−4.5H'(t) = -4.5 degrees Fahrenheit per minute.

    Why

    Both conditions hold and the average rate matches.

  4. Step 4: Test consecutive intervals for −5.5-5.5.

    On [0,3][0, 3]: −183=−6\frac{-18}{3} = -6. On [3,7][3, 7]: −224=−5.5\frac{-22}{4} = -5.5. On [7,12][7, 12]: −145=−2.8\frac{-14}{5} = -2.8.

    Why

    Only an average rate between table values can be guaranteed.

Check it

Every rate is negative, which fits coffee that is cooling.

Answer

(a) HH is continuous on [0,12][0, 12] and differentiable on (0,12)(0, 12), and the average rate is −4.5-4.5 degrees Fahrenheit per minute, so the MVT gives such a time. (b) The interval is [3,7][3, 7].

Your turn

Question: Find the value of cc that the Mean Value Theorem guarantees for f(x)=xf(x) = \sqrt{x} on [1,9][1, 9].

  1. Step 1:

    x\sqrt{x} is continuous on [1,9][1, 9] and differentiable on (1,9)(1, 9), because f′(x)=12xf'(x) = \frac{1}{2\sqrt{x}} exists for x>0x > 0.

  2. Step 2:

    The average rate is 9−19−1=28=14\frac{\sqrt{9} - \sqrt{1}}{9 - 1} = \frac{2}{8} = \frac{1}{4}.

  3. Step 3: Your go: set f′(c)=14f'(c) = \frac{1}{4}, solve for cc, and check that cc lies in (1,9)(1, 9).

Show the full solutionHide the solution

12c=14\frac{1}{2\sqrt{c}} = \frac{1}{4} gives 2c=42\sqrt{c} = 4, so c=2\sqrt{c} = 2 and c=4c = 4, which lies in (1,9)(1, 9).

Answer: c=4c = 4.

Traps

Trap

Keeping every value of cc that makes f′(c)f'(c) equal the average rate, including values at or beyond the endpoints.

It seems right because each one solves the equation. But the theorem promises cc strictly inside (a,b)(a, b), so you reject any value outside it, including the endpoints themselves.

Check yourself

For f(x)=x3f(x) = x^3 on [−1,2][-1, 2], solving f′(c)=3f'(c) = 3 gives c=1c = 1 or c=−1c = -1. Which does the MVT guarantee?
Show answerHide answer

Only c=1c = 1. The value −1-1 is the left endpoint, and the open interval (−1,2)(-1, 2) does not include it.

Trap

Using the Mean Value Theorem to claim that ff itself takes a value.

It seems right because both theorems promise "some cc in the interval". But the MVT gives a value of f′(c)f'(c); a claim like f(c)=70f(c) = 70 needs the Intermediate Value Theorem.

Check yourself

With W(4)=62W(4) = 62 and W(10)=80W(10) = 80, which theorem shows that W(t)=70W(t) = 70 for some tt in (4,10)(4, 10)?
Show answerHide answer

The Intermediate Value Theorem, because 7070 is between 6262 and 8080 and WW is continuous. The MVT would instead give a value of W′(t)W'(t).

What's examined

The Mean Value Theorem belongs to Unit 5 (Analyzing Functions with Derivatives) of the AP® Calculus AB exam. Multiple-choice items ask you to find cc or to pick the function that meets the conditions; when the equation for cc can't be solved by hand, use a graphing calculator. Free-response parts often give a table and say "Explain why there must be a value…" or "Justify your answer". Credit depends on naming the theorem, stating both conditions and showing the average rate with its units.

Practice questions

  1. Recall Which statement gives the two conditions of the Mean Value Theorem for ff on [a,b][a, b]?
    • A) ff is continuous on [a,b][a, b] and differentiable on (a,b)(a, b).
    • B) ff is differentiable on [a,b][a, b] and f(a)=f(b)f(a) = f(b).
    • C) ff is continuous on (a,b)(a, b) and differentiable on [a,b][a, b].
    • D) f′f' is continuous on [a,b][a, b].
Show answer

Answer: A) ff is continuous on [a,b][a, b] and differentiable on (a,b)(a, b).

Marking points:

  • The theorem needs continuity on the closed interval and differentiability on the open interval, nothing more.
  • B adds f(a)=f(b)f(a) = f(b), which belongs to the special Rolle case. C swaps the two intervals. D is a stronger condition that the theorem does not ask for.
  1. Apply Find the value of cc that the Mean Value Theorem guarantees for f(x)=x2−6x+1f(x) = x^2 - 6x + 1 on [1,4][1, 4].
Show answer

Answer: c=52c = \dfrac{5}{2}.

Marking points:

  • ff is a polynomial, so both conditions hold.
  • f(1)=−4f(1) = -4 and f(4)=−7f(4) = -7, so the average rate is −7−(−4)3=−1\frac{-7 - (-4)}{3} = -1.
  • f′(c)=2c−6=−1f'(c) = 2c - 6 = -1 gives c=52c = \frac{5}{2}, which lies in (1,4)(1, 4).
  1. Apply For f(x)=exf(x) = e^x on [0,1][0, 1], what is the value of cc guaranteed by the Mean Value Theorem, to three decimal places?
    • A) 0.5000.500
    • B) 0.5410.541
    • C) 1.0001.000
    • D) 1.7181.718
Show answer

Answer: B) 0.5410.541.

Marking points:

  • The average rate is e−11−0=e−1\frac{e - 1}{1 - 0} = e - 1, and f′(c)=ecf'(c) = e^c.
  • ec=e−1e^c = e - 1 gives c=ln⁡(e−1)≈0.541c = \ln(e - 1) \approx 0.541.
  • A assumes cc is the midpoint. C sets ec=ee^c = e, leaving out f(0)f(0). D stops at e−1e - 1 and forgets to take the logarithm.
  1. Exam-style The amount of water in a tank, A(t)A(t) liters, is a differentiable function of time tt in hours.
tt (hours)00225599
A(t)A(t) (liters)120120150150165165129129

(a) Find the average rate of change of AA over 5≤t≤95 \le t \le 9, and interpret it with units. (b) Show that there must be a time tt, 0<t<90 < t < 9, at which A′(t)=1A'(t) = 1 liter per hour.

Show answer

Answer: (a) −9-9 liters per hour: from t=5t = 5 to t=9t = 9, the water decreased at an average rate of 9 liters per hour. (b) The average rate on [0,9][0, 9] is 11 liter per hour, so the MVT gives such a time.

Marking points:

  • (a) 129−1659−5=−364=−9\frac{129 - 165}{9 - 5} = \frac{-36}{4} = -9 liters per hour.
  • (b) AA is differentiable, so it is continuous on [0,9][0, 9] and differentiable on (0,9)(0, 9).
  • (b) 129−1209−0=1\frac{129 - 120}{9 - 0} = 1, so by the Mean Value Theorem, A′(t)=1A'(t) = 1 liter per hour for some tt in (0,9)(0, 9).
  1. Apply For which function does the Mean Value Theorem apply on [−1,1][-1, 1]?
    • A) f(x)=∣x∣f(x) = |x|
    • B) f(x)=1xf(x) = \dfrac{1}{x}
    • C) f(x)=x2/3f(x) = x^{2/3}
    • D) f(x)=x+1f(x) = \sqrt{x + 1}
Show answer

Answer: D) f(x)=x+1f(x) = \sqrt{x + 1}.

Marking points:

  • x+1\sqrt{x + 1} is continuous on [−1,1][-1, 1], and its derivative 12x+1\frac{1}{2\sqrt{x + 1}} exists on (−1,1)(-1, 1); failing at the endpoint x=−1x = -1 does not matter.
  • A has a corner at 00. B is undefined at 00. C has a cusp at 00, where the derivative does not exist.
  1. Exam-style Find all values of cc that the Mean Value Theorem guarantees for f(x)=x3−4xf(x) = x^3 - 4x on [−2,2][-2, 2].
Show answer

Answer: c=−233c = -\dfrac{2\sqrt{3}}{3} or c=233c = \dfrac{2\sqrt{3}}{3}, which are about −1.155-1.155 and 1.1551.155.

Marking points:

  • ff is a polynomial, so both conditions hold.
  • f(−2)=0f(-2) = 0 and f(2)=0f(2) = 0, so the average rate is 00.
  • 3c2−4=03c^2 - 4 = 0 gives c=±23c = \pm\frac{2}{\sqrt{3}}, and both lie in (−2,2)(-2, 2).
  1. Exam-style A function gg is differentiable for all xx, with g(1)=4g(1) = 4, g(3)=10g(3) = 10 and g(6)=1g(6) = 1. Which statement must be true?
    • A) g′(c)=5g'(c) = 5 for some cc in (1,3)(1, 3)
    • B) g′(c)=−9g'(c) = -9 for some cc in (3,6)(3, 6)
    • C) g′(c)=−3g'(c) = -3 for some cc in (3,6)(3, 6)
    • D) g′(c)=0g'(c) = 0 for some cc in (1,3)(1, 3)
Show answer

Answer: C) g′(c)=−3g'(c) = -3 for some cc in (3,6)(3, 6).

Marking points:

  • On [3,6][3, 6] the average rate is 1−106−3=−3\frac{1 - 10}{6 - 3} = -3, and gg meets both conditions, so the MVT guarantees C.
  • A divides g(3)g(3) by 22 without subtracting g(1)g(1). B forgets to divide by 6−36 - 3. D needs g(1)=g(3)g(1) = g(3), which is false.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • Before using the theorem, state that ff is continuous on [a,b][a, b] and differentiable on (a,b)(a, b); "ff is differentiable" gives both.
  • The conclusion is f′(c)=f(b)−f(a)b−af'(c) = \frac{f(b) - f(a)}{b - a} for at least one cc strictly between aa and bb.
  • To find cc, solve that equation and reject values outside the open interval.
  • With a table, the MVT can only guarantee a derivative value equal to an average rate between two table inputs; give it with units.
  • A corner, cusp or break in the interval removes the guarantee.

Figures

The parabola y = x squared from x = 0 to 4.5. A solid secant segment joins (1, 1) to (4, 16) with slope 5, and a dashed tangent line touches the curve at (2.5, 6.25), also with slope 5, so the two lines are parallel. (open full size in a new tab)
The graph of y = x² with its secant line from x = 1 to x = 4 and the parallel tangent at x = 2.5

Keep learning

Explore AP Calculus AB tutoring →

View the full Calculus AB syllabus →

More in this unit

Analyzing Functions with Derivatives

All The Mean Value and Extreme Value Theorems notes

Part of Novark's AP Calculus AB notes