Optimal. Leaf size=83 \[ \frac {2 \sqrt {x^2+1} \left (2 x^3+6 x^2-2 x+1\right )}{3 \left (\sqrt {x^2+1}+x\right )^{5/2}}+\frac {2 \left (10 x^4+30 x^3-5 x^2+20 x-7\right )}{15 \left (\sqrt {x^2+1}+x\right )^{5/2}} \]
________________________________________________________________________________________
Rubi [A] time = 0.17, antiderivative size = 90, normalized size of antiderivative = 1.08, number of steps used = 8, number of rules used = 5, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {6742, 2117, 14, 2122, 270} \begin {gather*} \frac {1}{6} \left (\sqrt {x^2+1}+x\right )^{3/2}+\sqrt {\sqrt {x^2+1}+x}-\frac {1}{\sqrt {\sqrt {x^2+1}+x}}-\frac {1}{3 \left (\sqrt {x^2+1}+x\right )^{3/2}}-\frac {1}{10 \left (\sqrt {x^2+1}+x\right )^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 270
Rule 2117
Rule 2122
Rule 6742
Rubi steps
\begin {align*} \int \frac {1+\sqrt {1+x^2}}{\sqrt {x+\sqrt {1+x^2}}} \, dx &=\int \left (\frac {1}{\sqrt {x+\sqrt {1+x^2}}}+\frac {\sqrt {1+x^2}}{\sqrt {x+\sqrt {1+x^2}}}\right ) \, dx\\ &=\int \frac {1}{\sqrt {x+\sqrt {1+x^2}}} \, dx+\int \frac {\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 )+\frac {1}{2} \operatorname {Subst}\left (\int \frac {1+x^2}{x^{5/2}} \, dx,x,x+\sqrt {1+x^2}\right )\\ &=\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}{2} \operatorname {Subst}\left (\int \left (\frac {1}{x^{5/2}}+\frac {1}{\sqrt {x}}\right ) \, dx,x,x+\sqrt {1+x^2}\right )\\ &=-\frac {1}{10 \left (x+\sqrt {1+x^2}\right )^{5/2}}-\frac {1}{3 \left (x+\sqrt {1+x^2}\right )^{3/2}}-\frac {1}{\sqrt {x+\sqrt {1+x^2}}}+\sqrt {x+\sqrt {1+x^2}}+\frac {1}{6} \left (x+\sqrt {1+x^2}\right )^{3/2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 85, normalized size = 1.02 \begin {gather*} \frac {2 \left (10 x^4+5 \left (6 \sqrt {x^2+1}-1\right ) x^2-10 \left (\sqrt {x^2+1}-2\right ) x+5 \sqrt {x^2+1}+10 \left (\sqrt {x^2+1}+3\right ) x^3-7\right )}{15 \left (\sqrt {x^2+1}+x\right )^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.09, size = 83, normalized size = 1.00 \begin {gather*} \frac {2 \sqrt {1+x^2} \left (1-2 x+6 x^2+2 x^3\right )}{3 \left (x+\sqrt {1+x^2}\right )^{5/2}}+\frac {2 \left (-7+20 x-5 x^2+30 x^3+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.62, size = 47, normalized size = 0.57 \begin {gather*} \frac {2}{15} \, {\left (3 \, x^{3} - 5 \, x^{2} - {\left (3 \, x^{2} - 5 \, x + 7\right )} \sqrt {x^{2} + 1} + 11 \, x + 5\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 {\sqrt {x^{2} + 1} + 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.02, size = 0, normalized size = 0.00 \[\int \frac {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 {\sqrt {x^{2} + 1} + 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 {\sqrt {x^2+1}+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.55, size = 107, normalized size = 1.29 \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 {4 x}{3 \sqrt {x + \sqrt {x^{2} + 1}}} + \frac {2 \sqrt {x^{2} + 1}}{3 \sqrt {x + \sqrt {x^{2} + 1}}} - \frac {14}{15 \sqrt {x + \sqrt {x^{2} + 1}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________