Mean Value Theorem Calculator

Type a function and an interval to find the point where the slope equals the average slope.

Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).

Left endaa

A number such as 0, -2 or 1/2.

Right endbb

A number larger than the left end.

Try

Result

You enteredf(x)=x2,[1,3]f(x) = x^{2},\quad \left[1, 3\right]

c=2\displaystyle c = 2

Average slope

f(b)−f(a)b−a=4\displaystyle \frac{f(b) - f(a)}{b - a} = 4
Show the work
  1. Conditions of the theorem

    ff is defined and continuous on [1,3]\left[1, 3\right] and has a derivative at every point inside it, so the theorem applies.

    Using f continuous on [a,b] and differentiable on (a,b)f \text{ continuous on } [a, b] \text{ and differentiable on } (a, b)

    f(1)=1f(3)=9\begin{gathered} f(1) = 1 \\ f(3) = 9 \end{gathered}
  2. First derivative

    Differentiate x2x^{2} with the usual rules (the derivative calculator shows each one).

    f′(x)=2xf'(x) = 2x
  3. Mean value theorem

    Somewhere in the interval the slope of the graph equals the average slope between the end points. Find that average slope first.

    f′(c)=f(b)−f(a)b−a=9−13−1=4\begin{aligned} f'(c) &= \frac{f(b) - f(a)}{b - a} \\ &= \frac{9 - 1}{3 - 1} \\ &= 4 \end{aligned}
  4. Solve f'(c) equal to the average slope

    Set f′(c)=4f'(c) = 4, clear the denominator and solve the polynomial equation; keep only the solutions strictly between the end points.

    2x=4  ⇒  c=2\begin{aligned} 2x &= 4 \;\Rightarrow\; c \\ &= 2 \end{aligned}
  5. Result

    The value of cc in (1,3)\left(1, 3\right) with f′(c)=4f'(c) = 4 is listed below.

    c=2c = 2
Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
(1, 1)(3, 9)(2, 4)

Only three colours are available, so rows 4 and beyond reuse them with a dashed, then dotted, line.

  • y = x^2
  • y = 4x - 3
  • y = 4x - 4
  • (1, 1)
  • (3, 9)
  • (2, 4)

Points on the graph

  • y = x^2: zero (0, 0)
  • y = x^2: minimum (0, 0)
  • y = 4x - 3: zero (0.75, 0)
  • y = 4x - 4: zero (1, 0)
  • y = x^2 and y = 4x - 3: intersection (1, 1)
  • y = x^2 and y = 4x - 3: intersection (3, 9)
  • y = x^2 and y = 4x - 4: intersection (2, 4)

Worked examples