Question
Question: How do you find the average value of the function for \(f\left( x \right)={{e}^{x}}-2x,0\le x\le 2?\...
How do you find the average value of the function for f(x)=ex−2x,0≤x≤2?
Solution
The average value is the mean value. The average value of a function f defined in the interval[a,b] is given by the formula f(x)=b−a1a∫bf(x)dx. We will compare the given values with the formula.
Complete step by step answer:
Let us consider the given function defined as f(x)=ex−2x.
This function is defined for all values of x in the interval [0,2].
We are asked to find the average value of the given function.
We know that the average value of a function f(x) over the interval [a,b] is given by the formula f(x)=b−a1a∫bf(x)dx.
We are going to compare the values to find the average value of the given function over the given interval.
We will get a=0 and b=2, the interval is [0,2].
Also, we know that f(x)=ex−2x.
Therefore, the average value of the given function is obtained by substituting these values in the formula for finding the average value of a function.
So, after applying the values, we will get f(x)=b−a1a∫bf(x)dx=2−010∫2(ex−2x)dx.
We will get the following f(x)=b−a1a∫bf(x)dx=210∫2(ex−2x)dx=210∫2exdx+210∫22xdx.
We know that ∫ex=ex.
Therefore, the first integral will become 0∫2exdx=[ex]02=e2−e0=e2−1.
When we use the linearity property, the second integral will become 0∫22xdx=20∫2xdx=2[2x2]02=2(222−20)=2(24−0)=2×24=4.
Now, we will apply these two values in the obtained equation instead of the terms with the symbol of integration.
We will get f(x)=210∫2exdx+210∫22xdx=21(e2−1)+21×4.
We will get f(x)=21e2−1×21+21×4=21e2−21+2=21e2+23.
We know that e2=7.3891.
Therefore, we will get 21e2−23=21(e2−3)=21(7.3891−3)=21×4.3891.
Hence the average value of the function is 2.1945.
Note: By linearity property of the integration, we will get a∫b(px+qy)dx=pa∫bxdx+qa∫bydx. Also, we have ka∫b(x+y)dx=ka∫bxdx+ka∫bydx. We know that e=2.71828.