The Mean Value of a Function

The integral divided by the width.

A height, not an area

The region under y = x² from x = 0 to x = 4 has area ∫₀⁴ x² dx = [x³/3]₀⁴ = 64/3 ≈ 21.33. The curve starts at height 0 and ends at height 16, so its height changes all the way across.

A rectangle on the same base, 4 wide, needs some fixed height to hold the same area. That height is the mean value of x² on the interval from 0 to 4. It is measured in the units of y, like any height, and it is a single number standing in for every height the curve takes.

Divide the integral by the width

A rectangle of height H on a base from a to b has area H(b − a). Setting that equal to the area under the curve and dividing by the width gives the mean value: f̄ = (1/(b − a)) ∫ₐᵇ f(x) dx.

Where the curve is above the line y = f̄ it holds area the rectangle lacks, and where it is below it lacks area the rectangle has. The mean height is the one at which those two pieces are equal.

xy

The gold curve y = x² and the dashed line y = 16/3 ≈ 5.33, with the rectangle under the line shaded from x = 0 to x = 4. Its area is 4 × 16/3 = 64/3, the same as the area under the curve. The curve crosses the line at the dot, x = 4/√3 ≈ 2.31. Left of the dot the rectangle holds 8.21 square units more than the region under the curve; right of it the curve holds 8.21 more than the rectangle.

Work it out

For x² on the interval from 0 to 4 the area is 64/3 and the width is 4, so the mean value is (64/3) ÷ 4 = 16/3 ≈ 5.33.

It lies between the lowest value of x² there, 0, and the highest, 16, as a mean must. It is not 8, the value halfway between them: the curve spends most of its width low down and climbs steeply only near x = 4, so its mean sits nearer the bottom.

The curve reaches its mean height at x² = 16/3, that is at x = 4/√3 ≈ 2.31. A continuous function always takes its mean value somewhere on the interval, because its graph runs from below that height to above it.

An average of many readings

Read x² at the middles of four equal strips, at x = 0.5, 1.5, 2.5 and 3.5. The readings are 0.25, 2.25, 6.25 and 12.25, and their average is 21 ÷ 4 = 5.25. At the middles of eight strips the average is 5.3125, and at sixteen it is 5.328.

Those averages close in on 16/3 ≈ 5.333. The mean value of a function is that limit: the average of readings spread evenly across the width, taken with more and more readings. Each reading stands for an equal share of the width, which is why the integral is divided by the width and not by a count.

More functions

On the interval from 0 to π, sin x has area ∫₀^π sin x dx = [−cos x]₀^π = 1 + 1 = 2. The width is π, so the mean value is 2/π ≈ 0.637. The curve reaches that height twice, at x ≈ 0.690 and at x ≈ 2.451.

On the interval from 0 to 2π the area above the axis and the area below it cancel, so the integral is 0 and the mean value of sin x is 0. A mean value can be 0 or negative, because it is an integral divided by a width, and an integral counts area below the axis as negative.

For a straight line the mean is the value in the middle of the interval. On the interval from 0 to 4, y = 2x + 1 has area [x² + x]₀⁴ = 20, and 20 ÷ 4 = 5, which is its height at x = 2. Halving the two end heights, (1 + 9) ÷ 2 = 5, works for a line and for nothing that bends.

xy

The gold curve y = sin x from 0 to π, and the dashed line at its mean height 2/π ≈ 0.637. The shaded rectangle is π wide, so its area is π × 2/π = 2, the area under the arch. The dots, at x ≈ 0.690 and x ≈ 2.451, are where the curve is at its mean height.

The usual mistakes

Giving the area as the mean. For x² on the interval from 0 to 4 the area is 64/3; the mean value is that area divided by the width 4, which is 16/3.

Dividing by b instead of b − a. On the interval from 1 to 4, ∫₁⁴ x² dx = 64/3 − 1/3 = 21, and the width is 3, so the mean value is 7, not 21/4.

Halving the two end heights. That gives (0 + 16) ÷ 2 = 8 for x² on the interval from 0 to 4, but the true mean is 16/3, because the curve bends.

A roof over a grain store

In the application below, the mean height of a curved roof comes from its integral divided by the width of the floor. Five readings averaged plainly give less, because they count the two zero readings at the walls as fully as the one at the crown.

Worked example: A Grain Store's Hooped Roof: The Mean Height Across the Floor Against the Average of Five Measurements

