Optimal. Leaf size=185 \[ \frac {\left (\sqrt {x^2+1}+x\right )^{5/2}}{8 \left (x^2+\sqrt {x^2+1} x+1\right )^2}-\frac {3 \sqrt {\sqrt {x^2+1}+x}}{8 \left (x^2+\sqrt {x^2+1} x+1\right )^2}+\frac {3 \tan ^{-1}\left (\frac {\frac {\sqrt {x^2+1}}{\sqrt {2}}+\frac {x}{\sqrt {2}}-\frac {1}{\sqrt {2}}}{\sqrt {\sqrt {x^2+1}+x}}\right )}{4 \sqrt {2}}+\frac {3 \tanh ^{-1}\left (\frac {\frac {\sqrt {x^2+1}}{\sqrt {2}}+\frac {x}{\sqrt {2}}+\frac {1}{\sqrt {2}}}{\sqrt {\sqrt {x^2+1}+x}}\right )}{4 \sqrt {2}} \]
________________________________________________________________________________________
Rubi [A] time = 0.16, antiderivative size = 225, normalized size of antiderivative = 1.22, number of steps used = 13, number of rules used = 10, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.435, Rules used = {2122, 288, 290, 329, 211, 1165, 628, 1162, 617, 204} \begin {gather*} \frac {\sqrt {\sqrt {x^2+1}+x}}{2 \left (\left (\sqrt {x^2+1}+x\right )^2+1\right )}-\frac {2 \sqrt {\sqrt {x^2+1}+x}}{\left (\left (\sqrt {x^2+1}+x\right )^2+1\right )^2}-\frac {3 \log \left (\sqrt {x^2+1}-\sqrt {2} \sqrt {\sqrt {x^2+1}+x}+x+1\right )}{8 \sqrt {2}}+\frac {3 \log \left (\sqrt {x^2+1}+\sqrt {2} \sqrt {\sqrt {x^2+1}+x}+x+1\right )}{8 \sqrt {2}}-\frac {3 \tan ^{-1}\left (1-\sqrt {2} \sqrt {\sqrt {x^2+1}+x}\right )}{4 \sqrt {2}}+\frac {3 \tan ^{-1}\left (\sqrt {2} \sqrt {\sqrt {x^2+1}+x}+1\right )}{4 \sqrt {2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 211
Rule 288
Rule 290
Rule 329
Rule 617
Rule 628
Rule 1162
Rule 1165
Rule 2122
Rubi steps
\begin {align*} \int \frac {1}{\left (1+x^2\right )^2 \sqrt {x+\sqrt {1+x^2}}} \, dx &=8 \operatorname {Subst}\left (\int \frac {x^{3/2}}{\left (1+x^2\right )^3} \, dx,x,x+\sqrt {1+x^2}\right )\\ &=-\frac {2 \sqrt {x+\sqrt {1+x^2}}}{\left (1+\left (x+\sqrt {1+x^2}\right )^2\right )^2}+\operatorname {Subst}\left (\int \frac {1}{\sqrt {x} \left (1+x^2\right )^2} \, dx,x,x+\sqrt {1+x^2}\right )\\ &=-\frac {2 \sqrt {x+\sqrt {1+x^2}}}{\left (1+\left (x+\sqrt {1+x^2}\right )^2\right )^2}+\frac {\sqrt {x+\sqrt {1+x^2}}}{2 \left (1+\left (x+\sqrt {1+x^2}\right )^2\right )}+\frac {3}{4} \operatorname {Subst}\left (\int \frac {1}{\sqrt {x} \left (1+x^2\right )} \, dx,x,x+\sqrt {1+x^2}\right )\\ &=-\frac {2 \sqrt {x+\sqrt {1+x^2}}}{\left (1+\left (x+\sqrt {1+x^2}\right )^2\right )^2}+\frac {\sqrt {x+\sqrt {1+x^2}}}{2 \left (1+\left (x+\sqrt {1+x^2}\right )^2\right )}+\frac {3}{2} \operatorname {Subst}\left (\int \frac {1}{1+x^4} \, dx,x,\sqrt {x+\sqrt {1+x^2}}\right )\\ &=-\frac {2 \sqrt {x+\sqrt {1+x^2}}}{\left (1+\left (x+\sqrt {1+x^2}\right )^2\right )^2}+\frac {\sqrt {x+\sqrt {1+x^2}}}{2 \left (1+\left (x+\sqrt {1+x^2}\right )^2\right )}+\frac {3}{4} \operatorname {Subst}\left (\int \frac {1-x^2}{1+x^4} \, dx,x,\sqrt {x+\sqrt {1+x^2}}\right )+\frac {3}{4} \operatorname {Subst}\left (\int \frac {1+x^2}{1+x^4} \, dx,x,\sqrt {x+\sqrt {1+x^2}}\right )\\ &=-\frac {2 \sqrt {x+\sqrt {1+x^2}}}{\left (1+\left (x+\sqrt {1+x^2}\right )^2\right )^2}+\frac {\sqrt {x+\sqrt {1+x^2}}}{2 \left (1+\left (x+\sqrt {1+x^2}\right )^2\right )}+\frac {3}{8} \operatorname {Subst}\left (\int \frac {1}{1-\sqrt {2} x+x^2} \, dx,x,\sqrt {x+\sqrt {1+x^2}}\right )+\frac {3}{8} \operatorname {Subst}\left (\int \frac {1}{1+\sqrt {2} x+x^2} \, dx,x,\sqrt {x+\sqrt {1+x^2}}\right )-\frac {3 \operatorname {Subst}\left (\int \frac {\sqrt {2}+2 x}{-1-\sqrt {2} x-x^2} \, dx,x,\sqrt {x+\sqrt {1+x^2}}\right )}{8 \sqrt {2}}-\frac {3 \operatorname {Subst}\left (\int \frac {\sqrt {2}-2 x}{-1+\sqrt {2} x-x^2} \, dx,x,\sqrt {x+\sqrt {1+x^2}}\right )}{8 \sqrt {2}}\\ &=-\frac {2 \sqrt {x+\sqrt {1+x^2}}}{\left (1+\left (x+\sqrt {1+x^2}\right )^2\right )^2}+\frac {\sqrt {x+\sqrt {1+x^2}}}{2 \left (1+\left (x+\sqrt {1+x^2}\right )^2\right )}-\frac {3 \log \left (1+x+\sqrt {1+x^2}-\sqrt {2} \sqrt {x+\sqrt {1+x^2}}\right )}{8 \sqrt {2}}+\frac {3 \log \left (1+x+\sqrt {1+x^2}+\sqrt {2} \sqrt {x+\sqrt {1+x^2}}\right )}{8 \sqrt {2}}+\frac {3 \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\sqrt {2} \sqrt {x+\sqrt {1+x^2}}\right )}{4 \sqrt {2}}-\frac {3 \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\sqrt {2} \sqrt {x+\sqrt {1+x^2}}\right )}{4 \sqrt {2}}\\ &=-\frac {2 \sqrt {x+\sqrt {1+x^2}}}{\left (1+\left (x+\sqrt {1+x^2}\right )^2\right )^2}+\frac {\sqrt {x+\sqrt {1+x^2}}}{2 \left (1+\left (x+\sqrt {1+x^2}\right )^2\right )}-\frac {3 \tan ^{-1}\left (1-\sqrt {2} \sqrt {x+\sqrt {1+x^2}}\right )}{4 \sqrt {2}}+\frac {3 \tan ^{-1}\left (1+\sqrt {2} \sqrt {x+\sqrt {1+x^2}}\right )}{4 \sqrt {2}}-\frac {3 \log \left (1+x+\sqrt {1+x^2}-\sqrt {2} \sqrt {x+\sqrt {1+x^2}}\right )}{8 \sqrt {2}}+\frac {3 \log \left (1+x+\sqrt {1+x^2}+\sqrt {2} \sqrt {x+\sqrt {1+x^2}}\right )}{8 \sqrt {2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.23, size = 220, normalized size = 1.19 \begin {gather*} \frac {1}{16} \left (\frac {8 \sqrt {\sqrt {x^2+1}+x}}{\left (\sqrt {x^2+1}+x\right )^2+1}-\frac {8 \sqrt {\sqrt {x^2+1}+x}}{\left (x^2+\sqrt {x^2+1} x+1\right )^2}-3 \sqrt {2} \log \left (\sqrt {x^2+1}-\sqrt {2} \sqrt {\sqrt {x^2+1}+x}+x+1\right )+3 \sqrt {2} \log \left (\sqrt {x^2+1}+\sqrt {2} \sqrt {\sqrt {x^2+1}+x}+x+1\right )-6 \sqrt {2} \tan ^{-1}\left (1-\sqrt {2} \sqrt {\sqrt {x^2+1}+x}\right )+6 \sqrt {2} \tan ^{-1}\left (\sqrt {2} \sqrt {\sqrt {x^2+1}+x}+1\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.31, size = 185, normalized size = 1.00 \begin {gather*} -\frac {3 \sqrt {x+\sqrt {1+x^2}}}{8 \left (1+x^2+x \sqrt {1+x^2}\right )^2}+\frac {\left (x+\sqrt {1+x^2}\right )^{5/2}}{8 \left (1+x^2+x \sqrt {1+x^2}\right )^2}+\frac {3 \tan ^{-1}\left (\frac {-\frac {1}{\sqrt {2}}+\frac {x}{\sqrt {2}}+\frac {\sqrt {1+x^2}}{\sqrt {2}}}{\sqrt {x+\sqrt {1+x^2}}}\right )}{4 \sqrt {2}}+\frac {3 \tanh ^{-1}\left (\frac {\frac {1}{\sqrt {2}}+\frac {x}{\sqrt {2}}+\frac {\sqrt {1+x^2}}{\sqrt {2}}}{\sqrt {x+\sqrt {1+x^2}}}\right )}{4 \sqrt {2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.56, size = 248, normalized size = 1.34 \begin {gather*} -\frac {12 \, \sqrt {2} {\left (x^{2} + 1\right )} \arctan \left (\sqrt {2} \sqrt {\sqrt {2} \sqrt {x + \sqrt {x^{2} + 1}} + x + \sqrt {x^{2} + 1} + 1} - \sqrt {2} \sqrt {x + \sqrt {x^{2} + 1}} - 1\right ) + 12 \, \sqrt {2} {\left (x^{2} + 1\right )} \arctan \left (\frac {1}{2} \, \sqrt {2} \sqrt {-4 \, \sqrt {2} \sqrt {x + \sqrt {x^{2} + 1}} + 4 \, x + 4 \, \sqrt {x^{2} + 1} + 4} - \sqrt {2} \sqrt {x + \sqrt {x^{2} + 1}} + 1\right ) - 3 \, \sqrt {2} {\left (x^{2} + 1\right )} \log \left (4 \, \sqrt {2} \sqrt {x + \sqrt {x^{2} + 1}} + 4 \, x + 4 \, \sqrt {x^{2} + 1} + 4\right ) + 3 \, \sqrt {2} {\left (x^{2} + 1\right )} \log \left (-4 \, \sqrt {2} \sqrt {x + \sqrt {x^{2} + 1}} + 4 \, x + 4 \, \sqrt {x^{2} + 1} + 4\right ) + 4 \, {\left (3 \, x^{2} - 3 \, \sqrt {x^{2} + 1} x + 1\right )} \sqrt {x + \sqrt {x^{2} + 1}}}{16 \, {\left (x^{2} + 1\right )}} \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 {1}{{\left (x^{2} + 1\right )}^{2} \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.03, size = 0, normalized size = 0.00 \[\int \frac {1}{\left (x^{2}+1\right )^{2} \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 {1}{{\left (x^{2} + 1\right )}^{2} \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 {1}{{\left (x^2+1\right )}^2\,\sqrt {x+\sqrt {x^2+1}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {x + \sqrt {x^{2} + 1}} \left (x^{2} + 1\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________