Optimal. Leaf size=127 \[ \frac {1}{4} \text {RootSum}\left [\text {$\#$1}^8-2 \text {$\#$1}^4+3\& ,\frac {\log \left (\sqrt [4]{x^4+x^2}-\text {$\#$1} x\right )-\log (x)}{\text {$\#$1}}\& \right ]-\frac {\left (x^4+x^2\right )^{3/4}}{x \left (x^2+1\right )}-\frac {\tan ^{-1}\left (\frac {\sqrt [4]{2} x}{\sqrt [4]{x^4+x^2}}\right )}{2 \sqrt [4]{2}}-\frac {\tanh ^{-1}\left (\frac {\sqrt [4]{2} x}{\sqrt [4]{x^4+x^2}}\right )}{2 \sqrt [4]{2}} \]
________________________________________________________________________________________
Rubi [C] time = 0.70, antiderivative size = 441, normalized size of antiderivative = 3.47, number of steps used = 19, number of rules used = 10, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.323, Rules used = {2056, 6715, 6728, 1404, 382, 377, 212, 206, 203, 1429} \begin {gather*} -\frac {x}{\sqrt [4]{x^4+x^2}}-\frac {\sqrt [4]{x^2+1} \sqrt {x} \tan ^{-1}\left (\frac {\sqrt [4]{2} \sqrt {x}}{\sqrt [4]{x^2+1}}\right )}{2 \sqrt [4]{2} \sqrt [4]{x^4+x^2}}-\frac {\sqrt [4]{x^2+1} \sqrt {x} \tan ^{-1}\left (\frac {\sqrt [4]{\sqrt {2}-2 i} \sqrt {x}}{\sqrt [8]{2} \sqrt [4]{x^2+1}}\right )}{2^{7/8} \sqrt [4]{\sqrt {2}-2 i} \sqrt [4]{x^4+x^2}}-\frac {\sqrt [4]{x^2+1} \sqrt {x} \tan ^{-1}\left (\frac {\sqrt [4]{\sqrt {2}+2 i} \sqrt {x}}{\sqrt [8]{2} \sqrt [4]{x^2+1}}\right )}{2^{7/8} \sqrt [4]{\sqrt {2}+2 i} \sqrt [4]{x^4+x^2}}-\frac {\sqrt [4]{x^2+1} \sqrt {x} \tanh ^{-1}\left (\frac {\sqrt [4]{2} \sqrt {x}}{\sqrt [4]{x^2+1}}\right )}{2 \sqrt [4]{2} \sqrt [4]{x^4+x^2}}-\frac {\sqrt [4]{x^2+1} \sqrt {x} \tanh ^{-1}\left (\frac {\sqrt [4]{\sqrt {2}-2 i} \sqrt {x}}{\sqrt [8]{2} \sqrt [4]{x^2+1}}\right )}{2^{7/8} \sqrt [4]{\sqrt {2}-2 i} \sqrt [4]{x^4+x^2}}-\frac {\sqrt [4]{x^2+1} \sqrt {x} \tanh ^{-1}\left (\frac {\sqrt [4]{\sqrt {2}+2 i} \sqrt {x}}{\sqrt [8]{2} \sqrt [4]{x^2+1}}\right )}{2^{7/8} \sqrt [4]{\sqrt {2}+2 i} \sqrt [4]{x^4+x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 206
Rule 212
Rule 377
Rule 382
Rule 1404
Rule 1429
Rule 2056
Rule 6715
Rule 6728
Rubi steps
\begin {align*} \int \frac {2+x^4}{\sqrt [4]{x^2+x^4} \left (-1-x^4+2 x^8\right )} \, dx &=\frac {\left (\sqrt {x} \sqrt [4]{1+x^2}\right ) \int \frac {2+x^4}{\sqrt {x} \sqrt [4]{1+x^2} \left (-1-x^4+2 x^8\right )} \, dx}{\sqrt [4]{x^2+x^4}}\\ &=\frac {\left (2 \sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \frac {2+x^8}{\sqrt [4]{1+x^4} \left (-1-x^8+2 x^{16}\right )} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^4}}\\ &=\frac {\left (2 \sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \left (\frac {4}{\sqrt [4]{1+x^4} \left (-4+4 x^8\right )}-\frac {2}{\sqrt [4]{1+x^4} \left (2+4 x^8\right )}\right ) \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^4}}\\ &=-\frac {\left (4 \sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [4]{1+x^4} \left (2+4 x^8\right )} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^4}}+\frac {\left (8 \sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [4]{1+x^4} \left (-4+4 x^8\right )} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^4}}\\ &=\frac {\left (8 \sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{\left (1+x^4\right )^{5/4} \left (-4+4 x^4\right )} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^4}}-\frac {\left (2 i \sqrt {2} \sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{\left (2 i \sqrt {2}-4 x^4\right ) \sqrt [4]{1+x^4}} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^4}}-\frac {\left (2 i \sqrt {2} \sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [4]{1+x^4} \left (2 i \sqrt {2}+4 x^4\right )} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^4}}\\ &=-\frac {x}{\sqrt [4]{x^2+x^4}}+\frac {\left (4 \sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [4]{1+x^4} \left (-4+4 x^4\right )} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^4}}-\frac {\left (2 i \sqrt {2} \sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{2 i \sqrt {2}-\left (-4+2 i \sqrt {2}\right ) x^4} \, dx,x,\frac {\sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{\sqrt [4]{x^2+x^4}}-\frac {\left (2 i \sqrt {2} \sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{2 i \sqrt {2}-\left (4+2 i \sqrt {2}\right ) x^4} \, dx,x,\frac {\sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{\sqrt [4]{x^2+x^4}}\\ &=-\frac {x}{\sqrt [4]{x^2+x^4}}+\frac {\left (4 \sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{-4+8 x^4} \, dx,x,\frac {\sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{\sqrt [4]{x^2+x^4}}-\frac {\left (\sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [4]{2}-\sqrt {-2 i+\sqrt {2}} x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{2^{3/4} \sqrt [4]{x^2+x^4}}-\frac {\left (\sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [4]{2}+\sqrt {-2 i+\sqrt {2}} x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{2^{3/4} \sqrt [4]{x^2+x^4}}-\frac {\left (\sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [4]{2}-\sqrt {2 i+\sqrt {2}} x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{2^{3/4} \sqrt [4]{x^2+x^4}}-\frac {\left (\sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [4]{2}+\sqrt {2 i+\sqrt {2}} x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{2^{3/4} \sqrt [4]{x^2+x^4}}\\ &=-\frac {x}{\sqrt [4]{x^2+x^4}}-\frac {\sqrt {x} \sqrt [4]{1+x^2} \tan ^{-1}\left (\frac {\sqrt [4]{-2 i+\sqrt {2}} \sqrt {x}}{\sqrt [8]{2} \sqrt [4]{1+x^2}}\right )}{2^{7/8} \sqrt [4]{-2 i+\sqrt {2}} \sqrt [4]{x^2+x^4}}-\frac {\sqrt {x} \sqrt [4]{1+x^2} \tan ^{-1}\left (\frac {\sqrt [4]{2 i+\sqrt {2}} \sqrt {x}}{\sqrt [8]{2} \sqrt [4]{1+x^2}}\right )}{2^{7/8} \sqrt [4]{2 i+\sqrt {2}} \sqrt [4]{x^2+x^4}}-\frac {\sqrt {x} \sqrt [4]{1+x^2} \tanh ^{-1}\left (\frac {\sqrt [4]{-2 i+\sqrt {2}} \sqrt {x}}{\sqrt [8]{2} \sqrt [4]{1+x^2}}\right )}{2^{7/8} \sqrt [4]{-2 i+\sqrt {2}} \sqrt [4]{x^2+x^4}}-\frac {\sqrt {x} \sqrt [4]{1+x^2} \tanh ^{-1}\left (\frac {\sqrt [4]{2 i+\sqrt {2}} \sqrt {x}}{\sqrt [8]{2} \sqrt [4]{1+x^2}}\right )}{2^{7/8} \sqrt [4]{2 i+\sqrt {2}} \sqrt [4]{x^2+x^4}}-\frac {\left (\sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{1-\sqrt {2} x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{2 \sqrt [4]{x^2+x^4}}-\frac {\left (\sqrt {x} \sqrt [4]{1+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{1+\sqrt {2} x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{2 \sqrt [4]{x^2+x^4}}\\ &=-\frac {x}{\sqrt [4]{x^2+x^4}}-\frac {\sqrt {x} \sqrt [4]{1+x^2} \tan ^{-1}\left (\frac {\sqrt [4]{2} \sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{2 \sqrt [4]{2} \sqrt [4]{x^2+x^4}}-\frac {\sqrt {x} \sqrt [4]{1+x^2} \tan ^{-1}\left (\frac {\sqrt [4]{-2 i+\sqrt {2}} \sqrt {x}}{\sqrt [8]{2} \sqrt [4]{1+x^2}}\right )}{2^{7/8} \sqrt [4]{-2 i+\sqrt {2}} \sqrt [4]{x^2+x^4}}-\frac {\sqrt {x} \sqrt [4]{1+x^2} \tan ^{-1}\left (\frac {\sqrt [4]{2 i+\sqrt {2}} \sqrt {x}}{\sqrt [8]{2} \sqrt [4]{1+x^2}}\right )}{2^{7/8} \sqrt [4]{2 i+\sqrt {2}} \sqrt [4]{x^2+x^4}}-\frac {\sqrt {x} \sqrt [4]{1+x^2} \tanh ^{-1}\left (\frac {\sqrt [4]{2} \sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{2 \sqrt [4]{2} \sqrt [4]{x^2+x^4}}-\frac {\sqrt {x} \sqrt [4]{1+x^2} \tanh ^{-1}\left (\frac {\sqrt [4]{-2 i+\sqrt {2}} \sqrt {x}}{\sqrt [8]{2} \sqrt [4]{1+x^2}}\right )}{2^{7/8} \sqrt [4]{-2 i+\sqrt {2}} \sqrt [4]{x^2+x^4}}-\frac {\sqrt {x} \sqrt [4]{1+x^2} \tanh ^{-1}\left (\frac {\sqrt [4]{2 i+\sqrt {2}} \sqrt {x}}{\sqrt [8]{2} \sqrt [4]{1+x^2}}\right )}{2^{7/8} \sqrt [4]{2 i+\sqrt {2}} \sqrt [4]{x^2+x^4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.50, size = 130, normalized size = 1.02 \begin {gather*} \frac {x \left (\sqrt [4]{\frac {1}{x^2}+1} \left (2 \text {RootSum}\left [\text {$\#$1}^8-2 \text {$\#$1}^4+3\&,\frac {\log \left (\sqrt [4]{\frac {1}{x^2}+1}-\text {$\#$1}\right )}{\text {$\#$1}}\&\right ]+2^{3/4} \left (\log \left (2-2^{3/4} \sqrt [4]{\frac {1}{x^2}+1}\right )-\log \left (2^{3/4} \sqrt [4]{\frac {1}{x^2}+1}+2\right )+2 \tan ^{-1}\left (\frac {\sqrt [4]{\frac {1}{x^2}+1}}{\sqrt [4]{2}}\right )\right )\right )-8\right )}{8 \sqrt [4]{x^4+x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.00, size = 127, normalized size = 1.00 \begin {gather*} -\frac {\left (x^2+x^4\right )^{3/4}}{x \left (1+x^2\right )}-\frac {\tan ^{-1}\left (\frac {\sqrt [4]{2} x}{\sqrt [4]{x^2+x^4}}\right )}{2 \sqrt [4]{2}}-\frac {\tanh ^{-1}\left (\frac {\sqrt [4]{2} x}{\sqrt [4]{x^2+x^4}}\right )}{2 \sqrt [4]{2}}+\frac {1}{4} \text {RootSum}\left [3-2 \text {$\#$1}^4+\text {$\#$1}^8\&,\frac {-\log (x)+\log \left (\sqrt [4]{x^2+x^4}-x \text {$\#$1}\right )}{\text {$\#$1}}\&\right ] \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \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} + 2}{{\left (2 \, x^{8} - x^{4} - 1\right )} {\left (x^{4} + x^{2}\right )}^{\frac {1}{4}}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 180.00, size = 0, normalized size = 0.00 \[\int \frac {x^{4}+2}{\left (x^{4}+x^{2}\right )^{\frac {1}{4}} \left (2 x^{8}-x^{4}-1\right )}\, 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*} \frac {2 \, {\left (64 \, x^{9} + 16 \, x^{7} + 11 \, {\left (4 \, x^{5} + x^{3} - 3 \, x\right )} x^{4} - 28 \, x^{5} - 2 \, x^{3} - 22 \, x\right )}}{231 \, {\left (2 \, x^{\frac {17}{2}} - x^{\frac {9}{2}} - \sqrt {x}\right )} {\left (x^{2} + 1\right )}^{\frac {1}{4}}} + \int \frac {4 \, {\left (256 \, x^{8} + 64 \, x^{6} + {\left (128 \, x^{8} + 32 \, x^{6} + 164 \, x^{4} + 51 \, x^{2} - 209\right )} x^{4} - 68 \, x^{4} + 3 \, x^{2} - 121\right )}}{231 \, {\left (4 \, x^{\frac {33}{2}} - 4 \, x^{\frac {25}{2}} - 3 \, x^{\frac {17}{2}} + 2 \, x^{\frac {9}{2}} + \sqrt {x}\right )} {\left (x^{2} + 1\right )}^{\frac {1}{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+2}{{\left (x^4+x^2\right )}^{1/4}\,\left (-2\,x^8+x^4+1\right )} \,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 {x^{4} + 2}{\sqrt [4]{x^{2} \left (x^{2} + 1\right )} \left (x - 1\right ) \left (x + 1\right ) \left (x^{2} + 1\right ) \left (2 x^{4} + 1\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________