How it’s calculated
The average value of a function over [a, b] is the height of the rectangle with the same base and the same area as the region under the curve: the integral divided by the width.
The mean value theorem for integrals says a continuous function actually reaches its average value somewhere: there is a c in [a, b] with f(c) = f_avg. The calculator lists every such c by solving f(x) = f_avg exactly (as the roots of a polynomial). It also gives the points of the ordinary mean value theorem: a c strictly between a and b where the slope f′(c) equals the average rate of change (f(b) − f(a))/(b − a).
Example: f(x) = x² on [0, 3]. ∫₀³ x² dx = 27/3 = 9, so f_avg = 9/3 = 3, and f(c) = c² = 3 gives c = √3 ≈ 1.732 (−√3 lies outside the interval). The average rate of change is (9 − 0)/3 = 3, and f′(c) = 2c = 3 gives c = 1.5.
Frequently asked questions
Is the average value the same as the average of f(a) and f(b)?
Only for straight lines. In general it is the integral divided by the width, which accounts for every value of f across the interval, not just the end points.
What is the difference between the two mean value theorems?
The one for integrals finds c where f(c) equals the average value of f. The one for derivatives finds c where the slope f′(c) equals the average slope (f(b) − f(a))/(b − a).
Can there be more than one c?
Yes. The theorems guarantee at least one, but a wiggly function can hit its average (or its average slope) several times; all of them are listed.
Can the average value be negative?
Yes, if more of the area lies below the x-axis than above it, since the integral counts that area as negative.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Need this calculator branded, changed or built around your own prices?See custom business solutions →
Sources
- Calculus Volume 1, §5.3 The Fundamental Theorem of Calculus (mean value theorem for integrals, Examples 5.15 and 5.16) — OpenStax
- Calculus Volume 1, §5.2 The Definite Integral (average value of a function) — OpenStax
- Calculus Volume 1, §4.4 The Mean Value Theorem — OpenStax
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Added · Last updated · How we check our calculators
Spotted a mistake or missing option? Report a problem· Suggest a calculator