2

So, I have the following indefinite integral:

$$\int sin(u)e^u \ du$$

I tried solving it using integration by parts, but it just kept repeating itself. What should I do?

Asker
  • 1,327
  • as i recall, it repeats but with the coefficients such that the original integral can be solved for. – Will Jagy Mar 03 '15 at 05:36
  • @mrf should I delete this question, or wait for a mod to decide? not sure what the etiquette is for duplicates – Asker Mar 03 '15 at 06:05
  • You can't delete it, since it has upvoted answers. Most likely the question will be closed as a duplicate eventually. You don't have to do anything. – mrf Mar 03 '15 at 06:39

4 Answers4

2

Let $I = \int \sin(u) e^u\, du$. By integration by parts,

$$I = \sin(u) e^u - \int \cos(u) e^u\, du = \sin(u)e^u - \cos(u)e^u + \int (-\sin u)e^u\, du$$ $$ =\sin(u)e^u - \cos(u)e^u - I. $$

Thus $$I = \frac{\sin(u)e^u - \cos(u)e^u}{2} + C.$$

kobe
  • 41,901
  • All the answers were very helpful, but this one happened to be the one that I understood most easily (just personal preference) – Asker Mar 03 '15 at 06:02
1

You can use integration by parts or use the identity

$$ \sin(u) = \frac{e^{iu}-e^{-iu}}{2i}. $$

science
  • 2,900
1

Here is a nice way to do it: by parts, $$\int e^u\sin u\,du=e^u\sin u-\int e^u\cos u\,du\ .$$ Consider also $$\int e^u\cos u\,du=e^u\cos u+\int e^u\sin u\,du\ .$$ Eliminating the cos integral, $$\int e^u\sin u\,du=e^u\sin u-e^u\cos u-\int e^u\sin u\,du$$ so $$2\int e^u\sin u\,du=e^u\sin u-e^u\cos u$$ and hence $$\int e^u\sin u\,du=\frac12(e^u\sin u-e^u\cos u)\ \ldots$$ . . . not forgetting plus $C$ of course ;-)

David
  • 82,662
1

You have the answer without knowing it, I think! You noted that it repeats itself (which it does). Let's see what happens. Let's let $x = \sin u$ and $dv = e^u\,du$, then $dx = \cos u \,du$ and $v = e^u$. Integration by parts gives us

$$\int\sin u e^u\,du = \sin u e^u - \int \cos u e^u\,du$$

Well we traded one integral for another. Let's try doing integration by parts again. We don't want to let $x = e^u$ (and subsequently $dv = \cos u\,du$) since this undoes our previous integration by parts. That leaves us with the case that $x = \cos u$ and $dv = e^u \,du$ to give that $dx = -\sin u\,du$ and $v = e^u$. Hence

$$\int\sin u e^u \,du = \sin u e^u - \left(\cos u e^u - \int (-\sin u) e^u \,du\right)$$

Simplifying, the right hand side becomes

$$\sin u e^u - \cos u e^u - \int \sin u e^u \,du.$$

Note that $\int \sin u e^u \,du$ appears on both sides of the equation.. Can you take it from here?