\(\int \frac {(-1+x^3)^{2/3} (2+x^3)}{x^3 (-4+x^3+x^6)} \, dx\) [1494]

Optimal result
Mathematica [A] (verified)
Rubi [B] (verified)
Maple [N/A] (verified)
Fricas [F(-2)]
Sympy [F(-1)]
Maxima [N/A]
Giac [N/A]
Mupad [N/A]
Reduce [N/A]

Optimal result

Integrand size = 28, antiderivative size = 104 \[ \int \frac {\left (-1+x^3\right )^{2/3} \left (2+x^3\right )}{x^3 \left (-4+x^3+x^6\right )} \, dx=\frac {\left (-1+x^3\right )^{2/3}}{4 x^2}-\frac {1}{6} \text {RootSum}\left [2-7 \text {$\#$1}^3+4 \text {$\#$1}^6\&,\frac {-2 \log (x)+2 \log \left (\sqrt [3]{-1+x^3}-x \text {$\#$1}\right )+\log (x) \text {$\#$1}^3-\log \left (\sqrt [3]{-1+x^3}-x \text {$\#$1}\right ) \text {$\#$1}^3}{-7 \text {$\#$1}+8 \text {$\#$1}^4}\&\right ] \] Output:

Unintegrable
 

Mathematica [A] (verified)

Time = 0.00 (sec) , antiderivative size = 104, normalized size of antiderivative = 1.00 \[ \int \frac {\left (-1+x^3\right )^{2/3} \left (2+x^3\right )}{x^3 \left (-4+x^3+x^6\right )} \, dx=\frac {\left (-1+x^3\right )^{2/3}}{4 x^2}-\frac {1}{6} \text {RootSum}\left [2-7 \text {$\#$1}^3+4 \text {$\#$1}^6\&,\frac {-2 \log (x)+2 \log \left (\sqrt [3]{-1+x^3}-x \text {$\#$1}\right )+\log (x) \text {$\#$1}^3-\log \left (\sqrt [3]{-1+x^3}-x \text {$\#$1}\right ) \text {$\#$1}^3}{-7 \text {$\#$1}+8 \text {$\#$1}^4}\&\right ] \] Input:

Integrate[((-1 + x^3)^(2/3)*(2 + x^3))/(x^3*(-4 + x^3 + x^6)),x]
 

Output:

(-1 + x^3)^(2/3)/(4*x^2) - RootSum[2 - 7*#1^3 + 4*#1^6 & , (-2*Log[x] + 2* 
Log[(-1 + x^3)^(1/3) - x*#1] + Log[x]*#1^3 - Log[(-1 + x^3)^(1/3) - x*#1]* 
#1^3)/(-7*#1 + 8*#1^4) & ]/6
 

Rubi [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(509\) vs. \(2(104)=208\).

Time = 0.84 (sec) , antiderivative size = 509, normalized size of antiderivative = 4.89, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {7279, 2009}

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 {\left (x^3-1\right )^{2/3} \left (x^3+2\right )}{x^3 \left (x^6+x^3-4\right )} \, dx\)

\(\Big \downarrow \) 7279

\(\displaystyle \int \left (\frac {\left (x^3-1\right )^{2/3} \left (x^3+3\right )}{2 \left (x^6+x^3-4\right )}-\frac {\left (x^3-1\right )^{2/3}}{2 x^3}\right )dx\)

\(\Big \downarrow \) 2009

\(\displaystyle \frac {\left (5+\sqrt {17}\right ) \arctan \left (\frac {\frac {2 x}{\sqrt [3]{x^3-1}}+1}{\sqrt {3}}\right )}{4 \sqrt {51}}-\frac {\left (5-\sqrt {17}\right ) \arctan \left (\frac {\frac {2 x}{\sqrt [3]{x^3-1}}+1}{\sqrt {3}}\right )}{4 \sqrt {51}}-\frac {\arctan \left (\frac {\frac {2 x}{\sqrt [3]{x^3-1}}+1}{\sqrt {3}}\right )}{2 \sqrt {3}}-\frac {\sqrt [3]{199+47 \sqrt {17}} \arctan \left (\frac {\frac {\sqrt [3]{7-\sqrt {17}} x}{\sqrt [3]{x^3-1}}+1}{\sqrt {3}}\right )}{4\ 2^{2/3} \sqrt {51}}+\frac {\sqrt [3]{199-47 \sqrt {17}} \arctan \left (\frac {\frac {\sqrt [3]{7+\sqrt {17}} x}{\sqrt [3]{x^3-1}}+1}{\sqrt {3}}\right )}{4\ 2^{2/3} \sqrt {51}}-\frac {\sqrt [3]{199+47 \sqrt {17}} \log \left (2 x^3-\sqrt {17}+1\right )}{24\ 2^{2/3} \sqrt {17}}+\frac {\sqrt [3]{199-47 \sqrt {17}} \log \left (2 x^3+\sqrt {17}+1\right )}{24\ 2^{2/3} \sqrt {17}}+\frac {\sqrt [3]{199+47 \sqrt {17}} \log \left (\frac {1}{2} \sqrt [3]{7-\sqrt {17}} x-\sqrt [3]{x^3-1}\right )}{8\ 2^{2/3} \sqrt {17}}-\frac {\sqrt [3]{199-47 \sqrt {17}} \log \left (\frac {1}{2} \sqrt [3]{7+\sqrt {17}} x-\sqrt [3]{x^3-1}\right )}{8\ 2^{2/3} \sqrt {17}}-\frac {1}{136} \left (17+5 \sqrt {17}\right ) \log \left (\sqrt [3]{x^3-1}-x\right )-\frac {1}{136} \left (17-5 \sqrt {17}\right ) \log \left (\sqrt [3]{x^3-1}-x\right )+\frac {1}{4} \log \left (\sqrt [3]{x^3-1}-x\right )+\frac {\left (x^3-1\right )^{2/3}}{4 x^2}\)

Input:

Int[((-1 + x^3)^(2/3)*(2 + x^3))/(x^3*(-4 + x^3 + x^6)),x]
 

Output:

(-1 + x^3)^(2/3)/(4*x^2) - ArcTan[(1 + (2*x)/(-1 + x^3)^(1/3))/Sqrt[3]]/(2 
*Sqrt[3]) - ((5 - Sqrt[17])*ArcTan[(1 + (2*x)/(-1 + x^3)^(1/3))/Sqrt[3]])/ 
(4*Sqrt[51]) + ((5 + Sqrt[17])*ArcTan[(1 + (2*x)/(-1 + x^3)^(1/3))/Sqrt[3] 
])/(4*Sqrt[51]) - ((199 + 47*Sqrt[17])^(1/3)*ArcTan[(1 + ((7 - Sqrt[17])^( 
1/3)*x)/(-1 + x^3)^(1/3))/Sqrt[3]])/(4*2^(2/3)*Sqrt[51]) + ((199 - 47*Sqrt 
[17])^(1/3)*ArcTan[(1 + ((7 + Sqrt[17])^(1/3)*x)/(-1 + x^3)^(1/3))/Sqrt[3] 
])/(4*2^(2/3)*Sqrt[51]) - ((199 + 47*Sqrt[17])^(1/3)*Log[1 - Sqrt[17] + 2* 
x^3])/(24*2^(2/3)*Sqrt[17]) + ((199 - 47*Sqrt[17])^(1/3)*Log[1 + Sqrt[17] 
+ 2*x^3])/(24*2^(2/3)*Sqrt[17]) + ((199 + 47*Sqrt[17])^(1/3)*Log[((7 - Sqr 
t[17])^(1/3)*x)/2 - (-1 + x^3)^(1/3)])/(8*2^(2/3)*Sqrt[17]) - ((199 - 47*S 
qrt[17])^(1/3)*Log[((7 + Sqrt[17])^(1/3)*x)/2 - (-1 + x^3)^(1/3)])/(8*2^(2 
/3)*Sqrt[17]) + Log[-x + (-1 + x^3)^(1/3)]/4 - ((17 - 5*Sqrt[17])*Log[-x + 
 (-1 + x^3)^(1/3)])/136 - ((17 + 5*Sqrt[17])*Log[-x + (-1 + x^3)^(1/3)])/1 
36
 

Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 7279
Int[(u_)/((a_.) + (b_.)*(x_)^(n_.) + (c_.)*(x_)^(n2_.)), x_Symbol] :> With[ 
{v = RationalFunctionExpand[u/(a + b*x^n + c*x^(2*n)), x]}, Int[v, x] /; Su 
mQ[v]] /; FreeQ[{a, b, c}, x] && EqQ[n2, 2*n] && IGtQ[n, 0]
 
Maple [N/A] (verified)

Time = 204.79 (sec) , antiderivative size = 71, normalized size of antiderivative = 0.68

method result size
pseudoelliptic \(\frac {2 \left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (4 \textit {\_Z}^{6}-7 \textit {\_Z}^{3}+2\right )}{\sum }\frac {\left (\textit {\_R}^{3}-2\right ) \ln \left (\frac {-\textit {\_R} x +\left (x^{3}-1\right )^{\frac {1}{3}}}{x}\right )}{8 \textit {\_R}^{4}-7 \textit {\_R}}\right ) x^{2}+3 \left (x^{3}-1\right )^{\frac {2}{3}}}{12 x^{2}}\) \(71\)
risch \(\text {Expression too large to display}\) \(6879\)
trager \(\text {Expression too large to display}\) \(8762\)

Input:

int((x^3-1)^(2/3)*(x^3+2)/x^3/(x^6+x^3-4),x,method=_RETURNVERBOSE)
 

Output:

1/12*(2*sum((_R^3-2)*ln((-_R*x+(x^3-1)^(1/3))/x)/(8*_R^4-7*_R),_R=RootOf(4 
*_Z^6-7*_Z^3+2))*x^2+3*(x^3-1)^(2/3))/x^2
 

Fricas [F(-2)]

Exception generated. \[ \int \frac {\left (-1+x^3\right )^{2/3} \left (2+x^3\right )}{x^3 \left (-4+x^3+x^6\right )} \, dx=\text {Exception raised: TypeError} \] Input:

integrate((x^3-1)^(2/3)*(x^3+2)/x^3/(x^6+x^3-4),x, algorithm="fricas")
 

Output:

Exception raised: TypeError >>  Error detected within library code:   inte 
grate: implementation incomplete (trace 0)
 

Sympy [F(-1)]

Timed out. \[ \int \frac {\left (-1+x^3\right )^{2/3} \left (2+x^3\right )}{x^3 \left (-4+x^3+x^6\right )} \, dx=\text {Timed out} \] Input:

integrate((x**3-1)**(2/3)*(x**3+2)/x**3/(x**6+x**3-4),x)
 

Output:

Timed out
 

Maxima [N/A]

Not integrable

Time = 0.17 (sec) , antiderivative size = 28, normalized size of antiderivative = 0.27 \[ \int \frac {\left (-1+x^3\right )^{2/3} \left (2+x^3\right )}{x^3 \left (-4+x^3+x^6\right )} \, dx=\int { \frac {{\left (x^{3} + 2\right )} {\left (x^{3} - 1\right )}^{\frac {2}{3}}}{{\left (x^{6} + x^{3} - 4\right )} x^{3}} \,d x } \] Input:

integrate((x^3-1)^(2/3)*(x^3+2)/x^3/(x^6+x^3-4),x, algorithm="maxima")
 

Output:

integrate((x^3 + 2)*(x^3 - 1)^(2/3)/((x^6 + x^3 - 4)*x^3), x)
 

Giac [N/A]

Not integrable

Time = 0.16 (sec) , antiderivative size = 28, normalized size of antiderivative = 0.27 \[ \int \frac {\left (-1+x^3\right )^{2/3} \left (2+x^3\right )}{x^3 \left (-4+x^3+x^6\right )} \, dx=\int { \frac {{\left (x^{3} + 2\right )} {\left (x^{3} - 1\right )}^{\frac {2}{3}}}{{\left (x^{6} + x^{3} - 4\right )} x^{3}} \,d x } \] Input:

integrate((x^3-1)^(2/3)*(x^3+2)/x^3/(x^6+x^3-4),x, algorithm="giac")
 

Output:

integrate((x^3 + 2)*(x^3 - 1)^(2/3)/((x^6 + x^3 - 4)*x^3), x)
 

Mupad [N/A]

Not integrable

Time = 0.00 (sec) , antiderivative size = 28, normalized size of antiderivative = 0.27 \[ \int \frac {\left (-1+x^3\right )^{2/3} \left (2+x^3\right )}{x^3 \left (-4+x^3+x^6\right )} \, dx=\int \frac {{\left (x^3-1\right )}^{2/3}\,\left (x^3+2\right )}{x^3\,\left (x^6+x^3-4\right )} \,d x \] Input:

int(((x^3 - 1)^(2/3)*(x^3 + 2))/(x^3*(x^3 + x^6 - 4)),x)
 

Output:

int(((x^3 - 1)^(2/3)*(x^3 + 2))/(x^3*(x^3 + x^6 - 4)), x)
 

Reduce [N/A]

Not integrable

Time = 0.25 (sec) , antiderivative size = 44, normalized size of antiderivative = 0.42 \[ \int \frac {\left (-1+x^3\right )^{2/3} \left (2+x^3\right )}{x^3 \left (-4+x^3+x^6\right )} \, dx=\frac {\left (x^{3}-1\right )^{\frac {2}{3}}+4 \left (\int \frac {\left (x^{3}-1\right )^{\frac {2}{3}}}{x^{12}-5 x^{6}+4 x^{3}}d x \right ) x^{2}}{2 x^{2}} \] Input:

int((x^3-1)^(2/3)*(x^3+2)/x^3/(x^6+x^3-4),x)
 

Output:

((x**3 - 1)**(2/3) + 4*int((x**3 - 1)**(2/3)/(x**12 - 5*x**6 + 4*x**3),x)* 
x**2)/(2*x**2)