Tutorials › Calculus I › Finding Where a Function Equals Its Average

Average Value and Accumulated Quantities · Tutorial 1280 of 1495

Finding Where a Function Equals Its Average

Calculate a function’s average on an interval, solve for points where the function takes that value, and understand why at least one such point exists.

Intermediate 9 min read

What You'll Learn

  • State the average-value formula for a continuous function on a closed interval.
  • Use the integral mean value theorem to explain why the function reaches its average.
  • Solve the equation that identifies points where a function equals its average.
  • Check candidate points by substituting them into the function and average-value calculation.
  • Distinguish guaranteed existence from uniqueness and from a guarantee of an interior solution.

From an Average to a Point

A function can vary throughout an interval, while its average value summarizes its overall level there. A natural question is whether the function actually takes that average value at some point. For a continuous function on a closed interval of positive length, the answer is yes: the integral mean value theorem guarantees at least one such point.

Finding the point is a separate task. First calculate the average from the definite integral; then solve an equation that sets the function equal to that average. The equation may have one solution, several solutions, or solutions that are difficult to express exactly. The theorem guarantees that there is at least one solution in the interval, not that it is unique.

Definition: If \(f\) is integrable on \([a,b]\), where \(a<b\), its average value on that interval is $$ f_{\mathrm{avg}}=\frac{1}{b-a}\int_a^b f(x)\,dx. $$ If \(f\) is continuous on \([a,b]\), the integral mean value theorem guarantees that \(f(c)=f_{\mathrm{avg}}\) for at least one \(c\in[a,b]\).

The Equation to Solve

Once the average has been calculated, the search for the point becomes an equation-solving problem:

$$ f(c)=f_{\mathrm{avg}} =\frac{1}{b-a}\int_a^b f(x)\,dx, \qquad c\in[a,b]. $$

The variable \(c\) represents an input in the interval, not another average. To find possible values of \(c\), solve the equation using algebra or another appropriate method, and retain only solutions in \([a,b]\). If an equation has solutions outside this interval, they do not answer the question about this interval.

The theorem’s guarantee follows directly from its conclusion. Since \(f\) is continuous on \([a,b]\) and \(a<b\), the integral mean value theorem supplies some \(c\in[a,b]\) such that \(\int_a^b f(x)\,dx=f(c)(b-a)\). Dividing both sides by the positive number \(b-a\) gives \(f(c)=\frac{1}{b-a}\int_a^b f(x)\,dx=f_{\mathrm{avg}}\). Thus at least one solution of the equation lies in the interval.

1
Calculate the integral.
Evaluate \(\int_a^b f(x)\,dx\) using an antiderivative or another valid method.
2
Divide by the interval length.
Compute \(b-a\), then use it to find \(f_{\mathrm{avg}}\).
3
Set the function equal to the average.
Solve \(f(c)=f_{\mathrm{avg}}\) for \(c\).
4
Check the interval and the value.
Keep solutions in \([a,b]\) and substitute each one into \(f\) to verify its function value.

Worked Examples

Worked Example: A Quadratic with One Point in the Interval

Find where \(f(x)=x^2\) equals its average on \([0,3]\).

First calculate the integral. An antiderivative of \(x^2\) is \(\frac{x^3}{3}\), so

$$ \int_0^3 x^2\,dx =\left[\frac{x^3}{3}\right]_0^3 =\frac{3^3}{3}-\frac{0^3}{3} =9-0 =9. $$

The interval length is \(3-0=3\). Therefore the average is

$$ f_{\mathrm{avg}}=\frac{9}{3}=3. $$

Now solve \(f(c)=f_{\mathrm{avg}}\):

$$ c^2=3, \qquad c=\pm\sqrt{3}. $$

Because \(0\le c\le3\), only \(c=\sqrt{3}\) is in the interval. Check it by substitution: \(f(\sqrt{3})=(\sqrt{3})^2=3\), which equals the average. The other algebraic solution, \(-\sqrt{3}\), lies outside the interval and is not a point sought here.

Worked Example: A Linear Function

Find where \(f(x)=2x+1\) equals its average on \([0,4]\).

An antiderivative is \(x^2+x\). Evaluate the definite integral and show the endpoint values:

$$ \int_0^4 (2x+1)\,dx =\left[x^2+x\right]_0^4 =(4^2+4)-(0^2+0) =20-0 =20. $$

The interval length is \(4-0=4\), so

$$ f_{\mathrm{avg}}=\frac{20}{4}=5. $$

Set the function equal to \(5\) and solve:

$$ 2c+1=5, \qquad 2c=4, \qquad c=2. $$

The candidate is in the interval because \(0\le2\le4\). Substitution gives \(f(2)=2(2)+1=5\), confirming that the function takes its average value there.

Worked Example: Two Points with the Same Average Value

Find all points where \(f(x)=\sin x\) equals its average on \([0,\pi]\). Use the standard antiderivative \(-\cos x\).

