# Average value of a function on an interval

> AP Calculus BC · Applications of Integration
> Source: https://www.owlsprep.com/study/ap-calculus-bc-u8-average-value-of-a-function/

This guide covers the definition, formula, and derivation of the average value of continuous functions, the Mean Value Theorem for Integrals, BC-specific parametric average value calculations, and common AP exam pitfalls.

**Prerequisites:** [Definite integral evaluation](https://www.owlsprep.com/study/ap-calculus-bc-u6-definite-integrals/); [Fundamental Theorem of Calculus](https://www.owlsprep.com/study/ap-calculus-bc-u6-fundamental-theorem-calculus/); [u-substitution for integration](https://www.owlsprep.com/study/ap-calculus-bc-u6-u-substitution/)

## Learning objectives

- Derive and apply the average value formula for continuous single-variable functions
- State and apply the Mean Value Theorem for Integrals
- Calculate average value for parametric functions for AP Calculus BC
- Identify and avoid common AP exam pitfalls for this topic

## Core Definition & Average Value Formula

Unlike the average of a finite set of discrete values, the average value of a continuous function describes the typical output of the function over an entire interval, accounting for infinitely many values between endpoints. This core integration application makes up ~2-3% of total AP Calculus BC exam points, appearing in both MCQ and FRQ, often paired with particle motion, parametric curves, or rate problems.

**Derivation:** Derive the average value formula for continuous functions

*Starting from:* Discrete average of $n$ equally spaced samples on $[a,b]$

1. Start with the standard discrete average formula:
2. $$\frac{1}{n}\sum_{i=1}^n f(x_i)$$
3. The spacing between consecutive points is $\Delta x = \frac{b-a}{n}$, so rearrange to get $\frac{1}{n} = \frac{\Delta x}{b-a}$. Substitute back into the average:
4. $$\frac{1}{b-a}\sum_{i=1}^n f(x_i)\Delta x$$
5. As $n \to \infty$, the Riemann sum converges to the definite integral of $f(x)$ over $[a,b]$.

> **Geometric Intuition**
>
> The average value $f_{\text{avg}}$ is the constant height that produces a rectangle over $[a,b]$ with area equal to the total area under $f(x)$. This means $f_{\text{avg}} \cdot (b-a) = \int_a^b f(x) dx$, which is a quick, useful check for your calculations.

**Worked example:** Find the average value of $f(x) = 3x^2 + 2\sin x$ over the interval $[0, \pi]$.

1. Identify interval endpoints: $a=0$, $b=\pi$, so $b-a = \pi - 0 = \pi$.
2. Substitute into the average value formula:
3. $$f_{\text{avg}} = \frac{1}{\pi} \int_0^\pi (3x^2 + 2\sin x) dx$$
4. Find the antiderivative of the integrand:
5. $$\int (3x^2 + 2\sin x) dx = x^3 - 2\cos x + C$$
6. Apply the Fundamental Theorem of Calculus:
7. $$\left[\pi^3 - 2\cos \pi\right] - \left[0^3 - 2\cos 0\right] = \pi^3 - 2(-1) - (-2(1)) = \pi^3 + 4$$
8. Divide by $b-a = \pi$ to get the final average value:
9. $$f_{\text{avg}} = \frac{\pi^3 + 4}{\pi} = \pi^2 + \frac{4}{\pi} \approx 10.16$$

> **Exam tip:** Always compute $b-a$ explicitly before dividing, even for simple intervals. A common exam distraction is when one endpoint is 0, leading students to mistakenly divide by $b$ instead of $b-a$.

## Mean Value Theorem for Integrals

The Mean Value Theorem (MVT) for Integrals is a direct consequence of the Intermediate Value Theorem and the average value formula, and it is frequently tested alongside average value calculations on AP exams.

**Mean Value Theorem for Integrals** — If $f(x)$ is continuous on the closed interval $[a,b]$, then there exists at least one point $c$ in the **open interval** $(a,b)$ such that $f(c) = f_{\text{avg}}$, where $f_{\text{avg}}$ is the average value of $f(x)$ over $[a,b]$.

**Worked example:** For $f(x) = 3x^2 + 2\sin x$ on $[0, \pi]$, find all $c \in (0, \pi)$ such that $f(c) = f_{\text{avg}}$ (use $f_{\text{avg}} \approx 10.16$ from the previous example).

1. Set up the equation per the MVT for Integrals:
2. $$3c^2 + 2\sin c = 10.16$$
3. Confirm $f(x)$ is continuous on $[0, \pi]$ (it is, as a sum of a polynomial and sine function), so the MVT guarantees at least one solution.
4. Check endpoint values to narrow the solution range: $f(0) = 0 < 10.16$ and $f(\pi) \approx 29.6 > 10.16$, so the solution lies strictly between 0 and $\pi$.
5. This is a transcendental equation, so AP Calculus BC expects a numerical solution. Testing values gives $c \approx 1.65$, which satisfies the equation.
6. Confirm the solution is in the required open interval: $0 < 1.65 < \pi$, so it meets the theorem's requirements.

> **Exam tip:** If asked for $c$, always confirm your solution is strictly inside the open interval $(a,b)$. Solutions at the endpoints do not satisfy the MVT for Integrals and will not receive credit.

## Average Value for BC-Specific Parametric Functions

On AP Calculus BC, you may be asked to find the average value of $y$ with respect to $x$ for a parametric curve, which requires adjusting the standard average value formula for change of variable. This is not tested on AP Calculus AB, so it is a common target for BC-exclusive exam questions.

**Average Value of $y$ (Parametric Curve)** — For a continuous, monotonic $x(t)$ (so $y$ is a function of $x$), substitute $dx = x'(t) dt$ into the standard average value formula to get:

*Notation:* $x = x(t),\ y = y(t),\ t \in [\alpha, \beta]$

*Example:* y_{\text{avg}} = \frac{1}{x(\beta) - x(\alpha)} \int_\alpha^\beta y(t) x'(t) dt

**Worked example:** A parametric curve is defined by $x(t) = t^2 + 1$, $y(t) = 2t$ for $0 \leq t \leq 2$. Find the average value of $y$ with respect to $x$ over this interval.

1. Find the endpoints for $x$: $x(0) = 0^2 + 1 = 1$, $x(2) = 2^2 +1 = 5$, so the total change in $x$ is $5 - 1 = 4$.
2. Compute the derivative of $x(t)$: $x'(t) = 2t$.
3. Substitute into the parametric average value formula:
4. $$y_{\text{avg}} = \frac{1}{4} \int_0^2 (2t)(2t) dt = \frac{1}{4} \int_0^2 4t^2 dt = \int_0^2 t^2 dt$$
5. Evaluate the integral via the Fundamental Theorem of Calculus:
6. $$\left[\frac{t^3}{3}\right]_0^2 = \frac{8}{3} - 0 = \frac{8}{3} \approx 2.67$$
7. Confirm by converting to a single-variable function: $y = 2\sqrt{x-1}$, so $y_{\text{avg}} = \frac{1}{4}\int_1^5 2\sqrt{x-1} dx = \frac{8}{3}$, which matches our result.

> **Exam tip:** You are almost always asked to average $y$ with respect to $x$, not $t$ for these problems. Never just average $y(t)$ over $t$; always include the $x'(t)$ term from the change of variable.

## AP-Style Additional Worked Examples

**Worked example:** Multiple Choice: What is the average value of $f(x) = x e^{x^2}$ over the interval $[0, 2]$?<br>Options: A) $\frac{e^4}{4}$, B) $\frac{e^4 - 1}{4}$, C) $\frac{e^4 - 1}{2}$, D) $2e^4$

