Optimal. Leaf size=63 \[ \frac{1}{2} i \text{PolyLog}(2,-i x)-\frac{1}{2} i \text{PolyLog}(2,i x)-\frac{1}{12 x^3}-\frac{\tan ^{-1}(x)}{x^2}-\frac{\tan ^{-1}(x)}{4 x^4}-\frac{3}{4 x}-\frac{3}{4} \tan ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0836894, antiderivative size = 63, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 6, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.462, Rules used = {4948, 4852, 325, 203, 4848, 2391} \[ \frac{1}{2} i \text{PolyLog}(2,-i x)-\frac{1}{2} i \text{PolyLog}(2,i x)-\frac{1}{12 x^3}-\frac{\tan ^{-1}(x)}{x^2}-\frac{\tan ^{-1}(x)}{4 x^4}-\frac{3}{4 x}-\frac{3}{4} \tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4948
Rule 4852
Rule 325
Rule 203
Rule 4848
Rule 2391
Rubi steps
\begin{align*} \int \frac{\left (1+x^2\right )^2 \tan ^{-1}(x)}{x^5} \, dx &=\int \left (\frac{\tan ^{-1}(x)}{x^5}+\frac{2 \tan ^{-1}(x)}{x^3}+\frac{\tan ^{-1}(x)}{x}\right ) \, dx\\ &=2 \int \frac{\tan ^{-1}(x)}{x^3} \, dx+\int \frac{\tan ^{-1}(x)}{x^5} \, dx+\int \frac{\tan ^{-1}(x)}{x} \, dx\\ &=-\frac{\tan ^{-1}(x)}{4 x^4}-\frac{\tan ^{-1}(x)}{x^2}+\frac{1}{2} i \int \frac{\log (1-i x)}{x} \, dx-\frac{1}{2} i \int \frac{\log (1+i x)}{x} \, dx+\frac{1}{4} \int \frac{1}{x^4 \left (1+x^2\right )} \, dx+\int \frac{1}{x^2 \left (1+x^2\right )} \, dx\\ &=-\frac{1}{12 x^3}-\frac{1}{x}-\frac{\tan ^{-1}(x)}{4 x^4}-\frac{\tan ^{-1}(x)}{x^2}+\frac{1}{2} i \text{Li}_2(-i x)-\frac{1}{2} i \text{Li}_2(i x)-\frac{1}{4} \int \frac{1}{x^2 \left (1+x^2\right )} \, dx-\int \frac{1}{1+x^2} \, dx\\ &=-\frac{1}{12 x^3}-\frac{3}{4 x}-\tan ^{-1}(x)-\frac{\tan ^{-1}(x)}{4 x^4}-\frac{\tan ^{-1}(x)}{x^2}+\frac{1}{2} i \text{Li}_2(-i x)-\frac{1}{2} i \text{Li}_2(i x)+\frac{1}{4} \int \frac{1}{1+x^2} \, dx\\ &=-\frac{1}{12 x^3}-\frac{3}{4 x}-\frac{3}{4} \tan ^{-1}(x)-\frac{\tan ^{-1}(x)}{4 x^4}-\frac{\tan ^{-1}(x)}{x^2}+\frac{1}{2} i \text{Li}_2(-i x)-\frac{1}{2} i \text{Li}_2(i x)\\ \end{align*}
Mathematica [C] time = 0.0070159, size = 81, normalized size = 1.29 \[ \frac{1}{2} i \text{PolyLog}(2,-i x)-\frac{1}{2} i \text{PolyLog}(2,i x)-\frac{\, _2F_1\left (-\frac{3}{2},1;-\frac{1}{2};-x^2\right )}{12 x^3}-\frac{\, _2F_1\left (-\frac{1}{2},1;\frac{1}{2};-x^2\right )}{x}-\frac{\tan ^{-1}(x)}{x^2}-\frac{\tan ^{-1}(x)}{4 x^4} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.019, size = 79, normalized size = 1.3 \begin{align*} \arctan \left ( x \right ) \ln \left ( x \right ) -{\frac{\arctan \left ( x \right ) }{4\,{x}^{4}}}-{\frac{\arctan \left ( x \right ) }{{x}^{2}}}+{\frac{i}{2}}\ln \left ( x \right ) \ln \left ( 1+ix \right ) -{\frac{i}{2}}\ln \left ( x \right ) \ln \left ( 1-ix \right ) +{\frac{i}{2}}{\it dilog} \left ( 1+ix \right ) -{\frac{i}{2}}{\it dilog} \left ( 1-ix \right ) -{\frac{3\,\arctan \left ( x \right ) }{4}}-{\frac{1}{12\,{x}^{3}}}-{\frac{3}{4\,x}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.57451, size = 96, normalized size = 1.52 \begin{align*} -\frac{3 \, \pi x^{4} \log \left (x^{2} + 1\right ) - 12 \, x^{4} \arctan \left (x\right ) \log \left (x\right ) + 6 i \, x^{4}{\rm Li}_2\left (i \, x + 1\right ) - 6 i \, x^{4}{\rm Li}_2\left (-i \, x + 1\right ) + 9 \, x^{3} + 3 \,{\left (3 \, x^{4} + 4 \, x^{2} + 1\right )} \arctan \left (x\right ) + x}{12 \, x^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (x^{4} + 2 \, x^{2} + 1\right )} \arctan \left (x\right )}{x^{5}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (x^{2} + 1\right )^{2} \operatorname{atan}{\left (x \right )}}{x^{5}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (x^{2} + 1\right )}^{2} \arctan \left (x\right )}{x^{5}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]