Calculus 2 • Applications of Integration

Average Value of a Function — Finding the Average Value of a Function on an Interval

Extending the familiar concept of arithmetic mean to continuous functions through the power of definite integration.

A summation symbol with infinity and a smooth series curve.
Inside this lesson 10 sections 5 questions 7 figures

SECTION 1

Historical Context & Motivation

The idea of computing an average is among the oldest and most intuitive concepts in mathematics—summing a collection of values and dividing by how many there are dates back to ancient Babylonian record-keeping. Yet the extension of this idea to continuous quantities required centuries of conceptual development, culminating in the formalization of the definite integral. When a quantity varies smoothly over an interval—temperature over the course of a day, velocity over a time span, or population density across a region—a simple arithmetic mean of finitely many samples is at best an approximation. The true average demands the machinery of integration.

~240 BCE • Archimedes and the Method of Exhaustion

Archimedes approximated areas under parabolic arcs by inscribing and circumscribing polygons, effectively computing what we now recognize as definite integrals. His work laid the geometric groundwork for averaging a continuously varying quantity.

1668 • James Gregory's Integral Insights

Gregory articulated connections between areas, tangent problems, and series expansions, helping to bridge discrete summation and continuous integration—key precursors to the mean-value concepts for integrals.

1823 • Cauchy Formalizes the Definite Integral

Augustin-Louis Cauchy provided rigorous definitions of the definite integral via limits of Riemann-like sums. His formalization made it possible to state and prove the Mean Value Theorem for Integrals with full analytic rigor.

1854 • Riemann's Integral

Bernhard Riemann generalized Cauchy's integral to broader classes of functions. The Riemann sum interpretation—partitioning, sampling, summing, and taking a limit—directly mirrors the process of extending a discrete average to a continuous one.

The central question this lesson addresses is deceptively simple: If a function f(x) varies continuously on an interval [a, b], what single constant value would accumulate the same total as f over that interval? Answering this question leads directly to the average value formula and the Mean Value Theorem for Integrals, two pillars of applied calculus that connect the geometry of areas to the algebra of integrals.

SECTION 2

Core Principles & Definitions

Before diving into computation, it is worth establishing the conceptual scaffolding. The average value of a function rests on a natural generalization: replace a finite sum with an integral and the count of data points with the length of the interval. This section formalizes that idea and introduces the theorem that guarantees the average value is actually attained by the function.

1

From Discrete to Continuous

For n values y₁, y₂, …, yₙ, the arithmetic mean is (y₁ + y₂ + ⋯ + yₙ)/n. When the values come from a continuous function f on [a, b], the sum becomes an integral and n becomes the interval length b − a.
2

The Average Value Formula

The average value of f on [a, b] is defined as f_avg = (1/(b − a)) ∫ₐᵇ f(x) dx. This single number represents the constant height of a rectangle with the same base [a, b] and the same net signed area as the region under f.
3

Mean Value Theorem for Integrals

If f is continuous on [a, b], then there exists at least one c in (a, b) such that f(c) = f_avg. The function must actually hit its own average value—this is an existence theorem, not a computation tool.
4

Geometric Interpretation

The average value f_avg is the height of the rectangle whose base is the interval [a, b] and whose area equals the definite integral ∫ₐᵇ f(x) dx. The 'excess' area above f_avg is exactly balanced by the 'deficit' area below it.
✦

KEY TAKEAWAY

Think of it like leveling sand in a sandbox. The sand (area under the curve) is distributed unevenly, but if you push it all flat, the uniform height you get is the average value. The total volume of sand hasn't changed—you've simply redistributed it into a rectangle of equal area. Integration computes the total 'sand,' and dividing by the base gives the 'leveled height.'

SECTION 3

Visual Explanation

The following diagram illustrates the geometric meaning of the average value. 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 at height f_avg represents the average value. Notice how the rectangle with that height and base [a, b] has exactly the same area as the shaded region under the curve—the portions of the curve above the line compensate precisely for the portions below.

