TITLE: How to integrate $\int{e^{\tan^2{x}}\sin(4x)}dx$
QUESTION [5 upvotes]: The question says it all. How do I even go about integrating this integral. I'll appreciate some help. Thanks in advance.
$$\int{e^{\tan^2{x}}\sin(4x)}dx$$

REPLY [5 votes]: Here's another method. First of all, multiply the numerator and denominator by the derivative of $\tan^2{x}$ which comes out something like this $$\int{\frac{\sin{4x}\cdot e^{\tan^2{x}}\cdot 2\tan{x}\sec^2{x}}{2\tan{x}\sec^2{x}}dx}$$
Then, simplifying the $\sin{4x}$ in the numerator and $2\tan{x}\sec^2{x}$ in the denominator using trigonometric identities, we get something like this $$\int{2\cos^4{x}\cdot (2\cos^2{x}-1)\cot e^{\tan^2{x}}\cdot 2\tan{x}\sec^2{x}}dx$$
Then, substituting $t$ for $\tan^2{x}$ and therefore $\frac{1}{1+t}$ for $\cos^2{x}$, you get $$-2\int{\frac{e^t}{(1+t)^2}-\frac{2e^t}{(1+t)^3}}dt$$
which is easily evaluated and comes out to be $$\frac{-2e^t}{(1+t)^2}+C$$
Substituting back $\tan^2{x}$ and $\cos^2{x}$, we get $$-2\cos^4{x}\cdot e^{\tan^2{x}}+C$$