Optimal. Leaf size=107 \[ \frac {i \sqrt {x^2} \operatorname {PolyLog}\left (2,-i e^{i \sec ^{-1}(x)}\right )}{x}-\frac {i \sqrt {x^2} \operatorname {PolyLog}\left (2,i e^{i \sec ^{-1}(x)}\right )}{x}-\frac {1}{\sqrt {x^2}}-\frac {\sqrt {x^2-1} \sec ^{-1}(x)}{x}-\frac {2 i \sqrt {x^2} \sec ^{-1}(x) \tan ^{-1}\left (e^{i \sec ^{-1}(x)}\right )}{x} \]
________________________________________________________________________________________
Rubi [A] time = 0.15, antiderivative size = 116, normalized size of antiderivative = 1.08, number of steps used = 9, number of rules used = 7, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.467, Rules used = {5242, 4698, 4710, 4181, 2279, 2391, 8} \[ \frac {i \sqrt {x^2} \text {PolyLog}\left (2,-i e^{i \sec ^{-1}(x)}\right )}{x}-\frac {i \sqrt {x^2} \text {PolyLog}\left (2,i e^{i \sec ^{-1}(x)}\right )}{x}-\frac {1}{\sqrt {x^2}}-\frac {\sqrt {1-\frac {1}{x^2}} \sqrt {x^2} \sec ^{-1}(x)}{x}-\frac {2 i \sqrt {x^2} \sec ^{-1}(x) \tan ^{-1}\left (e^{i \sec ^{-1}(x)}\right )}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2279
Rule 2391
Rule 4181
Rule 4698
Rule 4710
Rule 5242
Rubi steps
\begin {align*} \int \frac {\sqrt {-1+x^2} \sec ^{-1}(x)}{x^2} \, dx &=-\frac {\sqrt {x^2} \operatorname {Subst}\left (\int \frac {\sqrt {1-x^2} \cos ^{-1}(x)}{x} \, dx,x,\frac {1}{x}\right )}{x}\\ &=-\frac {\sqrt {1-\frac {1}{x^2}} \sqrt {x^2} \sec ^{-1}(x)}{x}-\frac {\sqrt {x^2} \operatorname {Subst}\left (\int 1 \, dx,x,\frac {1}{x}\right )}{x}-\frac {\sqrt {x^2} \operatorname {Subst}\left (\int \frac {\cos ^{-1}(x)}{x \sqrt {1-x^2}} \, dx,x,\frac {1}{x}\right )}{x}\\ &=-\frac {1}{\sqrt {x^2}}-\frac {\sqrt {1-\frac {1}{x^2}} \sqrt {x^2} \sec ^{-1}(x)}{x}+\frac {\sqrt {x^2} \operatorname {Subst}\left (\int x \sec (x) \, dx,x,\sec ^{-1}(x)\right )}{x}\\ &=-\frac {1}{\sqrt {x^2}}-\frac {\sqrt {1-\frac {1}{x^2}} \sqrt {x^2} \sec ^{-1}(x)}{x}-\frac {2 i \sqrt {x^2} \sec ^{-1}(x) \tan ^{-1}\left (e^{i \sec ^{-1}(x)}\right )}{x}-\frac {\sqrt {x^2} \operatorname {Subst}\left (\int \log \left (1-i e^{i x}\right ) \, dx,x,\sec ^{-1}(x)\right )}{x}+\frac {\sqrt {x^2} \operatorname {Subst}\left (\int \log \left (1+i e^{i x}\right ) \, dx,x,\sec ^{-1}(x)\right )}{x}\\ &=-\frac {1}{\sqrt {x^2}}-\frac {\sqrt {1-\frac {1}{x^2}} \sqrt {x^2} \sec ^{-1}(x)}{x}-\frac {2 i \sqrt {x^2} \sec ^{-1}(x) \tan ^{-1}\left (e^{i \sec ^{-1}(x)}\right )}{x}+\frac {\left (i \sqrt {x^2}\right ) \operatorname {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^{i \sec ^{-1}(x)}\right )}{x}-\frac {\left (i \sqrt {x^2}\right ) \operatorname {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^{i \sec ^{-1}(x)}\right )}{x}\\ &=-\frac {1}{\sqrt {x^2}}-\frac {\sqrt {1-\frac {1}{x^2}} \sqrt {x^2} \sec ^{-1}(x)}{x}-\frac {2 i \sqrt {x^2} \sec ^{-1}(x) \tan ^{-1}\left (e^{i \sec ^{-1}(x)}\right )}{x}+\frac {i \sqrt {x^2} \text {Li}_2\left (-i e^{i \sec ^{-1}(x)}\right )}{x}-\frac {i \sqrt {x^2} \text {Li}_2\left (i e^{i \sec ^{-1}(x)}\right )}{x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.20, size = 116, normalized size = 1.08 \[ -\frac {\sqrt {1-\frac {1}{x^2}} \left (-i x \operatorname {PolyLog}\left (2,-i e^{i \sec ^{-1}(x)}\right )+i x \operatorname {PolyLog}\left (2,i e^{i \sec ^{-1}(x)}\right )+\sqrt {1-\frac {1}{x^2}} x \sec ^{-1}(x)-x \sec ^{-1}(x) \log \left (1-i e^{i \sec ^{-1}(x)}\right )+x \sec ^{-1}(x) \log \left (1+i e^{i \sec ^{-1}(x)}\right )+1\right )}{\sqrt {x^2-1}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {-1+x^2} \sec ^{-1}(x)}{x^2} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.85, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\sqrt {x^{2} - 1} \operatorname {arcsec}\relax (x)}{x^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {x^{2} - 1} \operatorname {arcsec}\relax (x)}{x^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.74, size = 708, normalized size = 6.62
method | result | size |
default | \(\frac {\sqrt {x^{2}-1}\, \left (\sqrt {\frac {x^{2}-1}{x^{2}}}\, x^{3}-3 i x^{2}-4 \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +4 i\right )}{4 \left (-i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +x^{2}-1\right ) x}-\frac {\left (i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x^{3}-2 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +2 x^{2}-2\right ) \mathrm {arcsec}\relax (x )}{4 \sqrt {x^{2}-1}\, x}-\frac {\sqrt {x^{2}-1}\, \left (\sqrt {\frac {x^{2}-1}{x^{2}}}\, x -i\right ) x}{2 \left (-i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +x^{2}-1\right )}+\frac {\left (i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x^{3}-2 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x -2 x^{2}+2\right ) \mathrm {arcsec}\relax (x )}{4 \sqrt {x^{2}-1}\, x}+\frac {i \sqrt {x^{2}-1}\, x^{3}}{4 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x^{3}-8 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +8 x^{2}-8}-\frac {\left (i x^{2}+\sqrt {\frac {x^{2}-1}{x^{2}}}\, x -i\right ) \mathrm {arcsec}\relax (x ) \ln \left (1+i \left (\frac {1}{x}+i \sqrt {1-\frac {1}{x^{2}}}\right )\right )}{2 \sqrt {x^{2}-1}}+\frac {\left (i x^{2}+\sqrt {\frac {x^{2}-1}{x^{2}}}\, x -i\right ) \mathrm {arcsec}\relax (x ) \ln \left (1-i \left (\frac {1}{x}+i \sqrt {1-\frac {1}{x^{2}}}\right )\right )}{2 \sqrt {x^{2}-1}}-\frac {\left (-i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +x^{2}-1\right ) \dilog \left (1+i \left (\frac {1}{x}+i \sqrt {1-\frac {1}{x^{2}}}\right )\right )}{2 \sqrt {x^{2}-1}}+\frac {\left (-i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +x^{2}-1\right ) \dilog \left (1-i \left (\frac {1}{x}+i \sqrt {1-\frac {1}{x^{2}}}\right )\right )}{2 \sqrt {x^{2}-1}}+\frac {\left (i x^{2}-\sqrt {\frac {x^{2}-1}{x^{2}}}\, x -i\right ) \mathrm {arcsec}\relax (x ) \ln \left (1+i \left (\frac {1}{x}+i \sqrt {1-\frac {1}{x^{2}}}\right )\right )}{2 \sqrt {x^{2}-1}}-\frac {\left (i x^{2}-\sqrt {\frac {x^{2}-1}{x^{2}}}\, x -i\right ) \mathrm {arcsec}\relax (x ) \ln \left (1-i \left (\frac {1}{x}+i \sqrt {1-\frac {1}{x^{2}}}\right )\right )}{2 \sqrt {x^{2}-1}}+\frac {\left (i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +x^{2}-1\right ) \dilog \left (1+i \left (\frac {1}{x}+i \sqrt {1-\frac {1}{x^{2}}}\right )\right )}{2 \sqrt {x^{2}-1}}-\frac {\left (i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +x^{2}-1\right ) \dilog \left (1-i \left (\frac {1}{x}+i \sqrt {1-\frac {1}{x^{2}}}\right )\right )}{2 \sqrt {x^{2}-1}}\) | \(708\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {x^{2} - 1} \operatorname {arcsec}\relax (x)}{x^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\mathrm {acos}\left (\frac {1}{x}\right )\,\sqrt {x^2-1}}{x^2} \,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 {\sqrt {\left (x - 1\right ) \left (x + 1\right )} \operatorname {asec}{\relax (x )}}{x^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________