Integrand size = 31, antiderivative size = 278 \[ \int \frac {(-7+x) \sqrt [3]{1+x-5 x^2+3 x^3}}{(-5+x) (-1+x)^3} \, dx=\frac {(-1+x)^{4/3} (1+3 x)^{2/3} \left (-\frac {21 \sqrt [3]{3} \left (-16 \sqrt [3]{1+3 x}+7 (1+3 x)^{4/3}\right )}{64 (-3+3 x)^{4/3}}+\frac {3 \sqrt [3]{3} \left (-80 \sqrt [3]{1+3 x}+23 (1+3 x)^{4/3}\right )}{64 (-3+3 x)^{4/3}}+\frac {\sqrt {3} \arctan \left (\frac {3^{5/6} \sqrt [3]{1+3 x}}{2\ 2^{2/3} \sqrt [3]{-3+3 x}+\sqrt [3]{3} \sqrt [3]{1+3 x}}\right )}{4 \sqrt [3]{2}}-\frac {\log \left (6^{2/3} \sqrt [3]{-3+3 x}-3 \sqrt [3]{1+3 x}\right )}{4 \sqrt [3]{2}}+\frac {\log \left (2 \sqrt [3]{6} (-3+3 x)^{2/3}+6^{2/3} \sqrt [3]{-3+3 x} \sqrt [3]{1+3 x}+3 (1+3 x)^{2/3}\right )}{8 \sqrt [3]{2}}\right )}{\left ((-1+x)^2 (1+3 x)\right )^{2/3}} \]
[Out]
Time = 1.42 (sec) , antiderivative size = 273, normalized size of antiderivative = 0.98, number of steps used = 22, number of rules used = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.355, Rules used = {6874, 2106, 2102, 103, 163, 62, 93, 21, 37, 49, 52} \[ \int \frac {(-7+x) \sqrt [3]{1+x-5 x^2+3 x^3}}{(-5+x) (-1+x)^3} \, dx=-\frac {\sqrt {3} \sqrt [3]{3 x^3-5 x^2+x+1} \arctan \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}}-\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}} \]
[In]
[Out]
Rule 21
Rule 37
Rule 49
Rule 52
Rule 62
Rule 93
Rule 103
Rule 163
Rule 2102
Rule 2106
Rule 6874
Rubi steps \begin{align*} \text {integral}& = \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} \text {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} \text {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} \text {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} \text {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 ) \text {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 ) \text {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 ) \text {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 ) \text {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 ) \text {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 ) \text {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 ) \text {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 ) \text {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 ) \text {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 ) \text {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 ) \text {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 ) \text {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} \arctan \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 (2^{2/3} \sqrt [3]{1-x}+\sqrt [3]{1+3 x}\right )}{8 \sqrt [3]{2} (1-x)^{2/3} \sqrt [3]{1+3 x}} \\ \end{align*}
Time = 0.32 (sec) , antiderivative size = 194, normalized size of antiderivative = 0.70 \[ \int \frac {(-7+x) \sqrt [3]{1+x-5 x^2+3 x^3}}{(-5+x) (-1+x)^3} \, dx=\frac {1}{32} \sqrt [3]{(-1+x)^2 (1+3 x)} \left (\frac {3-39 x}{(-1+x)^2}+\frac {4\ 2^{2/3} \sqrt {3} \arctan \left (\frac {\sqrt [3]{-1+x}+\sqrt [3]{2+6 x}}{\sqrt {3} \sqrt [3]{-1+x}}\right )}{(-1+x)^{2/3} \sqrt [3]{1+3 x}}-\frac {4\ 2^{2/3} \log \left (-2+\frac {\sqrt [3]{2+6 x}}{\sqrt [3]{-1+x}}\right )}{(-1+x)^{2/3} \sqrt [3]{1+3 x}}+\frac {2\ 2^{2/3} \log \left (4+\frac {2 \sqrt [3]{2+6 x}}{\sqrt [3]{-1+x}}+\frac {(2+6 x)^{2/3}}{(-1+x)^{2/3}}\right )}{(-1+x)^{2/3} \sqrt [3]{1+3 x}}\right ) \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 1.64 (sec) , antiderivative size = 1546, normalized size of antiderivative = 5.56
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 236, normalized size of antiderivative = 0.85 \[ \int \frac {(-7+x) \sqrt [3]{1+x-5 x^2+3 x^3}}{(-5+x) (-1+x)^3} \, dx=-\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 )}} \]
[In]
[Out]
\[ \int \frac {(-7+x) \sqrt [3]{1+x-5 x^2+3 x^3}}{(-5+x) (-1+x)^3} \, dx=\int \frac {\sqrt [3]{\left (x - 1\right )^{2} \cdot \left (3 x + 1\right )} \left (x - 7\right )}{\left (x - 5\right ) \left (x - 1\right )^{3}}\, dx \]
[In]
[Out]
\[ \int \frac {(-7+x) \sqrt [3]{1+x-5 x^2+3 x^3}}{(-5+x) (-1+x)^3} \, dx=\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 } \]
[In]
[Out]
\[ \int \frac {(-7+x) \sqrt [3]{1+x-5 x^2+3 x^3}}{(-5+x) (-1+x)^3} \, dx=\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 } \]
[In]
[Out]
Timed out. \[ \int \frac {(-7+x) \sqrt [3]{1+x-5 x^2+3 x^3}}{(-5+x) (-1+x)^3} \, dx=\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 \]
[In]
[Out]