Optimal. Leaf size=176 \[ \tan ^{-1}\left (\frac {x}{\sqrt [4]{x^4+1}}\right )-\frac {3 \tan ^{-1}\left (\frac {\sqrt [8]{2} x}{\sqrt [4]{x^4+1}}\right )}{4 \sqrt [8]{2}}+\tanh ^{-1}\left (\frac {x}{\sqrt [4]{x^4+1}}\right )-\frac {3 \tanh ^{-1}\left (\frac {\sqrt [8]{2} x}{\sqrt [4]{x^4+1}}\right )}{4 \sqrt [8]{2}}+\frac {3 \tan ^{-1}\left (\frac {2^{5/8} x \sqrt [4]{x^4+1}}{\sqrt [4]{2} x^2-\sqrt {x^4+1}}\right )}{4\ 2^{5/8}}-\frac {3 \tanh ^{-1}\left (\frac {2\ 2^{3/8} x \sqrt [4]{x^4+1}}{2^{3/4} \sqrt {x^4+1}+2 x^2}\right )}{4\ 2^{5/8}} \]
________________________________________________________________________________________
Rubi [A] time = 0.49, antiderivative size = 306, normalized size of antiderivative = 1.74, number of steps used = 31, number of rules used = 14, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.412, Rules used = {6728, 240, 212, 206, 203, 1428, 408, 377, 211, 1165, 628, 1162, 617, 204} \begin {gather*} \tan ^{-1}\left (\frac {x}{\sqrt [4]{x^4+1}}\right )-\frac {3 \tan ^{-1}\left (\frac {\sqrt [8]{2} x}{\sqrt [4]{x^4+1}}\right )}{4 \sqrt [8]{2}}-\frac {3 \left (1-\sqrt {2}\right ) \tan ^{-1}\left (1-\frac {2^{5/8} x}{\sqrt [4]{x^4+1}}\right )}{4 \sqrt [8]{2} \left (2-\sqrt {2}\right )}+\frac {3 \left (1-\sqrt {2}\right ) \tan ^{-1}\left (\frac {2^{5/8} x}{\sqrt [4]{x^4+1}}+1\right )}{4 \sqrt [8]{2} \left (2-\sqrt {2}\right )}+\tanh ^{-1}\left (\frac {x}{\sqrt [4]{x^4+1}}\right )-\frac {3 \tanh ^{-1}\left (\frac {\sqrt [8]{2} x}{\sqrt [4]{x^4+1}}\right )}{4 \sqrt [8]{2}}-\frac {3 \left (1-\sqrt {2}\right ) \log \left (-\frac {2 x}{\sqrt [4]{x^4+1}}+\frac {2^{5/8} x^2}{\sqrt {x^4+1}}+2^{3/8}\right )}{8 \sqrt [8]{2} \left (2-\sqrt {2}\right )}+\frac {3 \left (1-\sqrt {2}\right ) \log \left (\frac {2^{5/8} x}{\sqrt [4]{x^4+1}}+\frac {\sqrt [4]{2} x^2}{\sqrt {x^4+1}}+1\right )}{8 \sqrt [8]{2} \left (2-\sqrt {2}\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 204
Rule 206
Rule 211
Rule 212
Rule 240
Rule 377
Rule 408
Rule 617
Rule 628
Rule 1162
Rule 1165
Rule 1428
Rule 6728
Rubi steps
\begin {align*} \int \frac {1-x^4+2 x^8}{\sqrt [4]{1+x^4} \left (-1-2 x^4+x^8\right )} \, dx &=\int \left (\frac {2}{\sqrt [4]{1+x^4}}+\frac {3 \left (1+x^4\right )^{3/4}}{-1-2 x^4+x^8}\right ) \, dx\\ &=2 \int \frac {1}{\sqrt [4]{1+x^4}} \, dx+3 \int \frac {\left (1+x^4\right )^{3/4}}{-1-2 x^4+x^8} \, dx\\ &=2 \operatorname {Subst}\left (\int \frac {1}{1-x^4} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )+\frac {3 \int \frac {\left (1+x^4\right )^{3/4}}{-2-2 \sqrt {2}+2 x^4} \, dx}{\sqrt {2}}-\frac {3 \int \frac {\left (1+x^4\right )^{3/4}}{-2+2 \sqrt {2}+2 x^4} \, dx}{\sqrt {2}}\\ &=\left (3 \left (1-\sqrt {2}\right )\right ) \int \frac {1}{\sqrt [4]{1+x^4} \left (-2+2 \sqrt {2}+2 x^4\right )} \, dx+\left (3 \left (1+\sqrt {2}\right )\right ) \int \frac {1}{\sqrt [4]{1+x^4} \left (-2-2 \sqrt {2}+2 x^4\right )} \, dx+\operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )+\operatorname {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )\\ &=\tan ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )+\tanh ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )+\left (3 \left (1-\sqrt {2}\right )\right ) \operatorname {Subst}\left (\int \frac {1}{-2+2 \sqrt {2}-\left (-4+2 \sqrt {2}\right ) x^4} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )+\left (3 \left (1+\sqrt {2}\right )\right ) \operatorname {Subst}\left (\int \frac {1}{-2-2 \sqrt {2}-\left (-4-2 \sqrt {2}\right ) x^4} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )\\ &=\tan ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )+\tanh ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {3}{4} \operatorname {Subst}\left (\int \frac {1}{1-\sqrt [4]{2} x^2} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {3}{4} \operatorname {Subst}\left (\int \frac {1}{1+\sqrt [4]{2} x^2} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )+\frac {1}{2} \left (3 \left (1-\sqrt {2}\right )\right ) \operatorname {Subst}\left (\int \frac {1-\sqrt [4]{2} x^2}{-2+2 \sqrt {2}+\left (4-2 \sqrt {2}\right ) x^4} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )+\frac {1}{2} \left (3 \left (1-\sqrt {2}\right )\right ) \operatorname {Subst}\left (\int \frac {1+\sqrt [4]{2} x^2}{-2+2 \sqrt {2}+\left (4-2 \sqrt {2}\right ) x^4} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )\\ &=\tan ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {3 \tan ^{-1}\left (\frac {\sqrt [8]{2} x}{\sqrt [4]{1+x^4}}\right )}{4 \sqrt [8]{2}}+\tanh ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {3 \tanh ^{-1}\left (\frac {\sqrt [8]{2} x}{\sqrt [4]{1+x^4}}\right )}{4 \sqrt [8]{2}}+\frac {\left (3 \left (1-\sqrt {2}\right )\right ) \operatorname {Subst}\left (\int \frac {1}{\frac {1}{\sqrt [4]{2}}-2^{3/8} x+x^2} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )}{4\ 2^{3/4} \left (2-\sqrt {2}\right )}+\frac {\left (3 \left (1-\sqrt {2}\right )\right ) \operatorname {Subst}\left (\int \frac {1}{\frac {1}{\sqrt [4]{2}}+2^{3/8} x+x^2} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )}{4\ 2^{3/4} \left (2-\sqrt {2}\right )}-\frac {\left (3 \left (1-\sqrt {2}\right )\right ) \operatorname {Subst}\left (\int \frac {2^{3/8}+2 x}{-\frac {1}{\sqrt [4]{2}}-2^{3/8} x-x^2} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )}{8 \sqrt [8]{2} \left (2-\sqrt {2}\right )}-\frac {\left (3 \left (1-\sqrt {2}\right )\right ) \operatorname {Subst}\left (\int \frac {2^{3/8}-2 x}{-\frac {1}{\sqrt [4]{2}}+2^{3/8} x-x^2} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )}{8 \sqrt [8]{2} \left (2-\sqrt {2}\right )}\\ &=\tan ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {3 \tan ^{-1}\left (\frac {\sqrt [8]{2} x}{\sqrt [4]{1+x^4}}\right )}{4 \sqrt [8]{2}}+\tanh ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {3 \tanh ^{-1}\left (\frac {\sqrt [8]{2} x}{\sqrt [4]{1+x^4}}\right )}{4 \sqrt [8]{2}}-\frac {3 \left (1-\sqrt {2}\right ) \log \left (2^{3/8}+\frac {2^{5/8} x^2}{\sqrt {1+x^4}}-\frac {2 x}{\sqrt [4]{1+x^4}}\right )}{8 \sqrt [8]{2} \left (2-\sqrt {2}\right )}+\frac {3 \left (1-\sqrt {2}\right ) \log \left (1+\frac {\sqrt [4]{2} x^2}{\sqrt {1+x^4}}+\frac {2^{5/8} x}{\sqrt [4]{1+x^4}}\right )}{8 \sqrt [8]{2} \left (2-\sqrt {2}\right )}+\frac {\left (3 \left (1-\sqrt {2}\right )\right ) \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {2^{5/8} x}{\sqrt [4]{1+x^4}}\right )}{4 \sqrt [8]{2} \left (2-\sqrt {2}\right )}-\frac {\left (3 \left (1-\sqrt {2}\right )\right ) \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {2^{5/8} x}{\sqrt [4]{1+x^4}}\right )}{4 \sqrt [8]{2} \left (2-\sqrt {2}\right )}\\ &=\tan ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {3 \tan ^{-1}\left (\frac {\sqrt [8]{2} x}{\sqrt [4]{1+x^4}}\right )}{4 \sqrt [8]{2}}-\frac {3 \left (1-\sqrt {2}\right ) \tan ^{-1}\left (1-\frac {2^{5/8} x}{\sqrt [4]{1+x^4}}\right )}{4 \sqrt [8]{2} \left (2-\sqrt {2}\right )}+\frac {3 \left (1-\sqrt {2}\right ) \tan ^{-1}\left (1+\frac {2^{5/8} x}{\sqrt [4]{1+x^4}}\right )}{4 \sqrt [8]{2} \left (2-\sqrt {2}\right )}+\tanh ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {3 \tanh ^{-1}\left (\frac {\sqrt [8]{2} x}{\sqrt [4]{1+x^4}}\right )}{4 \sqrt [8]{2}}-\frac {3 \left (1-\sqrt {2}\right ) \log \left (2^{3/8}+\frac {2^{5/8} x^2}{\sqrt {1+x^4}}-\frac {2 x}{\sqrt [4]{1+x^4}}\right )}{8 \sqrt [8]{2} \left (2-\sqrt {2}\right )}+\frac {3 \left (1-\sqrt {2}\right ) \log \left (1+\frac {\sqrt [4]{2} x^2}{\sqrt {1+x^4}}+\frac {2^{5/8} x}{\sqrt [4]{1+x^4}}\right )}{8 \sqrt [8]{2} \left (2-\sqrt {2}\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 0.16, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1-x^4+2 x^8}{\sqrt [4]{1+x^4} \left (-1-2 x^4+x^8\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.65, size = 176, normalized size = 1.00 \begin {gather*} \tan ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {3 \tan ^{-1}\left (\frac {\sqrt [8]{2} x}{\sqrt [4]{1+x^4}}\right )}{4 \sqrt [8]{2}}+\frac {3 \tan ^{-1}\left (\frac {2^{5/8} x \sqrt [4]{1+x^4}}{\sqrt [4]{2} x^2-\sqrt {1+x^4}}\right )}{4\ 2^{5/8}}+\tanh ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {3 \tanh ^{-1}\left (\frac {\sqrt [8]{2} x}{\sqrt [4]{1+x^4}}\right )}{4 \sqrt [8]{2}}-\frac {3 \tanh ^{-1}\left (\frac {2\ 2^{3/8} x \sqrt [4]{1+x^4}}{2 x^2+2^{3/4} \sqrt {1+x^4}}\right )}{4\ 2^{5/8}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.49, size = 353, normalized size = 2.01 \begin {gather*} -\frac {3}{4} \cdot 2^{\frac {7}{8}} \arctan \left (\frac {2^{\frac {7}{8}} x \sqrt {\frac {2^{\frac {1}{4}} x^{2} + \sqrt {x^{4} + 1}}{x^{2}}} - 2^{\frac {7}{8}} {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{2 \, x}\right ) - \frac {3}{16} \cdot 2^{\frac {7}{8}} \log \left (\frac {2^{\frac {1}{8}} x + {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) + \frac {3}{16} \cdot 2^{\frac {7}{8}} \log \left (-\frac {2^{\frac {1}{8}} x - {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) - \frac {3}{4} \cdot 2^{\frac {3}{8}} \arctan \left (\frac {2^{\frac {3}{8}} x \sqrt {\frac {2^{\frac {1}{4}} x^{2} + 2^{\frac {5}{8}} {\left (x^{4} + 1\right )}^{\frac {1}{4}} x + \sqrt {x^{4} + 1}}{x^{2}}} - x - 2^{\frac {3}{8}} {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) - \frac {3}{4} \cdot 2^{\frac {3}{8}} \arctan \left (\frac {2^{\frac {3}{8}} x \sqrt {\frac {2^{\frac {1}{4}} x^{2} - 2^{\frac {5}{8}} {\left (x^{4} + 1\right )}^{\frac {1}{4}} x + \sqrt {x^{4} + 1}}{x^{2}}} + x - 2^{\frac {3}{8}} {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) - \frac {3}{16} \cdot 2^{\frac {3}{8}} \log \left (\frac {4 \, {\left (2^{\frac {1}{4}} x^{2} + 2^{\frac {5}{8}} {\left (x^{4} + 1\right )}^{\frac {1}{4}} x + \sqrt {x^{4} + 1}\right )}}{x^{2}}\right ) + \frac {3}{16} \cdot 2^{\frac {3}{8}} \log \left (\frac {4 \, {\left (2^{\frac {1}{4}} x^{2} - 2^{\frac {5}{8}} {\left (x^{4} + 1\right )}^{\frac {1}{4}} x + \sqrt {x^{4} + 1}\right )}}{x^{2}}\right ) - \arctan \left (\frac {{\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) + \frac {1}{2} \, \log \left (\frac {x + {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) - \frac {1}{2} \, \log \left (-\frac {x - {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \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 {2 x^{8}-x^{4}+1}{\left (x^{4}+1\right )^{\frac {1}{4}} \left (x^{8}-2 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*} \int \frac {2 \, x^{8} - x^{4} + 1}{{\left (x^{8} - 2 \, x^{4} - 1\right )} {\left (x^{4} + 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 {2\,x^8-x^4+1}{{\left (x^4+1\right )}^{1/4}\,\left (-x^8+2\,x^4+1\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [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]
________________________________________________________________________________________