Optimal. Leaf size=278 \[ \frac {(x-1)^{4/3} (3 x+1)^{2/3} \left (-\frac {21 \sqrt [3]{3} \left (7 (3 x+1)^{4/3}-16 \sqrt [3]{3 x+1}\right )}{64 (3 x-3)^{4/3}}+\frac {3 \sqrt [3]{3} \left (23 (3 x+1)^{4/3}-80 \sqrt [3]{3 x+1}\right )}{64 (3 x-3)^{4/3}}-\frac {\log \left (6^{2/3} \sqrt [3]{3 x-3}-3 \sqrt [3]{3 x+1}\right )}{4 \sqrt [3]{2}}+\frac {\log \left (2 \sqrt [3]{6} (3 x-3)^{2/3}+6^{2/3} \sqrt [3]{3 x+1} \sqrt [3]{3 x-3}+3 (3 x+1)^{2/3}\right )}{8 \sqrt [3]{2}}+\frac {\sqrt {3} \tan ^{-1}\left (\frac {3^{5/6} \sqrt [3]{3 x+1}}{2\ 2^{2/3} \sqrt [3]{3 x-3}+\sqrt [3]{3} \sqrt [3]{3 x+1}}\right )}{4 \sqrt [3]{2}}\right )}{\left ((x-1)^2 (3 x+1)\right )^{2/3}} \]
________________________________________________________________________________________
Rubi [A] time = 1.45, antiderivative size = 273, normalized size of antiderivative = 0.98, number of steps used = 22, number of rules used = 11, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.355, Rules used = {6742, 2081, 2077, 101, 157, 60, 91, 21, 37, 47, 50} \begin {gather*} -\frac {9 \sqrt [3]{3 x^3-5 x^2+x+1} (3 x+1)}{32 (1-x)^2}+\frac {3 \sqrt [3]{3 x^3-5 x^2+x+1}}{8 (1-x)}+\frac {\sqrt [3]{3 x^3-5 x^2+x+1} \log (x-5)}{8 \sqrt [3]{2} (1-x)^{2/3} \sqrt [3]{3 x+1}}-\frac {3 \sqrt [3]{3 x^3-5 x^2+x+1} \log \left (-\frac {4}{3} \sqrt [3]{1-x}-\frac {2}{3} \sqrt [3]{2} \sqrt [3]{3 x+1}\right )}{8 \sqrt [3]{2} (1-x)^{2/3} \sqrt [3]{3 x+1}}-\frac {\sqrt {3} \sqrt [3]{3 x^3-5 x^2+x+1} \tan ^{-1}\left (\frac {1}{\sqrt {3}}-\frac {2\ 2^{2/3} \sqrt [3]{1-x}}{\sqrt {3} \sqrt [3]{3 x+1}}\right )}{4 \sqrt [3]{2} (1-x)^{2/3} \sqrt [3]{3 x+1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 37
Rule 47
Rule 50
Rule 60
Rule 91
Rule 101
Rule 157
Rule 2077
Rule 2081
Rule 6742
Rubi steps
\begin {align*} \int \frac {(-7+x) \sqrt [3]{1+x-5 x^2+3 x^3}}{(-5+x) (-1+x)^3} \, dx &=\int \left (-\frac {\sqrt [3]{1+x-5 x^2+3 x^3}}{32 (-5+x)}+\frac {3 \sqrt [3]{1+x-5 x^2+3 x^3}}{2 (-1+x)^3}+\frac {\sqrt [3]{1+x-5 x^2+3 x^3}}{8 (-1+x)^2}+\frac {\sqrt [3]{1+x-5 x^2+3 x^3}}{32 (-1+x)}\right ) \, dx\\ &=-\left (\frac {1}{32} \int \frac {\sqrt [3]{1+x-5 x^2+3 x^3}}{-5+x} \, dx\right )+\frac {1}{32} \int \frac {\sqrt [3]{1+x-5 x^2+3 x^3}}{-1+x} \, dx+\frac {1}{8} \int \frac {\sqrt [3]{1+x-5 x^2+3 x^3}}{(-1+x)^2} \, dx+\frac {3}{2} \int \frac {\sqrt [3]{1+x-5 x^2+3 x^3}}{(-1+x)^3} \, dx\\ &=-\left (\frac {1}{32} \operatorname {Subst}\left (\int \frac {\sqrt [3]{\frac {128}{243}-\frac {16 x}{9}+3 x^3}}{-\frac {40}{9}+x} \, dx,x,-\frac {5}{9}+x\right )\right )+\frac {1}{32} \operatorname {Subst}\left (\int \frac {\sqrt [3]{\frac {128}{243}-\frac {16 x}{9}+3 x^3}}{-\frac {4}{9}+x} \, dx,x,-\frac {5}{9}+x\right )+\frac {1}{8} \operatorname {Subst}\left (\int \frac {\sqrt [3]{\frac {128}{243}-\frac {16 x}{9}+3 x^3}}{\left (-\frac {4}{9}+x\right )^2} \, dx,x,-\frac {5}{9}+x\right )+\frac {3}{2} \operatorname {Subst}\left (\int \frac {\sqrt [3]{\frac {128}{243}-\frac {16 x}{9}+3 x^3}}{\left (-\frac {4}{9}+x\right )^3} \, dx,x,-\frac {5}{9}+x\right )\\ &=-\frac {\left (9 \sqrt [3]{3} \sqrt [3]{1+x-5 x^2+3 x^3}\right ) \operatorname {Subst}\left (\int \frac {\left (\frac {128}{81}-\frac {32 x}{9}\right )^{2/3} \sqrt [3]{\frac {128}{81}+\frac {16 x}{9}}}{-\frac {40}{9}+x} \, dx,x,-\frac {5}{9}+x\right )}{512\ 2^{2/3} (1-x)^{2/3} \sqrt [3]{1+3 x}}+\frac {\left (9 \sqrt [3]{3} \sqrt [3]{1+x-5 x^2+3 x^3}\right ) \operatorname {Subst}\left (\int \frac {\left (\frac {128}{81}-\frac {32 x}{9}\right )^{2/3} \sqrt [3]{\frac {128}{81}+\frac {16 x}{9}}}{-\frac {4}{9}+x} \, dx,x,-\frac {5}{9}+x\right )}{512\ 2^{2/3} (1-x)^{2/3} \sqrt [3]{1+3 x}}+\frac {\left (9 \sqrt [3]{3} \sqrt [3]{1+x-5 x^2+3 x^3}\right ) \operatorname {Subst}\left (\int \frac {\left (\frac {128}{81}-\frac {32 x}{9}\right )^{2/3} \sqrt [3]{\frac {128}{81}+\frac {16 x}{9}}}{\left (-\frac {4}{9}+x\right )^2} \, dx,x,-\frac {5}{9}+x\right )}{128\ 2^{2/3} (1-x)^{2/3} \sqrt [3]{1+3 x}}+\frac {\left (27 \sqrt [3]{3} \sqrt [3]{1+x-5 x^2+3 x^3}\right ) \operatorname {Subst}\left (\int \frac {\left (\frac {128}{81}-\frac {32 x}{9}\right )^{2/3} \sqrt [3]{\frac {128}{81}+\frac {16 x}{9}}}{\left (-\frac {4}{9}+x\right )^3} \, dx,x,-\frac {5}{9}+x\right )}{32\ 2^{2/3} (1-x)^{2/3} \sqrt [3]{1+3 x}}\\ &=-\frac {1}{32} \sqrt [3]{1+x-5 x^2+3 x^3}+\frac {\left (4 \sqrt [3]{2} \sqrt [3]{1+x-5 x^2+3 x^3}\right ) \operatorname {Subst}\left (\int \frac {\sqrt [3]{\frac {128}{81}+\frac {16 x}{9}}}{\left (\frac {128}{81}-\frac {32 x}{9}\right )^{4/3}} \, dx,x,-\frac {5}{9}+x\right )}{3\ 3^{2/3} (1-x)^{2/3} \sqrt [3]{1+3 x}}-\frac {\left (512 \sqrt [3]{2} \sqrt [3]{1+x-5 x^2+3 x^3}\right ) \operatorname {Subst}\left (\int \frac {\sqrt [3]{\frac {128}{81}+\frac {16 x}{9}}}{\left (\frac {128}{81}-\frac {32 x}{9}\right )^{7/3}} \, dx,x,-\frac {5}{9}+x\right )}{9\ 3^{2/3} (1-x)^{2/3} \sqrt [3]{1+3 x}}+\frac {\left (9 \sqrt [3]{3} \sqrt [3]{1+x-5 x^2+3 x^3}\right ) \operatorname {Subst}\left (\int \frac {\frac {65536}{6561}+\frac {20480 x}{729}}{\sqrt [3]{\frac {128}{81}-\frac {32 x}{9}} \left (-\frac {40}{9}+x\right ) \left (\frac {128}{81}+\frac {16 x}{9}\right )^{2/3}} \, dx,x,-\frac {5}{9}+x\right )}{512\ 2^{2/3} (1-x)^{2/3} \sqrt [3]{1+3 x}}-\frac {\left (\sqrt [3]{3} \sqrt [3]{1+x-5 x^2+3 x^3}\right ) \operatorname {Subst}\left (\int \frac {\sqrt [3]{\frac {128}{81}+\frac {16 x}{9}}}{\sqrt [3]{\frac {128}{81}-\frac {32 x}{9}}} \, dx,x,-\frac {5}{9}+x\right )}{16\ 2^{2/3} (1-x)^{2/3} \sqrt [3]{1+3 x}}\\ &=\frac {3 \sqrt [3]{1+x-5 x^2+3 x^3}}{8 (1-x)}-\frac {9 (1+3 x) \sqrt [3]{1+x-5 x^2+3 x^3}}{32 (1-x)^2}-\frac {\left (2 \sqrt [3]{2} \sqrt [3]{1+x-5 x^2+3 x^3}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [3]{\frac {128}{81}-\frac {32 x}{9}} \left (\frac {128}{81}+\frac {16 x}{9}\right )^{2/3}} \, dx,x,-\frac {5}{9}+x\right )}{27\ 3^{2/3} (1-x)^{2/3} \sqrt [3]{1+3 x}}-\frac {\left (2 \sqrt [3]{2} \sqrt [3]{1+x-5 x^2+3 x^3}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [3]{\frac {128}{81}-\frac {32 x}{9}} \left (\frac {128}{81}+\frac {16 x}{9}\right )^{2/3}} \, dx,x,-\frac {5}{9}+x\right )}{3\ 3^{2/3} (1-x)^{2/3} \sqrt [3]{1+3 x}}+\frac {\left (20 \sqrt [3]{2} \sqrt [3]{1+x-5 x^2+3 x^3}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [3]{\frac {128}{81}-\frac {32 x}{9}} \left (\frac {128}{81}+\frac {16 x}{9}\right )^{2/3}} \, dx,x,-\frac {5}{9}+x\right )}{27\ 3^{2/3} (1-x)^{2/3} \sqrt [3]{1+3 x}}+\frac {\left (32 \sqrt [3]{2} \sqrt [3]{1+x-5 x^2+3 x^3}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [3]{\frac {128}{81}-\frac {32 x}{9}} \left (-\frac {40}{9}+x\right ) \left (\frac {128}{81}+\frac {16 x}{9}\right )^{2/3}} \, dx,x,-\frac {5}{9}+x\right )}{9\ 3^{2/3} (1-x)^{2/3} \sqrt [3]{1+3 x}}\\ &=\frac {3 \sqrt [3]{1+x-5 x^2+3 x^3}}{8 (1-x)}-\frac {9 (1+3 x) \sqrt [3]{1+x-5 x^2+3 x^3}}{32 (1-x)^2}-\frac {\sqrt {3} \sqrt [3]{1+x-5 x^2+3 x^3} \tan ^{-1}\left (\frac {1}{\sqrt {3}}-\frac {2\ 2^{2/3} \sqrt [3]{1-x}}{\sqrt {3} \sqrt [3]{1+3 x}}\right )}{4 \sqrt [3]{2} (1-x)^{2/3} \sqrt [3]{1+3 x}}+\frac {\sqrt [3]{1+x-5 x^2+3 x^3} \log (5-x)}{8 \sqrt [3]{2} (1-x)^{2/3} \sqrt [3]{1+3 x}}-\frac {3 \sqrt [3]{1+x-5 x^2+3 x^3} \log \left (6 \sqrt [3]{1-x}+3 \sqrt [3]{2} \sqrt [3]{1+3 x}\right )}{8 \sqrt [3]{2} (1-x)^{2/3} \sqrt [3]{1+3 x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.03, size = 56, normalized size = 0.20 \begin {gather*} \frac {3 \left (8 (x-1)^2 \, _2F_1\left (\frac {2}{3},1;\frac {5}{3};\frac {4 (x-1)}{3 x+1}\right )-39 x^2-10 x+1\right )}{32 \left ((x-1)^2 (3 x+1)\right )^{2/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 16.25, size = 218, normalized size = 0.78 \begin {gather*} \frac {\sqrt [3]{-1+x} (1+3 x)^{2/3} \sqrt [3]{(-1+x)^2 (1+3 x)} \left (-\frac {3 \sqrt [3]{1+3 x} \left (4+\frac {3 (1+3 x)}{-1+x}\right )}{32 \sqrt [3]{-1+x}}+\frac {\sqrt {3} \tan ^{-1}\left (\frac {1}{\sqrt {3}}+\frac {\sqrt [3]{2} \sqrt [3]{1+3 x}}{\sqrt {3} \sqrt [3]{-1+x}}\right )}{4 \sqrt [3]{2}}-\frac {\log \left (-2+\frac {\sqrt [3]{2} \sqrt [3]{1+3 x}}{\sqrt [3]{-1+x}}\right )}{4 \sqrt [3]{2}}+\frac {\log \left (4+\frac {2 \sqrt [3]{2} \sqrt [3]{1+3 x}}{\sqrt [3]{-1+x}}+\frac {2^{2/3} (1+3 x)^{2/3}}{(-1+x)^{2/3}}\right )}{8 \sqrt [3]{2}}\right )}{-1-2 x+3 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.51, size = 236, normalized size = 0.85 \begin {gather*} -\frac {4 \, \sqrt {3} 2^{\frac {2}{3}} \left (-1\right )^{\frac {1}{3}} {\left (x^{2} - 2 \, x + 1\right )} \arctan \left (\frac {\sqrt {3} 2^{\frac {1}{6}} {\left (2^{\frac {5}{6}} {\left (x - 1\right )} + 2 \cdot 2^{\frac {1}{6}} \left (-1\right )^{\frac {2}{3}} {\left (3 \, x^{3} - 5 \, x^{2} + x + 1\right )}^{\frac {1}{3}}\right )}}{6 \, {\left (x - 1\right )}}\right ) + 2 \cdot 2^{\frac {2}{3}} \left (-1\right )^{\frac {1}{3}} {\left (x^{2} - 2 \, x + 1\right )} \log \left (-\frac {2^{\frac {2}{3}} \left (-1\right )^{\frac {1}{3}} {\left (3 \, x^{3} - 5 \, x^{2} + x + 1\right )}^{\frac {1}{3}} {\left (x - 1\right )} - 2 \cdot 2^{\frac {1}{3}} \left (-1\right )^{\frac {2}{3}} {\left (x^{2} - 2 \, x + 1\right )} - {\left (3 \, x^{3} - 5 \, x^{2} + x + 1\right )}^{\frac {2}{3}}}{x^{2} - 2 \, x + 1}\right ) - 4 \cdot 2^{\frac {2}{3}} \left (-1\right )^{\frac {1}{3}} {\left (x^{2} - 2 \, x + 1\right )} \log \left (\frac {2^{\frac {2}{3}} \left (-1\right )^{\frac {1}{3}} {\left (x - 1\right )} + {\left (3 \, x^{3} - 5 \, x^{2} + x + 1\right )}^{\frac {1}{3}}}{x - 1}\right ) + 3 \, {\left (3 \, x^{3} - 5 \, x^{2} + x + 1\right )}^{\frac {1}{3}} {\left (13 \, x - 1\right )}}{32 \, {\left (x^{2} - 2 \, x + 1\right )}} \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 {{\left (3 \, x^{3} - 5 \, x^{2} + x + 1\right )}^{\frac {1}{3}} {\left (x - 7\right )}}{{\left (x - 1\right )}^{3} {\left (x - 5\right )}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 2.99, size = 1563, normalized size = 5.62
method | result | size |
trager | \(\text {Expression too large to display}\) | \(1563\) |
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 {{\left (3 \, x^{3} - 5 \, x^{2} + x + 1\right )}^{\frac {1}{3}} {\left (x - 7\right )}}{{\left (x - 1\right )}^{3} {\left (x - 5\right )}}\,{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.00 \begin {gather*} \int \frac {\left (x-7\right )\,{\left (3\,x^3-5\,x^2+x+1\right )}^{1/3}}{{\left (x-1\right )}^3\,\left (x-5\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 {\sqrt [3]{\left (x - 1\right )^{2} \left (3 x + 1\right )} \left (x - 7\right )}{\left (x - 5\right ) \left (x - 1\right )^{3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________