Temperature Varies Along a Rod
A rod may be warmer in one region and cooler in another. If its temperature depends on position, a single measurement at one point does not describe the temperature along the whole rod. A spatial average gives one representative temperature by accounting for the temperatures at all positions, with equal weight assigned to equal lengths of the rod.
This is an average over position, not over time. It is also not automatically the temperature at the rod’s midpoint. The two values can differ, although they may agree for some profiles, including some nonlinear ones.
Definition of Spatial Average Temperature
Suppose a rod occupies the interval from \(x=a\) to \(x=b\), where \(b>a\), and its temperature at position \(x\) is \(T(x)\). Assume \(T\) is continuous on the interval, so its definite integral exists. The rod’s length is \(b-a\).
If \(T\) is measured in degrees Celsius and \(x\) in metres, then the integral has units of degree-Celsius metres. Dividing by the length in metres leaves degrees Celsius, as required for an average temperature. The same reasoning applies to other temperature and length units, provided they are used consistently.
The formula gives each small segment of the rod a weight proportional to its length. A segment twice as long contributes twice as much to the integral. It does not give equal weight to arbitrarily chosen points, since a point by itself has no length.
Why the Integral Is Divided by Length
Partition the rod into many short segments. If the \(i\)-th segment has length \(\Delta x_i\), choose a point \(x_i^*\) in that segment. The quantity \(T(x_i^*)\Delta x_i\) approximates the temperature multiplied by the length of that segment. Adding these quantities approximates the accumulated temperature across the whole rod.
To turn this accumulated quantity into a length-weighted average, divide by the total length. As the segments become arbitrarily short, the sum approaches the definite integral. This gives the average-value formula.
This reasoning also explains the units: the numerator accumulates temperature over length, and division by length returns a temperature.
Worked Example: A Linear Temperature Profile
Worked Example: A Linear Temperature Profile
A \(3\)-metre rod extends from \(x=0\) to \(x=3\). Its temperature profile is \(T(x)=18+4x\) degrees Celsius, where \(x\) is measured in metres. Find the spatial average temperature and compare it with the temperature at the midpoint.
The rod length is \(3-0=3\) metres, so
An antiderivative of \(18+4x\) is \(18x+2x^2\). Therefore,
The midpoint is \(x=(0+3)/2=1.5\) metres. Its temperature is
Thus the midpoint temperature equals the spatial average in this example. As a check, the integral is \(72\) degree-Celsius metres, and \(72\text{ degree-Celsius metres}/3\text{ metres}=24\text{ °C}\).
For a linear profile, the equality can also be seen directly. If \(T(x)=mx+c\), its average over \([a,b]\) is \(m(a+b)/2+c\), which is exactly \(T((a+b)/2)\). Linearity guarantees this equality, but it is not necessary; other profiles can also have their midpoint temperature equal their average.
Worked Example: A Nonlinear Profile with Different Values
Worked Example: A Quadratic Profile
A rod runs from \(x=0\) to \(x=4\) metres, with temperature \(T(x)=20+3(x-2)^2\) degrees Celsius. Find the spatial average and compare it with the midpoint temperature.
The length is \(4\) metres, so
An antiderivative is \(20x+(x-2)^3\), since the derivative of \((x-2)^3\) is \(3(x-2)^2\). Evaluating gives
Hence,
The midpoint is \(x=2\) metres, where
The spatial average is \(24\text{ °C}\), while the midpoint temperature is \(20\text{ °C}\). The integral check is \(24\text{ °C}\times4\text{ m}=96\text{ degree-Celsius metres}\), agreeing with the computed integral.
Here, the midpoint is the coolest point, while temperatures rise on either side. Its value alone therefore does not represent the average along the rod.
Midpoint Temperature and Spatial Average
Write \(m=(a+b)/2\) for the midpoint position. Its temperature is \(T(m)\); the spatial average is \(\frac{1}{b-a}\int_a^b T(x)\,dx\). These are different calculations: one evaluates the function at a single position, while the other integrates over the entire interval and normalizes by length.
They are equal precisely when
To see this, subtract \(T(m)\) from the average and use the fact that \(T(m)\) is constant with respect to \(x\):
Since \(b-a\) is positive, the difference is zero exactly when the displayed integral is zero. In words, the signed deviations from the midpoint temperature must cancel in their total integral. This condition does not require a linear profile.
Worked Example: A Nonlinear Profile with Equal Values
Worked Example: A Cubic Profile
Consider a \(2\)-metre rod on \(0\le x\le2\), with temperature \(T(x)=20+(x-1)^3\) degrees Celsius. Find its spatial average and compare it with the midpoint temperature.
The length is \(2\) metres. Integrating the constant term and the cubic term gives
Therefore,
The midpoint is \(x=1\), and
The profile is nonlinear, yet its midpoint temperature equals its spatial average. The deviations \( (x-1)^3 \) below and above the midpoint cancel in the integral. Checking by multiplication, \(20\text{ °C}\times2\text{ m}=40\text{ degree-Celsius metres}\), matching the integral.
A Common Mistake: Substituting the Midpoint for the Average
A tempting shortcut is to evaluate the temperature at the midpoint and call that the average. The quadratic example shows why this is not a general rule. On the interval \([0,4]\), the midpoint temperature is \(20\text{ °C}\), but the spatial average is \(24\text{ °C}\).
It is also a mistake to assume that nonlinearity alone guarantees different values. The cubic example is nonlinear and has equal midpoint and average temperatures. The correct comparison depends on the whole profile, not simply on whether the formula is linear.
Why the Spatial Average Is Useful
The spatial average compresses a varying profile into one length-weighted summary. It can help compare rods or compare temperature profiles along the same rod, provided the interval and units are stated. But it does not preserve all the information in the profile: two different functions can have the same average while having very different temperatures at particular positions.
Also, this definition averages temperature over distance. It is not by itself a calculation of heat content or total thermal energy; those questions require additional physical information. For this calculation, the required inputs are the temperature function, the rod’s interval, and the interval length.
Record the endpoints \(a\) and \(b\), with \(b>a\), and find the length \(b-a\).
Calculate \(\int_a^b T(x)\,dx\), keeping track of temperature-times-length units.
Compute \(T_{\mathrm{avg}}=\frac{1}{b-a}\int_a^b T(x)\,dx\).
Evaluate \(T((a+b)/2)\) separately; do not assume it equals the average.
Check Your Understanding
Answer these questions using the definition and examples above.
- What does the denominator \(b-a\) represent in the formula for spatial average temperature?
- A rod occupies \(0\le x\le2\) metres and has \(T(x)=10+2x\) degrees Celsius. What is its spatial average temperature?
- For \(T(x)=20+3(x-2)^2\) on \([0,4]\), what is the midpoint temperature, and how does it compare with the average?
- Can a nonlinear temperature profile have its midpoint temperature equal its spatial average? Explain using the cubic example.
- What condition on the integral of \(T(x)-T((a+b)/2)\) makes the midpoint temperature equal the spatial average?