Optimal. Leaf size=75 \[ \frac {2 \left (1+x^2\right ) \sqrt [4]{x^2+x^4}}{5 x^3}+\frac {\text {ArcTan}\left (\frac {\sqrt [4]{2} x}{\sqrt [4]{x^2+x^4}}\right )}{2^{3/4}}-\frac {\tanh ^{-1}\left (\frac {\sqrt [4]{2} x}{\sqrt [4]{x^2+x^4}}\right )}{2^{3/4}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 129, normalized size of antiderivative = 1.72, number of steps
used = 9, number of rules used = 8, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {2081, 1268,
477, 508, 472, 304, 209, 212} \begin {gather*} \frac {\sqrt [4]{x^4+x^2} \text {ArcTan}\left (\frac {\sqrt [4]{2} \sqrt {x}}{\sqrt [4]{x^2+1}}\right )}{2^{3/4} \sqrt {x} \sqrt [4]{x^2+1}}-\frac {\sqrt [4]{x^4+x^2} \tanh ^{-1}\left (\frac {\sqrt [4]{2} \sqrt {x}}{\sqrt [4]{x^2+1}}\right )}{2^{3/4} \sqrt {x} \sqrt [4]{x^2+1}}+\frac {2 \sqrt [4]{x^4+x^2} \left (x^2+1\right )}{5 x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 212
Rule 304
Rule 472
Rule 477
Rule 508
Rule 1268
Rule 2081
Rubi steps
\begin {align*} \int \frac {\sqrt [4]{x^2+x^4}}{x^4 \left (-1+x^4\right )} \, dx &=\frac {\sqrt [4]{x^2+x^4} \int \frac {\sqrt [4]{1+x^2}}{x^{7/2} \left (-1+x^4\right )} \, dx}{\sqrt {x} \sqrt [4]{1+x^2}}\\ &=\frac {\sqrt [4]{x^2+x^4} \int \frac {1}{x^{7/2} \left (-1+x^2\right ) \left (1+x^2\right )^{3/4}} \, dx}{\sqrt {x} \sqrt [4]{1+x^2}}\\ &=\frac {\left (2 \sqrt [4]{x^2+x^4}\right ) \text {Subst}\left (\int \frac {1}{x^6 \left (-1+x^4\right ) \left (1+x^4\right )^{3/4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x} \sqrt [4]{1+x^2}}\\ &=\frac {\left (2 \sqrt [4]{x^2+x^4}\right ) \text {Subst}\left (\int \frac {\left (1-x^4\right )^2}{x^6 \left (-1+2 x^4\right )} \, dx,x,\frac {\sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{\sqrt {x} \sqrt [4]{1+x^2}}\\ &=\frac {\left (2 \sqrt [4]{x^2+x^4}\right ) \text {Subst}\left (\int \left (-\frac {1}{x^6}+\frac {x^2}{-1+2 x^4}\right ) \, dx,x,\frac {\sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{\sqrt {x} \sqrt [4]{1+x^2}}\\ &=\frac {2 \left (1+x^2\right ) \sqrt [4]{x^2+x^4}}{5 x^3}+\frac {\left (2 \sqrt [4]{x^2+x^4}\right ) \text {Subst}\left (\int \frac {x^2}{-1+2 x^4} \, dx,x,\frac {\sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{\sqrt {x} \sqrt [4]{1+x^2}}\\ &=\frac {2 \left (1+x^2\right ) \sqrt [4]{x^2+x^4}}{5 x^3}-\frac {\sqrt [4]{x^2+x^4} \text {Subst}\left (\int \frac {1}{1-\sqrt {2} x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{\sqrt {2} \sqrt {x} \sqrt [4]{1+x^2}}+\frac {\sqrt [4]{x^2+x^4} \text {Subst}\left (\int \frac {1}{1+\sqrt {2} x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{\sqrt {2} \sqrt {x} \sqrt [4]{1+x^2}}\\ &=\frac {2 \left (1+x^2\right ) \sqrt [4]{x^2+x^4}}{5 x^3}+\frac {\sqrt [4]{x^2+x^4} \tan ^{-1}\left (\frac {\sqrt [4]{2} \sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{2^{3/4} \sqrt {x} \sqrt [4]{1+x^2}}-\frac {\sqrt [4]{x^2+x^4} \tanh ^{-1}\left (\frac {\sqrt [4]{2} \sqrt {x}}{\sqrt [4]{1+x^2}}\right )}{2^{3/4} \sqrt {x} \sqrt [4]{1+x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.23, size = 105, normalized size = 1.40 \begin {gather*} \frac {\sqrt [4]{x^2+x^4} \left (4 \left (1+x^2\right )^{5/4}+5 \sqrt [4]{2} x^{5/2} \text {ArcTan}\left (\frac {\sqrt [4]{2} \sqrt {x}}{\sqrt [4]{1+x^2}}\right )-5 \sqrt [4]{2} x^{5/2} \tanh ^{-1}\left (\frac {\sqrt [4]{2} \sqrt {x}}{\sqrt [4]{1+x^2}}\right )\right )}{10 x^3 \sqrt [4]{1+x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 6.92, size = 258, normalized size = 3.44
method | result | size |
trager | \(\frac {2 \left (x^{2}+1\right ) \left (x^{4}+x^{2}\right )^{\frac {1}{4}}}{5 x^{3}}+\frac {\RootOf \left (\textit {\_Z}^{4}-2\right ) \ln \left (\frac {-3 \RootOf \left (\textit {\_Z}^{4}-2\right )^{3} x^{3}+4 \left (x^{4}+x^{2}\right )^{\frac {1}{4}} \RootOf \left (\textit {\_Z}^{4}-2\right )^{2} x^{2}-4 \sqrt {x^{4}+x^{2}}\, \RootOf \left (\textit {\_Z}^{4}-2\right ) x -\RootOf \left (\textit {\_Z}^{4}-2\right )^{3} x +4 \left (x^{4}+x^{2}\right )^{\frac {3}{4}}}{\left (1+x \right ) \left (-1+x \right ) x}\right )}{4}+\frac {\RootOf \left (\textit {\_Z}^{2}+\RootOf \left (\textit {\_Z}^{4}-2\right )^{2}\right ) \ln \left (\frac {3 \RootOf \left (\textit {\_Z}^{2}+\RootOf \left (\textit {\_Z}^{4}-2\right )^{2}\right ) \RootOf \left (\textit {\_Z}^{4}-2\right )^{2} x^{3}-4 \left (x^{4}+x^{2}\right )^{\frac {1}{4}} \RootOf \left (\textit {\_Z}^{4}-2\right )^{2} x^{2}-4 \RootOf \left (\textit {\_Z}^{2}+\RootOf \left (\textit {\_Z}^{4}-2\right )^{2}\right ) \sqrt {x^{4}+x^{2}}\, x +\RootOf \left (\textit {\_Z}^{4}-2\right )^{2} \RootOf \left (\textit {\_Z}^{2}+\RootOf \left (\textit {\_Z}^{4}-2\right )^{2}\right ) x +4 \left (x^{4}+x^{2}\right )^{\frac {3}{4}}}{\left (1+x \right ) \left (-1+x \right ) x}\right )}{4}\) | \(258\) |
risch | \(\frac {2 \left (x^{2} \left (x^{2}+1\right )\right )^{\frac {1}{4}} \left (x^{4}+2 x^{2}+1\right )}{5 x^{3} \left (x^{2}+1\right )}+\frac {\left (\frac {\RootOf \left (\textit {\_Z}^{2}+\RootOf \left (\textit {\_Z}^{4}-2\right )^{2}\right ) \ln \left (\frac {-2 \left (x^{8}+3 x^{6}+3 x^{4}+x^{2}\right )^{\frac {1}{4}} \RootOf \left (\textit {\_Z}^{2}+\RootOf \left (\textit {\_Z}^{4}-2\right )^{2}\right ) \RootOf \left (\textit {\_Z}^{4}-2\right )^{2} x^{4}+3 \RootOf \left (\textit {\_Z}^{4}-2\right )^{2} x^{6}-4 \left (x^{8}+3 x^{6}+3 x^{4}+x^{2}\right )^{\frac {1}{4}} \RootOf \left (\textit {\_Z}^{2}+\RootOf \left (\textit {\_Z}^{4}-2\right )^{2}\right ) \RootOf \left (\textit {\_Z}^{4}-2\right )^{2} x^{2}+7 \RootOf \left (\textit {\_Z}^{4}-2\right )^{2} x^{4}+4 \left (x^{8}+3 x^{6}+3 x^{4}+x^{2}\right )^{\frac {3}{4}} \RootOf \left (\textit {\_Z}^{2}+\RootOf \left (\textit {\_Z}^{4}-2\right )^{2}\right )-4 \sqrt {x^{8}+3 x^{6}+3 x^{4}+x^{2}}\, x^{2}-2 \left (x^{8}+3 x^{6}+3 x^{4}+x^{2}\right )^{\frac {1}{4}} \RootOf \left (\textit {\_Z}^{2}+\RootOf \left (\textit {\_Z}^{4}-2\right )^{2}\right ) \RootOf \left (\textit {\_Z}^{4}-2\right )^{2}+5 \RootOf \left (\textit {\_Z}^{4}-2\right )^{2} x^{2}-4 \sqrt {x^{8}+3 x^{6}+3 x^{4}+x^{2}}+\RootOf \left (\textit {\_Z}^{4}-2\right )^{2}}{\left (x^{2}+1\right )^{2} \left (1+x \right ) \left (-1+x \right )}\right )}{4}+\frac {\RootOf \left (\textit {\_Z}^{4}-2\right ) \ln \left (\frac {2 \left (x^{8}+3 x^{6}+3 x^{4}+x^{2}\right )^{\frac {1}{4}} \RootOf \left (\textit {\_Z}^{4}-2\right )^{3} x^{4}-3 \RootOf \left (\textit {\_Z}^{4}-2\right )^{2} x^{6}+4 \left (x^{8}+3 x^{6}+3 x^{4}+x^{2}\right )^{\frac {1}{4}} \RootOf \left (\textit {\_Z}^{4}-2\right )^{3} x^{2}-7 \RootOf \left (\textit {\_Z}^{4}-2\right )^{2} x^{4}+4 \left (x^{8}+3 x^{6}+3 x^{4}+x^{2}\right )^{\frac {3}{4}} \RootOf \left (\textit {\_Z}^{4}-2\right )-4 \sqrt {x^{8}+3 x^{6}+3 x^{4}+x^{2}}\, x^{2}+2 \left (x^{8}+3 x^{6}+3 x^{4}+x^{2}\right )^{\frac {1}{4}} \RootOf \left (\textit {\_Z}^{4}-2\right )^{3}-5 \RootOf \left (\textit {\_Z}^{4}-2\right )^{2} x^{2}-4 \sqrt {x^{8}+3 x^{6}+3 x^{4}+x^{2}}-\RootOf \left (\textit {\_Z}^{4}-2\right )^{2}}{\left (x^{2}+1\right )^{2} \left (1+x \right ) \left (-1+x \right )}\right )}{4}\right ) \left (x^{2} \left (x^{2}+1\right )\right )^{\frac {1}{4}} \left (x^{2} \left (x^{2}+1\right )^{3}\right )^{\frac {1}{4}}}{x \left (x^{2}+1\right )}\) | \(606\) |
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 [B] Leaf count of result is larger than twice the leaf count of optimal. 253 vs.
\(2 (60) = 120\).
time = 1.52, size = 253, normalized size = 3.37 \begin {gather*} -\frac {20 \cdot 8^{\frac {3}{4}} x^{3} \arctan \left (\frac {16 \cdot 8^{\frac {1}{4}} {\left (x^{4} + x^{2}\right )}^{\frac {1}{4}} x^{2} + 2^{\frac {3}{4}} {\left (8^{\frac {3}{4}} {\left (3 \, x^{3} + x\right )} + 8 \cdot 8^{\frac {1}{4}} \sqrt {x^{4} + x^{2}} x\right )} + 4 \cdot 8^{\frac {3}{4}} {\left (x^{4} + x^{2}\right )}^{\frac {3}{4}}}{8 \, {\left (x^{3} - x\right )}}\right ) + 5 \cdot 8^{\frac {3}{4}} x^{3} \log \left (\frac {4 \, \sqrt {2} {\left (x^{4} + x^{2}\right )}^{\frac {1}{4}} x^{2} + 8^{\frac {3}{4}} \sqrt {x^{4} + x^{2}} x + 8^{\frac {1}{4}} {\left (3 \, x^{3} + x\right )} + 4 \, {\left (x^{4} + x^{2}\right )}^{\frac {3}{4}}}{x^{3} - x}\right ) - 5 \cdot 8^{\frac {3}{4}} x^{3} \log \left (\frac {4 \, \sqrt {2} {\left (x^{4} + x^{2}\right )}^{\frac {1}{4}} x^{2} - 8^{\frac {3}{4}} \sqrt {x^{4} + x^{2}} x - 8^{\frac {1}{4}} {\left (3 \, x^{3} + x\right )} + 4 \, {\left (x^{4} + x^{2}\right )}^{\frac {3}{4}}}{x^{3} - x}\right ) - 64 \, {\left (x^{4} + x^{2}\right )}^{\frac {1}{4}} {\left (x^{2} + 1\right )}}{160 \, x^{3}} \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 {\sqrt [4]{x^{2} \left (x^{2} + 1\right )}}{x^{4} \left (x - 1\right ) \left (x + 1\right ) \left (x^{2} + 1\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 65, normalized size = 0.87 \begin {gather*} \frac {2}{5} \, {\left (\frac {1}{x^{2}} + 1\right )}^{\frac {5}{4}} - \frac {1}{2} \cdot 2^{\frac {1}{4}} \arctan \left (\frac {1}{2} \cdot 2^{\frac {3}{4}} {\left (\frac {1}{x^{2}} + 1\right )}^{\frac {1}{4}}\right ) - \frac {1}{4} \cdot 2^{\frac {1}{4}} \log \left (2^{\frac {1}{4}} + {\left (\frac {1}{x^{2}} + 1\right )}^{\frac {1}{4}}\right ) + \frac {1}{4} \cdot 2^{\frac {1}{4}} \log \left ({\left | -2^{\frac {1}{4}} + {\left (\frac {1}{x^{2}} + 1\right )}^{\frac {1}{4}} \right |}\right ) \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 {{\left (x^4+x^2\right )}^{1/4}}{x^4-x^8} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________