Tutorials › AP Calculus › Defining the Average Value of a Function

Accumulation and Average Value · Tutorial 609 of 999

Defining the Average Value of a Function

You will learn how the average value of a continuous function is defined from its definite integral and the length of its interval.

Intermediate 9 min read

What You'll Learn

  • State the average-value formula for a continuous function on a nonzero-length interval
  • Identify the function, interval, definite integral, and interval length in the definition
  • Explain how equal-width sample averages lead to the formula
  • Interpret the sign and units of an average value
  • Avoid confusing the definite integral with the average value

From Accumulation to an Average

A definite integral describes signed accumulation over an interval. An average value answers a different question: what single number summarizes the function’s values across that interval?

The definition combines these ideas. It uses the definite integral to represent the function’s accumulated values, then divides by the length of the interval. The result is a value with the same units as the function.

The Definition

Let \(f\) be continuous on the closed interval \([a,b]\), where \(a<b\). The average value of \(f\) on \([a,b]\), denoted \(f_{\mathrm{avg}}\), is the definite integral of \(f\) over the interval divided by the interval’s length.

Definition: If \(f\) is continuous on \([a,b]\) and \(a<b\), its average value on \([a,b]\) is
$$ f_{\mathrm{avg}} = \frac{1}{b-a}\int_a^b f(x)\,dx. $$

Each part of the formula has a specific role:

  • \(f(x)\) is the function whose values are being summarized.
  • \([a,b]\) is the interval over which the average is defined.
  • \(\int_a^b f(x)\,dx\) is the signed accumulation of the function over that interval.
  • \(b-a\) is the interval’s length, which must be positive.
  • \(f_{\mathrm{avg}}\) is the resulting average value; it has the same units as \(f(x)\).

The conditions matter. Continuity on \([a,b]\) guarantees that the definite integral exists, and \(a<b\) ensures that the denominator is not zero. An interval of zero length cannot be used in this definition.

Why Divide by the Interval Length?

One way to understand the formula is to approximate the function’s values at equally spaced points. The ordinary arithmetic mean of \(n\) sampled values is the sum of those values divided by \(n\). As the samples become more numerous and evenly spaced across the interval, that mean approaches the average value defined by the integral.

To see the connection, divide \([a,b]\) into \(n\) equal subintervals, each of width \(\Delta x=(b-a)/n\). Choose the right endpoint of each subinterval as a sample point, \(x_i=a+i\Delta x\), for \(i=1,\ldots,n\). The arithmetic mean of the sampled function values is

$$ A_n=\frac{1}{n}\sum_{i=1}^{n}f(x_i). $$

Since \(n\Delta x=b-a\), rewrite this mean by multiplying each summand by \(\Delta x\) and adjusting the factor outside the sum:

$$ A_n = \frac{1}{n\Delta x}\sum_{i=1}^{n}f(x_i)\Delta x = \frac{1}{b-a}\sum_{i=1}^{n}f(x_i)\Delta x. $$

The sum on the right is a right-endpoint Riemann sum for the definite integral. Because \(f\) is continuous, these sums approach \(\int_a^b f(x)\,dx\) as \(n\) increases and the subinterval width approaches zero. Taking the limit therefore gives

$$ \lim_{n\to\infty}A_n = \frac{1}{b-a}\int_a^b f(x)\,dx. $$

Thus, the formula gives the limiting arithmetic mean of equally spaced function samples. The factor \(1/(b-a)\) is essential: it converts accumulated values over the whole interval into a value per unit of interval length.

Worked Example: Identifying Each Part

Worked Example: Identifying Each Part

Suppose \(f\) is continuous on \([1,5]\), and its definite integral on that interval is given as \(\int_1^5 f(x)\,dx=18\). Find the average value and identify the quantities in the definition.

The interval endpoints are \(a=1\) and \(b=5\), so its length is

$$ b-a=5-1=4. $$

The given signed accumulation is \(18\). Substitute the interval length and integral into the definition:

$$ f_{\mathrm{avg}} = \frac{1}{5-1}\int_1^5 f(x)\,dx = \frac{18}{4} = 4.5. $$

Therefore, the average value is \(4.5\). The denominator is \(4\), not the upper endpoint \(5\); the integral supplies the accumulated value, and division by the interval length produces the average.