1. Start with the average value formula: $a=0$, $b=2$, so $b-a=2$:
2. $$f_{\text{avg}} = \frac{1}{2}\int_0^2 x e^{x^2} dx$$
3. Use u-substitution: let $u = x^2$, $du = 2x dx$, so $\frac{1}{2}du = x dx$. Bounds change from $u=0$ (at $x=0$) to $u=4$ (at $x=2$).
4. Rewrite and evaluate the integral:
5. $$\frac{1}{2} \cdot \frac{1}{2}\int_0^4 e^u du = \frac{1}{4}(e^4 - e^0) = \frac{e^4 - 1}{4}$$
6. The correct answer is option B.

**Worked example:** Contextual Application: The temperature $T$ (in degrees Celsius) in a greenhouse over a 24-hour period is modeled by $T(h) = 18 + 6\sin\left(\frac{\pi}{12}(h - 6)\right)$ for $0 \leq h \leq 24$, where $h$ is hours after midnight. Find the average temperature over 24 hours and interpret the result.

1. Apply the average value formula, with $a=0$, $b=24$, so $b-a=24$:
2. $$T_{\text{avg}} = \frac{1}{24} \int_0^{24} \left(18 + 6\sin\left(\frac{\pi}{12}(h - 6)\right)\right) dh$$
3. Split the integral: the first term $\int_0^{24} 18 dh = 18 \cdot 24 = 432$. For the sine term, use substitution with resulting bounds from $u=-\frac{\pi}{2}$ to $u=\frac{3\pi}{2}$:
4. $$6 \cdot \frac{12}{\pi} \int_{-\pi/2}^{3\pi/2} \sin u du = \frac{72}{\pi}\left[-\cos u\right]_{-\pi/2}^{3\pi/2} = 0$$
5. Combine terms to get the final average:
6. $$T_{\text{avg}} = \frac{1}{24}(432 + 0) = 18^\circ C$$
7. Interpretation: Over a full 24-hour period, the average temperature in the greenhouse is 18°C. A constant temperature of 18°C would result in the same total temperature exposure as the modeled varying temperature.

