Integrate $e^x \sin x $. I know I need to integrate by parts 2 times, but I'm stuck at the second integration. For the first I get
$$-e^x \cos x - \int e^x\cdot (-\cos x) \,dx $$
Correct me if I'm wrong.
Integrate $e^x \sin x $. I know I need to integrate by parts 2 times, but I'm stuck at the second integration. For the first I get
$$-e^x \cos x - \int e^x\cdot (-\cos x) \,dx $$
Correct me if I'm wrong.
Start with: $\int e^{x}\sin(x)dx=e^{x}(A\sin(x)+B\cos(x))$
You started with $u=e^x, dv=\sin x dx$. The usual mistake is to take $u=\cos x, dv=e^xdx$ the second time. That leads to a circle and your integral cancels out. You need to take $u=e^x, v=\cos x dx$ the second time. Now things don't cancel, you get twice the original integral.