Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Mean Value Theorem Calculator

How to use
  1. Type the function in the f(x)f(x) box, for example x2x^2 or x3−3xx^3 - 3x. Learn more about finding the point
  2. Type the ends of the interval in From a and To b.
  3. Read the slope of the secant, then the points cc where the curve has that same slope. Learn more about reading the answer
  4. Does the theorem apply? says whether ff is continuous on [a,b][a, b] and differentiable on (a,b)(a, b), and names the point that spoils it when it does not.
  5. On the graph the secant is amber and the tangent at each point cc is dashed navy. They are parallel.

Mean value theorem
Slope of the secant
f(2)−f(−2)2−(−2)=2−(−2)4=1\displaystyle \frac{f(2) - f(-2)}{2 - (-2)} = \frac{2 - (-2)}{4} = 1
Points c where f'(c) = 1
c=−1.1547,c=1.1547\displaystyle c = -1.1547,\quad c = 1.1547
Does the theorem apply?
yes\displaystyle \text{yes}
How it was found

The Mean Value Theorem: if ff is continuous on [−2, 2][-2,\ 2] and differentiable on (−2, 2)(-2,\ 2), then at some point cc in between the tangent is parallel to the secant, f′(c)=f(b)−f(a)b−af'(c) = \dfrac{f(b) - f(a)}{b - a}.

The secant: f(−2)=−2f(-2) = -2, f(2)=2f(2) = 2, so its slope is 11.

f(x)=x3−3xf(x) = {x}^{3}-3 x has no break and no corner on the interval, so the theorem applies: at least one such cc must exist.

Solve f′(c)=1f'(c) = 1 with f′(x)=3x2−3f'(x) = 3 {x}^{2}-3, for cc between −2-2 and 22.

2 points found: c=−1.1547c = -1.1547, c=1.1547c = 1.1547. The dashed tangents there are parallel to the secant.

Drawn by the tool
secant: y=x\text{secant: } y = xread-only
tangent at c=−1.1547\text{tangent at } c = -1.1547read-only
tangent at c=1.1547\text{tangent at } c = 1.1547read-only
f(x)=x3−3xf\left(x\right)={x}^{3}-3 x
secant: y=x\text{secant: } y = x
tangent at c=−1.1547\text{tangent at } c = -1.1547
tangent at c=1.1547\text{tangent at } c = 1.1547


Finding the point c

DemoFind the point c
Step 0 of 4
Type the function in the f(x)f(x) box and the interval in From a and To b. The calculator finds the slope of the secant through the two end points, and then every point cc strictly between aa and bb where the derivative equals that slope.

There may be one such point, as for x2x^2, several, as for x3−3xx^3 - 3x on [−2, 2][-2,\ 2], or, for a straight line, every point of the interval.

The ends can be whole numbers, decimals, fractions, or multiples of π\pi typed as pi or 2pi.

Reading the answer

  • Slope of the secant is f(b)−f(a)b−a\dfrac{f(b) - f(a)}{b - a}, shown with your numbers.
  • Points c lists the solutions of f′(c)=f'(c) = that slope inside the interval.
  • Does the theorem apply? is yes when ff is continuous on the closed interval and differentiable inside it. Otherwise it names what goes wrong: a break, a gap in the domain, a corner, or an upright tangent.

  • On the graph, the amber line is the secant. At each point cc a dashed navy tangent is drawn. The theorem says exactly that these lines are parallel.

    When the theorem does not apply, the calculator still looks for points cc. Sometimes there are some anyway, sometimes none; either way nothing is contradicted.

What the Mean Value Theorem says

Mean Value Theorem. If ff is continuous on [a, b][a,\ b] and differentiable on (a, b)(a,\ b), then there is at least one point cc in (a, b)(a,\ b) with

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


The right side is the average rate of change over the interval. The left side is the instantaneous rate at cc. The theorem says that somewhere inside the interval the instantaneous rate equals the average rate.

On the road: if you cover 120120 kilometres in 22 hours, your average speed is 6060 kilometres per hour, and at some moment your speedometer showed exactly 6060.

For f(x)=x2f(x) = x^2 on [0, 2][0,\ 2] the secant has slope 22, and f′(c)=2c=2f'(c) = 2c = 2 gives c=1c = 1.
x2x^2 on [0,2][0, 2]: the tangent at c=1c = 1 (dashed) is parallel to the secant.

