Skip to content
Worked Examples · Example 21

Q.Find ∫exsin⁡x dx\int e^x \sin x\, dx

Yanam CbseNCERTSubjective· 3mImportance★★★★★
41% · 154/373 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

The integral ∫exsin⁡x dx\int e^x \sin x \, dx is a classic "cyclic" integration by parts problem. Using integration by parts twice returns the original integral, allowing us to solve for it algebraically. The final result is ex2(sin⁡x−cos⁡x)+C\frac{e^x}{2}(\sin x - \cos x) + C.

Why This Approach Works

When you see a product of two different kinds of functions — here, an exponential exe^x and a trigonometric sin⁡x\sin x — integration by parts is the natural tool. The formula is:

∫u dv=uv−∫v du\int u \, dv = uv - \int v \, du

The trick is that neither exe^x nor sin⁡x\sin x simplifies when differentiated or integrated — they just cycle between each other. Differentiating sin⁡x\sin x gives cos⁡x\cos x, and integrating exe^x gives exe^x again. If we apply integration by parts twice, we'll end up back at ∫exsin⁡x dx\int e^x \sin x \, dx, which we can then solve for like an algebraic equation.

Step-by-Step Solution

1. First integration by parts

Let u=sin⁡xu = \sin x and dv=ex dxdv = e^x \, dx. Then du=cos⁡x dxdu = \cos x \, dx and v=exv = e^x.

Applying the formula:

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

We now have a new integral ∫excos⁡x dx\int e^x \cos x \, dx to handle.

2. Second integration by parts

For ∫excos⁡x dx\int e^x \cos x \, dx, let u=cos⁡xu = \cos x and dv=ex dxdv = e^x \, dx. Then du=−sin⁡x dxdu = -\sin x \, dx and v=exv = e^x.

So:

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

3. Substitute back

Plug this result into the expression from step 1:

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

Simplify:

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

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.