It turns out that it doesnβt matter which function we pick to be our
\(u\) and the problem is equally complicated. For demonstration purposes, letβs follow the LIPET test and pick
\(u\) to be the exponential function. I will encourage you to solve this problem again by picking the
\(u\) to be the trigonometric function. Then you can compare and contrast the work (they are mostly the same anyways).
Let \(u = e^x\text{.}\) Then we have
\begin{align*}
u \amp= e^x \amp\amp dv = \sin(x)\, dx \\
du \amp= e^x\, dx \amp\amp \;\; v= -\cos(x)
\end{align*}
Using the integration by parts formula, we obtain
\begin{align*}
\int e^x\sin(x)\, dx \amp= e^x\cdot -\cos(x) - \int -\cos(x)\cdot e^x\, dx \\
\amp= -e^x\cos(x) + \int e^x\cos(x)\, dx
\end{align*}
Hmm the resulting integral seems
equally complicated in the sense that we still have an exponential function and an trigonometric function in it (but the only difference is that the
\(\sin(x)\) became an
\(\cos(x)\)).
Letβs try using the integration by parts formula again to the resulting integral and see if it will lead us somewhere.
Let \(\widetilde{u} = e^x\text{.}\) Then we have
\begin{align*}
\widetilde{u} \amp= e^x \amp\amp d\widetilde{v} = \cos(x)\, dx \\
d\widetilde{u} \amp= e^x\, dx \amp\amp \;\; \widetilde{v}= \sin(x)
\end{align*}
Using the integration by parts formula, we obtain
\begin{align*}
\int e^x\cos(x)\, dx \amp= e^x\sin(x) - \int e^x\sin(x) \, dx
\end{align*}
Letβs put everything together, and we obtain the following
\begin{equation*}
\int e^x\sin(x)\, dx = -e^x\cos(x) + e^x\sin(x) - \int e^x\sin(x)\, dx
\end{equation*}
Well the resulting integral ended up being the same as the original integral. So we are in a loop using the integration by parts. Does it mean this problem is unsolvable and we just have to give up?
Of course not! Richard is coming to your rescue! Richard is feeling lazy and he doesnβt want to keep on writing (or in this case, tying) the integral all the time, so he will just call it \(I\text{.}\) That is, letβs define
\begin{equation*}
I = \int e^x\sin(x)\, dx
\end{equation*}
Then the last line of our work will become the following equation:
\begin{equation*}
I = -e^x\cos(x) + e^x\sin(x) - I
\end{equation*}
Remember the goal here is to figure out what \(I\) is. This seems like an equation that we can totally solve for \(I\text{.}\)
Adding \(I\) on both sides and then divide both sides of the equation by 2, we obtain
\begin{equation*}
I = \frac{1}{2}\left(-e^x\cos(x) + e^x\sin(x)\right)
\end{equation*}
This implies that
\begin{equation*}
\int e^x\sin(x)\, dx = \frac{1}{2}\left(-e^x\cos(x) + e^x\sin(x)\right) + C
\end{equation*}
Ha! We did it! We evaluated the integral!