Calculus
Advanced

Average Value of a Function

The mean value of a continuous function over an interval.

Formula

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

Variables

fFunction
a, bLimits

Example

The average of f(x) = x on [0, 4] is (1/4)∫₀⁴ x dx = (1/4)·8 = 2.

How it works

The average value of a function on an interval is the constant height that would produce the same total area as the original curve over that interval. The integral gives the accumulated area under f(x), and dividing by the interval length b-a converts that total into an area-per-unit-length, which is exactly the mean height. This works because a continuous function can be thought of as many thin rectangles whose average height is the total area spread evenly across the interval.

When to use it

Use this formula when you need the mean output of a quantity that changes continuously with x, such as temperature over a day, velocity over a time period, or a rate like concentration or intensity across a region. It is especially useful in physics, engineering, and calculus problems involving “average height” or “average rate” over an interval.

Worked example, step by step

Find the average value of f(x) = x^2 on [1, 3]. Use f_avg = (1/(b-a))∫_a^b f(x) dx Substitute the limits and function: f_avg = (1/(3-1))∫_1^3 x^2 dx Integrate: ∫ x^2 dx = x^3/3 Evaluate the definite integral: ∫_1^3 x^2 dx = (3^3/3) - (1^3/3) = 27/3 - 1/3 = 26/3 Divide by the interval length: f_avg = (1/2)·(26/3) = 13/3 Final answer: the average value is 13/3 ≈ 4.33

Common mistakes to avoid

  • Forgetting to divide by the interval length b-a after integrating
  • Using the endpoints themselves as the average instead of integrating the function over the whole interval
  • Computing the antiderivative correctly but evaluating the definite integral with the limits in the wrong order

Did You Know?

Calculus can find the average height of a curve — the level at which its area would be a rectangle.

Share this formula

Reviewed & maintained by the FormulaWon editorial teamLast reviewed September 2026