Integrand size = 27, antiderivative size = 125 \[ \int \frac {(-1+x) (1+3 x)}{(-1+3 x) \left (-x+x^3\right )^{2/3}} \, dx=-\sqrt {3} \arctan \left (\frac {\sqrt {3} \left (124616800+1235276981 x+1609127381 x^2\right )+612314840 \sqrt {3} (-1+x) \sqrt [3]{-x+x^3}+2605939922 \sqrt {3} \left (-x+x^3\right )^{2/3}}{-39304000+3108349623 x+2990437623 x^2}\right )-\frac {1}{2} \log \left (\frac {-1+3 x+3 (-1+x) \sqrt [3]{-x+x^3}-3 \left (-x+x^3\right )^{2/3}}{-1+3 x}\right ) \]
[Out]
Result contains higher order function than in optimal. Order 6 vs. order 3 in optimal.
Time = 1.01 (sec) , antiderivative size = 537, normalized size of antiderivative = 4.30, number of steps used = 14, number of rules used = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.444, Rules used = {2081, 6865, 6857, 247, 231, 281, 337, 1452, 441, 440, 476, 503} \[ \int \frac {(-1+x) (1+3 x)}{(-1+3 x) \left (-x+x^3\right )^{2/3}} \, dx=\frac {4 x \left (1-x^2\right )^{2/3} \operatorname {AppellF1}\left (\frac {1}{6},\frac {2}{3},1,\frac {7}{6},x^2,9 x^2\right )}{\left (x^3-x\right )^{2/3}}-\frac {x \left (1-x^2\right ) \left (1-\frac {x^{2/3}}{\sqrt [3]{x^2-1}}\right ) \sqrt {\frac {\frac {x^{4/3}}{\left (x^2-1\right )^{2/3}}+\frac {x^{2/3}}{\sqrt [3]{x^2-1}}+1}{\left (1-\frac {\left (1+\sqrt {3}\right ) x^{2/3}}{\sqrt [3]{x^2-1}}\right )^2}} \operatorname {EllipticF}\left (\arccos \left (\frac {1-\frac {\left (1-\sqrt {3}\right ) x^{2/3}}{\sqrt [3]{x^2-1}}}{1-\frac {\left (1+\sqrt {3}\right ) x^{2/3}}{\sqrt [3]{x^2-1}}}\right ),\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{2 \sqrt [4]{3} \left (x^3-x\right )^{2/3} \sqrt {-\frac {x^{2/3} \left (1-\frac {x^{2/3}}{\sqrt [3]{x^2-1}}\right )}{\sqrt [3]{x^2-1} \left (1-\frac {\left (1+\sqrt {3}\right ) x^{2/3}}{\sqrt [3]{x^2-1}}\right )^2}}}-\frac {\sqrt {3} x^{2/3} \left (x^2-1\right )^{2/3} \arctan \left (\frac {1-\frac {4 x^{2/3}}{\sqrt [3]{x^2-1}}}{\sqrt {3}}\right )}{2 \left (x^3-x\right )^{2/3}}-\frac {\sqrt {3} x^{2/3} \left (x^2-1\right )^{2/3} \arctan \left (\frac {\frac {2 x^{2/3}}{\sqrt [3]{x^2-1}}+1}{\sqrt {3}}\right )}{2 \left (x^3-x\right )^{2/3}}+\frac {x^{2/3} \left (x^2-1\right )^{2/3} \log \left (1-9 x^2\right )}{4 \left (x^3-x\right )^{2/3}}-\frac {3 x^{2/3} \left (x^2-1\right )^{2/3} \log \left (x^{2/3}-\sqrt [3]{x^2-1}\right )}{4 \left (x^3-x\right )^{2/3}}-\frac {3 x^{2/3} \left (x^2-1\right )^{2/3} \log \left (2 x^{2/3}+\sqrt [3]{x^2-1}\right )}{4 \left (x^3-x\right )^{2/3}} \]
[In]
[Out]
Rule 231
Rule 247
Rule 281
Rule 337
Rule 440
Rule 441
Rule 476
Rule 503
Rule 1452
Rule 2081
Rule 6857
Rule 6865
Rubi steps \begin{align*} \text {integral}= \frac {\left (x^{2/3} \left (-1+x^2\right )^{2/3}\right ) \int \frac {(-1+x) (1+3 x)}{x^{2/3} (-1+3 x) \left (-1+x^2\right )^{2/3}} \, dx}{\left (-x+x^3\right )^{2/3}} \\ = \frac {\left (3 x^{2/3} \left (-1+x^2\right )^{2/3}\right ) \text {Subst}\left (\int \frac {\left (-1+x^3\right ) \left (1+3 x^3\right )}{\left (-1+3 x^3\right ) \left (-1+x^6\right )^{2/3}} \, dx,x,\sqrt [3]{x}\right )}{\left (-x+x^3\right )^{2/3}} \\ = \frac {\left (3 x^{2/3} \left (-1+x^2\right )^{2/3}\right ) \text {Subst}\left (\int \left (-\frac {1}{3 \left (-1+x^6\right )^{2/3}}+\frac {x^3}{\left (-1+x^6\right )^{2/3}}-\frac {4}{3 \left (-1+3 x^3\right ) \left (-1+x^6\right )^{2/3}}\right ) \, dx,x,\sqrt [3]{x}\right )}{\left (-x+x^3\right )^{2/3}} \\ = -\frac {\left (x^{2/3} \left (-1+x^2\right )^{2/3}\right ) \text {Subst}\left (\int \frac {1}{\left (-1+x^6\right )^{2/3}} \, dx,x,\sqrt [3]{x}\right )}{\left (-x+x^3\right )^{2/3}}+\frac {\left (3 x^{2/3} \left (-1+x^2\right )^{2/3}\right ) \text {Subst}\left (\int \frac {x^3}{\left (-1+x^6\right )^{2/3}} \, dx,x,\sqrt [3]{x}\right )}{\left (-x+x^3\right )^{2/3}}-\frac {\left (4 x^{2/3} \left (-1+x^2\right )^{2/3}\right ) \text {Subst}\left (\int \frac {1}{\left (-1+3 x^3\right ) \left (-1+x^6\right )^{2/3}} \, dx,x,\sqrt [3]{x}\right )}{\left (-x+x^3\right )^{2/3}} \\ = -\frac {\left (x^{2/3} \sqrt [6]{-1+x^2}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^6}} \, dx,x,\frac {\sqrt [3]{x}}{\sqrt [6]{-1+x^2}}\right )}{\sqrt {-\frac {1}{-1+x^2}} \left (-x+x^3\right )^{2/3}}+\frac {\left (3 x^{2/3} \left (-1+x^2\right )^{2/3}\right ) \text {Subst}\left (\int \frac {x}{\left (-1+x^3\right )^{2/3}} \, dx,x,x^{2/3}\right )}{2 \left (-x+x^3\right )^{2/3}}-\frac {\left (4 x^{2/3} \left (-1+x^2\right )^{2/3}\right ) \text {Subst}\left (\int \left (\frac {1}{\left (-1+x^6\right )^{2/3} \left (-1+9 x^6\right )}+\frac {3 x^3}{\left (-1+x^6\right )^{2/3} \left (-1+9 x^6\right )}\right ) \, dx,x,\sqrt [3]{x}\right )}{\left (-x+x^3\right )^{2/3}} \\ = -\frac {\sqrt {3} x^{2/3} \left (-1+x^2\right )^{2/3} \arctan \left (\frac {1+\frac {2 x^{2/3}}{\sqrt [3]{-1+x^2}}}{\sqrt {3}}\right )}{2 \left (-x+x^3\right )^{2/3}}-\frac {x \left (1-x^2\right ) \left (1-\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right ) \sqrt {\frac {1+\frac {x^{4/3}}{\left (-1+x^2\right )^{2/3}}+\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}}{\left (1-\frac {\left (1+\sqrt {3}\right ) x^{2/3}}{\sqrt [3]{-1+x^2}}\right )^2}} \operatorname {EllipticF}\left (\arccos \left (\frac {1-\frac {\left (1-\sqrt {3}\right ) x^{2/3}}{\sqrt [3]{-1+x^2}}}{1-\frac {\left (1+\sqrt {3}\right ) x^{2/3}}{\sqrt [3]{-1+x^2}}}\right ),\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{2 \sqrt [4]{3} \left (-x+x^3\right )^{2/3} \sqrt {-\frac {x^{2/3} \left (1-\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{\sqrt [3]{-1+x^2} \left (1-\frac {\left (1+\sqrt {3}\right ) x^{2/3}}{\sqrt [3]{-1+x^2}}\right )^2}}}-\frac {3 x^{2/3} \left (-1+x^2\right )^{2/3} \log \left (x^{2/3}-\sqrt [3]{-1+x^2}\right )}{4 \left (-x+x^3\right )^{2/3}}-\frac {\left (4 x^{2/3} \left (-1+x^2\right )^{2/3}\right ) \text {Subst}\left (\int \frac {1}{\left (-1+x^6\right )^{2/3} \left (-1+9 x^6\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (-x+x^3\right )^{2/3}}-\frac {\left (12 x^{2/3} \left (-1+x^2\right )^{2/3}\right ) \text {Subst}\left (\int \frac {x^3}{\left (-1+x^6\right )^{2/3} \left (-1+9 x^6\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (-x+x^3\right )^{2/3}} \\ = -\frac {\sqrt {3} x^{2/3} \left (-1+x^2\right )^{2/3} \arctan \left (\frac {1+\frac {2 x^{2/3}}{\sqrt [3]{-1+x^2}}}{\sqrt {3}}\right )}{2 \left (-x+x^3\right )^{2/3}}-\frac {x \left (1-x^2\right ) \left (1-\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right ) \sqrt {\frac {1+\frac {x^{4/3}}{\left (-1+x^2\right )^{2/3}}+\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}}{\left (1-\frac {\left (1+\sqrt {3}\right ) x^{2/3}}{\sqrt [3]{-1+x^2}}\right )^2}} \operatorname {EllipticF}\left (\arccos \left (\frac {1-\frac {\left (1-\sqrt {3}\right ) x^{2/3}}{\sqrt [3]{-1+x^2}}}{1-\frac {\left (1+\sqrt {3}\right ) x^{2/3}}{\sqrt [3]{-1+x^2}}}\right ),\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{2 \sqrt [4]{3} \left (-x+x^3\right )^{2/3} \sqrt {-\frac {x^{2/3} \left (1-\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{\sqrt [3]{-1+x^2} \left (1-\frac {\left (1+\sqrt {3}\right ) x^{2/3}}{\sqrt [3]{-1+x^2}}\right )^2}}}-\frac {3 x^{2/3} \left (-1+x^2\right )^{2/3} \log \left (x^{2/3}-\sqrt [3]{-1+x^2}\right )}{4 \left (-x+x^3\right )^{2/3}}-\frac {\left (4 x^{2/3} \left (1-x^2\right )^{2/3}\right ) \text {Subst}\left (\int \frac {1}{\left (1-x^6\right )^{2/3} \left (-1+9 x^6\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (-x+x^3\right )^{2/3}}-\frac {\left (6 x^{2/3} \left (-1+x^2\right )^{2/3}\right ) \text {Subst}\left (\int \frac {x}{\left (-1+x^3\right )^{2/3} \left (-1+9 x^3\right )} \, dx,x,x^{2/3}\right )}{\left (-x+x^3\right )^{2/3}} \\ = \frac {4 x \left (1-x^2\right )^{2/3} \operatorname {AppellF1}\left (\frac {1}{6},\frac {2}{3},1,\frac {7}{6},x^2,9 x^2\right )}{\left (-x+x^3\right )^{2/3}}-\frac {\sqrt {3} x^{2/3} \left (-1+x^2\right )^{2/3} \arctan \left (\frac {1-\frac {4 x^{2/3}}{\sqrt [3]{-1+x^2}}}{\sqrt {3}}\right )}{2 \left (-x+x^3\right )^{2/3}}-\frac {\sqrt {3} x^{2/3} \left (-1+x^2\right )^{2/3} \arctan \left (\frac {1+\frac {2 x^{2/3}}{\sqrt [3]{-1+x^2}}}{\sqrt {3}}\right )}{2 \left (-x+x^3\right )^{2/3}}-\frac {x \left (1-x^2\right ) \left (1-\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right ) \sqrt {\frac {1+\frac {x^{4/3}}{\left (-1+x^2\right )^{2/3}}+\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}}{\left (1-\frac {\left (1+\sqrt {3}\right ) x^{2/3}}{\sqrt [3]{-1+x^2}}\right )^2}} \operatorname {EllipticF}\left (\arccos \left (\frac {1-\frac {\left (1-\sqrt {3}\right ) x^{2/3}}{\sqrt [3]{-1+x^2}}}{1-\frac {\left (1+\sqrt {3}\right ) x^{2/3}}{\sqrt [3]{-1+x^2}}}\right ),\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{2 \sqrt [4]{3} \left (-x+x^3\right )^{2/3} \sqrt {-\frac {x^{2/3} \left (1-\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{\sqrt [3]{-1+x^2} \left (1-\frac {\left (1+\sqrt {3}\right ) x^{2/3}}{\sqrt [3]{-1+x^2}}\right )^2}}}+\frac {x^{2/3} \left (-1+x^2\right )^{2/3} \log \left (1-9 x^2\right )}{4 \left (-x+x^3\right )^{2/3}}-\frac {3 x^{2/3} \left (-1+x^2\right )^{2/3} \log \left (x^{2/3}-\sqrt [3]{-1+x^2}\right )}{4 \left (-x+x^3\right )^{2/3}}-\frac {3 x^{2/3} \left (-1+x^2\right )^{2/3} \log \left (2 x^{2/3}+\sqrt [3]{-1+x^2}\right )}{4 \left (-x+x^3\right )^{2/3}} \\ \end{align*}
\[ \int \frac {(-1+x) (1+3 x)}{(-1+3 x) \left (-x+x^3\right )^{2/3}} \, dx=\int \frac {(-1+x) (1+3 x)}{(-1+3 x) \left (-x+x^3\right )^{2/3}} \, dx \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 0.60 (sec) , antiderivative size = 606, normalized size of antiderivative = 4.85
method | result | size |
trager | \(\ln \left (-\frac {1415 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )^{2} x^{2}+3234 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) \left (x^{3}-x \right )^{\frac {2}{3}}+3234 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) \left (x^{3}-x \right )^{\frac {1}{3}} x -3679 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )^{2} x +1819 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) x^{2}-2127 \left (x^{3}-x \right )^{\frac {2}{3}}-3234 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) \left (x^{3}-x \right )^{\frac {1}{3}}-2127 \left (x^{3}-x \right )^{\frac {1}{3}} x +1698 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )^{2}+2572 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) x -712 x^{2}+2127 \left (x^{3}-x \right )^{\frac {1}{3}}-251 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )-445 x -89}{-1+3 x}\right ) \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )-\operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) \ln \left (\frac {-1415 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )^{2} x^{2}+3234 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) \left (x^{3}-x \right )^{\frac {2}{3}}+3234 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) \left (x^{3}-x \right )^{\frac {1}{3}} x +3679 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )^{2} x +4649 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) x^{2}-1107 \left (x^{3}-x \right )^{\frac {2}{3}}-3234 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) \left (x^{3}-x \right )^{\frac {1}{3}}-1107 \left (x^{3}-x \right )^{\frac {1}{3}} x -1698 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )^{2}-4786 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) x -2522 x^{2}+1107 \left (x^{3}-x \right )^{\frac {1}{3}}+3145 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )+1552 x -1358}{-1+3 x}\right )+\ln \left (\frac {-1415 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )^{2} x^{2}+3234 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) \left (x^{3}-x \right )^{\frac {2}{3}}+3234 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) \left (x^{3}-x \right )^{\frac {1}{3}} x +3679 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )^{2} x +4649 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) x^{2}-1107 \left (x^{3}-x \right )^{\frac {2}{3}}-3234 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) \left (x^{3}-x \right )^{\frac {1}{3}}-1107 \left (x^{3}-x \right )^{\frac {1}{3}} x -1698 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )^{2}-4786 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) x -2522 x^{2}+1107 \left (x^{3}-x \right )^{\frac {1}{3}}+3145 \operatorname {RootOf}\left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )+1552 x -1358}{-1+3 x}\right )\) | \(606\) |
[In]
[Out]
none
Time = 0.50 (sec) , antiderivative size = 107, normalized size of antiderivative = 0.86 \[ \int \frac {(-1+x) (1+3 x)}{(-1+3 x) \left (-x+x^3\right )^{2/3}} \, dx=-\sqrt {3} \arctan \left (\frac {612314840 \, \sqrt {3} {\left (x^{3} - x\right )}^{\frac {1}{3}} {\left (x - 1\right )} + \sqrt {3} {\left (1609127381 \, x^{2} + 1235276981 \, x + 124616800\right )} + 2605939922 \, \sqrt {3} {\left (x^{3} - x\right )}^{\frac {2}{3}}}{2990437623 \, x^{2} + 3108349623 \, x - 39304000}\right ) - \frac {1}{2} \, \log \left (\frac {3 \, {\left (x^{3} - x\right )}^{\frac {1}{3}} {\left (x - 1\right )} + 3 \, x - 3 \, {\left (x^{3} - x\right )}^{\frac {2}{3}} - 1}{3 \, x - 1}\right ) \]
[In]
[Out]
\[ \int \frac {(-1+x) (1+3 x)}{(-1+3 x) \left (-x+x^3\right )^{2/3}} \, dx=\int \frac {\left (x - 1\right ) \left (3 x + 1\right )}{\left (x \left (x - 1\right ) \left (x + 1\right )\right )^{\frac {2}{3}} \cdot \left (3 x - 1\right )}\, dx \]
[In]
[Out]
\[ \int \frac {(-1+x) (1+3 x)}{(-1+3 x) \left (-x+x^3\right )^{2/3}} \, dx=\int { \frac {{\left (3 \, x + 1\right )} {\left (x - 1\right )}}{{\left (x^{3} - x\right )}^{\frac {2}{3}} {\left (3 \, x - 1\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {(-1+x) (1+3 x)}{(-1+3 x) \left (-x+x^3\right )^{2/3}} \, dx=\int { \frac {{\left (3 \, x + 1\right )} {\left (x - 1\right )}}{{\left (x^{3} - x\right )}^{\frac {2}{3}} {\left (3 \, x - 1\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(-1+x) (1+3 x)}{(-1+3 x) \left (-x+x^3\right )^{2/3}} \, dx=\int \frac {\left (3\,x+1\right )\,\left (x-1\right )}{{\left (x^3-x\right )}^{2/3}\,\left (3\,x-1\right )} \,d x \]
[In]
[Out]