shaun ault

ap calculus review: average value of functions

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!

graph of a wavy function - finding the average value
defining the average value of a continuous function is not as easy as finding the average of a finite set of data.

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.

average value formula

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.

illustration of midpoint rule
midpoint riemann sum. in the limit as the number of sample points goes to ∞, the riemann sum becomes a definite integral.

let n be any whole number and xk* stand for the various sample x-values. then the estimated average is the sum:

estimated average value

next, allow n → ∞ using a limit. we also need to get Δx into the act somehow. the trick is to multiply and divide by (ba). remember, Δx = (ba)/n.

derivation of the f_ave formula

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.

average value example 1

(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 ≤ xe, 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!

chemical reaction
chemistry can be fun too! but what does this have to do with calculus??

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.

average value example 2, with solution

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,

the mean value theorem for integrals

(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!

mvti example, part a

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!

author

  • shaun ault

    shaun earned his ph. d. in mathematics from the ohio state university in 2008 (go bucks!!). he received his ba in mathematics with a minor in computer science from oberlin college in 2002. in addition, shaun earned a b. mus. from the oberlin conservatory in the same year, with a major in music composition. shaun still loves music — almost as much as math! — and he (thinks he) can play piano, guitar, and bass. shaun has taught and tutored students in mathematics for about a decade, and hopes his experience can help you to succeed!

more from magoosh