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.01, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {1958, 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
Rule 1958
Rubi steps
\begin {align*} \int \frac {\sqrt {\frac {-1+x}{1+x}}}{x^2} \, dx &=\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.00, 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.44, size = 36, normalized size = 1.00 \[ \frac {2 \, x \arctan \left (\sqrt {\frac {x - 1}{x + 1}}\right ) - {\left (x + 1\right )} \sqrt {\frac {x - 1}{x + 1}}}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.41, size = 51, normalized size = 1.42 \[ -\frac {1}{2} \, {\left (\pi - 2\right )} \mathrm {sgn}\left (x + 1\right ) + 2 \, \arctan \left (-x + \sqrt {x^{2} - 1}\right ) \mathrm {sgn}\left (x + 1\right ) - \frac {2 \, \mathrm {sgn}\left (x + 1\right )}{{\left (x - \sqrt {x^{2} - 1}\right )}^{2} + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.02, size = 59, normalized size = 1.64 \[ \frac {\sqrt {\frac {x -1}{x +1}}\, \left (x +1\right ) \left (-\sqrt {x^{2}-1}\, x^{2}-x \arctan \left (\frac {1}{\sqrt {x^{2}-1}}\right )+\left (x^{2}-1\right )^{\frac {3}{2}}\right )}{\sqrt {\left (x -1\right ) \left (x +1\right )}\, x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.95, size = 41, normalized size = 1.14 \[ -\frac {2 \, \sqrt {\frac {x - 1}{x + 1}}}{\frac {x - 1}{x + 1} + 1} + 2 \, \arctan \left (\sqrt {\frac {x - 1}{x + 1}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.06, size = 41, normalized size = 1.14 \[ 2\,\mathrm {atan}\left (\sqrt {\frac {x-1}{x+1}}\right )-\frac {2\,\sqrt {\frac {x-1}{x+1}}}{\frac {x-1}{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 {\frac {x - 1}{x + 1}}}{x^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________