Finding c by hand

1. Check the conditions. Is ff continuous on [a, b][a,\ b]? Does f′f' exist at every point of (a, b)(a,\ b)?
2. Find the secant slope m=f(b)−f(a)b−am = \dfrac{f(b) - f(a)}{b - a}.
3. Differentiate to get f′(x)f'(x).
4. Solve f′(c)=mf'(c) = m.
5. Keep only the solutions inside (a, b)(a,\ b).

Example: f(x)=x3−3xf(x) = x^3 - 3x on [−2, 2][-2,\ 2]. f(−2)=−2f(-2) = -2 and f(2)=2f(2) = 2, so m=2−(−2)4=1m = \dfrac{2 - (-2)}{4} = 1. f′(x)=3x2−3f'(x) = 3x^2 - 3, and 3c2−3=13c^2 - 3 = 1 gives c2=43c^2 = \dfrac{4}{3}, so c=±23≈±1.1547c = \pm \dfrac{2}{\sqrt{3}} \approx \pm 1.1547. Both lie in (−2, 2)(-2,\ 2).
x3−3xx^3 - 3x on [−2,2][-2, 2]: two points where the tangent is parallel to the secant.

Rolle's Theorem

When the two ends are at the same height, f(a)=f(b)f(a) = f(b), the secant is level and its slope is 00. The theorem then promises a point with f′(c)=0f'(c) = 0: a level tangent. This special case is Rolle's Theorem.

For f(x)=4x−x2f(x) = 4x - x^2 on [1, 3][1,\ 3]: f(1)=f(3)=3f(1) = f(3) = 3, and f′(c)=4−2c=0f'(c) = 4 - 2c = 0 at c=2c = 2, the top of the parabola.

To see it in the calculator, choose an interval whose ends have the same value: the secant slope reads 00 and the points cc are the peaks and valleys in between.
4x−x24x - x^2 on [1,3][1, 3]: equal heights at the ends, a level tangent at c=2c = 2.

Why both conditions are needed

DemoWhen the theorem does not apply
Step 0 of 4
Take away either condition and the conclusion can fail.

Not differentiable. f(x)=∣x∣f(x) = |x| on [−1, 2][-1,\ 2] is continuous, but has a corner at 00. The secant slope is 2−13=13\dfrac{2 - 1}{3} = \dfrac{1}{3}, while the slope of ∣x∣|x| is only ever −1-1 or 11. No cc exists.

Not continuous. f(x)=1xf(x) = \dfrac{1}{x} on [−1, 1][-1,\ 1] breaks at 00. The secant slope is 11, while f′(x)=−1x2f'(x) = -\dfrac{1}{x^2} is always negative. No cc exists.

The conditions are enough, not necessary: x3\sqrt[3]{x} on [−1, 1][-1,\ 1] has an upright tangent at 00, so the theorem does not apply, and still two points with the right slope exist. The calculator tells you so.
∣x∣|x| on [−1,2][-1, 2]: the secant has slope 13\frac{1}{3}, a slope the curve never has.

What the theorem is used for

    The Mean Value Theorem is the link between a derivative and the function it came from. It is how these facts are proved:

  • If f′(x)=0f'(x) = 0 on an interval, ff is constant there.
  • If f′(x)>0f'(x) > 0 on an interval, ff is increasing there; if f′(x)<0f'(x) < 0, decreasing.
  • Two functions with the same derivative differ by a constant, which is why an antiderivative is written with +C+ C.
  • A bound on the derivative bounds the change: if ∣f′(x)∣≤M|f'(x)| \leq M, then ∣f(b)−f(a)∣≤M ∣b−a∣|f(b) - f(a)| \leq M\,|b - a|.

  • Each of them applies the theorem to two points and reads off what the slope in between allows.

Common mistakes

  • Skipping the conditions. Solving f′(c)=mf'(c) = m without checking continuity and differentiability can give an answer the theorem does not support, or none at all.
  • Keeping solutions outside the interval. cc must lie strictly between aa and bb.
  • Including the end points. The theorem places cc in the open interval (a, b)(a,\ b).
  • Expecting exactly one point. "At least one" can be two, three, or all of them.
  • Reporting f(c)f(c) instead of cc. The theorem asks for the input.
  • Mixing up the two rates. The secant slope uses ff; the equation to solve uses f′f'.