AP Calculus AB • Applications of Integration

Finding the Average Value of a Function on an Interval

Extending the familiar idea of averaging finitely many numbers to the continuous world of functions via integration.

AP Calculus AB illustration with a smooth curve, infinity sign, and measuring ruler
Inside this lesson 10 sections 5 questions 7 figures

SECTION 1

Historical Context & Motivation

The concept of an average is one of the oldest ideas in quantitative reasoning—merchants in ancient Mesopotamia averaged grain yields, and Greek astronomers averaged astronomical observations to improve predictions. Yet these averages always dealt with a finite collection of numbers. The challenge of averaging a quantity that varies continuously—the temperature throughout a day, the velocity of a planet along its orbit—required a fundamentally new mathematical tool: the definite integral.

~1670 • Newton & Leibniz Develop Calculus

The independent invention of the calculus by Newton and Leibniz provides the integral, the essential tool for summing continuously varying quantities over an interval.

1823 • Cauchy Formalizes the Definite Integral

Augustin-Louis Cauchy rigorously defines the definite integral as a limit of sums, giving the average-value formula a solid logical foundation.

1854 • Riemann's Integral Definition

Bernhard Riemann generalizes the integral using partitions and Riemann sums, solidifying the framework that underpins the average value of a function on an interval.

Modern Era • Engineering & Data Science Applications

Average-value computations are ubiquitous in signal processing (RMS voltage), thermodynamics (mean temperature), and machine learning (expected loss functions).

The central question this lesson addresses is deceptively simple: if a function f takes on infinitely many values across an interval [a, b], how do we assign a single number that fairly represents those values? The answer—dividing the integral of f by the length of the interval—is both intuitive and powerful, and it connects the discrete notion of arithmetic mean to the continuous world of calculus.

SECTION 2

Core Principles & Definitions

Before diving into the formula, it helps to ground the concept in the finite case. The arithmetic mean of n numbers y₁, y₂, …, yₙ is (y₁ + y₂ + ⋯ + yₙ)/n. Passing to the continuous case, we replace the sum with an integral and the count n with the interval length b − a. This generalization preserves the essential property that the average lies between the minimum and maximum values of the function.

1

Finite Averaging ➜ Continuous Averaging

The sum of function samples divided by the sample count generalizes to the integral of f divided by the interval length (b − a).
2

The Integral as Total Accumulation

The definite integral ∫ₐᵇ f(x) dx measures the net signed area under f. Dividing by b − a converts that total accumulation into a per-unit rate—the average value.
3

Geometric Interpretation

The average value f_avg is the height of a rectangle with base b − a whose area equals the area under the curve of f on [a, b].
4

Mean Value Theorem for Integrals

If f is continuous on [a, b], there exists at least one c in (a, b) such that f(c) = f_avg. The function actually attains its average value somewhere on the interval.
✦

KEY TAKEAWAY

Think of the average value like flattening a sand dune into a perfectly level layer across the same base. You are not adding or removing any sand (area); you are simply redistributing it evenly. The height of that level layer is the average value of the function.

SECTION 3

Visual Explanation

The diagram below illustrates the geometric meaning of the average value of a function. The curve f(x) is shown in cyan, and the shaded region beneath it represents the definite integral ∫ₐᵇ f(x) dx. The dashed horizontal line marks the average value f_avg. Notice that the rectangle with height f_avg and base [a, b] has exactly the same area as the shaded region under the curve.

xyabf_avgRectangle area = f_avg × (b − a)y = f(x)Average Value: Equal-Area Rectangle
The cyan-shaded region under the curve has the same area as the amber dashed rectangle of height f_avg. This is the geometric essence of the average-value formula.

This equal-area rectangle interpretation is the single most useful mental picture for the average-value concept. Whenever you see the formula f_avg = (1/(b − a)) ∫ₐᵇ f(x) dx, visualize the area under the curve being "melted down" into a flat rectangle of the same width. The height of that rectangle is precisely the average value.

SECTION 4

Mathematical Framework

Deriving the Average-Value Formula

Start with n equally spaced sample points x₁, x₂, …, xₙ on [a, b], each separated by Δx = (b − a)/n. The arithmetic mean of the sampled function values is:

DISCRETE AVERAGE

Average≈(1/n)Σi=1nf(xi)=(1/(b−a))Σi=1nf(xi)ΔxAverage ≈ (1/n) Σᵢ₌₁ⁿ f(xᵢ) = (1/(b − a)) Σᵢ₌₁ⁿ f(xᵢ) Δx

