01 / 20

Average Value of
a Function

Discover how definite integrals let you compute the average height of a continuous curve over any interval.

Calculus 1

What Is an Average?

You already know how to average a finite set of numbers: add them up and divide by how many there are.

But what if the values come from a continuous function \(f(x)\)? There are infinitely many outputs: you cannot simply add them. That is where integration takes over.

From Sums to Integrals

Sample \(f(x)\) at \(n\) equally spaced points on \([a,b]\). Each sub-interval has width \(\Delta x = \frac{b-a}{n}\).

As \(n\to\infty\), the Riemann sum becomes a definite integral:

Visual Intuition

a b \(f_{\text{avg}}\) \(f(x)\)

The Average Value Formula

\(\displaystyle\int_a^b f(x)\,dx\)
Total accumulated value: the signed area under the curve from \(a\) to \(b\)
\(\displaystyle\frac{1}{b-a}\)
Divides by the interval length: the continuous analogue of dividing by \(n\)

Mean Value Theorem for Integrals

This guarantees \(f\) actually attains its average value somewhere in the interval. The curve must cross the average-value line at least once.

a \(c_1\) \(c_2\) b \(f_{\text{avg}}\)

Average Value vs. Average Rate of Change

Average ValueAvg Rate of Change
Formula\(\frac{1}{b-a}\int_a^b f(x)\,dx\)\(\frac{f(b)-f(a)}{b-a}\)
MeasuresAverage heightAverage slope
RequiresIntegrationOnly endpoint values
TheoremMVT for IntegralsMVT for Derivatives

How to Apply the Formula

1
Identify the interval \([a,b]\) and the function \(f(x)\).
2
Compute the definite integral \(\displaystyle\int_a^b f(x)\,dx\).
3
Multiply by \(\displaystyle\frac{1}{b-a}\) to obtain \(f_{\text{avg}}\).
4
If asked for \(c\): solve \(f(c)=f_{\text{avg}}\) and verify \(c\in[a,b]\).

Example 1: \(f(x)=x^2\) on \([0,3]\)

0 1 2 3 \(f_{\text{avg}}=3\) \(x^2\)

Example 1: Finding \(c\)

We found \(f_{\text{avg}}=3\). Now solve \(f(c)=3\) to find the point guaranteed by the MVT for Integrals:

Geometrically, \(c=\sqrt{3}\) is the \(x\)-value where the parabola \(x^2\) crosses the average height line \(y=3\).

Example 2: \(f(x)=\sin x\) on \([0,\pi]\)

0 \(\frac{\pi}{2}\) \(\pi\) \(\frac{2}{\pi}\) \(\sin x\)

Example 3: \(f(x)=2x+1\) on \([1,4]\)

A linear function: the average value should equal the function at the midpoint of the interval.

What About Negative Values?

When \(f(x)\) dips below the \(x\)-axis, the integral counts those regions as negative area. This pulls the average value down.

All positive
\(f_{\text{avg}} > 0\): the entire region sits above the axis.
All negative
\(f_{\text{avg}} < 0\): the entire region sits below the axis.
Mixed sign
Positive and negative areas partially cancel. The average could be positive, negative, or zero.

Common Mistakes

✕ Forgetting \(\frac{1}{b-a}\)
Computing \(\int_a^b f(x)\,dx\) alone gives the total area, not the average. Always divide by the interval length.
✕ Averaging endpoints
Writing \(\frac{f(a)+f(b)}{2}\) gives the average of two numbers, not the average value of the function.
✕ Confusing with AROC
Using \(\frac{f(b)-f(a)}{b-a}\) computes the average rate of change (slope), not the average value (height).

Summary Checklist

✓
Formula: \(\displaystyle f_{\text{avg}}=\frac{1}{b-a}\int_a^b f(x)\,dx\)
✓
MVT for Integrals: There exists \(c\in[a,b]\) with \(f(c)=f_{\text{avg}}\).
✓
Geometric meaning: \(f_{\text{avg}}\) is the rectangle height that matches the area under the curve.
✓
Signed area: Regions below the axis contribute negative area, pulling the average down.
✓
Linear shortcut: For linear \(f\), \(f_{\text{avg}} = f\!\left(\frac{a+b}{2}\right)\).

Question 1 of 5

What is the average value of \(f(x)=3x^2\) on \([0,2]\)?

Question 2 of 5

Which expression gives the average value of \(g(t)\) on \([2,7]\)?

Question 3 of 5

The average value of \(\cos x\) on \([0,\pi]\) is:

Question 4 of 5

If \(\displaystyle\int_1^5 f(x)\,dx = 20\), the average value of \(f\) on \([1,5]\) is:

Question 5 of 5

The average value of \(f(x)=x^2\) on \([0,3]\) is \(3\). Which value of \(c\) satisfies \(f(c)=f_{\text{avg}}\)?