Integral of $$$e^{x} \sin{\left(3 x \right)}$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int e^{x} \sin{\left(3 x \right)}\, dx$$$.
Solution
For the integral $$$\int{e^{x} \sin{\left(3 x \right)} d x}$$$, use integration by parts $$$\int \operatorname{u} \operatorname{dv} = \operatorname{u}\operatorname{v} - \int \operatorname{v} \operatorname{du}$$$.
Let $$$\operatorname{u}=\sin{\left(3 x \right)}$$$ and $$$\operatorname{dv}=e^{x} dx$$$.
Then $$$\operatorname{du}=\left(\sin{\left(3 x \right)}\right)^{\prime }dx=3 \cos{\left(3 x \right)} dx$$$ (steps can be seen ») and $$$\operatorname{v}=\int{e^{x} d x}=e^{x}$$$ (steps can be seen »).
The integral can be rewritten as
$${\color{red}{\int{e^{x} \sin{\left(3 x \right)} d x}}}={\color{red}{\left(\sin{\left(3 x \right)} \cdot e^{x}-\int{e^{x} \cdot 3 \cos{\left(3 x \right)} d x}\right)}}={\color{red}{\left(e^{x} \sin{\left(3 x \right)} - \int{3 e^{x} \cos{\left(3 x \right)} d x}\right)}}$$
Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=3$$$ and $$$f{\left(x \right)} = e^{x} \cos{\left(3 x \right)}$$$:
$$e^{x} \sin{\left(3 x \right)} - {\color{red}{\int{3 e^{x} \cos{\left(3 x \right)} d x}}} = e^{x} \sin{\left(3 x \right)} - {\color{red}{\left(3 \int{e^{x} \cos{\left(3 x \right)} d x}\right)}}$$
For the integral $$$\int{e^{x} \cos{\left(3 x \right)} d x}$$$, use integration by parts $$$\int \operatorname{u} \operatorname{dv} = \operatorname{u}\operatorname{v} - \int \operatorname{v} \operatorname{du}$$$.
Let $$$\operatorname{u}=\cos{\left(3 x \right)}$$$ and $$$\operatorname{dv}=e^{x} dx$$$.
Then $$$\operatorname{du}=\left(\cos{\left(3 x \right)}\right)^{\prime }dx=- 3 \sin{\left(3 x \right)} dx$$$ (steps can be seen ») and $$$\operatorname{v}=\int{e^{x} d x}=e^{x}$$$ (steps can be seen »).
Therefore,
$$e^{x} \sin{\left(3 x \right)} - 3 {\color{red}{\int{e^{x} \cos{\left(3 x \right)} d x}}}=e^{x} \sin{\left(3 x \right)} - 3 {\color{red}{\left(\cos{\left(3 x \right)} \cdot e^{x}-\int{e^{x} \cdot \left(- 3 \sin{\left(3 x \right)}\right) d x}\right)}}=e^{x} \sin{\left(3 x \right)} - 3 {\color{red}{\left(e^{x} \cos{\left(3 x \right)} - \int{\left(- 3 e^{x} \sin{\left(3 x \right)}\right)d x}\right)}}$$
Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=-3$$$ and $$$f{\left(x \right)} = e^{x} \sin{\left(3 x \right)}$$$:
$$e^{x} \sin{\left(3 x \right)} - 3 e^{x} \cos{\left(3 x \right)} + 3 {\color{red}{\int{\left(- 3 e^{x} \sin{\left(3 x \right)}\right)d x}}} = e^{x} \sin{\left(3 x \right)} - 3 e^{x} \cos{\left(3 x \right)} + 3 {\color{red}{\left(- 3 \int{e^{x} \sin{\left(3 x \right)} d x}\right)}}$$
We've arrived to an integral that we already saw.
Thus, we've obtained the following simple equation with respect to the integral:
$$\int{e^{x} \sin{\left(3 x \right)} d x} = e^{x} \sin{\left(3 x \right)} - 3 e^{x} \cos{\left(3 x \right)} - 9 \int{e^{x} \sin{\left(3 x \right)} d x}$$
Solving it, we get that
$$\int{e^{x} \sin{\left(3 x \right)} d x} = \frac{\left(\sin{\left(3 x \right)} - 3 \cos{\left(3 x \right)}\right) e^{x}}{10}$$
Therefore,
$$\int{e^{x} \sin{\left(3 x \right)} d x} = \frac{\left(\sin{\left(3 x \right)} - 3 \cos{\left(3 x \right)}\right) e^{x}}{10}$$
Add the constant of integration:
$$\int{e^{x} \sin{\left(3 x \right)} d x} = \frac{\left(\sin{\left(3 x \right)} - 3 \cos{\left(3 x \right)}\right) e^{x}}{10}+C$$
Answer
$$$\int e^{x} \sin{\left(3 x \right)}\, dx = \frac{\left(\sin{\left(3 x \right)} - 3 \cos{\left(3 x \right)}\right) e^{x}}{10} + C$$$A