Since Δx = (b − a)/n, multiplying and dividing by Δx converts the count-based average into an expression involving the interval length.

As n → ∞, the Riemann sum Σ f(xᵢ) Δx converges to ∫ₐᵇ f(x) dx, yielding the exact formula.

AVERAGE VALUE FORMULA

favg=(1/(b−a))∫abf(x)dxf_avg = (1 / (b − a)) ∫ₐᵇ f(x) dx

f_avg = average value of f on [a, b]; a, b = endpoints of the interval; ∫ₐᵇ f(x) dx = definite integral of f over [a, b].

Mean Value Theorem for Integrals

If f is continuous on [a, b], the Intermediate Value Theorem guarantees there is at least one point c ∈ (a, b) at which the function equals its average value. This result is known as the Mean Value Theorem for Integrals.

MVT FOR INTEGRALS

∃c∈(a,b)suchthatf(c)=(1/(b−a))∫abf(x)dx∃ c ∈ (a, b) such that f(c) = (1 / (b − a)) ∫ₐᵇ f(x) dx

c is the x-value at which the function attains its average. There may be more than one such c.

💡

AP Exam Tip

Free-response questions often ask: "Find the average value of f on [a, b] and then find c such that f(c) equals that average." Be sure to show both the integration step and the algebra needed to solve f(c) = f_avg.

SECTION 5

Detailed Breakdown & Visualization

Step-by-Step Procedure

  1. Identify the interval [a, b] and compute the interval length b − a.
  2. Evaluate the definite integral ∫ₐᵇ f(x) dx using the Fundamental Theorem of Calculus or numerical methods.
  3. Divide the integral result by (b − a) to obtain f_avg.
  4. If asked, find c such that f(c) = f_avg by solving the resulting equation.

Visualizing the Mean Value Theorem for Integrals

MVT for Integrals: f(c) = f_avg3210123xf_avg = 2c₁c₂y = f(x)
The curve f(x) (violet) crosses the average-value line (green dashed) at two points, c₁ and c₂ (red dots). The MVT for Integrals guarantees at least one such crossing exists for any continuous function.

The diagram above shows that a continuous function on a closed interval may attain its average value at more than one point—both c₁ and c₂ satisfy f(c) = f_avg. When an AP problem asks for "the value of c guaranteed by the MVT for Integrals," you should solve f(c) = f_avg and report all solutions within (a, b), noting that the theorem guarantees at least one.

SECTION 6

Worked Example

Find the average value of f(x) = x² + 2x on the interval [1, 4]. Then find the value(s) of c in (1, 4) such that f(c) equals this average.

Average Value of f(x) = x² + 2x on [1, 4]

  1. 1

    Step 1 — Identify the Interval and Length

    The interval is [a, b] = [1, 4], so the interval length is b − a = 4 − 1 = 3.
    b − a = 3
  2. 2

    Step 2 — Evaluate the Definite Integral

    ∫₁⁴ (x² + 2x) dx. Find the antiderivative: F(x) = x³/3 + x². Evaluate: F(4) − F(1) = (64/3 + 16) − (1/3 + 1) = (64/3 + 48/3) − (1/3 + 3/3) = 112/3 − 4/3 = 108/3 = 36.
    ∫₁⁴ (x² + 2x) dx = 36
  3. 3

    Step 3 — Compute the Average Value

    Apply the formula: f_avg = (1/(b − a)) ∫ₐᵇ f(x) dx = (1/3)(36) = 12.
    f_avg = 12
  4. 4

    Step 4 — Find c Where f(c) = f_avg

    Set f(c) = 12: c² + 2c = 12, so c² + 2c − 12 = 0. Factor or use the quadratic formula: c = (−2 ± √(4 + 48))/2 = (−2 ± √52)/2 = −1 ± √13. Since √13 ≈ 3.606, we get c ≈ 2.606 or c ≈ −4.606. Only c ≈ 2.606 lies in (1, 4).
    c = −1 + √13 ≈ 2.606
ℹ

Verification Check

You can verify: f(2.606) = (2.606)² + 2(2.606) ≈ 6.791 + 5.212 ≈ 12.003 ≈ 12 ✓. Always check that your c actually lies in the open interval (a, b) and that substituting it back into f gives the average value.

