Optimal. Leaf size=36 \[ \tan ^{-1}\left (\sqrt {x-1} \sqrt {x+1}\right )-\frac {\sqrt {x-1} \sqrt {x+1}}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.00, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {94, 92, 203} \[ \tan ^{-1}\left (\sqrt {x-1} \sqrt {x+1}\right )-\frac {\sqrt {x-1} \sqrt {x+1}}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 92
Rule 94
Rule 203
Rubi steps
\begin {align*} \int \frac {\sqrt {-1+x}}{x^2 \sqrt {1+x}} \, dx &=-\frac {\sqrt {-1+x} \sqrt {1+x}}{x}+\int \frac {1}{\sqrt {-1+x} x \sqrt {1+x}} \, dx\\ &=-\frac {\sqrt {-1+x} \sqrt {1+x}}{x}+\operatorname {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {-1+x} \sqrt {1+x}\right )\\ &=-\frac {\sqrt {-1+x} \sqrt {1+x}}{x}+\tan ^{-1}\left (\sqrt {-1+x} \sqrt {1+x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 50, normalized size = 1.39 \[ \frac {\sqrt {\frac {x-1}{x+1}} \left (-x^2+\sqrt {x^2-1} x \tan ^{-1}\left (\sqrt {x^2-1}\right )+1\right )}{(x-1) x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.42, size = 39, normalized size = 1.08 \[ \frac {2 \, x \arctan \left (\sqrt {x + 1} \sqrt {x - 1} - x\right ) - \sqrt {x + 1} \sqrt {x - 1} - x}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.33, size = 42, normalized size = 1.17 \[ -\frac {8}{{\left (\sqrt {x + 1} - \sqrt {x - 1}\right )}^{4} + 4} - 2 \, \arctan \left (\frac {1}{2} \, {\left (\sqrt {x + 1} - \sqrt {x - 1}\right )}^{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 43, normalized size = 1.19 \[ \frac {\left (-x \arctan \left (\frac {1}{\sqrt {x^{2}-1}}\right )-\sqrt {x^{2}-1}\right ) \sqrt {x -1}\, \sqrt {x +1}}{\sqrt {x^{2}-1}\, x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.98, size = 20, normalized size = 0.56 \[ -\frac {\sqrt {x^{2} - 1}}{x} - \arcsin \left (\frac {1}{{\left | x \right |}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.09, size = 138, normalized size = 3.83 \[ -\ln \left (\frac {{\left (\sqrt {x-1}-\mathrm {i}\right )}^2}{{\left (\sqrt {x+1}-1\right )}^2}+1\right )\,1{}\mathrm {i}+\ln \left (\frac {\sqrt {x-1}-\mathrm {i}}{\sqrt {x+1}-1}\right )\,1{}\mathrm {i}-\frac {\sqrt {x-1}-\mathrm {i}}{4\,\left (\sqrt {x+1}-1\right )}-\frac {\frac {5\,{\left (\sqrt {x-1}-\mathrm {i}\right )}^2}{{\left (\sqrt {x+1}-1\right )}^2}+1}{\frac {4\,{\left (\sqrt {x-1}-\mathrm {i}\right )}^3}{{\left (\sqrt {x+1}-1\right )}^3}+\frac {4\,\left (\sqrt {x-1}-\mathrm {i}\right )}{\sqrt {x+1}-1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {x - 1}}{x^{2} \sqrt {x + 1}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________