Optimal. Leaf size=23 \[ \frac {1}{\sqrt {x^2}}+\frac {\sqrt {x^2-1} \sec ^{-1}(x)}{x} \]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {264, 5238, 30} \[ \frac {1}{\sqrt {x^2}}+\frac {\sqrt {x^2-1} \sec ^{-1}(x)}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 264
Rule 5238
Rubi steps
\begin {align*} \int \frac {\sec ^{-1}(x)}{x^2 \sqrt {-1+x^2}} \, dx &=\frac {\sqrt {-1+x^2} \sec ^{-1}(x)}{x}-\frac {x \int \frac {1}{x^2} \, dx}{\sqrt {x^2}}\\ &=\frac {1}{\sqrt {x^2}}+\frac {\sqrt {-1+x^2} \sec ^{-1}(x)}{x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 35, normalized size = 1.52 \[ \frac {\sqrt {1-\frac {1}{x^2}} x+\left (x^2-1\right ) \sec ^{-1}(x)}{x \sqrt {x^2-1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec ^{-1}(x)}{x^2 \sqrt {-1+x^2}} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.17, size = 16, normalized size = 0.70 \[ \frac {\sqrt {x^{2} - 1} \operatorname {arcsec}\relax (x) + 1}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.04, size = 50, normalized size = 2.17 \[ \frac {2 \, \arccos \left (\frac {1}{x}\right )}{{\left (x - \sqrt {x^{2} - 1}\right )}^{2} + 1} - \frac {2 \, \arctan \left (-x + \sqrt {x^{2} - 1}\right )}{\mathrm {sgn}\relax (x)} + \frac {1}{x \mathrm {sgn}\relax (x)} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.51, size = 178, normalized size = 7.74
method | result | size |
default | \(-\frac {\sqrt {\frac {x^{2}-1}{x^{2}}}\, x^{3}-3 i x^{2}-4 \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +4 i}{4 \sqrt {x^{2}-1}\, \left (i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +1\right ) x}+\frac {\left (x^{2}-2-2 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x \right ) \mathrm {arcsec}\relax (x )}{4 \sqrt {x^{2}-1}\, x}-\frac {\left (i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x -1\right ) \left (\mathrm {arcsec}\relax (x )+i\right )}{4 \sqrt {x^{2}-1}\, x}+\frac {\left (i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +x^{2}-1\right ) \left (3 \,\mathrm {arcsec}\relax (x )-i\right )}{4 \sqrt {x^{2}-1}\, x}\) | \(178\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.03, size = 17, normalized size = 0.74 \[ \frac {\sqrt {x^{2} - 1} \operatorname {arcsec}\relax (x)}{x} + \frac {1}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.04 \[ \int \frac {\mathrm {acos}\left (\frac {1}{x}\right )}{x^2\,\sqrt {x^2-1}} \,d x \]
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 {\operatorname {asec}{\relax (x )}}{x^{2} \sqrt {\left (x - 1\right ) \left (x + 1\right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________