SECTION 7

Common Pitfalls & Comparisons

PitfallWhat Goes WrongHow to Avoid It
Forgetting the 1/(b − a) factorYou compute the integral but report it as the average, yielding a value too large.Write the full formula first every time, then substitute.
Confusing average value with average rate of changeThe average rate of change is (f(b) − f(a))/(b − a), which uses endpoint values, not integration.Remember: average value uses an integral; average rate of change uses a difference quotient.
Choosing c outside the intervalSolving f(c) = f_avg may produce extraneous roots not in (a, b).Always check that c ∈ (a, b) before reporting your answer.
Sign errors with signed areaIf f dips below the x-axis, the integral accounts for negative area, and f_avg may be less than you expect.Sketch the function to anticipate the sign behavior of the integral.

Common errors students make when computing average values

⚠

AVERAGE VALUE VS. AVERAGE RATE OF CHANGE

Think of it this way: the average value asks "what is the typical height of the curve?" (uses integration), while the average rate of change asks "what is the slope of the secant line?" (uses a difference quotient). They answer fundamentally different questions about the function's behavior.

SECTION 8

Connection to Advanced Theory

The average-value formula is a gateway to several deeper ideas in mathematics and applied science. In probability, the expected value E[X] = ∫ x · f(x) dx is a weighted average of a random variable's values—an extension of the same concept to probability density functions. In multivariable calculus, the average value generalizes to (1/|D|) ∬_D f(x, y) dA over a region D, where |D| is the area of D.

Concept (AB Level)Advanced Extension
f_avg = (1/(b − a)) ∫ₐᵇ f(x) dxf_avg = (1/|D|) ∬_D f dA (multivariable calculus)
MVT for Integrals (single variable)Mean Value Property for harmonic functions (PDEs)
Average value of velocity → displacement / timeRMS (root-mean-square) values in signal processing and AC circuits
Average temperature on [0, T]Time-averaged quantities in thermodynamics and fluid mechanics

How the average-value concept extends beyond AP Calculus AB

Understanding the average-value formula thoroughly at the AB level gives you a template for all of these extensions. Whether you go on to study BC-level topics like polar and parametric integrals, or move into probability, physics, or engineering, you will repeatedly encounter the same core idea: divide a total accumulation by the measure of the domain to obtain a meaningful per-unit average.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

The average value of a continuous function f on [a, b] can be interpreted geometrically as:
  • A. The slope of the secant line from (a, f(a)) to (b, f(b))
  • B. The height of a rectangle with base (b − a) whose area equals ∫ₐᵇ f(x) dx
  • C. The y-coordinate of the midpoint of the curve y = f(x)
  • D. The maximum value of f on [a, b] divided by 2
  • E. The value of f at the midpoint x = (a + b)/2
Show answer (B)
B is correct. The average value f_avg = (1/(b − a)) ∫ₐᵇ f(x) dx is precisely the height of a rectangle with base (b − a) whose area equals the definite integral—the "equal-area rectangle" interpretation. Choice A describes the average rate of change (slope of secant), not the average value. Choice C is incorrect because the midpoint of the curve is not generally related to the integral. Choice D is wrong because the average value depends on the entire function, not just the maximum. Choice E is false in general; f at the midpoint equals the average only for linear functions.

Question 2: BASIC CALCULATION

What is the average value of f(x) = 3x² on the interval [0, 2]?
  • A. 2
  • B. 4
  • C. 6
  • D. 8
  • E. 12
Show answer (B)
B is correct. f_avg = (1/(2 − 0)) ∫₀² 3x² dx = (1/2)[x³]₀² = (1/2)(8 − 0) = 4. Choice A (2) results from forgetting to multiply by 3 inside the integral. Choice C (6) comes from evaluating f(√2) incorrectly. Choice D (8) is the value of the integral itself without dividing by the interval length. Choice E (12) is f(2) = 3(4), the function value at the right endpoint, not the average.

Question 3: INTERMEDIATE

The average value of f(x) = sin(x) on [0, π] is 2/π. Which value of c in (0, π) satisfies f(c) = 2/π?
  • A. c = π/6
  • B. c = arcsin(2/π)
  • C. c = arcsin(2/π) and c = π − arcsin(2/π)
  • D. c = π/2
  • E. c = 2/π
