I'm self-studying and was doing the following integral:
$$I = \int \frac{e^{\frac{1}{x}+\tan^{-1}x}}{x^2+x^4} dx $$
I solved it fine by letting $ u = \frac{1}{x} + \tan^{-1}x$.
My question is about an alternative method I saw in which it seems the product rule was not applied:
$$ I = \int \left(\frac { e^{\frac{1}{x}}} {x^2}\right) \left( \frac{e^{\tan^{-1}x}}{x^2+1}\right) dx $$
$$ = \int \frac {e^{\frac{1}{x}}}{x^2} dx \cdot \int \frac{e^{\tan^{-1}x}}{x^2+1}dx$$
Completing the work following this step leads to the same solution as I originally found.
It is this step that has confused me. I have checked using Wolfram and the two statements are equivalent but I do not understand why.
Why are we able to write the integral of products as the product of integrals here, and not apply the product rule?
Thanks in advance.