01234yxa = 1b = 5f_avgRectangle area = f_avg × (b − a)f(x)excess above f_avgdeficit below f_avgc₁c₂Average Value: Geometric Interpretation
The cyan curve is f(x) and the shaded cyan region is ∫ₐᵇ f(x) dx. The dashed amber rectangle has height f_avg and the same area. The pink dots at c₁ and c₂ mark points where f(c) = f_avg, as guaranteed by the Mean Value Theorem for Integrals.

SECTION 4

Mathematical Framework

We now develop the average value formula rigorously, beginning from the discrete case and passing to a limit. This derivation connects the Riemann sum definition of the integral to the intuitive notion of averaging, and it naturally produces the Mean Value Theorem for Integrals as a corollary of the Intermediate Value Theorem.

Derivation from Riemann Sums

Partition [a, b] into n subintervals of equal width Δx = (b − a)/n, and choose sample points x₁*, x₂*, …, xₙ*. The arithmetic mean of the sampled values is (1/n) Σᵢ₌₁ⁿ f(xᵢ*). Substituting n = (b − a)/Δx, this becomes (Δx/(b − a)) Σᵢ₌₁ⁿ f(xᵢ*) = (1/(b − a)) Σᵢ₌₁ⁿ f(xᵢ*) Δx. As n → ∞, the Riemann sum converges to the definite integral, yielding the continuous average.

AVERAGE VALUE FORMULA

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

f_avg is the average (mean) value of f on [a, b]; a and b are the endpoints of the interval; ∫ₐᵇ f(x) dx is the definite integral (net signed area) of f over [a, b].

Mean Value Theorem for Integrals

The Mean Value Theorem for Integrals (MVTI) asserts that if f is continuous on [a, b], then there exists at least one point c ∈ (a, b) such that f(c) equals f_avg. The proof follows from the Extreme Value Theorem (f attains a minimum m and maximum M on [a, b]) and the Intermediate Value Theorem: since m ≤ f_avg ≤ M, and f is continuous, f must assume the value f_avg at some c in the interval.

MEAN VALUE THEOREM FOR INTEGRALS

∫abf(x)dx=f(c)⋅(b−a)forsomec∈(a,b)∫ₐᵇ f(x) dx = f(c) · (b − a) for some c ∈ (a, b)

This rearranges the average value formula: the total integral equals the function value at some point c times the interval length. Geometrically, the area under f equals the area of a rectangle of height f(c) and width b − a.

EQUIVALENT FORM — SOLVING FOR f_avg

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

The MVTI guarantees the existence of c but does not provide a formula for finding it. To locate c, compute f_avg first, then solve f(c) = f_avg for c ∈ (a, b).

⚠

Important Distinction

Do not confuse the Mean Value Theorem for Integrals with the Mean Value Theorem for Derivatives (which guarantees a point where f′(c) equals the average rate of change). The integral version concerns the average value of f, while the derivative version concerns the average slope of f. Both are consequences of continuity and the Intermediate Value Theorem.

SECTION 5

Step-by-Step Process & Second Visualization

Computing the average value of a function on a given interval is a systematic procedure. The following breakdown outlines the process from start to finish, including the optional step of locating the point c guaranteed by the MVTI. The second diagram below illustrates the Riemann sum motivation—how increasingly fine partitions converge to the true average.

  1. Step 1 — Identify the interval [a, b] and the function f(x). Ensure f is integrable (and continuous, if you wish to invoke the MVTI).
  2. Step 2 — Compute the definite integral ∫ₐᵇ f(x) dx. Use antidifferentiation, substitution, integration by parts, or any appropriate technique.
  3. Step 3 — Divide by the interval length (b − a). This normalizes the total accumulation, yielding the average value f_avg.
  4. Step 4 (Optional) — Find c such that f(c) = f_avg. Set f(c) = f_avg and solve for c ∈ (a, b). There may be more than one such c.
