MethodMath
Ask
Join
HomeTopicsAskAlerts
Profile

© 2026 MethodMath. Built for mathematical knowledge sharing.

AboutContactGuidelinesPrivacyTermsCookies
Isabella Moreno
Apr 28, 2026

How to integrate ∫ e^x sin(x) dx using integration by parts?

I am studying AP Calculus BC and I keep going in circles when trying to evaluate this integral:

∫exsin⁡(x) dx\int e^x \sin(x) \, dx∫exsin(x)dx

I tried using integration by parts with u=exu = e^xu=ex and dv=sin⁡(x) dxdv = \sin(x)\,dxdv=sin(x)dx, which gave me:

∫exsin⁡(x) dx=−excos⁡(x)+∫excos⁡(x) dx\int e^x \sin(x)\,dx = -e^x\cos(x) + \int e^x\cos(x)\,dx∫exsin(x)dx=−excos(x)+∫excos(x)dx

Then I applied integration by parts again on ∫excos⁡(x) dx\int e^x\cos(x)\,dx∫excos(x)dx and ended up back where I started. Could someone explain the standard technique for solving this type of cyclic integral?

1 answers345 views

1 Answer

4
Amara Okafor
Apr 29, 2026
Accepted
This is a classic example of a **cyclic integration by parts** problem. The trick is to treat the integral as an unknown variable and solve algebraically. Let $I = \displaystyle\int e^x \sin(x) \, dx$. Apply integration by parts with: \begin{align*} u &= \sin(x), & dv &= e^x \, dx \\ du &= \cos(x) \, dx, & v &= e^x \end{align*} Then: $$I = e^x \sin(x) - \int e^x \cos(x) \, dx$$ Now apply integration by parts again on $J = \displaystyle\int e^x \cos(x) \, dx$: \begin{align*} u &= \cos(x), & dv &= e^x \, dx \\ du &= -\sin(x) \, dx, & v &= e^x \end{align*} So: $$J = e^x \cos(x) - \int e^x (-\sin(x)) \, dx = e^x \cos(x) + I$$ Substituting back: $$I = e^x \sin(x) - \left(e^x \cos(x) + I\right)$$ $$I = e^x \sin(x) - e^x \cos(x) - I$$ $$2I = e^x (\sin(x) - \cos(x))$$ Therefore: $$\boxed{\int e^x \sin(x) \, dx = \frac{e^x}{2}(\sin(x) - \cos(x)) + C}$$
2 comments
Amara OkaforApr 29, 2026

Brilliant proof! Should we also explicitly state that the cycle closes because the exponential function appears in both terms?

Chloe Villeneuve
Chloe VilleneuveMay 8, 2026
Thank you! The algebraic trick of treating $I$ as a variable is so elegant.
Still unsure? Join to comment or ask a follow-up.
Login or Register to post your answer

Suggested questions

Why does 0 factorial equal 1 instead of 0? Simple proof

31.4k

Does 1+2+3+4+... really equal -1/12? Math explained

25.6k

How many squares are actually in an 8 by 8 chessboard?

22.2k

Does the Banach-Steinhaus theorem hold for non-complete normed spaces?

31.1k

Do I need Calculus 3 before learning Fourier series?

3500