Docsity

Calculating Mean Value & Finding Average with Integrals, Lecture notes of Advanced Calculus

Toggle sidebar
bg1
5.5 Average Value of a Function
The average of a set of numbers y1, . . . , ynis
An=y1+· ·· +yn
n
The average value of a function f(x) on [a, b] cannot be computed by adding all the values of f(x)
because there are infinitely many of them. However, we can sample the values of f(x) at equally spaced
points x1, . . . , xnin the interval and form the average of the numbers y1=f(x1), . . . , yn=f(xn).
An=f(x1) + · ·· +f(xn)
n=1
b−a(f(x1) + · ·· +f(xn))b−a
n=1
b−a
n
X
i=1
f(xi)∆x
where ∆x= (b−a)/n. The more points we use, the better Anwill represent the true “average” of f(x).
This leads us to define the average favg of f(x) on [a, b] to be the limit of Anas n→ ∞. This limit can
be calculated as an integral.
favg = lim
n→∞ An= lim
n→∞
1
b−a
n
X
i=1
f(xi)∆x=1
b−aZb
a
f(x)dx
This formula gives us a universal way to interpret the integral of a function f(x) on [a, b]: it is the
average value of f(x) times the length of the interval. In particular, if f(x) is non-negative, then
area under f=Zb
a
f(x)dx
= (b−a)favg
= area of rectangle with height favg
and base (b−a)
favg
yf(x)
a b
If the curved upper boundary of the region under the graph of ffluidly settles into a horizontal line,
then the height of that line is favg.
Example: Find the average value of f(x) = x2on [0,2].
2
4/3
4
Solution: favg =1
2−0Z2
0
x2dx =1
2·1
3x3
2
0=4
3
Example: Find the average value of sin(x) on [0, π/2].
π/2
2/π
1
pf3

Partial preview of the text

Download Calculating Mean Value & Finding Average with Integrals and more Lecture notes Advanced Calculus in PDF only on Docsity!

5.5 Average Value of a Function

The average of a set of numbers y 1 ,... , yn is

An = y 1 + · · · + yn n

The average value of a function f (x) on [a, b] cannot be computed by adding all the values of f (x) because there are infinitely many of them. However, we can sample the values of f (x) at equally spaced points x 1 ,... , xn in the interval and form the average of the numbers y 1 = f (x 1 ),... , yn = f (xn).

An = f (x 1 ) + · · · + f (xn) n

b − a (f (x 1 ) + · · · + f (xn)) b − a n

b − a

∑^ n

i=

f (xi)∆x

where ∆x = (b − a)/n. The more points we use, the better An will represent the true “average” of f (x). This leads us to define the average favg of f (x) on [a, b] to be the limit of An as n → ∞. This limit can be calculated as an integral.

favg = lim n→∞ An = lim n→∞

b − a

∑^ n

i=

f (xi)∆x =

b − a

∫ (^) b

a

f (x) dx

This formula gives us a universal way to interpret the integral of a function f (x) on [a, b]: it is the average value of f (x) times the length of the interval. In particular, if f (x) is non-negative, then

area under f =

∫ (^) b

a

f (x) dx = (b − a)favg = area of rectangle with height favg and base (b − a)

favg

y  f(x)

a b If the curved upper boundary of the region under the graph of f fluidly settles into a horizontal line, then the height of that line is favg.

Example: Find the average value of f (x) = x^2 on [0, 2].

2

4 / 3

4

Solution: favg =

0

x^2 dx =

x^3

2 0

Example: Find the average value of sin(x) on [0, π/2].

π/ 2

2 /π

Solution: A =

π/ 2

∫ (^) π/ 2

0

sin(x) dx = −

π cos(x)

π/ 2 0

π

Example: Find the average value of f (x) =

(x + 1)^2

on [1, 4].

1 4

1 / 10

1 / 4

1 / 25

Solution: favg =

1

(x + 1)−^2 dx = −

(x + 1)−^1

4 1

Example: The temperature during the summer is

modeled by the function T (t) = 70 − 20 cos πt 12 , where t is hours after 6:00 am. Find the average tempera- ture from noon until midnight.

6:00 12:00 6:00 0:

50

70

90

Solution: Tavg =

6

70 − 20 cos

πt 12 dt =

70 t − 20 ·

π sin

πt 12

18 6

π

Example: The density of a rod is given by ρ(x) = x(3 − x) for 0 ≤ x ≤ 3. Find the average density of the rod.

3

3 / 2

Solution: ρavg =

0

3 x − x^2 dx =

x^2 −

x^3

3 0