6.5: Average Value of a Function
- Page ID
- 4481
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)The average of some finite set of values is a familiar concept. If, for example, the class scores on a quiz are 10, 9, 10, 8, 7, 5, 7, 6, 3, 2, 7, 8, then the average score is the sum of these numbers divided by the size of the class: $$ \hbox{average score} = {10+ 9+ 10+ 8+ 7+ 5+ 7+ 6+ 3+ 2+ 7+ 8\over 12}={82\over 12}\approx 6.83. $$ Suppose that between \(t=0\) and \(t=1\) the speed of an object is \(\sin(\pi t)\). What is the average speed of the object over that time? The question sounds as if it must make sense, yet we can't merely add up some number of speeds and divide, since the speed is changing continuously over the time interval.
To make sense of "average'' in this context, we fall back on the idea of approximation. Consider the speed of the object at tenth of a second intervals: \(\sin 0\), \(\sin(0.1\pi)\), \(\sin(0.2\pi)\), \(\sin(0.3\pi)\),…, \(\sin(0.9\pi)\). The average speed "should'' be fairly close to the average of these ten speeds: $$ {1\over 10}\sum_{i=0}^9 \sin(\pi i/10)\approx {1\over 10}6.3=0.63. $$ Of course, if we compute more speeds at more times, the average of these speeds should be closer to the "real'' average. If we take the average of \(n\) speeds at evenly spaced times, we get: $${1\over n}\sum_{i=0}^{n-1} \sin(\pi i/n).$$ Here the individual times are \(t_i=i/n\), so rewriting slightly we have $${1\over n}\sum_{i=0}^{n-1} \sin(\pi t_i).$$ This is almost the sort of sum that we know turns into an integral; what's apparently missing is \(\Delta t\)---but in fact, \(\Delta t=1/n\), the length of each subinterval. So rewriting again: $$ \sum_{i=0}^{n-1} \sin(\pi t_i){1\over n}= \sum_{i=0}^{n-1} \sin(\pi t_i)\Delta t. $$ Now this has exactly the right form, so that in the limit we get $$ \hbox{average speed} = \int_0^1 \sin(\pi t)\,dt= \left.-{\cos(\pi t)\over\pi}\right|_0^1= -{\cos(\pi)\over \pi}+{\cos(0)\over\pi}={2\over\pi}\approx 0.6366\approx 0.64. \]
It's not entirely obvious from this one simple example how to compute such an average in general. Let's look at a somewhat more complicated case. Suppose that the velocity of an object is \(16 t^2+5\) feet per second. What is the average velocity between \(t=1\) and \(t=3\)? Again we set up an approximation to the average: $${1\over n}\sum_{i=0}^{n-1} 16t_i^2+5,$$ where the values \(t_i\) are evenly spaced times between 1 and 3. Once again we are "missing'' \(\Delta t\), and this time \(1/n\) is not the correct value. What is \(\Delta t\) in general? It is the length of a subinterval; in this case we take the interval \([1,3]\) and divide it into \(n\) subintervals, so each has length \((3-1)/n=2/n=\Delta t\). Now with the usual "multiply and divide by the same thing'' trick we can rewrite the sum: $$ {1\over n}\sum_{i=0}^{n-1} 16t_i^2+5= {1\over 3-1}\sum_{i=0}^{n-1} (16t_i^2+5){3-1\over n}= {1\over 2}\sum_{i=0}^{n-1} (16t_i^2+5){2\over n}= {1\over 2}\sum_{i=0}^{n-1} (16t_i^2+5)\Delta t. $$ In the limit this becomes $${1\over 2}\int_1^3 16t^2+5\,dt={1\over 2}{446\over 3}={223\over 3}.$$ Does this seem reasonable? Let's picture it: in figure 9.4.1 is the velocity function together with the horizontal line \(y=223/3\approx 74.3\). Certainly the height of the horizontal line looks at least plausible for the average height of the curve.
Figure 9.4.1. Average velocity.
Here's another way to interpret "average'' that may make our computation appear even more reasonable. The object of our example goes a certain distance between \(t=1\) and \(t=3\). If instead the object were to travel at the average speed over the same time, it should go the same distance. At an average speed of \(223/3\) feet per second for two seconds the object would go \(446/3\) feet. How far does it actually go? We know how to compute this: $$\int_1^3 v(t)\,dt = \int_1^3 16t^2+5\,dt={446\over 3}.$$ So now we see that another interpretation of the calculation $${1\over 2}\int_1^3 16t^2+5\,dt={1\over 2}{446\over 3}={223\over 3}$$ is: total distance traveled divided by the time in transit, namely, the usual interpretation of average speed.
In the case of speed, or more properly velocity, we can always interpret "average'' as total (net) distance divided by time. But in the case of a different sort of quantity this interpretation does not obviously apply, while the approximation approach always does. We might interpret the same problem geometrically: what is the average height of \(16x^2+5\) on the interval \([1,3]\)? We approximate this in exactly the same way, by adding up many sample heights and dividing by the number of samples. In the limit we get the same result: $$ \lim_{n\to\infty}{1\over n}\sum_{i=0}^{n-1} 16x_i^2+5= {1\over 2}\int_1^3 16x^2+5\,dx={1\over 2}{446\over 3}={223\over 3}. $$ We can interpret this result in a slightly different way. The area under \(y=16x^2+5\) above \([1,3]\) is $$\int_1^3 16t^2+5\,dt={446\over 3}.$$ The area under \(y=223/3\) over the same interval \([1,3]\) is simply the area of a rectangle that is 2 by \(223/3\) with area \(446/3\). So the average height of a function is the height of the horizontal line that produces the same area over the given interval.
Contributors and Attributions
Integrated by Justin Marshall.