Riemann Sum Approximation → True Average Valuen = 4 subintervalsavg ≈ (1/4) Σ f(xᵢ*)n = 12 subintervalsavg ≈ (1/12) Σ f(xᵢ*)n → ∞ : Exact Average Valuef_avgf_avg = (1/(b−a)) ∫ₐᵇ f(x) dx
Top left: 4 rectangles yield a rough sample-based average. Top right: 12 rectangles provide a closer approximation. Bottom: as n → ∞ the Riemann sum becomes the integral and the sample average converges to the exact average value f_avg (dashed amber line).

As the panels illustrate, increasing the number of subintervals refines the approximation. In the limit, the Riemann sum quotient (1/n) Σ f(xᵢ*) converges to (1/(b − a)) ∫ₐᵇ f(x) dx, providing both a computational formula and a conceptual justification for calling this quantity the 'average value.' This is a powerful instance of the broader theme in calculus: discrete sums becoming integrals in the continuum limit.

SECTION 6

Worked Example

Let us compute the average value of f(x) = x² + 2x on the interval [1, 4], and then find the value of c guaranteed by the Mean Value Theorem for Integrals.

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

  1. 1

    Step 1 — Identify the Interval and Function

    We have f(x) = x² + 2x, a = 1, and b = 4. The function is a polynomial, hence continuous on [1, 4], so the MVTI applies.
  2. 2

    Step 2 — Compute the Definite Integral

    ∫₁⁴ (x² + 2x) dx = [x³/3 + x²]₁⁴. Evaluating at x = 4: (64/3 + 16) = (64/3 + 48/3) = 112/3. Evaluating at x = 1: (1/3 + 1) = (1/3 + 3/3) = 4/3. Therefore ∫₁⁴ (x² + 2x) dx = 112/3 − 4/3 = 108/3 = 36.
    ∫₁⁴ (x² + 2x) dx = 36
  3. 3

    Step 3 — Divide by the Interval Length

    The interval length is b − a = 4 − 1 = 3. Applying the average value formula: f_avg = (1/3)(36) = 12.
    f_avg = 12
  4. 4

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

    We solve c² + 2c = 12, i.e., c² + 2c − 12 = 0. Using the quadratic formula: c = (−2 ± √(4 + 48))/2 = (−2 ± √52)/2 = (−2 ± 2√13)/2 = −1 ± √13. Since √13 ≈ 3.606, we get c ≈ −1 + 3.606 = 2.606 or c ≈ −1 − 3.606 = −4.606. Only c = −1 + √13 ≈ 2.606 lies in the interval (1, 4).
    c = −1 + √13 ≈ 2.606
  5. 5

    Step 5 — Verify and Interpret

    Check: f(−1 + √13) = (−1 + √13)² + 2(−1 + √13) = (1 − 2√13 + 13) + (−2 + 2√13) = 14 − 2√13 − 2 + 2√13 = 12 ✓. This confirms that the constant function y = 12 over [1, 4] encloses the same area (36 square units) as f(x) = x² + 2x, and the curve passes through the average value at x ≈ 2.606.
    Verified: f(c) = 12 = f_avg ✓

SECTION 7

Strengths, Limitations & Common Pitfalls

The average value formula is elegant and widely applicable, but it is important to understand its scope and to distinguish it from related but distinct concepts. The table below contrasts the average value with other common 'average' or 'representative value' ideas that students sometimes conflate.

ConceptWhat It MeasuresFormula / Key Idea
Average Value of fThe single constant that yields the same accumulated total as f over [a, b]f_avg = (1/(b − a)) ∫ₐᵇ f(x) dx
Average Rate of ChangeThe slope of the secant line from (a, f(a)) to (b, f(b))(f(b) − f(a)) / (b − a)
MVT for DerivativesA point where the instantaneous rate equals the average ratef′(c) = (f(b) − f(a)) / (b − a)
RMS (Root Mean Square)A weighted average emphasizing larger values, used in physics/engineering√((1/(b − a)) ∫ₐᵇ [f(x)]² dx)

Comparison of 'average' concepts in calculus

Common Pitfalls

  • Forgetting the 1/(b − a) factor. The integral alone gives the total accumulated quantity, not the average. You must normalize by dividing by the interval length.
  • Confusing average value with the midpoint value. The average value f_avg is generally not equal to f((a+b)/2) unless f is linear on [a, b]. For nonlinear functions, these differ.
  • Assuming c is unique. The MVTI guarantees at least one c, but there may be several points where f(c) = f_avg. Report all solutions in (a, b).
  • Applying the MVTI to discontinuous functions. The theorem requires continuity on [a, b]. You can still compute the average value for an integrable function, but the existence of c is not guaranteed.
✦

KEY TAKEAWAY

The average value formula is a bridge between global information (the integral, a cumulative quantity) and local information (the function value at a single point c). This duality—extracting a representative sample from a continuous process—appears throughout applied mathematics, from signal processing (where the average of a periodic signal is its DC component) to probability (where the expected value of a random variable is an average weighted by a density function).

SECTION 8

Connections to Advanced Topics

The average value of a function is not merely a computational exercise—it is a gateway concept that resurfaces in increasingly sophisticated forms throughout higher mathematics, probability theory, and physics. Understanding how the basic idea generalizes provides both motivation for advanced study and deeper appreciation of the formula itself.

This LessonAdvanced Generalization
f_avg = (1/(b − a)) ∫ₐᵇ f(x) dxExpected value E[X] = ∫ x · p(x) dx — the average value of a random variable weighted by a probability density function
Average over a 1D interval [a, b]Average over a region R in ℝ²: f_avg = (1/Area(R)) ∬_R f(x, y) dA, extending to triple integrals in ℝ³
MVTI: ∃ c with f(c) = f_avgGeneralized MVT for vector-valued functions and Lebesgue integrals, with measure-theoretic formulation
Constant f_avg on [a, b]Moving averages and convolutions: averaging f over sliding windows, foundational in signal processing and data science

From average value to advanced generalizations

In multivariable calculus, you will extend the average value formula to functions of two or three variables by replacing the interval length with the area or volume of the region of integration and using double or triple integrals. In probability and statistics, the expected value is essentially a weighted average value where the weighting function is a probability density. In physics, the time-averaged value of a periodic force, the spatial average of a temperature field, and the root-mean-square voltage of an AC signal all invoke the same fundamental idea: integrate a varying quantity over a domain and normalize by the domain's measure.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain in your own words why dividing the definite integral ∫ₐᵇ f(x) dx by (b − a) produces a meaningful 'average.' How does this relate to the ordinary arithmetic mean of a finite data set? What role does continuity play in guaranteeing that the function actually attains its average value?
Show answer
The definite integral represents the total accumulated 'signed area' of f over [a, b]. Dividing by the interval length (b − a) normalizes this total in the same way that dividing a sum by the count of data points normalizes a finite average. The resulting quotient is the height of a rectangle with base (b − a) that has the same area as the region under f. Continuity ensures, via the Intermediate Value Theorem, that f passes through every value between its minimum and maximum on [a, b]; since f_avg lies between these extremes (by properties of the integral), there must exist at least one point c in (a, b) where f(c) = f_avg. Without continuity, the average value still exists as a number, but the function might skip over it.

Question 2: BASIC CALCULATION

Find the average value of f(x) = 3x² on the interval [0, 2].
Show answer
Compute the integral: ∫₀² 3x² dx = [x³]₀² = 8 − 0 = 8. The interval length is 2 − 0 = 2. Therefore f_avg = (1/2)(8) = 4. Verification: solving 3c² = 4 gives c = √(4/3) = 2√3/3 ≈ 1.155, which lies in (0, 2), confirming the MVTI. The function f(x) = 3x² increases on [0, 2] from 0 to 12, and its average value of 4 is appropriately located in the lower portion of this range because the function spends more of the interval at smaller values.

Question 3: INTERMEDIATE

Find the average value of f(x) = sin(x) on the interval [0, π], and determine all values of c in (0, π) where f(c) equals this average.
Show answer
The integral is ∫₀π sin(x) dx = [−cos(x)]₀π = (−cos π) − (−cos 0) = (−(−1)) − (−1) = 1 + 1 = 2. The interval length is π − 0 = π. So f_avg = 2/π ≈ 0.6366. To find c, solve sin(c) = 2/π, giving c = arcsin(2/π). Since 2/π < 1, this equation has solutions. On (0, π), sine is positive and achieves 2/π at two points: c₁ = arcsin(2/π) ≈ 0.6901 and c₂ = π − arcsin(2/π) ≈ 2.4515. Both lie in (0, π), illustrating that the MVTI may yield multiple values of c.

Question 4: APPLIED

The temperature in a greenhouse (in °C) t hours after midnight is modeled by T(t) = 18 + 8 sin(πt/12) for 0 ≤ t ≤ 24. Find the average temperature over the full 24-hour period and interpret the result in context.
Show answer
Apply the formula: T_avg = (1/24) ∫₀²⁴ [18 + 8 sin(πt/12)] dt. Split the integral: ∫₀²⁴ 18 dt = 18(24) = 432, and ∫₀²⁴ 8 sin(πt/12) dt = 8 × [−(12/π) cos(πt/12)]₀²⁴ = (−96/π)[cos(2π) − cos(0)] = (−96/π)(1 − 1) = 0. Therefore T_avg = (1/24)(432 + 0) = 18 °C. The sinusoidal oscillation integrates to zero over a full period, so the average temperature equals the baseline constant 18 °C. Physically, the greenhouse spends symmetric amounts of time above and below 18 °C, making it the natural 'center' of the daily temperature variation.

Question 5: CRITICAL THINKING

Let f be a continuous function on [a, b] with average value f_avg, and let g(x) = f(x) − f_avg. Prove that ∫ₐᵇ g(x) dx = 0. Then explain geometrically why this result must hold, and discuss what it implies about the relationship between the 'excess' area (where f > f_avg) and the 'deficit' area (where f < f_avg).
Show answer
By definition, g(x) = f(x) − f_avg, so ∫ₐᵇ g(x) dx = ∫ₐᵇ f(x) dx − ∫ₐᵇ f_avg dx = ∫ₐᵇ f(x) dx − f_avg · (b − a). Since f_avg = (1/(b − a)) ∫ₐᵇ f(x) dx, substituting yields ∫ₐᵇ f(x) dx − (1/(b − a)) ∫ₐᵇ f(x) dx · (b − a) = ∫ₐᵇ f(x) dx − ∫ₐᵇ f(x) dx = 0. Geometrically, g(x) is the signed deviation of f from its average. The integral of g being zero means that the total signed area between f and the horizontal line y = f_avg is zero: the regions where f exceeds f_avg have exactly the same area as the regions where f falls below it. This is the continuous analog of the discrete fact that the sum of deviations from the arithmetic mean is always zero—a fundamental property that characterizes the mean uniquely.

SUMMARY

Lesson Summary

Summary

The average value of a function f on an interval [a, b] is defined by f_avg = (1/(b − a)) ∫ₐᵇ f(x) dx. This formula extends the concept of the arithmetic mean from finite data sets to continuous functions by replacing summation with integration and the count of values with the interval length. Geometrically, f_avg is the height of a rectangle with base b − a that encloses the same signed area as the region under the curve.

The Mean Value Theorem for Integrals guarantees that if f is continuous on [a, b], then there exists at least one point c ∈ (a, b) where f(c) = f_avg. The computational workflow is: evaluate the definite integral, divide by the interval length, and (if desired) solve f(c) = f_avg to locate the guaranteed point. This concept connects directly to expected values in probability, multivariable averaging, and numerous applied problems involving temperature, velocity, concentration, and other continuously varying quantities.

Varsity Tutors • Calculus 2 • Average Value of a Function