Tutorials › Calculus I › Function Averages Versus Endpoint Averages

Average Value and Accumulated Quantities · Tutorial 1281 of 1495

Function Averages Versus Endpoint Averages

Learn how integral averages and endpoint averages are defined, when they agree, and why neither is a reliable substitute for the other in general.

Intermediate 9 min read

What You'll Learn

  • Define the integral average and the endpoint average on an interval.
  • Prove that the two averages agree for every affine function.
  • Compare both averages through the line joining the function’s endpoint values.
  • Calculate examples where the averages agree and where they differ.
  • Recognize why the endpoint average does not determine the integral average.

Two Different Ways to Average a Function

An average can summarize many values with a single number. For a function on an interval, one natural summary uses all the function’s values across the interval. Another uses only the values at the two endpoints. These summaries sound similar, but they need not be equal.

The distinction matters whenever the function describes a quantity that varies across time or space. The integral average accounts for the entire interval, while the endpoint average ignores what happens between its ends. Comparing them helps identify when endpoint information is sufficient and when it is not.

Definition: Let \(f\) be continuous on an interval \([a,b]\), where \(a<b\). The integral average of \(f\) on \([a,b]\) is $$ f_{\mathrm{avg}}=\frac{1}{b-a}\int_a^b f(x)\,dx. $$ The endpoint average is the arithmetic mean of the endpoint values: $$ E=\frac{f(a)+f(b)}{2}. $$

The factor \(1/(b-a)\) in the integral average divides the total accumulated value by the interval’s length. Thus, if \(f\) has units such as liters per minute, both averages have those same units. The endpoint average has the same units because it averages two values of \(f\).

These definitions use different information. The integral average depends on the values throughout \([a,b]\). The endpoint average depends only on \(f(a)\) and \(f(b)\). To see when they coincide—and why they often do not—we first examine a case where the function changes at a constant rate.

Why Linear Functions Give the Same Average

A function is affine (often called linear in this context) if it has the form \(f(x)=mx+c\), where \(m\) and \(c\) are constants. Its values change uniformly between the endpoints. For every such function, the integral average and endpoint average are equal.

Theorem: If \(f(x)=mx+c\) on \([a,b]\), with \(a<b\), then $$ \frac{1}{b-a}\int_a^b f(x)\,dx=\frac{f(a)+f(b)}{2}. $$

Here is a direct derivation. An antiderivative of \(mx+c\) is \(\frac{m}{2}x^2+cx\), so

$$ \begin{aligned} \frac{1}{b-a}\int_a^b (mx+c)\,dx &=\frac{1}{b-a}\left[\frac{m}{2}x^2+cx\right]_a^b\\ &=\frac{1}{b-a}\left(\frac{m}{2}(b^2-a^2)+c(b-a)\right)\\ &=\frac{1}{b-a}\left((b-a)\frac{m(a+b)}{2}+c(b-a)\right)\\ &=\frac{m(a+b)}{2}+c. \end{aligned} $$

At the endpoints, \(f(a)=ma+c\) and \(f(b)=mb+c\). Their arithmetic mean is

$$ \frac{f(a)+f(b)}{2} =\frac{ma+c+mb+c}{2} =\frac{m(a+b)}{2}+c. $$

The two expressions are identical, proving the claim. The result reflects the uniform change in an affine function: its values throughout the interval are distributed evenly between its endpoint values.

Worked Example: An Affine Function

Compare the averages of \(f(x)=3x+2\) on \([1,5]\).

First evaluate the endpoints:

$$ f(1)=3(1)+2=5,\qquad f(5)=3(5)+2=17. $$

Therefore the endpoint average is

$$ E=\frac{5+17}{2}=\frac{22}{2}=11. $$

For the integral average, an antiderivative is \(\frac{3}{2}x^2+2x\). Thus

$$ \begin{aligned} \int_1^5(3x+2)\,dx &=\left[\frac{3}{2}x^2+2x\right]_1^5\\ &=\left(\frac{3}{2}(25)+10\right)-\left(\frac{3}{2}(1)+2\right)\\ &=\left(\frac{75}{2}+\frac{20}{2}\right)-\left(\frac{3}{2}+\frac{4}{2}\right)\\ &=\frac{95}{2}-\frac{7}{2}=44. \end{aligned} $$

The interval length is \(5-1=4\), so the integral average is \(44/4=11\). The antiderivative checks because \(\frac{d}{dx}(\frac{3}{2}x^2+2x)=3x+2\). Both averages equal \(11\).

A Line Through the Endpoint Values

For any continuous function, not just an affine one, there is an affine function that agrees with it at both endpoints. Call this function \(L\):

$$ L(x)=f(a)+\frac{f(b)-f(a)}{b-a}(x-a). $$

This formula gives \(L(a)=f(a)\) and \(L(b)=f(b)\). Its integral average is the endpoint average of \(f\). Indeed, integrating the displayed formula gives

$$ \begin{aligned} \int_a^b L(x)\,dx &=(b-a)f(a)+\frac{f(b)-f(a)}{b-a}\cdot\frac{(b-a)^2}{2}\\ &=(b-a)\left(f(a)+\frac{f(b)-f(a)}{2}\right)\\ &=(b-a)\frac{f(a)+f(b)}{2}. \end{aligned} $$

Dividing by \(b-a\), the integral average of \(L\) is \((f(a)+f(b))/2\). This gives a useful exact comparison for \(f\):

Takeaway: For the line \(L\) joining \((a,f(a))\) and \((b,f(b))\), $$ \frac{1}{b-a}\int_a^b f(x)\,dx-\frac{f(a)+f(b)}{2} = \frac{1}{b-a}\int_a^b \bigl(f(x)-L(x)\bigr)\,dx. $$ The difference between the two averages is the average signed deviation of \(f\) from that line.

This identity explains why the endpoint average can fail to capture the function average: the endpoint values determine \(L\), but they do not determine how \(f\) behaves relative to \(L\) between the endpoints. If \(f-L\) has positive and negative parts, their contributions to the integral can cancel. Consequently, the averages can agree even when the function is not a line.

When the Averages Differ

Worked Example: The Endpoint Average Is Larger

Compare the averages of \(f(x)=x^2\) on \([0,2]\). The endpoint values are \(f(0)=0\) and \(f(2)=4\), so

$$ E=\frac{0+4}{2}=2. $$

An antiderivative of \(x^2\) is \(x^3/3\). The integral and its average are

$$ \int_0^2 x^2\,dx=\left[\frac{x^3}{3}\right]_0^2=\frac{8}{3}-0=\frac{8}{3}, \qquad f_{\mathrm{avg}}=\frac{1}{2}\cdot\frac{8}{3}=\frac{4}{3}. $$

The antiderivative checks because \(\frac{d}{dx}(x^3/3)=x^2\). Since \(4/3\ne 2\), the averages differ; here the endpoint average is larger by \(2-4/3=2/3\).

The difference can go the other way. For example, consider a function whose values between the endpoints rise above the line joining them.

Worked Example: The Integral Average Is Larger

Let \(f(x)=4x(1-x)\) on \([0,1]\). The endpoint values are \(f(0)=0\) and \(f(1)=0\), so

$$ E=\frac{0+0}{2}=0. $$

Expanding the integrand gives \(4x(1-x)=4x-4x^2\). An antiderivative is \(2x^2-\frac{4}{3}x^3\), and hence

$$ \int_0^1 4x(1-x)\,dx =\left[2x^2-\frac{4}{3}x^3\right]_0^1 =2-\frac{4}{3} =\frac{2}{3}. $$

The interval length is \(1\), so \(f_{\mathrm{avg}}=2/3\). The antiderivative checks because its derivative is \(4x-4x^2=4x(1-x)\). Thus the integral average is larger than the endpoint average.

Together, these examples show that there is no universal rule that the endpoint average is above or below the integral average. The direction depends on how the function lies relative to the line joining its endpoint values.

Agreement Does Not Require a Linear Function

The affine-function theorem gives a sufficient condition for agreement, not a necessary one. A nonlinear function can have positive and negative deviations from its endpoint line whose signed integral totals zero.

Worked Example: A Nonlinear Function with Equal Averages

Consider \(f(x)=3x^2-2x^3\) on \([0,1]\). It is nonlinear because it contains terms of degrees two and three. Its endpoint values are

$$ f(0)=0,\qquad f(1)=3-2=1, \qquad E=\frac{0+1}{2}=\frac{1}{2}. $$

An antiderivative is \(x^3-\frac{1}{2}x^4\). Therefore

$$ \int_0^1(3x^2-2x^3)\,dx =\left[x^3-\frac{1}{2}x^4\right]_0^1 =1-\frac{1}{2} =\frac{1}{2}. $$

Since the interval length is \(1\), the integral average is also \(1/2\). The antiderivative checks because its derivative is \(3x^2-2x^3\). The averages agree although the function is not affine.

In terms of the comparison identity, agreement means \(\int_a^b(f(x)-L(x))\,dx=0\). It does not require \(f(x)-L(x)=0\) at every point. Positive and negative deviations may balance exactly.

A Common Mistake

Pitfall: Do not assume that averaging the endpoint values gives the integral average. For \(f(x)=x^2\) on \([0,2]\), the calculation \((f(0)+f(2))/2=(0+4)/2=2\) is a correct endpoint average, but it is not the integral average. The latter is \(\frac{1}{2}\int_0^2 x^2\,dx=\frac{4}{3}\).

The endpoint calculation is not wrong; calling it the function’s integral average is the error. The two quantities agree for affine functions, but for a general function the intervening values must be accounted for by the integral. A useful check is to ask whether the function is known to be affine or whether its behavior between the endpoints has been evaluated.

How to Compare the Averages

For a continuous function on \([a,b]\), a careful comparison can be organized as follows:

1
Compute the endpoint average.
Evaluate \(f(a)\) and \(f(b)\), then take their arithmetic mean.
2
Compute the integral average.
Evaluate the definite integral and divide by the interval length \(b-a\).
3
Compare the results.
They are equal for affine functions, but for other functions equality must be checked rather than assumed.

The endpoint average is a compact summary of two values. The integral average is a summary of the full function over an interval. The line joining the endpoint values provides the bridge between them: the endpoint average is the integral average of that line, and the difference for the original function is exactly its average signed deviation from the line.

Check Your Understanding

For each question, distinguish carefully between the two definitions and show enough work to justify your answer.

  1. State the formulas for the integral average and endpoint average of a continuous function on \([a,b]\), where \(a<b\).
  2. Why do the two averages agree for every affine function?
  3. For \(f(x)=x^2\) on \([0,2]\), calculate both averages and state which is larger.
  4. Can a nonlinear function have the same integral average and endpoint average? Explain how the deviations from the endpoint line can allow this.
  5. What is wrong with claiming that the endpoint average always equals the integral average?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): 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