3.9.53 \(\int \sqrt {\frac {1+x^2}{-1+x^4}} \, dx\) [853]

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.01, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {6820, 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^4)],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]

Rule 6820

Int[u_, x_Symbol] :> With[{v = SimplifyIntegrand[u, x]}, Int[v, x] /; SimplerIntegrandQ[v, u, x]]

Rubi steps

\begin {align*} \int \sqrt {\frac {1+x^2}{-1+x^4}} \, dx &=\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.00, 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^4)],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.08, 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 )\) \(29\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((x^2+1)/(x^4-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 [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integrate(sqrt((x^2 + 1)/(x^4 - 1)), x)

________________________________________________________________________________________

Fricas [A]
time = 0.35, 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(((x^2+1)/(x^4-1))^(1/2),x, algorithm="fricas")

[Out]

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

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {\frac {x^{2} + 1}{x^{4} - 1}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Integral(sqrt((x**2 + 1)/(x**4 - 1)), x)

________________________________________________________________________________________

Giac [A]
time = 2.96, size = 21, normalized size = 0.84 \begin {gather*} -\log \left ({\left | -x + \sqrt {x^{2} - 1} \right |}\right ) \mathrm {sgn}\left (x^{2} - 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int \sqrt {\frac {x^2+1}{x^4-1}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________