Integrand size = 30, antiderivative size = 157 \[ \int \frac {-1+x+x^3}{\left (1-x+x^3\right ) \sqrt [3]{-x^2+x^3}} \, dx=\sqrt {3} \arctan \left (\frac {\sqrt {3} x}{x+2 \sqrt [3]{-x^2+x^3}}\right )-\log \left (-x+\sqrt [3]{-x^2+x^3}\right )+\frac {1}{2} \log \left (x^2+x \sqrt [3]{-x^2+x^3}+\left (-x^2+x^3\right )^{2/3}\right )+2 \text {RootSum}\left [-1+\text {$\#$1}^3-2 \text {$\#$1}^6+\text {$\#$1}^9\&,\frac {-\log (x) \text {$\#$1}^2+\log \left (\sqrt [3]{-x^2+x^3}-x \text {$\#$1}\right ) \text {$\#$1}^2}{-1+3 \text {$\#$1}^3}\&\right ] \] Output:
Unintegrable
Time = 0.00 (sec) , antiderivative size = 177, normalized size of antiderivative = 1.13 \[ \int \frac {-1+x+x^3}{\left (1-x+x^3\right ) \sqrt [3]{-x^2+x^3}} \, dx=\frac {\sqrt [3]{-1+x} x^{2/3} \left (2 \sqrt {3} \arctan \left (\frac {\sqrt {3} \sqrt [3]{x}}{2 \sqrt [3]{-1+x}+\sqrt [3]{x}}\right )-2 \log \left (\sqrt [3]{-1+x}-\sqrt [3]{x}\right )+\log \left ((-1+x)^{2/3}+\sqrt [3]{-1+x} \sqrt [3]{x}+x^{2/3}\right )+4 \text {RootSum}\left [-1+\text {$\#$1}^3-2 \text {$\#$1}^6+\text {$\#$1}^9\&,\frac {-\log \left (\sqrt [3]{x}\right ) \text {$\#$1}^2+\log \left (\sqrt [3]{-1+x}-\sqrt [3]{x} \text {$\#$1}\right ) \text {$\#$1}^2}{-1+3 \text {$\#$1}^3}\&\right ]\right )}{2 \sqrt [3]{(-1+x) x^2}} \] Input:
Integrate[(-1 + x + x^3)/((1 - x + x^3)*(-x^2 + x^3)^(1/3)),x]
Output:
((-1 + x)^(1/3)*x^(2/3)*(2*Sqrt[3]*ArcTan[(Sqrt[3]*x^(1/3))/(2*(-1 + x)^(1 /3) + x^(1/3))] - 2*Log[(-1 + x)^(1/3) - x^(1/3)] + Log[(-1 + x)^(2/3) + ( -1 + x)^(1/3)*x^(1/3) + x^(2/3)] + 4*RootSum[-1 + #1^3 - 2*#1^6 + #1^9 & , (-(Log[x^(1/3)]*#1^2) + Log[(-1 + x)^(1/3) - x^(1/3)*#1]*#1^2)/(-1 + 3*#1 ^3) & ]))/(2*((-1 + x)*x^2)^(1/3))
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {x^3+x-1}{\left (x^3-x+1\right ) \sqrt [3]{x^3-x^2}} \, dx\) |
\(\Big \downarrow \) 2467 |
\(\displaystyle \frac {\sqrt [3]{x-1} x^{2/3} \int -\frac {-x^3-x+1}{\sqrt [3]{x-1} x^{2/3} \left (x^3-x+1\right )}dx}{\sqrt [3]{x^3-x^2}}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {\sqrt [3]{x-1} x^{2/3} \int \frac {-x^3-x+1}{\sqrt [3]{x-1} x^{2/3} \left (x^3-x+1\right )}dx}{\sqrt [3]{x^3-x^2}}\) |
\(\Big \downarrow \) 2035 |
\(\displaystyle -\frac {3 \sqrt [3]{x-1} x^{2/3} \int \frac {-x^3-x+1}{\sqrt [3]{x-1} \left (x^3-x+1\right )}d\sqrt [3]{x}}{\sqrt [3]{x^3-x^2}}\) |
\(\Big \downarrow \) 7293 |
\(\displaystyle -\frac {3 \sqrt [3]{x-1} x^{2/3} \int \left (\frac {2 (1-x)}{\sqrt [3]{x-1} \left (x^3-x+1\right )}-\frac {1}{\sqrt [3]{x-1}}\right )d\sqrt [3]{x}}{\sqrt [3]{x^3-x^2}}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {3 \sqrt [3]{x-1} x^{2/3} \left (-2 \int \frac {(x-1)^{2/3}}{x^3-x+1}d\sqrt [3]{x}-\frac {\arctan \left (\frac {\frac {2 \sqrt [3]{x}}{\sqrt [3]{x-1}}+1}{\sqrt {3}}\right )}{\sqrt {3}}+\frac {1}{2} \log \left (\sqrt [3]{x-1}-\sqrt [3]{x}\right )\right )}{\sqrt [3]{x^3-x^2}}\) |
Input:
Int[(-1 + x + x^3)/((1 - x + x^3)*(-x^2 + x^3)^(1/3)),x]
Output:
$Aborted
Time = 135.09 (sec) , antiderivative size = 131, normalized size of antiderivative = 0.83
method | result | size |
pseudoelliptic | \(\frac {\ln \left (\frac {\left (\left (-1+x \right ) x^{2}\right )^{\frac {2}{3}}+\left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}} x +x^{2}}{x^{2}}\right )}{2}-\sqrt {3}\, \arctan \left (\frac {\left (2 \left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}}+x \right ) \sqrt {3}}{3 x}\right )+2 \left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (\textit {\_Z}^{9}-2 \textit {\_Z}^{6}+\textit {\_Z}^{3}-1\right )}{\sum }\frac {\ln \left (\frac {-\textit {\_R} x +\left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}}}{x}\right ) \textit {\_R}^{2}}{3 \textit {\_R}^{3}-1}\right )-\ln \left (\frac {\left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}}-x}{x}\right )\) | \(131\) |
trager | \(\text {Expression too large to display}\) | \(184138\) |
Input:
int((x^3+x-1)/(x^3-x+1)/(x^3-x^2)^(1/3),x,method=_RETURNVERBOSE)
Output:
1/2*ln((((-1+x)*x^2)^(2/3)+((-1+x)*x^2)^(1/3)*x+x^2)/x^2)-3^(1/2)*arctan(1 /3*(2*((-1+x)*x^2)^(1/3)+x)*3^(1/2)/x)+2*sum(ln((-_R*x+((-1+x)*x^2)^(1/3)) /x)*_R^2/(3*_R^3-1),_R=RootOf(_Z^9-2*_Z^6+_Z^3-1))-ln((((-1+x)*x^2)^(1/3)- x)/x)
Result contains higher order function than in optimal. Order 3 vs. order 1.
Time = 0.71 (sec) , antiderivative size = 3144, normalized size of antiderivative = 20.03 \[ \int \frac {-1+x+x^3}{\left (1-x+x^3\right ) \sqrt [3]{-x^2+x^3}} \, dx=\text {Too large to display} \] Input:
integrate((x^3+x-1)/(x^3-x+1)/(x^3-x^2)^(1/3),x, algorithm="fricas")
Output:
Too large to include
Timed out. \[ \int \frac {-1+x+x^3}{\left (1-x+x^3\right ) \sqrt [3]{-x^2+x^3}} \, dx=\text {Timed out} \] Input:
integrate((x**3+x-1)/(x**3-x+1)/(x**3-x**2)**(1/3),x)
Output:
Timed out
Not integrable
Time = 0.07 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.19 \[ \int \frac {-1+x+x^3}{\left (1-x+x^3\right ) \sqrt [3]{-x^2+x^3}} \, dx=\int { \frac {x^{3} + x - 1}{{\left (x^{3} - x^{2}\right )}^{\frac {1}{3}} {\left (x^{3} - x + 1\right )}} \,d x } \] Input:
integrate((x^3+x-1)/(x^3-x+1)/(x^3-x^2)^(1/3),x, algorithm="maxima")
Output:
integrate((x^3 + x - 1)/((x^3 - x^2)^(1/3)*(x^3 - x + 1)), x)
Not integrable
Time = 0.21 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.19 \[ \int \frac {-1+x+x^3}{\left (1-x+x^3\right ) \sqrt [3]{-x^2+x^3}} \, dx=\int { \frac {x^{3} + x - 1}{{\left (x^{3} - x^{2}\right )}^{\frac {1}{3}} {\left (x^{3} - x + 1\right )}} \,d x } \] Input:
integrate((x^3+x-1)/(x^3-x+1)/(x^3-x^2)^(1/3),x, algorithm="giac")
Output:
integrate((x^3 + x - 1)/((x^3 - x^2)^(1/3)*(x^3 - x + 1)), x)
Not integrable
Time = 0.00 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.19 \[ \int \frac {-1+x+x^3}{\left (1-x+x^3\right ) \sqrt [3]{-x^2+x^3}} \, dx=\int \frac {x^3+x-1}{{\left (x^3-x^2\right )}^{1/3}\,\left (x^3-x+1\right )} \,d x \] Input:
int((x + x^3 - 1)/((x^3 - x^2)^(1/3)*(x^3 - x + 1)),x)
Output:
int((x + x^3 - 1)/((x^3 - x^2)^(1/3)*(x^3 - x + 1)), x)
Not integrable
Time = 0.78 (sec) , antiderivative size = 108, normalized size of antiderivative = 0.69 \[ \int \frac {-1+x+x^3}{\left (1-x+x^3\right ) \sqrt [3]{-x^2+x^3}} \, dx=\int \frac {x^{3}}{x^{\frac {11}{3}} \left (x -1\right )^{\frac {1}{3}}-x^{\frac {5}{3}} \left (x -1\right )^{\frac {1}{3}}+x^{\frac {2}{3}} \left (x -1\right )^{\frac {1}{3}}}d x +\int \frac {x}{x^{\frac {11}{3}} \left (x -1\right )^{\frac {1}{3}}-x^{\frac {5}{3}} \left (x -1\right )^{\frac {1}{3}}+x^{\frac {2}{3}} \left (x -1\right )^{\frac {1}{3}}}d x -\left (\int \frac {1}{x^{\frac {11}{3}} \left (x -1\right )^{\frac {1}{3}}-x^{\frac {5}{3}} \left (x -1\right )^{\frac {1}{3}}+x^{\frac {2}{3}} \left (x -1\right )^{\frac {1}{3}}}d x \right ) \] Input:
int((x^3+x-1)/(x^3-x+1)/(x^3-x^2)^(1/3),x)
Output:
int(x**3/(x**(2/3)*(x - 1)**(1/3)*x**3 - x**(2/3)*(x - 1)**(1/3)*x + x**(2 /3)*(x - 1)**(1/3)),x) + int(x/(x**(2/3)*(x - 1)**(1/3)*x**3 - x**(2/3)*(x - 1)**(1/3)*x + x**(2/3)*(x - 1)**(1/3)),x) - int(1/(x**(2/3)*(x - 1)**(1 /3)*x**3 - x**(2/3)*(x - 1)**(1/3)*x + x**(2/3)*(x - 1)**(1/3)),x)