As a check, multiplying the reported average by the interval length gives \(4.5(4)=18\), the given integral.

Sign and Units

The definite integral in the definition is signed. If positive and negative function values occur, their contributions can cancel. Therefore, the average value can be positive, zero, or negative. It is not defined by adding up only positive contributions.

Units provide another useful check. If \(x\) is measured in seconds and \(f(x)\) in meters per second, then the integral has units of meters: \((\text{meters per second})(\text{seconds})=\text{meters}\). Dividing by an interval length measured in seconds gives meters per second, the same units as the function.

Worked Example: A Function with Negative Average

Suppose a continuous function \(g\) is defined on \([-2,4]\), and the signed integral is given as \(\int_{-2}^{4}g(x)\,dx=-12\). Find its average value.

The interval length is

$$ b-a=4-(-2)=6. $$

Apply the definition using the given integral:

$$ g_{\mathrm{avg}} = \frac{1}{4-(-2)}\int_{-2}^{4}g(x)\,dx = \frac{-12}{6} = -2. $$

The average value is \(-2\). Its negative sign is consistent with the negative signed accumulation. Checking by multiplication, \((-2)(6)=-12\), which recovers the given integral.

Worked Example: Including Units

Worked Example: Including Units

A continuous velocity function \(v(t)\), measured in meters per second, is defined from \(t=0\) to \(t=6\) seconds. Suppose the signed integral over that interval is \(\int_0^6 v(t)\,dt=30\) meters. Find the average value of the velocity function over the interval.

Here \(a=0\) seconds and \(b=6\) seconds. The interval length is \(6-0=6\) seconds. The integral is \(30\) meters, so

$$ v_{\mathrm{avg}} = \frac{1}{6-0}\int_0^6v(t)\,dt = \frac{30\text{ meters}}{6\text{ seconds}} = 5\text{ meters per second}. $$

The average value is \(5\) meters per second. The units check: the integral’s units of meters are divided by an interval length in seconds, leaving meters per second. Multiplying \(5\text{ meters per second}\) by \(6\text{ seconds}\) gives \(30\) meters, the stated integral.

A Common Mistake: Dividing by an Endpoint

A frequent error is to divide the integral by the upper endpoint instead of by the interval’s length. The denominator is always \(b-a\), even when the interval does not start at zero.

Worked Example: Correcting the Denominator

Return to the given information \(\int_1^5 f(x)\,dx=18\). A mistaken calculation might divide by the upper endpoint:

$$ \text{Incorrect:}\qquad \frac{18}{5}=3.6. $$

This is incorrect because the interval runs from \(1\) to \(5\), so its length is \(5-1=4\), not \(5\). The definition gives

$$ \text{Correct:}\qquad f_{\mathrm{avg}} = \frac{18}{5-1} = \frac{18}{4} = 4.5. $$

The check confirms the correction: \(4.5(5-1)=4.5(4)=18\). Using \(3.6\) instead would give \(3.6(4)=14.4\), not the given integral.

What the Definition Does—and Does Not—Say

The average value is a single number summarizing the function across a specified interval. It depends on both the function and the chosen interval, so changing either can change the average. The integral is not itself the average: it represents signed accumulation, while dividing by \(b-a\) accounts for the interval’s length.

The definition also does not assert, by itself, that the function takes the average value at a particular input. It defines a number through an integral and a length. Whether the function equals that number somewhere is a separate question.

Before applying the formula, check that the function is continuous on the stated closed interval, identify both endpoints, compute the length as upper endpoint minus lower endpoint, and keep the sign and units of the integral. These checks help make the meaning of the result clear, not just its numerical value.

Check Your Understanding

Use the definition to answer each question. Treat any stated integral value as given.

  1. State the formula for the average value of a continuous function \(f\) on \([a,b]\), and identify what \(b-a\) represents.
  2. If \(\int_2^8 f(x)\,dx=24\), what is the average value of \(f\) on \([2,8]\)?
  3. If the signed integral on an interval is negative, must the average value be negative? Explain using the definition.
  4. A function has units of liters per minute, and its input is time measured in minutes. What units does its average value have?
  5. Why is dividing by \(b\) incorrect when finding the average value on \([a,b]\) with \(a\ne0\)?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon