Introduction
A function average summarizes the values of a function across an interval. Once that average is known, a simple change to every function value has a predictable effect: adding the same amount to every value shifts the average by that amount, and multiplying every value by the same constant scales the average by that constant.
These rules are useful when a model is expressed in a new scale or has a constant baseline added to it. They also give a quick way to find an average after a transformation, without recomputing the transformed function’s integral from scratch.
Definition and Conditions
Let \(f\) be integrable on an interval \([a,b]\), where \(a<b\). Its average value on that interval is the definite integral divided by the interval’s length.
The condition \(a<b\) ensures the interval has positive length, so the denominator is not zero. Integrability ensures the definite integral exists. For example, every continuous function on a closed interval is integrable there.
In this tutorial, a shift means adding a constant to the function’s output: \(f(x)+d\). A scaling means multiplying the output by a constant: \(cf(x)\). Neither operation changes the input \(x\) or the interval \([a,b]\).
The Two Transformation Rules
Suppose \(f\) is integrable on \([a,b]\), and \(c\) and \(d\) are real constants. The shift and scaling rules are:
The transformed function is integrable as well: adding a constant to an integrable function, or multiplying it by a constant, preserves integrability. The rules apply to positive, zero, and negative constants. If \(c=0\), the transformed function is identically zero and its average is zero.
Why the Rules Work
The reason is the linearity of the definite integral and the fact that the integral of a constant over an interval is that constant times the interval’s length. Here is the full derivation for \(g(x)=cf(x)+d\).
Since \(g(x)=cf(x)+d\) on the same interval, its average is \(\frac{1}{b-a}\int_a^b (cf(x)+d)\,dx\).
For integrable \(f\) and constants \(c,d\), \(\int_a^b (cf(x)+d)\,dx=c\int_a^b f(x)\,dx+\int_a^b d\,dx\).
Because \(\int_a^b d\,dx=d(b-a)\), dividing by \(b-a\) gives \(c\frac{1}{b-a}\int_a^b f(x)\,dx+d\).
The expression is \(c f_{\mathrm{avg}}+d\), which proves the combined rule and, by setting one constant to zero or one as appropriate, the shift and scaling rules.
In equation form, the derivation is:
This proof also explains why the length of the interval matters in the definition, but not as an extra adjustment in the final transformation rule: the constant contribution \(d(b-a)\) is divided by that same interval length.
Worked Examples
Worked Example: Adding a Constant to a Function
Let \(f(t)=3t+2\) on \([0,4]\), and define \(g(t)=f(t)+5\). Find the average of \(g\), using the original average and the shift rule. Then check by direct integration.
First find the original average. The interval length is \(4-0=4\), and an antiderivative of \(3t+2\) is \(\frac{3}{2}t^2+2t\). Thus
Since \(g=f+5\), the shift rule gives \(g_{\mathrm{avg}}=8+5=13\). To check, write \(g(t)=3t+7\) and calculate its average directly:
The direct computation agrees with the shift rule.
Worked Example: Scaling by a Negative Constant
Let \(f(x)=x+2\) on \([0,2]\), and define \(h(x)=-2f(x)\). Find the average of \(h\) by scaling the original average, then verify it directly.
The interval length is \(2-0=2\). The original average is
Since \(h=-2f\), the scaling rule gives \(h_{\mathrm{avg}}=-2(3)=-6\). For a direct check, \(h(x)=-2x-4\), so
The negative scaling factor reverses the sign of the average, as the result shows. The direct integral confirms the calculation.
Worked Example: Applying an Affine Temperature Conversion
Suppose a temperature model in degrees Celsius is \(C(t)=4+t\) for \(0\leq t\leq6\), where \(t\) is measured in hours. Convert it to Fahrenheit using \(F(t)=\frac{9}{5}C(t)+32\), and find the average Fahrenheit temperature over the interval.
First calculate the average Celsius temperature. The interval length is \(6-0=6\), so
The conversion has the form \(F=\frac{9}{5}C+32\). Therefore the combined rule gives
To check, substitute \(C(t)=4+t\) into the conversion formula: \(F(t)=\frac{9}{5}(4+t)+32=\frac{196}{5}+\frac{9}{5}t\). Direct integration gives
Both methods give the same average. The factor \(\frac{9}{5}\) scales the Celsius values, while \(32\) shifts them. The conversion is an affine transformation of the output values.
Interpreting and Using the Rules
The combined formula is especially useful when a model is transformed in one step. If \(g(x)=cf(x)+d\), first find or identify \(f_{\mathrm{avg}}\); then calculate \(c f_{\mathrm{avg}}+d\). A separate integral of \(g\) is not needed, although it can be useful as a check.
The constant \(d\) shifts every function value by the same amount. The average shifts by precisely the same amount. A factor \(c\) changes every function value in the same proportion, so the average changes by that proportion too. If \(c<0\), the sign of the average is reversed and its magnitude is multiplied by \(|c|\). If \(c=0\), every transformed value is zero.
Units should remain consistent. If \(f\) represents a quantity with a particular unit, then an added constant \(d\) must have that same unit to be added to \(f(x)\). The factor \(c\) can be dimensionless, as in a numerical rescaling, or can carry units that convert the output into another unit. In a conversion such as Celsius to Fahrenheit, both the scaling and offset are part of the conversion of output values.
These rules concern vertical transformations of the function: changing \(f(x)\) to \(cf(x)+d\). They do not describe changing the input, such as replacing \(f(x)\) by \(f(x+2)\), or changing the interval of averaging. Those operations alter the function or interval in a different way and are not covered by these formulas.
A Common Mistake
A frequent error is to apply a scale factor to the shift as well as to the original average. For example, if \(f_{\mathrm{avg}}=4\) and \(g(x)=2f(x)+3\), an incorrect calculation is
This calculation treats the function as \(2(f(x)+3)\), which would be \(2f(x)+6\), not \(2f(x)+3\). The actual transformation scales \(f\) first and adds \(3\) afterward. Thus
The order and grouping in the expression matter. For \(cf+d\), multiply the original average by \(c\), then add \(d\).
Summary
For an integrable function on an interval \([a,b]\) with \(a<b\), the average is its integral divided by the interval length. On that same interval, adding a constant adds it to the average; multiplying by a constant multiplies the average by that constant. In combined form, if \(g(x)=cf(x)+d\), then \(g_{\mathrm{avg}}=c f_{\mathrm{avg}}+d\). These statements follow directly from linearity of the definite integral.
Check Your Understanding
Use the shift and scaling rules, and state the interval whenever an average is involved.
- If \(f_{\mathrm{avg}}=6\) and \(g(x)=f(x)-4\), what is \(g_{\mathrm{avg}}\)?
- If \(f_{\mathrm{avg}}=-3\) and \(h(x)=5f(x)\), what is \(h_{\mathrm{avg}}\)?
- If \(f_{\mathrm{avg}}=2\) and \(q(x)=-3f(x)+1\), what is \(q_{\mathrm{avg}}\)?
- What condition on the interval ensures the average-value formula has a nonzero denominator?
- In one sentence, explain why adding \(d\) to every function value adds \(d\) to the average.