Optimal. Leaf size=67 \[ \frac {2 \left (10 x^4+55 x^2+23\right )}{15 \left (\sqrt {x^2+1}+x\right )^{5/2}}+\frac {4 \sqrt {x^2+1} \left (x^3+5 x\right )}{3 \left (\sqrt {x^2+1}+x\right )^{5/2}} \]
________________________________________________________________________________________
Rubi [A] time = 0.80, antiderivative size = 56, normalized size of antiderivative = 0.84, number of steps used = 7, number of rules used = 5, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {6742, 2122, 30, 2120, 270} \begin {gather*} \frac {1}{6} \left (\sqrt {x^2+1}+x\right )^{3/2}+\frac {3}{\sqrt {\sqrt {x^2+1}+x}}-\frac {1}{10 \left (\sqrt {x^2+1}+x\right )^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 270
Rule 2120
Rule 2122
Rule 6742
Rubi steps
\begin {align*} \int \frac {-1+x^2}{\sqrt {1+x^2} \sqrt {x+\sqrt {1+x^2}}} \, dx &=\int \left (-\frac {1}{\sqrt {1+x^2} \sqrt {x+\sqrt {1+x^2}}}+\frac {x^2}{\sqrt {1+x^2} \sqrt {x+\sqrt {1+x^2}}}\right ) \, dx\\ &=-\int \frac {1}{\sqrt {1+x^2} \sqrt {x+\sqrt {1+x^2}}} \, dx+\int \frac {x^2}{\sqrt {1+x^2} \sqrt {x+\sqrt {1+x^2}}} \, dx\\ &=\frac {1}{4} \operatorname {Subst}\left (\int \frac {\left (-1+x^2\right )^2}{x^{7/2}} \, dx,x,x+\sqrt {1+x^2}\right )-\operatorname {Subst}\left (\int \frac {1}{x^{3/2}} \, dx,x,x+\sqrt {1+x^2}\right )\\ &=\frac {2}{\sqrt {x+\sqrt {1+x^2}}}+\frac {1}{4} \operatorname {Subst}\left (\int \left (\frac {1}{x^{7/2}}-\frac {2}{x^{3/2}}+\sqrt {x}\right ) \, dx,x,x+\sqrt {1+x^2}\right )\\ &=-\frac {1}{10 \left (x+\sqrt {1+x^2}\right )^{5/2}}+\frac {3}{\sqrt {x+\sqrt {1+x^2}}}+\frac {1}{6} \left (x+\sqrt {1+x^2}\right )^{3/2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 1.32, size = 350, normalized size = 5.22 \begin {gather*} \frac {2 \left (x^2+1\right ) \left (81920 x^{18}+757760 x^{16}+2336768 x^{14}+3539200 x^{12}+2978432 x^{10}+1435488 x^8+384048 x^6+51357 x^4+2660 x^2+349 \sqrt {x^2+1} x+81920 \sqrt {x^2+1} x^{17}+716800 \sqrt {x^2+1} x^{15}+1988608 \sqrt {x^2+1} x^{13}+2629376 \sqrt {x^2+1} x^{11}+1870720 \sqrt {x^2+1} x^9+730272 \sqrt {x^2+1} x^7+148176 \sqrt {x^2+1} x^5+13347 \sqrt {x^2+1} x^3+23\right )}{15 \left (\sqrt {x^2+1}+x\right )^{5/2} \left (x^2+\sqrt {x^2+1} x+1\right ) \left (16 x^6+28 x^4+13 x^2+5 \sqrt {x^2+1} x+16 \sqrt {x^2+1} x^5+20 \sqrt {x^2+1} x^3+1\right ) \left (64 x^8+144 x^6+104 x^4+25 x^2+7 \sqrt {x^2+1} x+64 \sqrt {x^2+1} x^7+112 \sqrt {x^2+1} x^5+56 \sqrt {x^2+1} x^3+1\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.08, size = 67, normalized size = 1.00 \begin {gather*} \frac {4 \sqrt {1+x^2} \left (5 x+x^3\right )}{3 \left (x+\sqrt {1+x^2}\right )^{5/2}}+\frac {2 \left (23+55 x^2+10 x^4\right )}{15 \left (x+\sqrt {1+x^2}\right )^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 38, normalized size = 0.57 \begin {gather*} \frac {2}{15} \, {\left (3 \, x^{3} - {\left (3 \, x^{2} - 23\right )} \sqrt {x^{2} + 1} - 19 \, x\right )} \sqrt {x + \sqrt {x^{2} + 1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2} - 1}{\sqrt {x^{2} + 1} \sqrt {x + \sqrt {x^{2} + 1}}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {x^{2}-1}{\sqrt {x^{2}+1}\, \sqrt {x +\sqrt {x^{2}+1}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2} - 1}{\sqrt {x^{2} + 1} \sqrt {x + \sqrt {x^{2} + 1}}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^2-1}{\sqrt {x^2+1}\,\sqrt {x+\sqrt {x^2+1}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.58, size = 63, normalized size = 0.94 \begin {gather*} \frac {2 x^{2}}{15 \sqrt {x + \sqrt {x^{2} + 1}}} + \frac {8 x \sqrt {x^{2} + 1}}{15 \sqrt {x + \sqrt {x^{2} + 1}}} + \frac {46}{15 \sqrt {x + \sqrt {x^{2} + 1}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________