Optimal. Leaf size=50 \[ \frac{1}{12 x^{3/2}}-\frac{\pi }{8 x^2}+\frac{\tan ^{-1}\left (\sqrt{x}\right )}{4 x^2}-\frac{1}{4 \sqrt{x}}-\frac{1}{4} \tan ^{-1}\left (\sqrt{x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0242087, antiderivative size = 50, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {5159, 30, 5033, 51, 63, 203} \[ \frac{1}{12 x^{3/2}}-\frac{\pi }{8 x^2}+\frac{\tan ^{-1}\left (\sqrt{x}\right )}{4 x^2}-\frac{1}{4 \sqrt{x}}-\frac{1}{4} \tan ^{-1}\left (\sqrt{x}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5159
Rule 30
Rule 5033
Rule 51
Rule 63
Rule 203
Rubi steps
\begin{align*} \int -\frac{\tan ^{-1}\left (\sqrt{x}-\sqrt{1+x}\right )}{x^3} \, dx &=-\left (\frac{1}{2} \int \frac{\tan ^{-1}\left (\sqrt{x}\right )}{x^3} \, dx\right )+\frac{1}{4} \pi \int \frac{1}{x^3} \, dx\\ &=-\frac{\pi }{8 x^2}+\frac{\tan ^{-1}\left (\sqrt{x}\right )}{4 x^2}-\frac{1}{8} \int \frac{1}{x^{5/2} (1+x)} \, dx\\ &=-\frac{\pi }{8 x^2}+\frac{1}{12 x^{3/2}}+\frac{\tan ^{-1}\left (\sqrt{x}\right )}{4 x^2}+\frac{1}{8} \int \frac{1}{x^{3/2} (1+x)} \, dx\\ &=-\frac{\pi }{8 x^2}+\frac{1}{12 x^{3/2}}-\frac{1}{4 \sqrt{x}}+\frac{\tan ^{-1}\left (\sqrt{x}\right )}{4 x^2}-\frac{1}{8} \int \frac{1}{\sqrt{x} (1+x)} \, dx\\ &=-\frac{\pi }{8 x^2}+\frac{1}{12 x^{3/2}}-\frac{1}{4 \sqrt{x}}+\frac{\tan ^{-1}\left (\sqrt{x}\right )}{4 x^2}-\frac{1}{4} \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\sqrt{x}\right )\\ &=-\frac{\pi }{8 x^2}+\frac{1}{12 x^{3/2}}-\frac{1}{4 \sqrt{x}}-\frac{1}{4} \tan ^{-1}\left (\sqrt{x}\right )+\frac{\tan ^{-1}\left (\sqrt{x}\right )}{4 x^2}\\ \end{align*}
Mathematica [A] time = 0.0288469, size = 48, normalized size = 0.96 \[ -\frac{3 x^2 \tan ^{-1}\left (\sqrt{x}\right )+(3 x-1) \sqrt{x}-6 \tan ^{-1}\left (\sqrt{x}-\sqrt{x+1}\right )}{12 x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.07, size = 35, normalized size = 0.7 \begin{align*}{\frac{1}{2\,{x}^{2}}\arctan \left ( \sqrt{x}-\sqrt{x+1} \right ) }+{\frac{1}{12}{x}^{-{\frac{3}{2}}}}-{\frac{1}{4}\arctan \left ( \sqrt{x} \right ) }-{\frac{1}{4}{\frac{1}{\sqrt{x}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.60696, size = 46, normalized size = 0.92 \begin{align*} -\frac{1}{4 \, \sqrt{x}} - \frac{\arctan \left (\sqrt{x + 1} - \sqrt{x}\right )}{2 \, x^{2}} + \frac{1}{12 \, x^{\frac{3}{2}}} - \frac{1}{4} \, \arctan \left (\sqrt{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.96096, size = 100, normalized size = 2. \begin{align*} \frac{6 \,{\left (x^{2} - 1\right )} \arctan \left (\sqrt{x + 1} - \sqrt{x}\right ) -{\left (3 \, x - 1\right )} \sqrt{x}}{12 \, x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.10773, size = 46, normalized size = 0.92 \begin{align*} -\frac{3 \, x - 1}{12 \, x^{\frac{3}{2}}} + \frac{\arctan \left (-\sqrt{x + 1} + \sqrt{x}\right )}{2 \, x^{2}} - \frac{1}{4} \, \arctan \left (\sqrt{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]