Question 10 Find the average value of the function f(x)=xe−xf(x)=x\,e^{-x} on the interval [0,2][0,2]. Show solutionHide solution+Question 10 - Solution The average value of a function on [a,b][a,b] is favg=1b−a∫abf(x)dx.f_{\text{avg}}=\frac{1}{b-a}\int_a^b f(x)\,dx. Here, favg=12∫02xe−xdx.f_{\text{avg}}=\frac{1}{2}\int_{0}^{2} x e^{-x}\,dx. Evaluate the integral using integration by parts. Let u=x,dv=e−xdx.u=x, \qquad dv=e^{-x}\,dx. Then du=dx,v=−e−x.du=dx, \qquad v=-e^{-x}. Apply integration by parts: ∫xe−xdx=−xe−x+∫e−xdx=−xe−x−e−x.\int x e^{-x}\,dx = -xe^{-x}+\int e^{-x}\,dx = -xe^{-x}-e^{-x}. Thus, ∫xe−xdx=−(x+1)e−x.\int x e^{-x}\,dx = -(x+1)e^{-x}. Evaluate from 00 to 22: [−(x+1)e−x]02=−3e−2−(−1)=1−3e−2.\left[-(x+1)e^{-x}\right]_{0}^{2} = -3e^{-2}-(-1) = 1-3e^{-2}. Now compute the average value: favg=12(1−3e−2).f_{\text{avg}}=\frac{1}{2}\left(1-3e^{-2}\right). 12(1−3e−2)\boxed{\frac{1}{2}\left(1-3e^{-2}\right)}