Average Value of a Function Calculator

Average value of a polynomial on [a, b], exactly, plus the mean value theorem points c where f(c) equals the average and where f′(c) equals the mean slope.

1, 0, 0 means x². Use 0 for a missing power. Up to degree 20. Use a point for decimals (1.5), no thousands separators, and separate numbers with spaces or a comma and a space.
Must be greater than a.

Results

Average value of f on [0, 3]
3
∫ from a to b of f(x) dx
9
Mean value theorem for integrals: c where f(c) = average
c = 1.732050808
Average rate of change (f(b) − f(a))/(b − a)
3
Mean value theorem for derivatives: c where f′(c) = average rate of change
c = 1.5
Function
f(x) = x²

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.

f_avg = 1/(b − a) × ∫ from a to b of f(x) dx

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

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