3.9.52 \(\int \sqrt {\frac {1}{-1+x^2}} \, dx\) [852]

Optimal. Leaf size=25 \[ \sqrt {1-x^2} \sqrt {\frac {1}{-1+x^2}} \sin ^{-1}(x) \]

[Out]

arcsin(x)*(-x^2+1)^(1/2)*(1/(x^2-1))^(1/2)

________________________________________________________________________________________

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]

Int[Sqrt[(-1 + x^2)^(-1)],x]

[Out]

Sqrt[1 - x^2]*Sqrt[(-1 + x^2)^(-1)]*ArcSin[x]

Rule 222

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSin[Rt[-b, 2]*(x/Sqrt[a])]/Rt[-b, 2], x] /; FreeQ[{a, b}
, x] && GtQ[a, 0] && NegQ[b]

Rule 1973

Int[(u_.)*((c_.)*((a_) + (b_.)*(x_)^(n_.))^(q_))^(p_), x_Symbol] :> Dist[Simp[(c*(a + b*x^n)^q)^p/(1 + b*(x^n/
a))^(p*q)], Int[u*(1 + b*(x^n/a))^(p*q), x], x] /; FreeQ[{a, b, c, n, p, q}, x] &&  !GeQ[a, 0]

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]

Integrate[Sqrt[(-1 + x^2)^(-1)],x]

[Out]

(Sqrt[(-1 + x^2)^(-1)]*Sqrt[-1 + x^2]*(-Log[1 - x/Sqrt[-1 + x^2]] + Log[1 + x/Sqrt[-1 + x^2]]))/2

________________________________________________________________________________________

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]

int((1/(x^2-1))^(1/2),x,method=_RETURNVERBOSE)

[Out]

(1/(x^2-1))^(1/2)*(x^2-1)^(1/2)*ln(x+(x^2-1)^(1/2))

________________________________________________________________________________________

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]

integrate((1/(x^2-1))^(1/2),x, algorithm="maxima")

[Out]

log(2*x + 2*sqrt(x^2 - 1))

________________________________________________________________________________________

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]

integrate((1/(x^2-1))^(1/2),x, algorithm="fricas")

[Out]

-log(-x + sqrt(x^2 - 1))

________________________________________________________________________________________

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]

integrate((1/(x**2-1))**(1/2),x)

[Out]

Piecewise((log(x + sqrt(x**2 - 1)), (x > -1) & (x < 1)))

________________________________________________________________________________________

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]

integrate((1/(x^2-1))^(1/2),x, algorithm="giac")

[Out]

1/2*sqrt(x^2 - 1)*x + 1/2*log(abs(-x + sqrt(x^2 - 1)))

________________________________________________________________________________________

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]

int((1/(x^2 - 1))^(1/2),x)

[Out]

int((1/(x^2 - 1))^(1/2), x)

________________________________________________________________________________________