Statics › Section G · Centroids and centers of gravity › Topic G.5

Average value of a function

A sum can only average a list of separate values. When a load, a pressure or a depth changes smoothly, the average becomes an integral, and the same step turns every centroid formula into its integral form.

Averaging something that never stops changing

The load on a roof beam may grow steadily from one end to the other. The water pressure on a wall grows with every centimetre of depth. The level of a tidal basin rises and falls all day. None of these is a list of separate numbers that you can add and divide by a count; each is a function with a value at every point. Yet engineers still need one representative number: the steady load that carries the same total, or the typical depth over a shift. This topic defines that number and shows how it reshapes the weighted averages of this section.

From a sum to an integral

Split the interval \(a \le x \le b\) into \(n\) narrow pieces of width \(\Delta x\) and sample \(f\) once in each. Weighting each sample by the width it represents gives a weighted average:

\bar{f} \approx \frac{\sum f(x_i)\,\Delta x}{\sum \Delta x}

As the pieces shrink, the numerator becomes a definite integral and the denominator becomes the interval's length, \(b - a\):

\bar{f} = \frac{\int_a^b f(x)\,dx}{\int_a^b dx} = \frac{1}{b - a}\int_a^b f(x)\,dx

This is the average value of \(f\) on the interval, the same definition used in the calculus topic "The fundamental theorem of calculus".

The equal-area rectangle

Multiply the definition by \(b - a\) and it reads \(\bar{f}(b - a) = \int_a^b f(x)\,dx\). A rectangle of height \(\bar{f}\) standing on the interval has exactly the same area as the region under the curve. Where the curve rises above the rectangle, the extra area matches the area where it dips below. If \(f\) is continuous, the curve must cross that level somewhere in the interval, which is the mean value theorem for integrals. In statics the area under a load curve is a force, so the equal-area rectangle is a uniform load carrying the same total force.

Worked example: a curved load

A beam 4 m long carries a load whose intensity is \(w(x) = 3 + 0.5x^2\) kN/m, with \(x\) in metres from the left end. What uniform load carries the same total? 1. Total load:

\int_0^4 (3 + 0.5x^2)\,dx = \left[3x + \frac{x^3}{6}\right]_0^4 = 12 + \frac{64}{6} = \frac{68}{3}\ \text{kN}

2. Divide by the length: \(\bar{w} = \frac{68}{3} \div 4 = \frac{17}{3} = 5.67\) kN/m. 3. Check: the intensity runs from 3 to 11 kN/m, and 5.67 lies between them. It is well below the endpoint mean of 7, because the curve stays low for most of the beam and rises steeply only near the right end.

Linear functions: the midpoint shortcut

When \(f\) is a straight line, the area under it is a trapezoid, whose area is the mean of its two parallel sides times its width. So for a linear function only,

\bar{f} = \frac{f(a) + f(b)}{2}

which is also the value at the midpoint of the interval. Gauge water pressure grows linearly with depth, \(p = \rho g h\), so with \(\rho = 1000\ \mathrm{kg/m^3}\) and \(g = 9.81\ \mathrm{m/s^2}\), on a vertical strip of wall from 1.0 m to 2.5 m deep the pressure runs from 9.81 kPa to 24.5 kPa and averages \(\frac{9.81 + 24.5}{2} = 17.2\) kPa. The shortcut fails for curves: the curved load above has an endpoint mean of 7 kN/m but a true average of 5.67 kN/m.

Worked example: depth in a tidal basin

The water depth in a basin is modelled by \(h(t) = 3 + 1.5\sin(\pi t/6)\) metres, with \(t\) in hours and the angle in radians. Find the average depth over the first 6 hours. 1. Integrate:

\int_0^6 \left(3 + 1.5\sin\frac{\pi t}{6}\right)dt = 18 + 1.5 \cdot \frac{12}{\pi} = 18 + \frac{18}{\pi}

2. Divide by 6 h: \(\bar{h} = 3 + 3/\pi = 3.95\) m. 3. Check: the depth is 3 m at both ends of the interval but higher in between, so the average must exceed 3 m. Over a full 12-hour cycle the sine term averages to zero, and \(\bar{h}\) is exactly 3 m.

Weighted integrals in general

The average value used \(dx\) as its weighting element, so every bit of length counted equally. Any other weighting element works the same way, and this is how the centroid and centre of gravity formulas pass from sums to integrals. The recipe has three steps. 1. Replace the sum sign by an integral. 2. Replace each discrete weight by its differential: \(A_i\) by \(dA\), \(V_i\) by \(dV\), \(m_i\) by \(dm\), \(W_i\) by \(dW\). 3. Replace each part's centroid coordinate by the coordinate of the small element, written \(\bar{x}_{el}\). For an area this gives

\bar{x} = \frac{\int \bar{x}_{el}\,dA}{\int dA} \qquad \bar{y} = \frac{\int \bar{y}_{el}\,dA}{\int dA}

What changes and what does not

The meaning is unchanged: the numerator is still a first moment and the denominator is still the total area, volume, mass or weight. What changes is the bookkeeping. A table row for each part becomes a single expression for a typical element, written in terms of the shape's boundary curves, and the column sums become integrals. The topic "Centroids by integration" carries out this conversion for real shapes, choosing strip elements so that each integral is a single one. Using \(dW\) as the weight gives \(\bar{x} = \int \bar{x}_{el}\,dW / \int dW\) for the centre of gravity of a body whose weight varies from point to point.

Common mistakes to avoid

First, averaging the two endpoint values of a curve, which is only correct for straight lines. Second, forgetting to divide by the interval length, which gives the total instead of the average. Third, dividing by the wrong length when the interval does not start at zero: from 2 to 5 the divisor is 3. Fourth, evaluating trigonometric models in degrees when the formula assumes radians. Fifth, confusing the average value of a load, which is an intensity in kN/m, with the average position of the load, which is a distance found in the next topics.

Key takeaways

The average value of \(f\) on \(a \le x \le b\) is \(\bar{f} = \frac{1}{b - a}\int_a^b f(x)\,dx\): a weighted average with \(dx\) as the weight. A rectangle of height \(\bar{f}\) has the same area as the region under the curve, so for a load it is the uniform intensity carrying the same total force. For a linear function the average is the mean of the endpoint values; for a curve it is not. Replacing sums by integrals and discrete weights by \(dA\), \(dV\), \(dm\) or \(dW\) turns every centroid formula into its integral form.

Flashcards

Flashcard

Average value

f̄ = (1/(b − a)) ∫ from a to b of f(x) dx

Total divided by interval length.

Test your understanding

Question 1 of 5

What is the average value of f(x) = x³ on the interval from 0 to 2?

Question 2 of 5

A beam 6 m long carries a load w(x) = 2 + x kN/m, with x in metres from the left end. What uniform load intensity carries the same total?

Question 3 of 5

For which kind of function is the average value on an interval always equal to the mean of its two endpoint values?

Question 4 of 5

A room's temperature follows T(t) = 20 + 6 sin(πt/12) °C, with t in hours and the angle in radians. What is the average temperature from t = 0 to t = 12 h?

Question 5 of 5

Converting the composite formula x̄ = Σ x̄ᵢAᵢ / Σ Aᵢ to integral form gives which expression?

← Previous topicNext topic →