3.22.14 \(\int \frac {\sqrt {-1+x^2} \sqrt {x^2+x \sqrt {-1+x^2}}}{1+x} \, dx\)

Optimal. Leaf size=153 \[ \frac {1}{4} \sqrt {x^2+\sqrt {x^2-1} x} (-x-4)+\frac {3}{4} \sqrt {x^2-1} \sqrt {x^2+\sqrt {x^2-1} x}-\frac {3 \log \left (\sqrt {x^2-1}-\sqrt {2} \sqrt {x^2+\sqrt {x^2-1} x}+x\right )}{4 \sqrt {2}}-\sqrt {2} \tanh ^{-1}\left (\sqrt {x^2-1}-\sqrt {2} \sqrt {x^2+\sqrt {x^2-1} x}+x\right ) \]

________________________________________________________________________________________

Rubi [F]  time = 0.37, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {\sqrt {-1+x^2} \sqrt {x^2+x \sqrt {-1+x^2}}}{1+x} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

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

[Out]

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

Rubi steps

\begin {align*} \int \frac {\sqrt {-1+x^2} \sqrt {x^2+x \sqrt {-1+x^2}}}{1+x} \, dx &=\int \frac {\sqrt {-1+x^2} \sqrt {x^2+x \sqrt {-1+x^2}}}{1+x} \, dx\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.73, size = 150, normalized size = 0.98 \begin {gather*} \frac {\sqrt {x^2-1} \left (\sqrt {2} \sqrt {x \left (\sqrt {x^2-1}+x\right )} \left (2 x^2+2 \left (\sqrt {x^2-1}-2\right ) x-4 \sqrt {x^2-1}-3\right )+3 \left (\sqrt {x^2-1}+x\right ) \sinh ^{-1}\left (\sqrt {x^2-1}+x\right )+4 \left (\sqrt {x^2-1}+x\right ) \tanh ^{-1}\left (\sqrt {\left (\sqrt {x^2-1}+x\right )^2+1}\right )\right )}{4 \sqrt {2} \left (x^2+\sqrt {x^2-1} x-1\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(Sqrt[-1 + x^2]*(Sqrt[2]*Sqrt[x*(x + Sqrt[-1 + x^2])]*(-3 + 2*x^2 - 4*Sqrt[-1 + x^2] + 2*x*(-2 + Sqrt[-1 + x^2
])) + 3*(x + Sqrt[-1 + x^2])*ArcSinh[x + Sqrt[-1 + x^2]] + 4*(x + Sqrt[-1 + x^2])*ArcTanh[Sqrt[1 + (x + Sqrt[-
1 + x^2])^2]]))/(4*Sqrt[2]*(-1 + x^2 + x*Sqrt[-1 + x^2]))

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 2.44, size = 153, normalized size = 1.00 \begin {gather*} \frac {1}{4} (-4-x) \sqrt {x^2+x \sqrt {-1+x^2}}+\frac {3}{4} \sqrt {-1+x^2} \sqrt {x^2+x \sqrt {-1+x^2}}-\sqrt {2} \tanh ^{-1}\left (x+\sqrt {-1+x^2}-\sqrt {2} \sqrt {x^2+x \sqrt {-1+x^2}}\right )-\frac {3 \log \left (x+\sqrt {-1+x^2}-\sqrt {2} \sqrt {x^2+x \sqrt {-1+x^2}}\right )}{4 \sqrt {2}} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

((-4 - x)*Sqrt[x^2 + x*Sqrt[-1 + x^2]])/4 + (3*Sqrt[-1 + x^2]*Sqrt[x^2 + x*Sqrt[-1 + x^2]])/4 - Sqrt[2]*ArcTan
h[x + Sqrt[-1 + x^2] - Sqrt[2]*Sqrt[x^2 + x*Sqrt[-1 + x^2]]] - (3*Log[x + Sqrt[-1 + x^2] - Sqrt[2]*Sqrt[x^2 +
x*Sqrt[-1 + x^2]]])/(4*Sqrt[2])

________________________________________________________________________________________

fricas [A]  time = 3.76, size = 153, normalized size = 1.00 \begin {gather*} -\frac {1}{4} \, \sqrt {x^{2} + \sqrt {x^{2} - 1} x} {\left (x - 3 \, \sqrt {x^{2} - 1} + 4\right )} + \frac {1}{4} \, \sqrt {2} \log \left (4 \, x^{2} - 2 \, {\left (2 \, \sqrt {2} \sqrt {x^{2} - 1} x - \sqrt {2} {\left (2 \, x^{2} - 1\right )}\right )} \sqrt {x^{2} + \sqrt {x^{2} - 1} x} - 4 \, \sqrt {x^{2} - 1} x - 1\right ) + \frac {3}{16} \, \sqrt {2} \log \left (-4 \, x^{2} - 2 \, \sqrt {x^{2} + \sqrt {x^{2} - 1} x} {\left (\sqrt {2} x + \sqrt {2} \sqrt {x^{2} - 1}\right )} - 4 \, \sqrt {x^{2} - 1} x + 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/4*sqrt(x^2 + sqrt(x^2 - 1)*x)*(x - 3*sqrt(x^2 - 1) + 4) + 1/4*sqrt(2)*log(4*x^2 - 2*(2*sqrt(2)*sqrt(x^2 - 1
)*x - sqrt(2)*(2*x^2 - 1))*sqrt(x^2 + sqrt(x^2 - 1)*x) - 4*sqrt(x^2 - 1)*x - 1) + 3/16*sqrt(2)*log(-4*x^2 - 2*
sqrt(x^2 + sqrt(x^2 - 1)*x)*(sqrt(2)*x + sqrt(2)*sqrt(x^2 - 1)) - 4*sqrt(x^2 - 1)*x + 1)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [F]  time = 0.04, size = 0, normalized size = 0.00 \[\int \frac {\sqrt {x^{2}-1}\, \sqrt {x^{2}+x \sqrt {x^{2}-1}}}{1+x}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x \left (x + \sqrt {x^{2} - 1}\right )} \sqrt {\left (x - 1\right ) \left (x + 1\right )}}{x + 1}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________