## Common pitfalls

- **Wrong:** When calculating average value over $[2,5]$, dividing the integral by $5$ instead of $5-2=3$.
  - Why it fails: Students confuse the upper bound of the interval with the length of the interval, a common distraction when one endpoint is 0.
  - Correct: Always compute $b-a$ explicitly in your first step, and write it as the denominator before integrating.
- **Wrong:** For a parametric curve $x(t), y(t)$ on $t \in [1,3]$, calculating average value as $\frac{1}{3-1}\int_1^3 y(t) dt$.
  - Why it fails: Students confuse averaging $y$ with respect to $t$ versus averaging with respect to $x$, which is what almost all questions ask for.
  - Correct: Read the question carefully; if asked for the average value of $y$ as a function of $x$, use the substituted formula with $dx = x'(t) dt$ and divide by the total change in $x$.
- **Wrong:** When finding $c$ for the MVT for Integrals, reporting $c=a$ or $c=b$ (the endpoints) as the solution.
  - Why it fails: Students forget the MVT guarantees a point in the open interval, and often stop at endpoint solutions when solving incorrectly.
  - Correct: After solving for $c$, check that $a < c < b$; if all solutions are at endpoints, double-check your average value calculation for errors.
- **Wrong:** When finding $c$, after finding multiple valid roots in the open interval, only report one root as the solution.
  - Why it fails: Students forget that multiple points can satisfy the MVT for Integrals, and the question asks for all $c$ in $(a,b)$.
  - Correct: Solve the equation $f(c)=f_{\text{avg}}$ fully, check all roots, and report every root that lies within the open interval.
- **Wrong:** When finding the average value of a rate function $r(t) = 3t + 1$ gallons per minute over 0 to 10 minutes, reporting the final answer as 15.5 gallons.
  - Why it fails: Students confuse the average value of a rate with total change, and carry over the wrong units.
  - Correct: The average value of a rate function has the same units as the original rate, so the answer would be 15.5 gallons per minute.

## Cheatsheet

| Category | Formula | Notes |
| --- | --- | --- |
| Average Value (single-variable continuous function) | $f_{\text{avg}} = \frac{1}{b-a}\int_a^b f(x) dx$, |  |

---

From [OwlsPrep](https://www.owlsprep.com) — free study guides for A-Level, IB, AP and IGCSE, written against the official syllabus. Canonical page: https://www.owlsprep.com/study/ap-calculus-bc-u8-average-value-of-a-function/
