Optimal. Leaf size=114 \[ -\frac {1}{8} \tan ^{-1}\left (\sqrt {\sqrt {x^2+1}+x}\right )-\frac {1}{8} \tanh ^{-1}\left (\sqrt {\sqrt {x^2+1}+x}\right )+\frac {384 x^8+456 x^6+48 x^4-57 x^2+\sqrt {x^2+1} \left (384 x^7+264 x^5-36 x^3-30 x\right )-8}{24 x^3 \left (\sqrt {x^2+1}+x\right )^{9/2}} \]
________________________________________________________________________________________
Rubi [A] time = 0.36, antiderivative size = 141, normalized size of antiderivative = 1.24, number of steps used = 13, number of rules used = 11, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.458, Rules used = {6742, 2117, 14, 2119, 457, 288, 290, 329, 212, 206, 203} \begin {gather*} \sqrt {\sqrt {x^2+1}+x}+\frac {1}{24 x \sqrt {\sqrt {x^2+1}+x}}+\frac {1}{12 x^2 \left (\sqrt {x^2+1}+x\right )^{3/2}}-\frac {1}{3 \left (\sqrt {x^2+1}+x\right )^{3/2}}-\frac {1}{8} \tan ^{-1}\left (\sqrt {\sqrt {x^2+1}+x}\right )-\frac {1}{8} \tanh ^{-1}\left (\sqrt {\sqrt {x^2+1}+x}\right )-\frac {1}{3 x^3 \sqrt {\sqrt {x^2+1}+x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 203
Rule 206
Rule 212
Rule 288
Rule 290
Rule 329
Rule 457
Rule 2117
Rule 2119
Rule 6742
Rubi steps
\begin {align*} \int \frac {1+x^4}{x^4 \sqrt {x+\sqrt {1+x^2}}} \, dx &=\int \left (\frac {1}{\sqrt {x+\sqrt {1+x^2}}}+\frac {1}{x^4 \sqrt {x+\sqrt {1+x^2}}}\right ) \, dx\\ &=\int \frac {1}{\sqrt {x+\sqrt {1+x^2}}} \, dx+\int \frac {1}{x^4 \sqrt {x+\sqrt {1+x^2}}} \, dx\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {1+x^2}{x^{5/2}} \, dx,x,x+\sqrt {1+x^2}\right )+8 \operatorname {Subst}\left (\int \frac {x^{3/2} \left (1+x^2\right )}{\left (-1+x^2\right )^4} \, dx,x,x+\sqrt {1+x^2}\right )\\ &=-\frac {1}{3 x^3 \sqrt {x+\sqrt {1+x^2}}}+\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 {4}{3} \operatorname {Subst}\left (\int \frac {x^{3/2}}{\left (-1+x^2\right )^3} \, dx,x,x+\sqrt {1+x^2}\right )\\ &=-\frac {1}{3 \left (x+\sqrt {1+x^2}\right )^{3/2}}+\frac {1}{12 x^2 \left (x+\sqrt {1+x^2}\right )^{3/2}}-\frac {1}{3 x^3 \sqrt {x+\sqrt {1+x^2}}}+\sqrt {x+\sqrt {1+x^2}}-\frac {1}{6} \operatorname {Subst}\left (\int \frac {1}{\sqrt {x} \left (-1+x^2\right )^2} \, dx,x,x+\sqrt {1+x^2}\right )\\ &=-\frac {1}{3 \left (x+\sqrt {1+x^2}\right )^{3/2}}+\frac {1}{12 x^2 \left (x+\sqrt {1+x^2}\right )^{3/2}}-\frac {1}{3 x^3 \sqrt {x+\sqrt {1+x^2}}}+\frac {1}{24 x \sqrt {x+\sqrt {1+x^2}}}+\sqrt {x+\sqrt {1+x^2}}+\frac {1}{8} \operatorname {Subst}\left (\int \frac {1}{\sqrt {x} \left (-1+x^2\right )} \, dx,x,x+\sqrt {1+x^2}\right )\\ &=-\frac {1}{3 \left (x+\sqrt {1+x^2}\right )^{3/2}}+\frac {1}{12 x^2 \left (x+\sqrt {1+x^2}\right )^{3/2}}-\frac {1}{3 x^3 \sqrt {x+\sqrt {1+x^2}}}+\frac {1}{24 x \sqrt {x+\sqrt {1+x^2}}}+\sqrt {x+\sqrt {1+x^2}}+\frac {1}{4} \operatorname {Subst}\left (\int \frac {1}{-1+x^4} \, dx,x,\sqrt {x+\sqrt {1+x^2}}\right )\\ &=-\frac {1}{3 \left (x+\sqrt {1+x^2}\right )^{3/2}}+\frac {1}{12 x^2 \left (x+\sqrt {1+x^2}\right )^{3/2}}-\frac {1}{3 x^3 \sqrt {x+\sqrt {1+x^2}}}+\frac {1}{24 x \sqrt {x+\sqrt {1+x^2}}}+\sqrt {x+\sqrt {1+x^2}}-\frac {1}{8} \operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {x+\sqrt {1+x^2}}\right )-\frac {1}{8} \operatorname {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {x+\sqrt {1+x^2}}\right )\\ &=-\frac {1}{3 \left (x+\sqrt {1+x^2}\right )^{3/2}}+\frac {1}{12 x^2 \left (x+\sqrt {1+x^2}\right )^{3/2}}-\frac {1}{3 x^3 \sqrt {x+\sqrt {1+x^2}}}+\frac {1}{24 x \sqrt {x+\sqrt {1+x^2}}}+\sqrt {x+\sqrt {1+x^2}}-\frac {1}{8} \tan ^{-1}\left (\sqrt {x+\sqrt {1+x^2}}\right )-\frac {1}{8} \tanh ^{-1}\left (\sqrt {x+\sqrt {1+x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 24.91, size = 9486, normalized size = 83.21 \begin {gather*} \text {Result too large to show} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.20, size = 114, normalized size = 1.00 \begin {gather*} \frac {-8-57 x^2+48 x^4+456 x^6+384 x^8+\sqrt {1+x^2} \left (-30 x-36 x^3+264 x^5+384 x^7\right )}{24 x^3 \left (x+\sqrt {1+x^2}\right )^{9/2}}-\frac {1}{8} \tan ^{-1}\left (\sqrt {x+\sqrt {1+x^2}}\right )-\frac {1}{8} \tanh ^{-1}\left (\sqrt {x+\sqrt {1+x^2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 109, normalized size = 0.96 \begin {gather*} -\frac {6 \, x^{3} \arctan \left (\sqrt {x + \sqrt {x^{2} + 1}}\right ) + 3 \, x^{3} \log \left (\sqrt {x + \sqrt {x^{2} + 1}} + 1\right ) - 3 \, x^{3} \log \left (\sqrt {x + \sqrt {x^{2} + 1}} - 1\right ) + 2 \, {\left (16 \, x^{5} - 19 \, x^{3} - {\left (16 \, x^{4} - 3 \, x^{2} - 8\right )} \sqrt {x^{2} + 1} - 10 \, x\right )} \sqrt {x + \sqrt {x^{2} + 1}}}{48 \, x^{3}} \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^{4} + 1}{\sqrt {x + \sqrt {x^{2} + 1}} x^{4}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.07, size = 84, normalized size = 0.74
method | result | size |
meijerg | \(-\frac {\sqrt {2}\, \hypergeom \left (\left [\frac {1}{4}, \frac {3}{4}, \frac {7}{4}\right ], \left [\frac {3}{2}, \frac {11}{4}\right ], -\frac {1}{x^{2}}\right )}{7 x^{\frac {7}{2}}}-\frac {-\frac {32 \sqrt {\pi }\, \sqrt {2}\, \cosh \left (\frac {3 \arcsinh \left (\frac {1}{x}\right )}{2}\right )}{3 x^{\frac {3}{2}}}-\frac {8 \sqrt {\pi }\, \sqrt {2}\, x^{\frac {3}{2}} \left (-\frac {4}{3 x^{4}}-\frac {2}{3 x^{2}}+\frac {2}{3}\right ) \sinh \left (\frac {3 \arcsinh \left (\frac {1}{x}\right )}{2}\right )}{\sqrt {1+\frac {1}{x^{2}}}}}{8 \sqrt {\pi }}\) | \(84\) |
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^{4} + 1}{\sqrt {x + \sqrt {x^{2} + 1}} x^{4}}\,{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^4+1}{x^4\,\sqrt {x+\sqrt {x^2+1}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [C] time = 8.12, size = 90, normalized size = 0.79 \begin {gather*} \frac {4 x}{3 \sqrt {x + \sqrt {x^{2} + 1}}} + \frac {2 \sqrt {x^{2} + 1}}{3 \sqrt {x + \sqrt {x^{2} + 1}}} - \frac {\Gamma \left (\frac {1}{4}\right ) \Gamma \left (\frac {3}{4}\right ) \Gamma \left (\frac {7}{4}\right ) {{}_{3}F_{2}\left (\begin {matrix} \frac {1}{4}, \frac {3}{4}, \frac {7}{4} \\ \frac {3}{2}, \frac {11}{4} \end {matrix}\middle | {\frac {e^{i \pi }}{x^{2}}} \right )}}{4 \pi x^{\frac {7}{2}} \Gamma \left (\frac {11}{4}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________