TOPIC 8.1 · STUDY

Finding the Average Value of a Function on an Interval

The average value of a continuous function on a closed interval is its definite integral divided by the length of the interval. That height builds a rectangle with the same width and the same area as the region under the graph.

CHA-4.B

Average Value of a Function on an Interval

On a closed interval $[a,b]$, the average value of a continuous function $f$ is $\frac{1}{b-a}\int_{a}^{b} f(x)\,dx$. The integral adds up every output of $f$, counting area below the $x$-axis as negative. Dividing by the length $b-a$ turns that total into a typical height. Leave the factor off and the result is an area, not an average.

The rectangle picture is the reason the formula looks the way it does. A rectangle with width $b-a$ and height equal to the average value has area $(b-a)$ times the average. That product is exactly the definite integral. So the average value is the constant height of a rectangle that has the same width as the interval and the same area as the region under the curve.

Example. Take $f(x)=x^{2}$ on $[0,2]$. The interval length is $2-0=2$, and $\int_{0}^{2} x^{2}\,dx=\left[\frac{x^{3}}{3}\right]_{0}^{2}=\frac{8}{3}$. Divide by the length: $\frac{1}{2}\cdot\frac{8}{3}=\frac{4}{3}$. The average value is $\frac{4}{3}$.

The matching rectangle has width $2$ and height $\frac{4}{3}$, so its area is $2\cdot\frac{4}{3}=\frac{8}{3}$, the same as the integral. The horizontal line $y=\frac{4}{3}$ from $x=0$ to $x=2$ is the top of that rectangle. The parabola does not stay on the line. At $x=1$, $1^{2}=1$, which is below $\frac{4}{3}$. At $x=2$, $2^{2}=4$, which is above $\frac{4}{3}$. The area of the parabola above the line balances the area missing below it.

Averaging the endpoint values is a different operation. $\frac{f(0)+f(2)}{2}=\frac{0+4}{2}=2$, and $2$ is not $\frac{4}{3}$. That shortcut agrees with the integral average for a straight line, because a line's heights are evenly spaced. The graph of $x^{2}$ bends, so the integral has to include every height on $[0,2]$.

Graph of y = x squared on [0, 2] with a rectangle of height 4/3.

The parabola $y=x^{2}$ and the rectangle of width $2$ and height $\frac{4}{3}$. That rectangle has area $\frac{8}{3}$, the same area as the region under the parabola, so $\frac{4}{3}$ is the average height.

Key points

  • Average value on $[a,b]$ is $\frac{1}{b-a}\int_{a}^{b} f(x)\,dx$.
  • It is the height of a rectangle with the same width and the same area as the integral.
  • For $f(x)=x^{2}$ on $[0,2]$, the integral is $\frac{8}{3}$ and the average value is $\frac{4}{3}$.
  • The rectangle of width $2$ and height $\frac{4}{3}$ has area $\frac{8}{3}$.
  • Averaging $f(0)$ and $f(2)$ gives $2$, which is not the average value of $x^{2}$.

A common mistake is to stop after computing $\int_{0}^{2} x^{2}\,dx=\frac{8}{3}$ and call $\frac{8}{3}$ the average value. That number is the area. Divide by the interval length $2$ to get the average height $\frac{4}{3}$.

Practice this topic