Optimal. Leaf size=86 \[ -2 \text {ArcTan}\left (\frac {x}{\sqrt [4]{-x^3+x^4}}\right )+2 \tanh ^{-1}\left (\frac {x}{\sqrt [4]{-x^3+x^4}}\right )+\frac {1}{2} \text {RootSum}\left [2-4 \text {$\#$1}^4+\text {$\#$1}^8\& ,\frac {-\log (x)+\log \left (\sqrt [4]{-x^3+x^4}-x \text {$\#$1}\right )}{\text {$\#$1}^3}\& \right ] \]
[Out]
________________________________________________________________________________________
Rubi [B] Leaf count is larger than twice the leaf count of optimal. \(365\) vs. \(2(86)=172\).
time = 0.32, antiderivative size = 365, normalized size of antiderivative = 4.24, number of steps
used = 17, number of rules used = 10, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.417, Rules used = {2081, 919,
65, 246, 218, 212, 209, 6860, 95, 304} \begin {gather*} \frac {2 \sqrt [4]{x^4-x^3} \text {ArcTan}\left (\frac {\sqrt [4]{x-1}}{\sqrt [4]{x}}\right )}{\sqrt [4]{x-1} x^{3/4}}+\frac {\sqrt [4]{10+7 \sqrt {2}} \sqrt [4]{x^4-x^3} \text {ArcTan}\left (\frac {\sqrt [4]{2-\sqrt {2}} \sqrt [4]{x}}{\sqrt [4]{x-1}}\right )}{\sqrt {2} \sqrt [4]{x-1} x^{3/4}}+\frac {\sqrt [4]{10-7 \sqrt {2}} \sqrt [4]{x^4-x^3} \text {ArcTan}\left (\frac {\sqrt [4]{2+\sqrt {2}} \sqrt [4]{x}}{\sqrt [4]{x-1}}\right )}{\sqrt {2} \sqrt [4]{x-1} x^{3/4}}+\frac {2 \sqrt [4]{x^4-x^3} \tanh ^{-1}\left (\frac {\sqrt [4]{x-1}}{\sqrt [4]{x}}\right )}{\sqrt [4]{x-1} x^{3/4}}-\frac {\sqrt [4]{10+7 \sqrt {2}} \sqrt [4]{x^4-x^3} \tanh ^{-1}\left (\frac {\sqrt [4]{2-\sqrt {2}} \sqrt [4]{x}}{\sqrt [4]{x-1}}\right )}{\sqrt {2} \sqrt [4]{x-1} x^{3/4}}-\frac {\sqrt [4]{10-7 \sqrt {2}} \sqrt [4]{x^4-x^3} \tanh ^{-1}\left (\frac {\sqrt [4]{2+\sqrt {2}} \sqrt [4]{x}}{\sqrt [4]{x-1}}\right )}{\sqrt {2} \sqrt [4]{x-1} x^{3/4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 95
Rule 209
Rule 212
Rule 218
Rule 246
Rule 304
Rule 919
Rule 2081
Rule 6860
Rubi steps
\begin {align*} \int \frac {\sqrt [4]{-x^3+x^4}}{-1-2 x+x^2} \, dx &=\frac {\sqrt [4]{-x^3+x^4} \int \frac {\sqrt [4]{-1+x} x^{3/4}}{-1-2 x+x^2} \, dx}{\sqrt [4]{-1+x} x^{3/4}}\\ &=\frac {\sqrt [4]{-x^3+x^4} \int \frac {1}{(-1+x)^{3/4} \sqrt [4]{x}} \, dx}{\sqrt [4]{-1+x} x^{3/4}}+\frac {\sqrt [4]{-x^3+x^4} \int \frac {1+x}{(-1+x)^{3/4} \sqrt [4]{x} \left (-1-2 x+x^2\right )} \, dx}{\sqrt [4]{-1+x} x^{3/4}}\\ &=\frac {\sqrt [4]{-x^3+x^4} \int \left (\frac {1+\sqrt {2}}{(-1+x)^{3/4} \sqrt [4]{x} \left (-2-2 \sqrt {2}+2 x\right )}+\frac {1-\sqrt {2}}{(-1+x)^{3/4} \sqrt [4]{x} \left (-2+2 \sqrt {2}+2 x\right )}\right ) \, dx}{\sqrt [4]{-1+x} x^{3/4}}+\frac {\left (4 \sqrt [4]{-x^3+x^4}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [4]{1+x^4}} \, dx,x,\sqrt [4]{-1+x}\right )}{\sqrt [4]{-1+x} x^{3/4}}\\ &=\frac {\left (4 \sqrt [4]{-x^3+x^4}\right ) \text {Subst}\left (\int \frac {1}{1-x^4} \, dx,x,\frac {\sqrt [4]{-1+x}}{\sqrt [4]{x}}\right )}{\sqrt [4]{-1+x} x^{3/4}}+\frac {\left (\left (1-\sqrt {2}\right ) \sqrt [4]{-x^3+x^4}\right ) \int \frac {1}{(-1+x)^{3/4} \sqrt [4]{x} \left (-2+2 \sqrt {2}+2 x\right )} \, dx}{\sqrt [4]{-1+x} x^{3/4}}+\frac {\left (\left (1+\sqrt {2}\right ) \sqrt [4]{-x^3+x^4}\right ) \int \frac {1}{(-1+x)^{3/4} \sqrt [4]{x} \left (-2-2 \sqrt {2}+2 x\right )} \, dx}{\sqrt [4]{-1+x} x^{3/4}}\\ &=\frac {\left (2 \sqrt [4]{-x^3+x^4}\right ) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {\sqrt [4]{-1+x}}{\sqrt [4]{x}}\right )}{\sqrt [4]{-1+x} x^{3/4}}+\frac {\left (2 \sqrt [4]{-x^3+x^4}\right ) \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\frac {\sqrt [4]{-1+x}}{\sqrt [4]{x}}\right )}{\sqrt [4]{-1+x} x^{3/4}}+\frac {\left (4 \left (1-\sqrt {2}\right ) \sqrt [4]{-x^3+x^4}\right ) \text {Subst}\left (\int \frac {x^2}{-2+2 \sqrt {2}-2 \sqrt {2} x^4} \, dx,x,\frac {\sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\sqrt [4]{-1+x} x^{3/4}}+\frac {\left (4 \left (1+\sqrt {2}\right ) \sqrt [4]{-x^3+x^4}\right ) \text {Subst}\left (\int \frac {x^2}{-2-2 \sqrt {2}+2 \sqrt {2} x^4} \, dx,x,\frac {\sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\sqrt [4]{-1+x} x^{3/4}}\\ &=\frac {2 \sqrt [4]{-x^3+x^4} \tan ^{-1}\left (\frac {\sqrt [4]{-1+x}}{\sqrt [4]{x}}\right )}{\sqrt [4]{-1+x} x^{3/4}}+\frac {2 \sqrt [4]{-x^3+x^4} \tanh ^{-1}\left (\frac {\sqrt [4]{-1+x}}{\sqrt [4]{x}}\right )}{\sqrt [4]{-1+x} x^{3/4}}+\frac {\left (\left (1-\sqrt {2}\right ) \sqrt [4]{-x^3+x^4}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {2-\sqrt {2}}-\sqrt {2} x^2} \, dx,x,\frac {\sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\sqrt [4]{-1+x} x^{3/4}}-\frac {\left (\left (1-\sqrt {2}\right ) \sqrt [4]{-x^3+x^4}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {2-\sqrt {2}}+\sqrt {2} x^2} \, dx,x,\frac {\sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\sqrt [4]{-1+x} x^{3/4}}-\frac {\left (\left (1+\sqrt {2}\right ) \sqrt [4]{-x^3+x^4}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {2+\sqrt {2}}-\sqrt {2} x^2} \, dx,x,\frac {\sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\sqrt [4]{-1+x} x^{3/4}}+\frac {\left (\left (1+\sqrt {2}\right ) \sqrt [4]{-x^3+x^4}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {2+\sqrt {2}}+\sqrt {2} x^2} \, dx,x,\frac {\sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\sqrt [4]{-1+x} x^{3/4}}\\ &=\frac {2 \sqrt [4]{-x^3+x^4} \tan ^{-1}\left (\frac {\sqrt [4]{-1+x}}{\sqrt [4]{x}}\right )}{\sqrt [4]{-1+x} x^{3/4}}+\frac {\sqrt [4]{10+7 \sqrt {2}} \sqrt [4]{-x^3+x^4} \tan ^{-1}\left (\frac {\sqrt [4]{2-\sqrt {2}} \sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\sqrt {2} \sqrt [4]{-1+x} x^{3/4}}+\frac {\sqrt [4]{10-7 \sqrt {2}} \sqrt [4]{-x^3+x^4} \tan ^{-1}\left (\frac {\sqrt [4]{2+\sqrt {2}} \sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\sqrt {2} \sqrt [4]{-1+x} x^{3/4}}+\frac {2 \sqrt [4]{-x^3+x^4} \tanh ^{-1}\left (\frac {\sqrt [4]{-1+x}}{\sqrt [4]{x}}\right )}{\sqrt [4]{-1+x} x^{3/4}}-\frac {\sqrt [4]{10+7 \sqrt {2}} \sqrt [4]{-x^3+x^4} \tanh ^{-1}\left (\frac {\sqrt [4]{2-\sqrt {2}} \sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\sqrt {2} \sqrt [4]{-1+x} x^{3/4}}-\frac {\sqrt [4]{10-7 \sqrt {2}} \sqrt [4]{-x^3+x^4} \tanh ^{-1}\left (\frac {\sqrt [4]{2+\sqrt {2}} \sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\sqrt {2} \sqrt [4]{-1+x} x^{3/4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 103, normalized size = 1.20 \begin {gather*} \frac {(-1+x)^{3/4} x^{9/4} \left (-4 \text {ArcTan}\left (\frac {1}{\sqrt [4]{\frac {-1+x}{x}}}\right )+4 \tanh ^{-1}\left (\frac {1}{\sqrt [4]{\frac {-1+x}{x}}}\right )+\text {RootSum}\left [2-4 \text {$\#$1}^4+\text {$\#$1}^8\&,\frac {-\log \left (\sqrt [4]{x}\right )+\log \left (\sqrt [4]{-1+x}-\sqrt [4]{x} \text {$\#$1}\right )}{\text {$\#$1}^3}\&\right ]\right )}{2 \left ((-1+x) x^3\right )^{3/4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
1.
time = 8.81, size = 3968, normalized size = 46.14
method | result | size |
trager | \(\text {Expression too large to display}\) | \(3968\) |
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 [C] Result contains higher order function than in optimal. Order 3 vs. order
1.
time = 0.44, size = 496, normalized size = 5.77 \begin {gather*} \sqrt {2} {\left (7 \, \sqrt {2} + 10\right )}^{\frac {1}{4}} \arctan \left (\frac {{\left ({\left (3 \, \sqrt {2} x - 4 \, x\right )} \sqrt {7 \, \sqrt {2} + 10} \sqrt {-\frac {{\left (2 \, \sqrt {2} x^{2} - 3 \, x^{2}\right )} \sqrt {7 \, \sqrt {2} + 10} - \sqrt {x^{4} - x^{3}}}{x^{2}}} - {\left (x^{4} - x^{3}\right )}^{\frac {1}{4}} \sqrt {7 \, \sqrt {2} + 10} {\left (3 \, \sqrt {2} - 4\right )}\right )} {\left (7 \, \sqrt {2} + 10\right )}^{\frac {1}{4}}}{2 \, x}\right ) + \sqrt {2} {\left (-7 \, \sqrt {2} + 10\right )}^{\frac {1}{4}} \arctan \left (\frac {{\left (3 \, \sqrt {2} x + 4 \, x\right )} {\left (-7 \, \sqrt {2} + 10\right )}^{\frac {3}{4}} \sqrt {\frac {{\left (2 \, \sqrt {2} x^{2} + 3 \, x^{2}\right )} \sqrt {-7 \, \sqrt {2} + 10} + \sqrt {x^{4} - x^{3}}}{x^{2}}} - {\left (x^{4} - x^{3}\right )}^{\frac {1}{4}} {\left (3 \, \sqrt {2} + 4\right )} {\left (-7 \, \sqrt {2} + 10\right )}^{\frac {3}{4}}}{2 \, x}\right ) - \frac {1}{4} \, \sqrt {2} {\left (7 \, \sqrt {2} + 10\right )}^{\frac {1}{4}} \log \left (\frac {{\left (\sqrt {2} x - x\right )} {\left (7 \, \sqrt {2} + 10\right )}^{\frac {1}{4}} + {\left (x^{4} - x^{3}\right )}^{\frac {1}{4}}}{x}\right ) + \frac {1}{4} \, \sqrt {2} {\left (7 \, \sqrt {2} + 10\right )}^{\frac {1}{4}} \log \left (-\frac {{\left (\sqrt {2} x - x\right )} {\left (7 \, \sqrt {2} + 10\right )}^{\frac {1}{4}} - {\left (x^{4} - x^{3}\right )}^{\frac {1}{4}}}{x}\right ) - \frac {1}{4} \, \sqrt {2} {\left (-7 \, \sqrt {2} + 10\right )}^{\frac {1}{4}} \log \left (\frac {{\left (\sqrt {2} x + x\right )} {\left (-7 \, \sqrt {2} + 10\right )}^{\frac {1}{4}} + {\left (x^{4} - x^{3}\right )}^{\frac {1}{4}}}{x}\right ) + \frac {1}{4} \, \sqrt {2} {\left (-7 \, \sqrt {2} + 10\right )}^{\frac {1}{4}} \log \left (-\frac {{\left (\sqrt {2} x + x\right )} {\left (-7 \, \sqrt {2} + 10\right )}^{\frac {1}{4}} - {\left (x^{4} - x^{3}\right )}^{\frac {1}{4}}}{x}\right ) + 2 \, \arctan \left (\frac {{\left (x^{4} - x^{3}\right )}^{\frac {1}{4}}}{x}\right ) + \log \left (\frac {x + {\left (x^{4} - x^{3}\right )}^{\frac {1}{4}}}{x}\right ) - \log \left (-\frac {x - {\left (x^{4} - x^{3}\right )}^{\frac {1}{4}}}{x}\right ) \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^{3} \left (x - 1\right )}}{x^{2} - 2 x - 1}\, dx \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 {{\left (x^4-x^3\right )}^{1/4}}{-x^2+2\,x+1} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________