Optimal. Leaf size=25 \[ \sqrt {1-x^2} \sqrt {\frac {1}{-1+x^2}} \sin ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {1973, 222}
\begin {gather*} \sqrt {1-x^2} \sqrt {\frac {1}{x^2-1}} \text {ArcSin}(x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 222
Rule 1973
Rubi steps
\begin {align*} \int \sqrt {\frac {1}{-1+x^2}} \, dx &=\left (\sqrt {\frac {1}{-1+x^2}} \sqrt {-1+x^2}\right ) \int \frac {1}{\sqrt {-1+x^2}} \, dx\\ &=\left (\sqrt {\frac {1}{-1+x^2}} \sqrt {-1+x^2}\right ) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {x}{\sqrt {-1+x^2}}\right )\\ &=\sqrt {\frac {1}{-1+x^2}} \sqrt {-1+x^2} \tanh ^{-1}\left (\frac {x}{\sqrt {-1+x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(56\) vs. \(2(25)=50\).
time = 0.01, size = 56, normalized size = 2.24 \begin {gather*} \frac {1}{2} \sqrt {\frac {1}{-1+x^2}} \sqrt {-1+x^2} \left (-\log \left (1-\frac {x}{\sqrt {-1+x^2}}\right )+\log \left (1+\frac {x}{\sqrt {-1+x^2}}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.58, size = 28, normalized size = 1.12
method | result | size |
default | \(\sqrt {\frac {1}{x^{2}-1}}\, \sqrt {x^{2}-1}\, \ln \left (x +\sqrt {x^{2}-1}\right )\) | \(28\) |
trager | \(\ln \left (\sqrt {\frac {1}{x^{2}-1}}\, x^{2}-\sqrt {\frac {1}{x^{2}-1}}+x \right )\) | \(28\) |
meijerg | \(\frac {\sqrt {\frac {1}{x^{2}-1}}\, \sqrt {x^{2}-1}\, \sqrt {-\mathrm {signum}\left (x^{2}-1\right )}\, \arcsin \left (x \right )}{\sqrt {\mathrm {signum}\left (x^{2}-1\right )}}\) | \(38\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 14, normalized size = 0.56 \begin {gather*} \log \left (2 \, x + 2 \, \sqrt {x^{2} - 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.33, size = 14, normalized size = 0.56 \begin {gather*} -\log \left (-x + \sqrt {x^{2} - 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.76, size = 15, normalized size = 0.60 \begin {gather*} \begin {cases} \log {\left (x + \sqrt {x^{2} - 1} \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 = 3.44, size = 26, normalized size = 1.04 \begin {gather*} \frac {1}{2} \, \sqrt {x^{2} - 1} x + \frac {1}{2} \, \log \left ({\left | -x + \sqrt {x^{2} - 1} \right |}\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 \sqrt {\frac {1}{x^2-1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________