Average Value of a Function

When you want to find the average of a finite list of numbers, you add them all up and divide by how many there are. But what happens when you want to find the average value of a function that takes infinitely many values over an interval? You can't simply add up infinitely many outputs and divide by infinity — instead, calculus gives us a precise tool for this: the average value of a function, computed using a definite integral. The key idea is that integration is itself a continuous form of summation. When we integrate a function f(x) over an interval [a, b], we are accumulating all of its output values in a weighted, continuous sense. Dividing that accumulated total by the length of the interval (b − a) gives us the average value — the single constant height that, if held across the entire interval, would produce the same total area under the curve. This concept appears throughout mathematics, physics, and engineering. A physicist uses it to find the average temperature along a rod. An economist uses it to find the average cost over a production run. A student of statistics recognizes it as closely related to the concept of expected value. Mastering the average value formula deepens your understanding of what integration really means and why it is so powerful.

Key takeaways
  • Start with the Discrete Average
  • Rewrite Using Δx
  • Take the Limit to Get the Integral
  • Geometric Interpretation
  • The Mean Value Theorem for Integrals

Start with the Discrete Average

For n numbers y₁, y₂, …, yₙ the average is (y₁ + y₂ + ⋯ + yₙ)/n. To move toward a continuous average, imagine sampling a function f(x) at n equally spaced points xᵢ on [a, b], where each subinterval has width Δx = (b − a)/n. The discrete average becomes [f(x₁) + f(x₂) + ⋯ + f(xₙ)] / n.

Rewrite Using Δx

Since n = (b − a)/Δx, dividing by n is the same as multiplying by Δx/(b − a). Rewrite the discrete average as [1/(b − a)] · Σᵢ f(xᵢ) Δx. The sum Σ f(xᵢ) Δx is exactly a Riemann sum for ∫ₐᵇ f(x) dx.

Take the Limit to Get the Integral

As n → ∞ (and Δx → 0), the Riemann sum converges to the definite integral ∫ₐᵇ f(x) dx. Therefore the average value of f on [a, b] is defined as f_avg = [1/(b − a)] ∫ₐᵇ f(x) dx. This is the official formula used whenever you need the average value of a continuous function over a closed interval.

Geometric Interpretation

Geometrically, f_avg is the height of a rectangle with base (b − a) whose area equals the area under the curve from a to b. In other words, f_avg · (b − a) = ∫ₐᵇ f(x) dx. Imagine 'leveling out' the region under the curve into a flat rectangle — the height of that rectangle is the average value.

The Mean Value Theorem for Integrals

If f is continuous on [a, b], then there exists at least one number c in (a, b) such that f(c) = f_avg = [1/(b − a)] ∫ₐᵇ f(x) dx. This guarantees that a continuous function actually achieves its average value somewhere in the interval — a remarkable and important result that connects the average value formula to the behavior of f itself.

The Key Equation

favg=1b−a∫abf(x) dxf_{\text{avg}} = \frac{1}{b-a}\int_{a}^{b} f(x)\,dx
  • f_{\text{avg}} — Average value (same units as f(x)): The single constant value that represents the 'mean height' of the function over the interval.
  • b - a — Length of the interval (same units as x): The width of the interval over which the average is computed; must be nonzero.
  • \int_{a}^{b} f(x)\,dx — Definite integral of f (units of f(x) × units of x): The net accumulated area (signed) under the curve y = f(x) from x = a to x = b.
  • a,\, b — Endpoints of the interval (same units as x): The left and right boundaries of the interval, with a < b.

Worked Example

Problem. Find the average value of f(x) = x² + 2x on the interval [1, 4].

favg=13∫14(x2+2x) dx=13(36)=12f_{\text{avg}} = \frac{1}{3}\int_{1}^{4}(x^2+2x)\,dx = \frac{1}{3}(36) = 12

Answer. The average value is 12.

Figure
Diagram
Average Value: Leveling the Curvexya=1b=40f_avg = 12y = x²+2xArea undercurve = 3612The red dashed rectangle has equal area to the region under the blue curve.
Origins · 1 minAugustin-Louis Cauchy and how this was discovered
AC
Augustin-Louis Cauchy
1789–1857 · French

Cauchy placed the foundations of calculus — including the definite integral and the Mean Value Theorem — on a rigorous footing. His formal definitions of limits and continuity made results like the Mean Value Theorem for Integrals provable rather than merely intuitive. The guarantee that a continuous function achieves its average value on an interval is a direct consequence of his work. Cauchy was extraordinarily prolific, publishing nearly 800 research papers. The French Academy of Sciences was so overwhelmed by his submissions that they had to create a rule limiting how many pages a member could submit per year — a rule known informally as 'the Cauchy rule.'

  • The Definite Integral — The average value formula is built directly on the definite integral; understanding ∫ₐᵇ f(x) dx as accumulated area is essential.
  • Fundamental Theorem of Calculus — The FTC provides the antiderivative method used to evaluate the definite integral in the average value formula.
  • Mean Value Theorem (Differential) — The Mean Value Theorem for Integrals is the integral analogue of the differential MVT and guarantees f achieves its average value.
  • Riemann Sums — The derivation of the average value formula begins with a Riemann sum approximation of discrete averages.
  • Expected Value of a Random Variable — For continuous probability distributions, expected value is computed with a formula structurally identical to the average value integral.