First,

$$ \int_0^\pi \sin x\,dx =\left[-\cos x\right]_0^\pi =-\cos(\pi)-\bigl(-\cos(0)\bigr) =1-(-1) =2. $$

The interval length is \(\pi-0=\pi\), so the average is \(2/\pi\). The equation to solve is

$$ \sin c=\frac{2}{\pi}, \qquad 0\le c\le\pi. $$

Since \(0<2/\pi<1\), define \(\alpha=\arcsin(2/\pi)\), with \(0<\alpha<\pi/2\). On \([0,\pi]\), the two solutions are \(c=\alpha\) and \(c=\pi-\alpha\). Substitution checks both: \(\sin(\alpha)=2/\pi\), and \(\sin(\pi-\alpha)=\sin(\alpha)=2/\pi\). Both points lie in \([0,\pi]\). Thus the average is reached at two points, not just one.

What the Theorem Guarantees—and What It Does Not

For a continuous \(f\) on \([a,b]\) with \(a<b\), the integral mean value theorem guarantees at least one \(c\in[a,b]\) satisfying the average-value equation. It does not specify which point it is, nor does it say there is only one. The sine example has two points in the interval, while the quadratic example has one.

The theorem is usually stated with the conclusion \(c\in[a,b]\), but under the continuity hypothesis there is always a point \(c\in(a,b)\) with \(f(c)=f_{\mathrm{avg}}\): if \(f-f_{\mathrm{avg}}\) is not identically zero, it takes both positive and negative values, and the Intermediate Value Theorem gives an interior zero. For instance, let \(f(x)=x\) on \([0,1]\). Its integral is \(\int_0^1x\,dx=\frac12\), and its average is \(\frac12\). Solving \(f(c)=\frac12\) gives \(c=\frac12\), an interior point. By contrast, for \(f(x)=x^2\) on \([0,1]\), the integral is \(\frac13\), and \(c^2=\frac13\) gives \(c=1/\sqrt{3}\), also interior. These examples illustrate particular interior solutions.

Continuity matters to the guarantee. A function that is not continuous can fail to take its average value. For example, on \([0,1]\), define \(g(x)=0\) for \(0\le x<1\) and \(g(1)=2\). Its integral is \(0\), so its average is \(0\), which it does attain. This example does not demonstrate failure; rather, it shows that a discontinuity alone does not establish failure. The theorem provides a sufficient condition for existence, and a function violating that condition must be checked on its own rather than assumed to fail.

Key takeaway: Continuity on the closed interval is the hypothesis that lets the integral mean value theorem guarantee a point with \(f(c)=f_{\mathrm{avg}}\). The equation-solving step identifies the point or points; the theorem does not promise uniqueness.

A Common Mistake: Forgetting the Interval Length

A frequent error is to call the integral itself the average. The integral measures accumulated signed area, whereas the average value is that integral divided by the length of the interval.

For example, on \([0,4]\), the function \(f(x)=2x+1\) has integral \(20\), as calculated above. A mistaken calculation might write \(f_{\mathrm{avg}}=20\), then solve \(2c+1=20\), obtaining \(c=19/2\). This cannot be the point where the function equals its average on \([0,4]\): \(19/2\) is outside the interval, and the calculation used the wrong average.

The correction is to divide the integral by the interval length \(4-0=4\). Thus \(f_{\mathrm{avg}}=20/4=5\), and the correct equation is \(2c+1=5\), giving \(c=2\). The check \(f(2)=5\) confirms the result.

Why Finding Such a Point Is Useful

The average value describes a function over a whole interval; a point satisfying \(f(c)=f_{\mathrm{avg}}\) connects that interval-wide quantity to a value at a particular input. The integral mean value theorem makes that connection mathematically guaranteed under its continuity hypothesis. In applications, this lets an average be interpreted as an actual value attained by the model somewhere in the interval.

The method also keeps two tasks distinct. Integration determines the average, while solving an equation locates the input values at which the function reaches it. Keeping those tasks separate helps prevent confusion between a total integral and an average, and makes it clear why the theorem establishes existence even when a direct equation is challenging to solve.

Check Your Understanding

For each question, identify the average or the relevant theorem condition before solving.

  1. State the formula for the average value of an integrable function on \([a,b]\), with \(a<b\).
  2. For \(f(x)=x^2\) on \([0,2]\), calculate the average value and solve \(f(c)=f_{\mathrm{avg}}\) for \(c\in[0,2]\).
  3. What does the integral mean value theorem guarantee about the equation \(f(c)=f_{\mathrm{avg}}\) when \(f\) is continuous on \([a,b]\)?
  4. Does the theorem guarantee exactly one solution? Explain briefly.
  5. For \(f(x)=x+2\) on \([0,2]\), what is the average value, and at what point does \(f\) equal it?

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