Question A grain store has a hooped roof. Its height above the floor, x meters from the center line, is h = 8 − x28 meters, and the store is 16 meters wide, so the roof meets the floor at each side. (a) Find the mean height of the roof across the width of the store. (b) A worker measures the height every 4 meters across and averages the five readings. What does that average come to, and what do the same five readings give by the trapezium rule?

  1. 1.The mean value of a function over an interval is its integral divided by the width: h = 116∫−88(8 − x28)dx.

    02468−8−4048x, meters from the center lineheight, mmean value = the area divided by the width
    02468−8−4048x, meters from the center lineheight, mmean value = the area divided by the width
    The mean value of a function is its integral divided by the width: h = 116∫−88(8 − x28)dx.
  2. 2.Integrating, ∫−88(8 − x28)dx = [8x − x324]−88 = (64 − 643) − (−64 + 643) = 128 − 1283 = 2563, which is the area of the cross-section in square meters.

    02468−8−4048x, meters from the center lineheight, mmean value = the area divided by the widtharea = 256/3 = 85.33 m2
    02468−8−4048x, meters from the center lineheight, mmean value = the area divided by the widtharea = 256/3 = 85.33 m2
    The integral is [8x − x324]−88 = 2563 square meters, the area of the cross-section.
  3. 3.(a) Dividing by the width, h = 2563 × 116 = 163 = 5.33 meters to two decimal places. That is two thirds of the 8 meter crown, which is what the mean of a parabola over the whole of its arch must be.

    02468−8−4048x, meters from the center lineheight, mmean 5.33mean value = the area divided by the widtharea = 256/3 = 85.33 m2(a) mean height = 85.33/16 = 5.33 m
    02468−8−4048x, meters from the center lineheight, mmean 5.33mean value = the area divided by the widtharea = 256/3 = 85.33 m2(a) mean height = 85.33/16 = 5.33 m
    (a) Dividing by the width, h = 2563 × 116 = 163 = 5.33 meters, two thirds of the crown.
  4. 4.(b) The five readings, at x = −8, −4, 0, 4 and 8, are 0, 6, 8, 6 and 0 meters, and their average is 205 = 4 meters. That is well short, because the two readings at the walls stand for only half a strip of floor each and yet carry a full share of the average.

    02468−8−4048x, meters from the center lineheight, mmean 5.33readings average 4mean value = the area divided by the widtharea = 256/3 = 85.33 m2(a) mean height = 85.33/16 = 5.33 m(b) readings 0, 6, 8, 6, 0 average 4 m
    02468−8−4048x, meters from the center lineheight, mmean 5.33readings average 4mean value = the area divided by the widtharea = 256/3 = 85.33 m2(a) mean height = 85.33/16 = 5.33 m(b) readings 0, 6, 8, 6, 0 average 4 m
    (b) The five readings are 0, 6, 8, 6 and 0, whose plain average is 4 meters: the two at the walls carry a full share each.
  5. 5.The trapezium rule gives each end reading half weight, which is the share it really stands for: the area is 4(02 + 6 + 8 + 6 + 02) = 4 × 20 = 80 square meters, so the mean height is 8016 = 5 meters. Check: 80 is short of the true 2563 = 85.33 only because each chord cuts inside a roof that curves.

    02468−8−4048x, meters from the center lineheight, mmean 5.33readings average 4trapezium 80, mean 5mean value = the area divided by the widtharea = 256/3 = 85.33 m2(a) mean height = 85.33/16 = 5.33 m(b) readings 0, 6, 8, 6, 0 average 4 mtrapezium: 4(0 + 6 + 8 + 6 + 0) = 80, so 5 m
    02468−8−4048x, meters from the center lineheight, mmean 5.33readings average 4trapezium 80, mean 5mean value = the area divided by the widtharea = 256/3 = 85.33 m2(a) mean height = 85.33/16 = 5.33 m(b) readings 0, 6, 8, 6, 0 average 4 mtrapezium: 4(0 + 6 + 8 + 6 + 0) = 80, so 5 m
    Halving those two end readings is the trapezium rule: 4(02 + 6 + 8 + 6 + 02) = 80 square meters, a mean of 5 meters.

Answer: (a) the mean height is 5.33 meters, that is 16/3 meters; (b) the average of the five readings is 4 meters, while the trapezium rule on the same readings gives an area of 80 square meters and a mean height of 5 meters

Common mistakes

  • Averaging the five readings and calling it the mean height. That gives 4 meters, over a meter short, because it weights the two zero readings at the walls as heavily as the 8 meter crown. The mean value of a function shares the width out evenly along the floor, not evenly among the readings.
  • Taking the mean height as halfway between the lowest and the highest, 0 + 82 = 4 meters. Halving the two extremes is right for a straight line and wrong for anything that bends: the roof spends more of its width near the crown than a straight slope would.

More using integration problems, worked step by step →

Practice The Mean Value of a Function in the app