In my opinion you gave no answer. An answer, in my opinion, should be in the form of \(\displaystyle \int_0^\pi e^xcos(x)dx = .... = ....=...= your \ answer.\)Hello all, I have been struggling with a problem in a test I have just taken.
I believe I have separated e^x and cosx correctly, but I am unsure of where to go from here.
I do not believe the answer I had given was correct, did I make a mistake somewhere?
I would set:
[MATH]I=\int_0^{\pi} e^x\cos(x)\,dx[/MATH]
Using your substitutions, we obtain:
[MATH]I=\left[e^x\cos(x)\right]_0^{\pi}+\int_0^{\pi}e^x\sin(x)\,dx[/MATH]
[MATH]I=-(e^{\pi}+1)+\int_0^{\pi}e^x\sin(x)\,dx[/MATH]
Now, try IBP again on the remaining integral:
[MATH]u=\sin(x)\implies du=\cos(x)\,dx[/MATH]
[MATH]dv=e^x\,dx\implies v=e^x[/MATH]
[MATH]I=-(e^{\pi}+1)+\left(\left[e^x\sin(x)\right]_0^{\pi}-\int_0^{\pi} e^x\cos(x)\,dx\right)[/MATH]
Can you proceed?
Thank you very much for your time in helping me solve this problem. The solution I came up with is this:
-(e^pi + 1)/2