Skip to content

Average Value of a Function

In this lesson you’ll learn how to find the average value of a function over an interval using a definite integral.

You know how to average a list of numbers: add them up and divide by how many there are. But what if the quantity is changing continuously? You can’t just add up finitely many values. The integral handles this.

The average value of f(x) on [a, b] is:

favg=1baabf(x)dxf_{\text{avg}} = \frac{1}{b - a} \int_a^b f(x) \, dx

The integral computes the total accumulation, and dividing by the interval length (b - a) gives the average height.

Think of it this way: imagine flattening the area under the curve into a rectangle with the same base (b - a). The height of that rectangle is the average value. The rectangle has the same area as the region under the curve, just spread out evenly.

The blue shaded region is the area under x² from 0 to 3 (area = 9). The dashed orange rectangle has base 3 and height 3, so its area is also 9. The height of that rectangle (3) is the average value. The curve’s area got “flattened” into a rectangle of equal area.

Example 1: Average of x² on [0, 3]

favg=13003x2dx=13[x33]03=13273=139=3f_{\text{avg}} = \frac{1}{3 - 0}\int_0^3 x^2 \, dx = \frac{1}{3}\left[\frac{x^3}{3}\right]_0^3 = \frac{1}{3} \cdot \frac{27}{3} = \frac{1}{3} \cdot 9 = 3

The average value of x² on [0, 3] is 3. The function ranges from 0 to 9 on this interval, and the average height is 3.

Example 2: Average velocity

A car’s velocity is v(t) = 3t² + 2t on [0, 4]. Find the average velocity.

vavg=1404(3t2+2t)dt=14[t3+t2]04=14(64+16)=804=20v_{\text{avg}} = \frac{1}{4}\int_0^4 (3t^2 + 2t) \, dt = \frac{1}{4}\left[t^3 + t^2\right]_0^4 = \frac{1}{4}(64 + 16) = \frac{80}{4} = 20

The average velocity is 20 units per time. The car was sometimes going slower and sometimes faster, but 20 is the speed that, if held constant, would cover the same total distance.

Example 3: Average temperature

Temperature over 12 hours is T(t) = 60 + 10t - t² (in degrees, t in hours). Find the average temperature from t = 0 to t = 10.

Tavg=110010(60+10tt2)dt=110[60t+5t2t33]010T_{\text{avg}} = \frac{1}{10}\int_0^{10}(60 + 10t - t^2)\,dt = \frac{1}{10}\left[60t + 5t^2 - \frac{t^3}{3}\right]_0^{10} =110(600+50010003)=110(1800+150010003)=1102300376.7°= \frac{1}{10}\left(600 + 500 - \frac{1000}{3}\right) = \frac{1}{10}\left(\frac{1800 + 1500 - 1000}{3}\right) = \frac{1}{10} \cdot \frac{2300}{3} \approx 76.7°

Average value shows up whenever you need to summarize a changing quantity:

  • Physics: average velocity over a trip, average force during an impact
  • Economics: average cost per unit over a production run
  • Medicine: average drug concentration in the bloodstream over a dosing period
  • Game design: average damage per second (DPS) to balance weapons
  • Climate: average temperature over a day, month, or year
The average value formula is:
The average value of x² on [0, 3] is:
Geometrically, the average value is:
If the average value of f on [2, 6] is 10, then the integral from 2 to 6 of f(x) dx is:
Average value is useful in game design for: