4.08e - Mean value of a function

4.08e - Mean value of a function

Find the average height of a curve over an interval, and use it to interpret a changing quantity. You will distinguish a function's mean value from the average of its endpoint values, evaluate exact means by integration, and work backwards from a given mean.

A constant height with the same integral

If a quantity follows y=x2y = x^2 from x=0x = 0 to x=3x = 3, what single height should represent its average: 33, 92\frac{9}{2}, or something else?

The endpoint values are 00 and 99, but averaging those two numbers ignores every value between them. A curve can spend much of an interval below that endpoint average. Instead, replace the curve by a horizontal line with the same signed area over the whole interval.

You already know

A definite integral ∫abf(x) dx\int_a^b f(x)\,dx gives signed area: regions above the horizontal axis contribute positively and regions below contribute negatively. You can evaluate it using an antiderivative and the limits.

A constant function with height mm has integral m(b−a)m(b-a). To give it the same integral as ff, require m(b−a)=∫abf(x) dxm(b-a) = \int_a^b f(x)\,dx, then divide by the interval's width.

Mean value of a function

The mean value of an integrable function ff on [a,b][a,b], where a<ba < b, is the constant height having the same integral over that interval as ff. It averages the function over the independent variable, with equal weight for equal widths.

For the opening curve, the integral is ∫03x2 dx=9\int_0^3 x^2\,dx = 9. The rectangle must therefore have height 9/3=39/3 = 3, even though the average of the two endpoint heights is 9/29/2.

[DIAGRAM: asset_name: A mean height replaces a curve; asset_slug: h245_mean_equal_area; caption: On the interval from 0 to 3, the curve y = x squared and the rectangle of height 3 both have area 9; description: Two side-by-side coordinate plots of y equals x squared on zero to three, with the curved region shaded blue on the left and a rectangle of width three and height three shaded clay on the right. Both plots show the horizontal line y equals three, and each shaded area is labelled nine.]
On the interval from 0 to 3, the curve y = x squared and the rectangle of height 3 both have area 9

The same definition works when the graph crosses the axis. For f(x)=xf(x) = x on [−1,1][-1,1], the two triangular regions cancel, so the mean is 00. Averaging ∣x∣|x| would give 1/21/2: that is the mean magnitude, a different question. A function can have mean zero while being non-zero almost everywhere.

Mean value on an interval

For an integrable real-valued function ff on a finite interval [a,b][a,b], with a<ba < b,

mean value=1b−a∫abf(x) dx\text{mean value} = \frac{1}{b-a}\int_a^b f(x)\,dx

The divisor is the width of the interval, and the integral is signed.

In the formula booklet.

This is the continuous counterpart of adding many equally spaced heights and dividing by their number. If NN strips have width Δx=(b−a)/N\Delta x = (b-a)/N, then their average height is 1N∑f(xi)=1b−a∑f(xi)Δx\frac{1}{N}\sum f(x_i) = \frac{1}{b-a}\sum f(x_i)\Delta x; the sum of the strip areas approaches the integral.

Key idea

A mean value preserves the integral over the interval, so it uses all the heights rather than only the two endpoints.

Test that distinction on a deliberately flawed calculation.

Evaluating a mean value

Write the averaging factor before integrating, so that the final answer is a height rather than an area.

The definite integral has units of function value multiplied by independent variable. Dividing by b−ab-a cancels the independent variable's units. For example, integrating power in kilowatts over hours gives energy in kilowatt-hours; dividing by the number of hours gives mean power in kilowatts.

Worked example 1: the opening curve

Question. Determine the exact mean value of f(x)=x2f(x) = x^2 on [0,3][0,3].

Plan. Divide the definite integral of x2x^2 by the interval's width, 33.

m=13−0∫03x2 dxmean-value formula=13[x33]03integrate=13(9−0)use both limits=3divide by the width\begin{aligned} m &= \frac{1}{3-0}\int_0^3 x^2\,dx && \text{mean-value formula} \\ &= \frac13\left[\frac{x^3}{3}\right]_0^3 && \text{integrate} \\ &= \frac13(9-0) && \text{use both limits} \\ &= 3 && \text{divide by the width} \end{aligned}

Why this step? The integral is 99, but the average height is the area shared over a width of 33.

Answer. The exact mean value is 33.

Check. A rectangle of height 33 and width 33 has area 99, equal to the curve's integral. Also 0<3<90 < 3 < 9, so the mean lies between the minimum and maximum values.

The second example changes only the lower endpoint. Removing the lowest part of an increasing curve should raise its mean, and the averaging factor must change too.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account