How can I evaluate the following integral? $$\int(\sqrt{x}-x)(e^{\arctan\sqrt{x}})^2dx$$
I'd like the whole solution if possible. I tried using the substitution: $\sqrt{x}=t$, followed by: $2\arctan{t}=m$, to get: $$\int e^m\tan^2{\frac{m}{2}}\sec^2{\frac{m}{2}}\left[1-\tan{\frac{m}{2}}\right]dm$$ But it doesn't get me anywhere.
A complete solution will be sincerely appreciated.
Assume the integral can be written in the form $g(x) = f(x) e^{2\arctan \sqrt{x}}$ for some unknown function $f(x).$ Then $$ g'(x) = \left(f' + \frac{f}{\sqrt{x}(1+x)}\right)e^{2\arctan \sqrt{x}} $$ must be the integrand, meaning $$ f' + \frac{f}{\sqrt{x}(1+x)} = \sqrt{x}-x $$ or $$ \sqrt{x}(1+x)f' + f = x - x^{3/2} + x^2 - x^{5/2}. $$
Now find a particular solution of this ODE for $f$ via the method of undetermined coefficients with $f(x)=a_0 + a_1\sqrt{x} + a_2 x + a_3 x^{3/2} + a_4x^2.$ This results in six linear equations in the five unknown $a_i.$ The six equations are consistent though, with $a_4=-1/2,$ $a_3=1,$ $a_2=-1,$ $a_1=1,$ and $a_0=-1/2.$