the average of a set of data is typically defined as the sum of the values divided by the number of data points. but what if you have infinitely many data points? what is the average value of a function? read on to find out!
average value of functions
suppose f is a continuous function defined over an interval [a, b]. in particular f(x) exists at every one of the infinitely-many points x between and including a and b. so, if you’re looking for the average value of f on that interval, it won’t do any good to try adding up those infinitely-many data points.
instead, the way to tame the infinity is to use calculus. specifically, we define the average value of a function f as the following definite integral.
the theory behind the formula
but where does the integral formula for average come from?
the key is sampling. if you included enough of the function values, say a thousand, a million, or even more, then that should approximate the average of all infinitely-many points!
let’s illustrate with the following example.
estimate the average value of the function f(x) = √(x) + 1 over the interval [1, 3].
since we’re just estimating, let’s pick four sample points. (the more sample points you pick, the better your estimated average will be.)
divide the interval [1, 3] into four equal subintervals, and let’s agree to choose the midpoint of each subinterval. then plug those midpoints into f to find the sample values.
midpoints | height: f(x) = √(x) + 1 |
---|---|
1.25 | √(1.25) + 1 = 2.12 |
1.75 | √(1.75) + 1 = 2.32 |
2.25 | √(2.25) + 1 = 2.50 |
2.75 | √(2.75) + 1 = 2.66 |
finally, use the familiar old averaging formula. add up the data and divide by the number of data points:
(2.12 + 2.32 + 2.50 + 2.66)/4 = 2.4
so the (approximate) average of the function is 2.4.
taking it to the limit
however, what we’ve just done will not give us an exact answer because we’ve essentially ignored most of the function! what about f(1.3) or f(2.95234)? no matter how many sample points we include, there will always be some missing… unless we can use the magic of calculus to catch them all.
the sampling process should remind you of a riemann sum. for a quick reminder, feel free to check out ap calculus review: riemann sums.
let n be any whole number and xk* stand for the various sample x-values. then the estimated average is the sum:
next, allow n → ∞ using a limit. we also need to get Δx into the act somehow. the trick is to multiply and divide by (b – a). remember, Δx = (b – a)/n.
examples
ok, now that you’ve seen the theory, let’s use the formula in practice!
problem 1
find the exact average value of f(x) = √(x) + 1 over the interval [1, 3].
solution
above, we only estimated the average to be 2.4. now we’ll use the integral formula to determine the average value precisely.
(it’s interesting to compare our estimate with the exact value above. √(3) + 2/3 ≈ 2.39871747, which means that our estimate of 2.4 was actually pretty good!)
problem 2
the amount of energy associated with a certain chemical reaction is given by e = x ln x, where 1 ≤ x ≤ e, and x represents the amount of one of the reactants. find the average energy of the reaction over the range of possible levels of reactant.
solution
this problem seems more like chemistry than math!
however, the keyword average tells us that mathematics plays a major role in this problem. in fact, they are simply asking for the average value of f(x) = x ln x, over the interval [1, e].
first set up the integral formula with a = 1 and b = e. then work out the integration, which involves integration by parts in this case.
thus the average energy of the reaction is (e2 + 1)/[ 4(e – 1) ], or roughly 1.22.
mean value theorem for integrals
averages are also called means. so you may use the same formula to find the mean value of a function.
there is also an important result in calculus that relates the mean value to a particular function value on the given interval.
the mean value theorem for integrals (mvti). if f is continuous on a closed interval [a, b], then there is at least one point x = c in that interval such that the mean value of the function is equal to f(c). that is,
(caution: there is also a mean value theorem for derivatives. it’s important not to confuse the two.)
problem 3
let f(x) = 6x2 – 8x + 1. determine the value of c at which the mean value of f on [-1, 1] is the same as f(c).
solution
according to the mean value theorem for integrals, there must be at least one such value c. let’s set up the formula and find it!
at this point, we will need to solve a quadratic equation. don’t forget your quadratic formula!
6c2 – 8c – 2 = 0
c = (2 ± √(7))/3
it seems as though there may be two answers. however, only one lies within the given interval [-1, 1].
c = (2 + √(7))/3 ≈ 1.549, not in the interval.
c = (2 – √(7))/3 ≈ -0.215, in the interval.
therefore, the only value that satisfies the mvti is c = (2 – √(7))/3.
summary
although average value and the mean value theorem for integrals are specialized topics and only show up in a few problems on any given ap calculus test, they are important concepts to master. for one thing, they illustrate how integral calculus can be used in applications.
moreover, working out the average value of a function is no more difficult than computing a definite integral. so now when you see these kinds of problems on the ap calculus exam, you can rise to the challenge!
leave a reply