Mean Value Theorem Calculator

  • Free
  • No sign-up
  • Works on phones
  • Shows the working
Differential#9

Mean Value Theorem Solver

Finds every \(c \in (a, b)\) with \(f'(c) = \frac{f(b) - f(a)}{b - a}\).

This mean value theorem calculator finds every number \( c \) in \( (a, b) \) where the instantaneous rate of change \( f'(c) \) equals the average rate of change of \( f \) over \( [a, b] \). It shows the secant slope and lists all the \( c \) values it finds, in exact form when possible, so you can check the “find the c guaranteed by the MVT” problems that come up in every Calculus 1 course.

Free, instant, no sign-up.

Mean Value Theorem Calculator: For f(x) = x² on [1, 4] the secant has slope 5, and the tangent at c = 2.5 is parallel to…
For f(x) = x² on [1, 4] the secant has slope 5, and the tangent at c = 2.5 is parallel to it: the Mean Value Theorem.

How to use the mean value theorem calculator

  1. Enter \( f(x) \). Use ^ for powers, sqrt(x), sin(x), cos(x), ln(x), e^(x) and pi. Implicit multiplication like 12x works.
  2. Enter the endpoints \( a \) and \( b \) with \( a < b \). Expressions such as pi or e are accepted.
  3. Press Find c. The output shows the secant slope \( \frac{f(b) - f(a)}{b - a} \) and every \( c \) strictly between \( a \) and \( b \) that satisfies the theorem (up to 8 values).

Formula

If \( f \) is continuous on \( [a, b] \) and differentiable on \( (a, b) \), the mean value theorem guarantees at least one \( c \) in \( (a, b) \) with

A calculator with papers in the background, showing a number on the display.

$$f'(c) = \frac{f(b) - f(a)}{b - a}$$

Geometrically, somewhere between \( a \) and \( b \) the tangent line is parallel to the secant line through the endpoints. The calculator computes the secant slope, differentiates \( f \) exactly, and solves \( f'(x) = \text{slope} \) numerically on the open interval. Values such as \( \frac{4\sqrt3}{3} \) are recognized and shown exactly, with a decimal alongside.

Worked example

Example 1. Find the value of \( c \) for \( f(x) = \sqrt{x} \) on \( [1, 9] \).

  • Secant slope: \( \frac{\sqrt9 - \sqrt1}{9 - 1} = \frac{3 - 1}{8} = \frac14 \).
  • Derivative: \( f'(x) = \frac{1}{2\sqrt{x}} \).
  • Solve \( \frac{1}{2\sqrt{c}} = \frac14 \): \( \sqrt{c} = 2 \), so \( c = 4 \).

Since \( 4 \) is in \( (1, 9) \), it’s the answer. That’s what the calculator above shows by default.

Example 2. Find all \( c \) for \( f(x) = x^3 - 12x \) on \( [-4, 4] \).

  • \( f(4) = 64 - 48 = 16 \) and \( f(-4) = -16 \), so the secant slope is \( \frac{16 - (-16)}{8} = 4 \).
  • \( f'(c) = 3c^2 - 12 = 4 \) gives \( c^2 = \frac{16}{3} \), so

$$c = \pm\frac{4}{\sqrt3} = \pm\frac{4\sqrt3}{3} \approx \pm 2.3094$$

Both values lie in \( (-4, 4) \), so there are two answers. The theorem promises at least one; the calculator lists them all. Type x^3 - 12x with \( a = -4 \), \( b = 4 \) to check.

When the calculator finds no c

The theorem only applies when its two hypotheses hold. If the mean value theorem calculator can’t find a \( c \), it shows a warning. This means continuity or differentiability may fail. For example, \( f(x) = |x| \) (type abs(x)) on \( [-1, 2] \) has secant slope \( \frac{2 - 1}{3} = \frac13 \). However, \( f'(x) \) is only ever \( -1 \) or \( 1 \). The corner at \( x = 0 \) breaks differentiability. Thus, no \( c \) exists.

A laptop, calculator, notebook, and newspaper on a desk.

Other things to keep in mind:

  • Check the hypotheses yourself. A function can have a matching \( c \) even when the theorem doesn’t apply, so a result from the calculator is not proof that \( f \) is differentiable. Watch for vertical asymptotes, corners and cusps inside \( [a, b] \).
  • Exam answers usually need the justification. Say that \( f \) is continuous on \( [a, b] \) and differentiable on \( (a, b) \) before quoting the \( c \) value.
  • Rolle’s theorem is the special case \( f(a) = f(b) \): the secant slope is 0, so the calculator finds points with a horizontal tangent, the same points the critical points calculator looks for.

The statement, proof idea and more examples are in the mean value theorem guide. The same “average equals some actual value” idea appears for integrals in the average value of a function, and the average value calculator finds that \( c \) too.

Rolle’s theorem: the special case

If \( f(a) = f(b) \), the average slope is zero. The theorem promises a point where \( f'(c) = 0 \), a horizontal tangent. For \( f(x) = x^2 - 4x \) on \( [0, 4] \), the mean value theorem calculator gives \( c = 2 \). This uses \( f(0) = f(4) = 0 \) and \( f'(c) = 2c - 4 = 0 \).

A real-world reading

If you drive 120 km in 1 hour 15 minutes, your average speed is 96 km/h. The mean value theorem says your speedometer read exactly 96 km/h at some moment. Some toll roads use this logic. Average-speed cameras catch drivers. They prove speeding at some point. A mean value theorem calculator could help understand this concept.

Step-by-step method

  1. Check that \( f \) is continuous on \( [a, b] \) and differentiable on \( (a, b) \).
  2. Compute the average slope \( \frac{f(b) - f(a)}{b - a} \).
  3. Solve \( f'(c) = \) that slope.
  4. Keep only the solutions strictly between \( a \) and \( b \).

Why the conditions matter

\( f(x) = |x| \) on \( [-1, 1] \) has average slope 0, but no point with slope 0. This is because it is not differentiable at 0.

Practice problems

  1. \( f(x) = x^3 \) on \( [0, 2] \).
  2. \( f(x) = \sqrt{x} \) on \( [0, 4] \).

Answers: 1. Average slope \( 8/2 = 4 \); \( 3c^2 = 4 \) gives \( c = \frac{2}{\sqrt{3}} \approx 1.155 \). 2. Average slope \( 2/4 = \frac{1}{2} \); \( \frac{1}{2\sqrt{c}} = \frac{1}{2} \) gives \( c = 1 \).

Reading and Interpreting Your Results

After entering your function and interval, the mean value theorem calculator displays the average rate of change. This is the slope of the secant line connecting the endpoints.

Next, it lists every 'c' value found. Each 'c' is a point within the open interval (a, b) where the tangent line's slope matches the average slope.

Sometimes, 'c' values appear in exact form, like 4sqrt(3)/3. A decimal approximation is also provided. Both forms are correct, but exact forms are often preferred in calculus.

If multiple 'c' values are shown, the function has several points where its instantaneous rate of change equals the overall average rate. The theorem guarantees at least one, but more are common.

Always confirm that each 'c' value falls strictly between 'a' and 'b'. Values outside this range are not valid solutions for the theorem.

Common Pitfalls to Avoid

One frequent error is forgetting to check the MVT's conditions. Ensure the function is continuous on the closed interval [a, b] and differentiable on the open interval (a, b).

If these conditions are not met, the theorem does not apply. The calculator might still find a 'c' value, but it is not guaranteed by the MVT.

Another mistake occurs during manual calculation. Many students forget to differentiate the function correctly before setting f'(c) equal to the average slope. Double-check your derivative.

When solving f'(c) = slope, algebraic errors are common. Be careful with square roots, fractions, and quadratic formulas. Use the mean value theorem calculator to verify your manual solutions.

Finally, always confirm that your 'c' values lie strictly within the given open interval (a, b). Solutions outside this range are extraneous and must be discarded.

When a Different Method Fits Better

The Mean Value Theorem is specific to finding 'c' values where instantaneous rate equals average rate. However, other calculus tools address different problems.

For example, if you need to find maximum or minimum values of a function on an interval, an optimization method is more suitable. This involves finding critical points and evaluating endpoints.

If you are looking for points where the function changes concavity, you would use the second derivative test. This identifies inflection points, not MVT 'c' values.

When finding the area under a curve, integration is the correct approach. The average value of a function uses a similar concept but targets integral averages, not derivative averages.

Thus, while the mean value theorem calculator is excellent for its specific purpose, select the right tool for each unique calculus problem.

Related guides

Further reading

FAQ

How do you find c in the mean value theorem?

Compute the secant slope \( \frac{f(b) - f(a)}{b - a} \), set \( f'(c) \) equal to it, solve for \( c \), and keep only solutions strictly between \( a \) and \( b \).

Can there be more than one value of c?

Yes. The theorem guarantees at least one, but there may be several, as in Example 2. The calculator lists every value it finds in the interval.

What if the function is not differentiable on the interval?

Then the theorem does not apply and there may be no valid \( c \). The calculator will warn you if it finds none.

What is the difference between Rolle’s theorem and the mean value theorem?

Rolle’s theorem is the case \( f(a) = f(b) \), where the guaranteed \( c \) has \( f'(c) = 0 \). The mean value theorem allows any endpoint values.

Embed this calculator on your website

Teachers, tutors and bloggers are welcome to use this calculator for free. Copy the code below and paste it into any page (in WordPress, use a "Custom HTML" block). The small script makes the calculator grow to fit its answer; if your site removes scripts, it still works at a fixed height. Please keep the credit link.

More calculators

See all calculators