Optimal. Leaf size=114 \[ \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} \text {ArcTan}\left (\sqrt {x+\sqrt {1+x^2}}\right )-\frac {1}{8} \tanh ^{-1}\left (\sqrt {x+\sqrt {1+x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.39, 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 = {6874, 2142,
14, 2144, 468, 294, 296, 335, 218, 212, 209} \begin {gather*} -\frac {1}{8} \text {ArcTan}\left (\sqrt {\sqrt {x^2+1}+x}\right )+\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} \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 209
Rule 212
Rule 218
Rule 294
Rule 296
Rule 335
Rule 468
Rule 2142
Rule 2144
Rule 6874
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} \text {Subst}\left (\int \frac {1+x^2}{x^{5/2}} \, dx,x,x+\sqrt {1+x^2}\right )+8 \text {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} \text {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} \text {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} \text {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} \text {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} \text {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} \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {x+\sqrt {1+x^2}}\right )-\frac {1}{8} \text {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 [A]
time = 0.18, size = 111, normalized size = 0.97 \begin {gather*} \frac {1}{24} \left (\frac {-8-57 x^2+48 x^4+456 x^6+384 x^8+6 x \sqrt {1+x^2} \left (-5-6 x^2+44 x^4+64 x^6\right )}{x^3 \left (x+\sqrt {1+x^2}\right )^{9/2}}-3 \text {ArcTan}\left (\sqrt {x+\sqrt {1+x^2}}\right )-3 \tanh ^{-1}\left (\sqrt {x+\sqrt {1+x^2}}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 5 vs. order
3.
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*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, 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]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 53.96, 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]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \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]
________________________________________________________________________________________