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

Optimal. Leaf size=85 \[ \frac {2 \left (x^2+2\right ) x}{5 \sqrt {\sqrt {x^2+1}+1}}-\frac {4 \sqrt {x^2+1} x}{5 \sqrt {\sqrt {x^2+1}+1}}-\sqrt {2} \tan ^{-1}\left (\frac {x}{\sqrt {2} \sqrt {\sqrt {x^2+1}+1}}\right ) \]

________________________________________________________________________________________

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

Verification is not applicable to the result.

[In]

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

[Out]

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [C]  time = 0.21, size = 125, normalized size = 1.47 \begin {gather*} \frac {\sqrt {\sqrt {x^2+1}+1} \left (-10 \, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};\frac {1}{2}-\frac {\sqrt {x^2+1}}{2}\right )+4 \sqrt {x^2+1} x^2-12 x^2+16 \sqrt {x^2+1}-5 \sqrt {2} \sqrt {\sqrt {x^2+1}-1} \tan ^{-1}\left (\frac {\sqrt {\sqrt {x^2+1}-1}}{\sqrt {2}}\right )-6\right )}{10 x} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(Sqrt[1 + Sqrt[1 + x^2]]*(-6 - 12*x^2 + 16*Sqrt[1 + x^2] + 4*x^2*Sqrt[1 + x^2] - 5*Sqrt[2]*Sqrt[-1 + Sqrt[1 +
x^2]]*ArcTan[Sqrt[-1 + Sqrt[1 + x^2]]/Sqrt[2]] - 10*Hypergeometric2F1[-1/2, 1, 1/2, 1/2 - Sqrt[1 + x^2]/2]))/(
10*x)

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 0.41, size = 85, normalized size = 1.00 \begin {gather*} -\frac {4 x \sqrt {1+x^2}}{5 \sqrt {1+\sqrt {1+x^2}}}+\frac {2 x \left (2+x^2\right )}{5 \sqrt {1+\sqrt {1+x^2}}}-\sqrt {2} \tan ^{-1}\left (\frac {x}{\sqrt {2} \sqrt {1+\sqrt {1+x^2}}}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(-4*x*Sqrt[1 + x^2])/(5*Sqrt[1 + Sqrt[1 + x^2]]) + (2*x*(2 + x^2))/(5*Sqrt[1 + Sqrt[1 + x^2]]) - Sqrt[2]*ArcTa
n[x/(Sqrt[2]*Sqrt[1 + Sqrt[1 + x^2]])]

________________________________________________________________________________________

fricas [A]  time = 1.11, size = 65, normalized size = 0.76 \begin {gather*} \frac {5 \, \sqrt {2} x \arctan \left (\frac {\sqrt {2} \sqrt {\sqrt {x^{2} + 1} + 1}}{x}\right ) - 2 \, {\left (3 \, x^{2} - {\left (x^{2} + 4\right )} \sqrt {x^{2} + 1} + 4\right )} \sqrt {\sqrt {x^{2} + 1} + 1}}{5 \, x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________