How do you find the average value of the function for #f(x)=e^x-2x, 0<=x<=2#?

2 Answers
Mar 16, 2018

The average value #=1.19#

Explanation:

The average value of a function #f(x)# over the interval #x in [a,b]# is

#bar x=1/(b-a)int_a^bf(x)dx#

Here,

#f(x)=e^x-2x#

and

#[a,b] =[0,2]#

Therefore,

The average value is

#barx=1/(2-0)int_0^2(e^x-2x)dx#

#=1/2[e^x-x^2]_0^2#

#=1/2(e^2-4-1)#

#=1/2*2.389#

#=1.19#

Mar 16, 2018

#color(blue)(1/2e^2-5/2~~1.1946)#

Explanation:

The average value of a function in an interval #[a,b]# is found using:

#1/(b-a)int_(a)^(b)f(x)#

For interval:

#[0,2]#

#1/(2)int_(0)^(2)(e^x-2x)dx=1/2[e^x-x^2]_(0)^(2)#

#= 1/2{[e^x-x^2]^(2)-[e^x-x^2]_(0)}#

Plugging in upper and lower bounds:

#= 1/2{[e^(2)-(2)^2]^(2)-[e^(0)-(0)^2]_(0)}#

#= 1/2{[e^(2)-4]-[1]}=color(blue)(1/2e^2-5/2~~1.1946)#

enter image source here

If you look at the diagram, you will see that the average value we calculated is the line marked. The rectangle formed by this line the x axis and the bounds of the interval #[0,2]#, has the same area as the area under the function in this interval, the shaded region in the diagram.

We can show this is true by calculating the area under the curve in the interval and then comparing this to the area of the rectangle.

Area under curve:

#A=int_(0)^(2)(e^x-2x)dx=[e^x-x^2]_(0)^(2)#

This area is the area we found above before multiply it by #1/2#

i.e.

#e^2-5#

#A=int_(0)^(2)(e^x-2x)dx=[e^x-x^2]_(0)^(2)=e^2-5~~2.3891#

Area of rectangle:

#(2)*(1/2e^2-5/2)=e^2-5~~2.3891#

So this is true.