3.10.95 \(\int \sqrt {1-x^2+x \sqrt {-1+x^2}} \, dx\) [995]

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

[Out]

3/8*arcsin(x-(x^2-1)^(1/2))*2^(1/2)+1/4*(3*x+(x^2-1)^(1/2))*(1-x^2+x*(x^2-1)^(1/2))^(1/2)

________________________________________________________________________________________

Rubi [F]
time = 0.02, 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 \sqrt {1-x^2+x \sqrt {-1+x^2}} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

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

[Out]

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.53, size = 110, normalized size = 1.75 \begin {gather*} \frac {1}{8} \left (\frac {2 \left (-1+x^2\right ) \left (3 x+\sqrt {-1+x^2}\right )}{\sqrt {1-x^2+x \sqrt {-1+x^2}} \left (-1+x^2+x \sqrt {-1+x^2}\right )}-3 \sqrt {2} \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {-1+x^2}}{\sqrt {1-x^2+x \sqrt {-1+x^2}}}\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

((2*(-1 + x^2)*(3*x + Sqrt[-1 + x^2]))/(Sqrt[1 - x^2 + x*Sqrt[-1 + x^2]]*(-1 + x^2 + x*Sqrt[-1 + x^2])) - 3*Sq
rt[2]*ArcTan[(Sqrt[2]*Sqrt[-1 + x^2])/Sqrt[1 - x^2 + x*Sqrt[-1 + x^2]]])/8

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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((1-x^2+x*(x^2-1)^(1/2))^(1/2),x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.89, size = 68, normalized size = 1.08 \begin {gather*} \frac {1}{4} \, \sqrt {-x^{2} + \sqrt {x^{2} - 1} x + 1} {\left (3 \, x + \sqrt {x^{2} - 1}\right )} + \frac {3}{8} \, \sqrt {2} \arctan \left (\frac {\sqrt {2} \sqrt {-x^{2} + \sqrt {x^{2} - 1} x + 1}}{2 \, \sqrt {x^{2} - 1}}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/4*sqrt(-x^2 + sqrt(x^2 - 1)*x + 1)*(3*x + sqrt(x^2 - 1)) + 3/8*sqrt(2)*arctan(1/2*sqrt(2)*sqrt(-x^2 + sqrt(x
^2 - 1)*x + 1)/sqrt(x^2 - 1))

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________