Optimal. Leaf size=107 \[ \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{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} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.153779, 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 5242
Rule 4698
Rule 4710
Rule 4181
Rule 2279
Rule 2391
Rule 8
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.172135, size = 116, normalized size = 1.08 \[ -\frac{\sqrt{1-\frac{1}{x^2}} \left (-i x \text{PolyLog}\left (2,-i e^{i \sec ^{-1}(x)}\right )+i x \text{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]
________________________________________________________________________________________
Maple [B] time = 0.391, size = 708, normalized size = 6.6 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{x^{2} - 1} \operatorname{arcsec}\left (x\right )}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\sqrt{x^{2} - 1} \operatorname{arcsec}\left (x\right )}{x^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{\left (x - 1\right ) \left (x + 1\right )} \operatorname{asec}{\left (x \right )}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{x^{2} - 1} \operatorname{arcsec}\left (x\right )}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]