How do I evaluate the following integral, the answer according to Wolfram Alpha is 2, but I keep on getting 0 after using integration by parts.12∫∞−∞x2e−|x| dx
Answer
12∫∞−∞x2e−|x|dx=12∫0−∞x2exdx+12∫∞0x2e−xdx=∫∞0x2e−xdx=[x2(−e−x)]∞0+2∫∞0xe−xdx=0+2[x(−e−x)]∞0+2∫∞0e−xdx=0+0+2[(−e−x)]∞0=2
No comments:
Post a Comment