Optimal. Leaf size=23 \[ \frac{1}{\sqrt{x^2}}+\frac{\sqrt{x^2-1} \sec ^{-1}(x)}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0478767, antiderivative size = 23, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, 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 264
Rule 5238
Rule 30
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.0344072, 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]
________________________________________________________________________________________
Maple [C] time = 0.223, size = 186, normalized size = 8.1 \begin{align*} -{\frac{1}{4\,x} \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 ){\frac{1}{\sqrt{{x}^{2}-1}}} \left ( i\sqrt{{\frac{{x}^{2}-1}{{x}^{2}}}}x+1 \right ) ^{-1}}+{\frac{{\rm arcsec} \left (x\right )}{4\,x} \left ({x}^{2}-2-2\,i\sqrt{{\frac{{x}^{2}-1}{{x}^{2}}}}x \right ){\frac{1}{\sqrt{{x}^{2}-1}}}}+{\frac{{\rm arcsec} \left (x\right )x}{2}{\frac{1}{\sqrt{{x}^{2}-1}}}}-{{\frac{i}{4}}{x}^{3}{\frac{1}{\sqrt{{x}^{2}-1}}} \left ({x}^{2}-2-2\,i\sqrt{{\frac{{x}^{2}-1}{{x}^{2}}}}x \right ) ^{-1}}+{\frac{{\rm arcsec} \left (x\right )}{4\,x} \left ({x}^{2}-2+2\,i\sqrt{{\frac{{x}^{2}-1}{{x}^{2}}}}x \right ){\frac{1}{\sqrt{{x}^{2}-1}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.47155, size = 23, normalized size = 1. \begin{align*} \frac{\sqrt{x^{2} - 1} \operatorname{arcsec}\left (x\right )}{x} + \frac{1}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.57726, size = 45, normalized size = 1.96 \begin{align*} \frac{\sqrt{x^{2} - 1} \operatorname{arcsec}\left (x\right ) + 1}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.10502, size = 68, normalized size = 2.96 \begin{align*} \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}\left (x\right )} + \frac{1}{x \mathrm{sgn}\left (x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]