Optimal. Leaf size=25 \[ \sqrt {-1+x^2} \sec ^{-1}(x)-\frac {x \log (x)}{\sqrt {x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {5344, 29}
\begin {gather*} \sqrt {x^2-1} \sec ^{-1}(x)-\frac {x \log (x)}{\sqrt {x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 5344
Rubi steps
\begin {align*} \int \frac {x \sec ^{-1}(x)}{\sqrt {-1+x^2}} \, dx &=\sqrt {-1+x^2} \sec ^{-1}(x)-\frac {x \int \frac {1}{x} \, dx}{\sqrt {x^2}}\\ &=\sqrt {-1+x^2} \sec ^{-1}(x)-\frac {x \log (x)}{\sqrt {x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 35, normalized size = 1.40 \begin {gather*} \frac {\left (-1+x^2\right ) \sec ^{-1}(x)-\sqrt {1-\frac {1}{x^2}} x \log (x)}{\sqrt {-1+x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {cought exception: } \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.39, size = 97, normalized size = 3.88
method | result | size |
default | \(-\frac {2 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x \,\mathrm {arcsec}\left (x \right )}{\sqrt {x^{2}-1}}+\frac {\left (i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +x^{2}-1\right ) \mathrm {arcsec}\left (x \right )}{\sqrt {x^{2}-1}}+\frac {\sqrt {\frac {x^{2}-1}{x^{2}}}\, x \ln \left (\left (\frac {1}{x}+i \sqrt {1-\frac {1}{x^{2}}}\right )^{2}+1\right )}{\sqrt {x^{2}-1}}\) | \(97\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 15, normalized size = 0.60 \begin {gather*} \sqrt {x^{2} - 1} \operatorname {arcsec}\left (x\right ) - \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 15, normalized size = 0.60 \begin {gather*} \sqrt {x^{2} - 1} \operatorname {arcsec}\left (x\right ) - \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 15.61, size = 22, normalized size = 0.88 \begin {gather*} \sqrt {x^{2} - 1} \operatorname {asec}{\left (x \right )} - \begin {cases} - \log {\left (\frac {1}{x} \right )} & \text {for}\: x > -1 \wedge x < 1 \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.01, size = 22, normalized size = 0.88 \begin {gather*} \sqrt {x^{2}-1} \arccos \left (\frac 1{x}\right )-\frac {\ln \left |x\right |}{\mathrm {sign}\left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int \frac {x\,\mathrm {acos}\left (\frac {1}{x}\right )}{\sqrt {x^2-1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________