Integration by Parts Math Example 2

Follow the full solution, then compare it with the other examples linked below.

Example 2

hard
Find โˆซexsinโกxโ€‰dx\displaystyle\int e^x \sin x\,dx.

Solution

  1. 1
    Let u=sinโกxu = \sin x, dv=exโ€‰dxdv = e^x\,dx; du=cosโกxโ€‰dxdu = \cos x\,dx, v=exv = e^x.
  2. 2
    I=exsinโกxโˆ’โˆซexcosโกxโ€‰dxI = e^x\sin x - \int e^x\cos x\,dx.
  3. 3
    IBP again on โˆซexcosโกxโ€‰dx\int e^x\cos x\,dx: u=cosโกxu=\cos x, dv=exโ€‰dxdv=e^x\,dx; gives excosโกx+โˆซexsinโกxโ€‰dxe^x\cos x + \int e^x\sin x\,dx.
  4. 4
    So I=exsinโกxโˆ’excosโกxโˆ’II = e^x\sin x - e^x\cos x - I. Solve: 2I=ex(sinโกxโˆ’cosโกx)2I = e^x(\sin x - \cos x).
  5. 5
    I=ex(sinโกxโˆ’cosโกx)2+CI = \frac{e^x(\sin x - \cos x)}{2} + C.

Answer

ex(sinโกxโˆ’cosโกx)2+C\frac{e^x(\sin x - \cos x)}{2} + C
Applying IBP twice cycles back to the original integral. Treat it as unknown II, set up the equation I=โ€ฆโˆ’II = \ldots - I, and solve algebraically.

About Integration by Parts

An integration technique based on the product rule: โˆซuโ€‰dv=uvโˆ’โˆซvโ€‰du\int u\,dv = uv - \int v\,du. Used when the integrand is a product of two functions.

Learn more about Integration by Parts โ†’

More Integration by Parts Examples