Optimal. Leaf size=269 \[ \frac {1}{8} (-1+4 x) \sqrt [4]{-x^3+x^4}-\frac {29}{16} \text {ArcTan}\left (\frac {x}{\sqrt [4]{-x^3+x^4}}\right )+\sqrt {\frac {1}{5} \left (2+2 \sqrt {5}\right )} \text {ArcTan}\left (\frac {\sqrt {-\frac {1}{2}+\frac {\sqrt {5}}{2}} x}{\sqrt [4]{-x^3+x^4}}\right )+\sqrt {\frac {1}{5} \left (-2+2 \sqrt {5}\right )} \text {ArcTan}\left (\frac {\sqrt {\frac {1}{2}+\frac {\sqrt {5}}{2}} x}{\sqrt [4]{-x^3+x^4}}\right )+\frac {29}{16} \tanh ^{-1}\left (\frac {x}{\sqrt [4]{-x^3+x^4}}\right )-\sqrt {\frac {1}{5} \left (2+2 \sqrt {5}\right )} \tanh ^{-1}\left (\frac {\sqrt {-\frac {1}{2}+\frac {\sqrt {5}}{2}} x}{\sqrt [4]{-x^3+x^4}}\right )-\sqrt {\frac {1}{5} \left (-2+2 \sqrt {5}\right )} \tanh ^{-1}\left (\frac {\sqrt {\frac {1}{2}+\frac {\sqrt {5}}{2}} x}{\sqrt [4]{-x^3+x^4}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.39, antiderivative size = 436, normalized size of antiderivative = 1.62, number of steps
used = 26, number of rules used = 13, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.419, Rules used = {1607, 2081,
917, 52, 65, 246, 218, 212, 209, 919, 925, 95, 304} \begin {gather*} \frac {29 \sqrt [4]{x^4-x^3} \text {ArcTan}\left (\frac {\sqrt [4]{x-1}}{\sqrt [4]{x}}\right )}{16 \sqrt [4]{x-1} x^{3/4}}+\frac {2^{3/4} \sqrt [4]{3+\sqrt {5}} \sqrt [4]{x^4-x^3} \text {ArcTan}\left (\frac {\sqrt [4]{\frac {2}{3+\sqrt {5}}} \sqrt [4]{x}}{\sqrt [4]{x-1}}\right )}{\sqrt {5} \sqrt [4]{x-1} x^{3/4}}+\frac {2^{3/4} \sqrt [4]{3-\sqrt {5}} \sqrt [4]{x^4-x^3} \text {ArcTan}\left (\frac {\sqrt [4]{\frac {1}{2} \left (3+\sqrt {5}\right )} \sqrt [4]{x}}{\sqrt [4]{x-1}}\right )}{\sqrt {5} \sqrt [4]{x-1} x^{3/4}}-\frac {1}{2} \sqrt [4]{x^4-x^3} (1-x)+\frac {3}{8} \sqrt [4]{x^4-x^3}+\frac {29 \sqrt [4]{x^4-x^3} \tanh ^{-1}\left (\frac {\sqrt [4]{x-1}}{\sqrt [4]{x}}\right )}{16 \sqrt [4]{x-1} x^{3/4}}-\frac {2^{3/4} \sqrt [4]{3+\sqrt {5}} \sqrt [4]{x^4-x^3} \tanh ^{-1}\left (\frac {\sqrt [4]{\frac {2}{3+\sqrt {5}}} \sqrt [4]{x}}{\sqrt [4]{x-1}}\right )}{\sqrt {5} \sqrt [4]{x-1} x^{3/4}}-\frac {2^{3/4} \sqrt [4]{3-\sqrt {5}} \sqrt [4]{x^4-x^3} \tanh ^{-1}\left (\frac {\sqrt [4]{\frac {1}{2} \left (3+\sqrt {5}\right )} \sqrt [4]{x}}{\sqrt [4]{x-1}}\right )}{\sqrt {5} \sqrt [4]{x-1} x^{3/4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 65
Rule 95
Rule 209
Rule 212
Rule 218
Rule 246
Rule 304
Rule 917
Rule 919
Rule 925
Rule 1607
Rule 2081
Rubi steps
\begin {align*} \int \frac {\left (-x+x^2\right ) \sqrt [4]{-x^3+x^4}}{-1-x+x^2} \, dx &=\int \frac {(-1+x) x \sqrt [4]{-x^3+x^4}}{-1-x+x^2} \, dx\\ &=\frac {\sqrt [4]{-x^3+x^4} \int \frac {(-1+x)^{5/4} x^{7/4}}{-1-x+x^2} \, dx}{\sqrt [4]{-1+x} x^{3/4}}\\ &=\frac {\sqrt [4]{-x^3+x^4} \int \sqrt [4]{-1+x} x^{3/4} \, dx}{\sqrt [4]{-1+x} x^{3/4}}+\frac {\sqrt [4]{-x^3+x^4} \int \frac {\sqrt [4]{-1+x} x^{3/4}}{-1-x+x^2} \, dx}{\sqrt [4]{-1+x} x^{3/4}}\\ &=-\frac {1}{2} (1-x) \sqrt [4]{-x^3+x^4}+\frac {\left (3 \sqrt [4]{-x^3+x^4}\right ) \int \frac {\sqrt [4]{-1+x}}{\sqrt [4]{x}} \, dx}{8 \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}{(-1+x)^{3/4} \sqrt [4]{x} \left (-1-x+x^2\right )} \, dx}{\sqrt [4]{-1+x} x^{3/4}}\\ &=\frac {3}{8} \sqrt [4]{-x^3+x^4}-\frac {1}{2} (1-x) \sqrt [4]{-x^3+x^4}-\frac {\left (3 \sqrt [4]{-x^3+x^4}\right ) \int \frac {1}{(-1+x)^{3/4} \sqrt [4]{x}} \, dx}{32 \sqrt [4]{-1+x} x^{3/4}}+\frac {\sqrt [4]{-x^3+x^4} \int \left (-\frac {2}{\sqrt {5} \left (1+\sqrt {5}-2 x\right ) (-1+x)^{3/4} \sqrt [4]{x}}-\frac {2}{\sqrt {5} (-1+x)^{3/4} \sqrt [4]{x} \left (-1+\sqrt {5}+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 {3}{8} \sqrt [4]{-x^3+x^4}-\frac {1}{2} (1-x) \sqrt [4]{-x^3+x^4}-\frac {\left (3 \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 )}{8 \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 (2 \sqrt [4]{-x^3+x^4}\right ) \int \frac {1}{\left (1+\sqrt {5}-2 x\right ) (-1+x)^{3/4} \sqrt [4]{x}} \, dx}{\sqrt {5} \sqrt [4]{-1+x} x^{3/4}}-\frac {\left (2 \sqrt [4]{-x^3+x^4}\right ) \int \frac {1}{(-1+x)^{3/4} \sqrt [4]{x} \left (-1+\sqrt {5}+2 x\right )} \, dx}{\sqrt {5} \sqrt [4]{-1+x} x^{3/4}}\\ &=\frac {3}{8} \sqrt [4]{-x^3+x^4}-\frac {1}{2} (1-x) \sqrt [4]{-x^3+x^4}-\frac {\left (3 \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 )}{8 \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 (8 \sqrt [4]{-x^3+x^4}\right ) \text {Subst}\left (\int \frac {x^2}{1+\sqrt {5}-\left (-1+\sqrt {5}\right ) x^4} \, dx,x,\frac {\sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\sqrt {5} \sqrt [4]{-1+x} x^{3/4}}-\frac {\left (8 \sqrt [4]{-x^3+x^4}\right ) \text {Subst}\left (\int \frac {x^2}{-1+\sqrt {5}-\left (1+\sqrt {5}\right ) x^4} \, dx,x,\frac {\sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\sqrt {5} \sqrt [4]{-1+x} x^{3/4}}\\ &=\frac {3}{8} \sqrt [4]{-x^3+x^4}-\frac {1}{2} (1-x) \sqrt [4]{-x^3+x^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 (3 \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 )}{16 \sqrt [4]{-1+x} x^{3/4}}-\frac {\left (3 \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 )}{16 \sqrt [4]{-1+x} x^{3/4}}+\frac {\left (4 \sqrt {\frac {2}{5}} \sqrt [4]{-x^3+x^4}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {3-\sqrt {5}}-\sqrt {2} x^2} \, dx,x,\frac {\sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\left (-1-\sqrt {5}\right ) \sqrt [4]{-1+x} x^{3/4}}-\frac {\left (4 \sqrt {\frac {2}{5}} \sqrt [4]{-x^3+x^4}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {3-\sqrt {5}}+\sqrt {2} x^2} \, dx,x,\frac {\sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\left (-1-\sqrt {5}\right ) \sqrt [4]{-1+x} x^{3/4}}+\frac {\left (4 \sqrt {\frac {2}{5}} \sqrt [4]{-x^3+x^4}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {3+\sqrt {5}}-\sqrt {2} x^2} \, dx,x,\frac {\sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\left (1-\sqrt {5}\right ) \sqrt [4]{-1+x} x^{3/4}}-\frac {\left (4 \sqrt {\frac {2}{5}} \sqrt [4]{-x^3+x^4}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {3+\sqrt {5}}+\sqrt {2} x^2} \, dx,x,\frac {\sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\left (1-\sqrt {5}\right ) \sqrt [4]{-1+x} x^{3/4}}\\ &=\frac {3}{8} \sqrt [4]{-x^3+x^4}-\frac {1}{2} (1-x) \sqrt [4]{-x^3+x^4}+\frac {29 \sqrt [4]{-x^3+x^4} \tan ^{-1}\left (\frac {\sqrt [4]{-1+x}}{\sqrt [4]{x}}\right )}{16 \sqrt [4]{-1+x} x^{3/4}}+\frac {2^{3/4} \sqrt [4]{3+\sqrt {5}} \sqrt [4]{-x^3+x^4} \tan ^{-1}\left (\frac {\sqrt [4]{\frac {2}{3+\sqrt {5}}} \sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\sqrt {5} \sqrt [4]{-1+x} x^{3/4}}+\frac {2^{3/4} \sqrt [4]{3-\sqrt {5}} \sqrt [4]{-x^3+x^4} \tan ^{-1}\left (\frac {\sqrt [4]{\frac {1}{2} \left (3+\sqrt {5}\right )} \sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\sqrt {5} \sqrt [4]{-1+x} x^{3/4}}+\frac {29 \sqrt [4]{-x^3+x^4} \tanh ^{-1}\left (\frac {\sqrt [4]{-1+x}}{\sqrt [4]{x}}\right )}{16 \sqrt [4]{-1+x} x^{3/4}}-\frac {2^{3/4} \sqrt [4]{3+\sqrt {5}} \sqrt [4]{-x^3+x^4} \tanh ^{-1}\left (\frac {\sqrt [4]{\frac {2}{3+\sqrt {5}}} \sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\sqrt {5} \sqrt [4]{-1+x} x^{3/4}}-\frac {2^{3/4} \sqrt [4]{3-\sqrt {5}} \sqrt [4]{-x^3+x^4} \tanh ^{-1}\left (\frac {\sqrt [4]{\frac {1}{2} \left (3+\sqrt {5}\right )} \sqrt [4]{x}}{\sqrt [4]{-1+x}}\right )}{\sqrt {5} \sqrt [4]{-1+x} x^{3/4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.67, size = 256, normalized size = 0.95 \begin {gather*} \frac {(-1+x)^{3/4} x^{9/4} \left (-10 \sqrt [4]{-1+x} x^{3/4}+40 \sqrt [4]{-1+x} x^{7/4}-145 \text {ArcTan}\left (\frac {1}{\sqrt [4]{\frac {-1+x}{x}}}\right )+16 \sqrt {10 \left (1+\sqrt {5}\right )} \text {ArcTan}\left (\frac {\sqrt {\frac {1}{2} \left (-1+\sqrt {5}\right )}}{\sqrt [4]{\frac {-1+x}{x}}}\right )+16 \sqrt {10 \left (-1+\sqrt {5}\right )} \text {ArcTan}\left (\frac {\sqrt {\frac {1}{2} \left (1+\sqrt {5}\right )}}{\sqrt [4]{\frac {-1+x}{x}}}\right )+145 \tanh ^{-1}\left (\frac {1}{\sqrt [4]{\frac {-1+x}{x}}}\right )-16 \sqrt {10 \left (1+\sqrt {5}\right )} \tanh ^{-1}\left (\frac {\sqrt {\frac {1}{2} \left (-1+\sqrt {5}\right )}}{\sqrt [4]{\frac {-1+x}{x}}}\right )-16 \sqrt {10 \left (-1+\sqrt {5}\right )} \tanh ^{-1}\left (\frac {\sqrt {\frac {1}{2} \left (1+\sqrt {5}\right )}}{\sqrt [4]{\frac {-1+x}{x}}}\right )\right )}{80 \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
3.
time = 21.93, size = 2229, normalized size = 8.29
method | result | size |
trager | \(\text {Expression too large to display}\) | \(2229\) |
risch | \(\text {Expression too large to display}\) | \(4529\) |
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. 462 vs.
\(2 (191) = 382\).
time = 0.41, size = 462, normalized size = 1.72 \begin {gather*} \frac {2}{5} \, \sqrt {5} \sqrt {2 \, \sqrt {5} - 2} \arctan \left (\frac {\sqrt {2} x \sqrt {2 \, \sqrt {5} - 2} \sqrt {\frac {\sqrt {5} x^{2} + x^{2} + 2 \, \sqrt {x^{4} - x^{3}}}{x^{2}}} - 2 \, {\left (x^{4} - x^{3}\right )}^{\frac {1}{4}} \sqrt {2 \, \sqrt {5} - 2}}{4 \, x}\right ) + \frac {2}{5} \, \sqrt {5} \sqrt {2 \, \sqrt {5} + 2} \arctan \left (\frac {\sqrt {2} x \sqrt {2 \, \sqrt {5} + 2} \sqrt {\frac {\sqrt {5} x^{2} - x^{2} + 2 \, \sqrt {x^{4} - x^{3}}}{x^{2}}} - 2 \, {\left (x^{4} - x^{3}\right )}^{\frac {1}{4}} \sqrt {2 \, \sqrt {5} + 2}}{4 \, x}\right ) - \frac {1}{10} \, \sqrt {5} \sqrt {2 \, \sqrt {5} + 2} \log \left (\frac {{\left (\sqrt {5} x - x\right )} \sqrt {2 \, \sqrt {5} + 2} + 4 \, {\left (x^{4} - x^{3}\right )}^{\frac {1}{4}}}{x}\right ) + \frac {1}{10} \, \sqrt {5} \sqrt {2 \, \sqrt {5} + 2} \log \left (-\frac {{\left (\sqrt {5} x - x\right )} \sqrt {2 \, \sqrt {5} + 2} - 4 \, {\left (x^{4} - x^{3}\right )}^{\frac {1}{4}}}{x}\right ) - \frac {1}{10} \, \sqrt {5} \sqrt {2 \, \sqrt {5} - 2} \log \left (\frac {{\left (\sqrt {5} x + x\right )} \sqrt {2 \, \sqrt {5} - 2} + 4 \, {\left (x^{4} - x^{3}\right )}^{\frac {1}{4}}}{x}\right ) + \frac {1}{10} \, \sqrt {5} \sqrt {2 \, \sqrt {5} - 2} \log \left (-\frac {{\left (\sqrt {5} x + x\right )} \sqrt {2 \, \sqrt {5} - 2} - 4 \, {\left (x^{4} - x^{3}\right )}^{\frac {1}{4}}}{x}\right ) + \frac {1}{8} \, {\left (x^{4} - x^{3}\right )}^{\frac {1}{4}} {\left (4 \, x - 1\right )} + \frac {29}{16} \, \arctan \left (\frac {{\left (x^{4} - x^{3}\right )}^{\frac {1}{4}}}{x}\right ) + \frac {29}{32} \, \log \left (\frac {x + {\left (x^{4} - x^{3}\right )}^{\frac {1}{4}}}{x}\right ) - \frac {29}{32} \, \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 {x \sqrt [4]{x^{3} \left (x - 1\right )} \left (x - 1\right )}{x^{2} - x - 1}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.50, size = 260, normalized size = 0.97 \begin {gather*} -\frac {1}{8} \, {\left ({\left (-\frac {1}{x} + 1\right )}^{\frac {5}{4}} + 3 \, {\left (-\frac {1}{x} + 1\right )}^{\frac {1}{4}}\right )} x^{2} + \frac {1}{5} \, \sqrt {10 \, \sqrt {5} - 10} \arctan \left (\frac {{\left (-\frac {1}{x} + 1\right )}^{\frac {1}{4}}}{\sqrt {\frac {1}{2} \, \sqrt {5} + \frac {1}{2}}}\right ) + \frac {1}{5} \, \sqrt {10 \, \sqrt {5} + 10} \arctan \left (\frac {{\left (-\frac {1}{x} + 1\right )}^{\frac {1}{4}}}{\sqrt {\frac {1}{2} \, \sqrt {5} - \frac {1}{2}}}\right ) + \frac {1}{10} \, \sqrt {10 \, \sqrt {5} - 10} \log \left (\sqrt {\frac {1}{2} \, \sqrt {5} + \frac {1}{2}} + {\left (-\frac {1}{x} + 1\right )}^{\frac {1}{4}}\right ) + \frac {1}{10} \, \sqrt {10 \, \sqrt {5} + 10} \log \left (\sqrt {\frac {1}{2} \, \sqrt {5} - \frac {1}{2}} + {\left (-\frac {1}{x} + 1\right )}^{\frac {1}{4}}\right ) - \frac {1}{10} \, \sqrt {10 \, \sqrt {5} - 10} \log \left ({\left | -\sqrt {\frac {1}{2} \, \sqrt {5} + \frac {1}{2}} + {\left (-\frac {1}{x} + 1\right )}^{\frac {1}{4}} \right |}\right ) - \frac {1}{10} \, \sqrt {10 \, \sqrt {5} + 10} \log \left ({\left | -\sqrt {\frac {1}{2} \, \sqrt {5} - \frac {1}{2}} + {\left (-\frac {1}{x} + 1\right )}^{\frac {1}{4}} \right |}\right ) - \frac {29}{16} \, \arctan \left ({\left (-\frac {1}{x} + 1\right )}^{\frac {1}{4}}\right ) - \frac {29}{32} \, \log \left ({\left (-\frac {1}{x} + 1\right )}^{\frac {1}{4}} + 1\right ) + \frac {29}{32} \, \log \left ({\left | {\left (-\frac {1}{x} + 1\right )}^{\frac {1}{4}} - 1 \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.00 \begin {gather*} \int \frac {\left (x-x^2\right )\,{\left (x^4-x^3\right )}^{1/4}}{-x^2+x+1} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________