Show answer (C)
C is correct. We need sin(c) = 2/π ≈ 0.6366. Since sin is positive on (0, π), there are two solutions: c₁ = arcsin(2/π) ≈ 0.6901 in the first quadrant and c₂ = π − arcsin(2/π) ≈ 2.4515 in the second quadrant. Choice A (π/6) gives sin(π/6) = 0.5 ≠ 2/π. Choice B only lists one of the two solutions. Choice D (π/2) gives sin(π/2) = 1 ≠ 2/π. Choice E confuses the average value with the c-value; c = 2/π yields sin(2/π) ≈ 0.605 ≠ 2/π.

Question 4: APPLIED

5 pts
A particle moves along the x-axis with velocity v(t) = t² − 4t + 3 for 0 ≤ t ≤ 5 (in meters per second). (a) Find the average velocity of the particle on [0, 5]. (b) Find the average speed of the particle on [0, 5]. (c) Explain why the average speed is greater than the absolute value of the average velocity.
Show answer
Rubric (5 points): Point 1 (1 pt): Correct setup for average velocity. f_avg = (1/5) ∫₀⁵ (t² − 4t + 3) dt. Point 2 (1 pt): Correct evaluation of the integral. ∫₀⁵ (t² − 4t + 3) dt = [t³/3 − 2t² + 3t]₀⁵ = (125/3 − 50 + 15) − 0 = 125/3 − 35 = 125/3 − 105/3 = 20/3. So average velocity = (1/5)(20/3) = 4/3 m/s. Point 3 (1 pt): Identifies that average speed requires ∫₀⁵ |v(t)| dt and finds where v(t) = 0. v(t) = (t − 1)(t − 3) = 0 at t = 1 and t = 3. v(t) < 0 on (1, 3). Point 4 (1 pt): Correct computation of average speed. ∫₀⁵ |v(t)| dt = ∫₀¹ (t² − 4t + 3) dt − ∫₁³ (t² − 4t + 3) dt + ∫₃⁵ (t² − 4t + 3) dt = [4/3] − [−4/3] + [20/3] = 4/3 + 4/3 + 20/3 = 28/3. Average speed = (1/5)(28/3) = 28/15 m/s. Point 5 (1 pt): Explanation. The average speed (28/15 ≈ 1.867 m/s) exceeds |average velocity| (4/3 ≈ 1.333 m/s) because average velocity uses the signed integral (positive and negative areas partially cancel), while average speed uses the absolute-value integral (all distances are added). When a particle reverses direction, cancellation reduces the net displacement but not the total distance.

Question 5: CRITICAL THINKING

3 pts
Let f be a continuous function on [0, 6] with the property that ∫₀⁶ f(x) dx = 18 and ∫₀⁶ [f(x)]² dx = 72. A student claims that f must be constant on [0, 6]. Either prove the student's claim or provide a counterexample. Justify your reasoning.
Show answer
Rubric (3 points): Point 1 (1 pt): Computes the average value and the average of f². The average value of f is (1/6)(18) = 3. The average value of f² is (1/6)(72) = 12. Point 2 (1 pt): Applies the relationship between variance and the two averages. The variance of f on [0, 6] equals (avg of f²) − (avg of f)² = 12 − 9 = 3 ≠ 0. Since the variance is (1/(b−a)) ∫₀⁶ [f(x) − 3]² dx = 3 > 0, the integrand [f(x) − 3]² is a nonnegative continuous function with a positive integral, so it cannot be identically zero. Point 3 (1 pt): Conclusion with justification. Therefore f is NOT constant on [0, 6], and the student's claim is false. A valid counterexample: f(x) = x on [0, 6] gives ∫₀⁶ x dx = 18 and ∫₀⁶ x² dx = 72, confirming the given conditions while f is clearly nonconstant.

SUMMARY

Summary & Review

Summary

The average value of a function on [a, b] is given by f_avg = (1/(b − a)) ∫ₐᵇ f(x) dx. Geometrically, f_avg is the height of the equal-area rectangle—a rectangle with the same base whose area matches the area under the curve. This transforms the discrete notion of arithmetic mean into a tool for continuous functions.

The Mean Value Theorem for Integrals guarantees that a continuous function attains its average value at some c ∈ (a, b). When solving problems, always remember to divide the integral by (b − a), distinguish average value from average rate of change, and verify that any c-value lies within the given interval.

Varsity Tutors • AP Calculus AB • Finding the Average Value of a Function on an Interval