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

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

Optimal result

Integrand size = 30, antiderivative size = 103 \[ \int \frac {\left (-2+x^3\right ) \left (1+x^3\right )^{2/3}}{x^3 \left (-2+x^3+2 x^6\right )} \, dx=-\frac {\left (1+x^3\right )^{2/3}}{2 x^2}+\frac {1}{3} \text {RootSum}\left [1-5 \text {$\#$1}^3+2 \text {$\#$1}^6\&,\frac {-\log (x)+\log \left (\sqrt [3]{1+x^3}-x \text {$\#$1}\right )+2 \log (x) \text {$\#$1}^3-2 \log \left (\sqrt [3]{1+x^3}-x \text {$\#$1}\right ) \text {$\#$1}^3}{-5 \text {$\#$1}+4 \text {$\#$1}^4}\&\right ] \]

[Out]

Unintegrable

Rubi [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(327\) vs. \(2(103)=206\).

Time = 0.51 (sec) , antiderivative size = 327, normalized size of antiderivative = 3.17, number of steps used = 10, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {6860, 283, 245, 1532, 384} \[ \int \frac {\left (-2+x^3\right ) \left (1+x^3\right )^{2/3}}{x^3 \left (-2+x^3+2 x^6\right )} \, dx=\frac {\sqrt [3]{\frac {1}{2} \left (5 \sqrt {17}-19\right )} \arctan \left (\frac {\frac {\sqrt [3]{2 \left (5-\sqrt {17}\right )} x}{\sqrt [3]{x^3+1}}+1}{\sqrt {3}}\right )}{\sqrt {51}}+\frac {\sqrt [3]{\frac {1}{2} \left (19+5 \sqrt {17}\right )} \arctan \left (\frac {\frac {\sqrt [3]{2 \left (5+\sqrt {17}\right )} x}{\sqrt [3]{x^3+1}}+1}{\sqrt {3}}\right )}{\sqrt {51}}+\frac {\sqrt [3]{\frac {1}{2} \left (19+5 \sqrt {17}\right )} \log \left (4 x^3-\sqrt {17}+1\right )}{6 \sqrt {17}}+\frac {\sqrt [3]{\frac {1}{2} \left (5 \sqrt {17}-19\right )} \log \left (4 x^3+\sqrt {17}+1\right )}{6 \sqrt {17}}-\frac {\sqrt [3]{\frac {1}{2} \left (5 \sqrt {17}-19\right )} \log \left (\frac {\sqrt [3]{5-\sqrt {17}} x}{2^{2/3}}-\sqrt [3]{x^3+1}\right )}{2 \sqrt {17}}-\frac {\sqrt [3]{\frac {1}{2} \left (19+5 \sqrt {17}\right )} \log \left (\frac {\sqrt [3]{5+\sqrt {17}} x}{2^{2/3}}-\sqrt [3]{x^3+1}\right )}{2 \sqrt {17}}-\frac {\left (x^3+1\right )^{2/3}}{2 x^2} \]

[In]

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

[Out]

-1/2*(1 + x^3)^(2/3)/x^2 + (((-19 + 5*Sqrt[17])/2)^(1/3)*ArcTan[(1 + ((2*(5 - Sqrt[17]))^(1/3)*x)/(1 + x^3)^(1
/3))/Sqrt[3]])/Sqrt[51] + (((19 + 5*Sqrt[17])/2)^(1/3)*ArcTan[(1 + ((2*(5 + Sqrt[17]))^(1/3)*x)/(1 + x^3)^(1/3
))/Sqrt[3]])/Sqrt[51] + (((19 + 5*Sqrt[17])/2)^(1/3)*Log[1 - Sqrt[17] + 4*x^3])/(6*Sqrt[17]) + (((-19 + 5*Sqrt
[17])/2)^(1/3)*Log[1 + Sqrt[17] + 4*x^3])/(6*Sqrt[17]) - (((-19 + 5*Sqrt[17])/2)^(1/3)*Log[((5 - Sqrt[17])^(1/
3)*x)/2^(2/3) - (1 + x^3)^(1/3)])/(2*Sqrt[17]) - (((19 + 5*Sqrt[17])/2)^(1/3)*Log[((5 + Sqrt[17])^(1/3)*x)/2^(
2/3) - (1 + x^3)^(1/3)])/(2*Sqrt[17])

Rule 245

Int[((a_) + (b_.)*(x_)^3)^(-1/3), x_Symbol] :> Simp[ArcTan[(1 + 2*Rt[b, 3]*(x/(a + b*x^3)^(1/3)))/Sqrt[3]]/(Sq
rt[3]*Rt[b, 3]), x] - Simp[Log[(a + b*x^3)^(1/3) - Rt[b, 3]*x]/(2*Rt[b, 3]), x] /; FreeQ[{a, b}, x]

Rule 283

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(c*x)^(m + 1)*((a + b*x^n)^p/(c*(m + 1
))), x] - Dist[b*n*(p/(c^n*(m + 1))), Int[(c*x)^(m + n)*(a + b*x^n)^(p - 1), x], x] /; FreeQ[{a, b, c}, x] &&
IGtQ[n, 0] && GtQ[p, 0] && LtQ[m, -1] &&  !ILtQ[(m + n*p + n + 1)/n, 0] && IntBinomialQ[a, b, c, n, m, p, x]

Rule 384

Int[1/(((a_) + (b_.)*(x_)^3)^(1/3)*((c_) + (d_.)*(x_)^3)), x_Symbol] :> With[{q = Rt[(b*c - a*d)/c, 3]}, Simp[
ArcTan[(1 + (2*q*x)/(a + b*x^3)^(1/3))/Sqrt[3]]/(Sqrt[3]*c*q), x] + (-Simp[Log[q*x - (a + b*x^3)^(1/3)]/(2*c*q
), x] + Simp[Log[c + d*x^3]/(6*c*q), x])] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0]

Rule 1532

Int[(((f_.)*(x_))^(m_.)*((d_.) + (e_.)*(x_)^(n_))^(q_))/((a_) + (c_.)*(x_)^(n2_.) + (b_.)*(x_)^(n_)), x_Symbol
] :> Dist[e*(f^n/c), Int[(f*x)^(m - n)*(d + e*x^n)^(q - 1), x], x] - Dist[f^n/c, Int[(f*x)^(m - n)*(d + e*x^n)
^(q - 1)*(Simp[a*e - (c*d - b*e)*x^n, x]/(a + b*x^n + c*x^(2*n))), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && E
qQ[n2, 2*n] && NeQ[b^2 - 4*a*c, 0] && IGtQ[n, 0] &&  !IntegerQ[q] && GtQ[q, 0] && GtQ[m, n - 1] && LeQ[m, 2*n
- 1]

Rule 6860

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] /; SumQ[v]] /; FreeQ[{a, b, c}, x] && EqQ[n2, 2*n] && IGtQ[n, 0]

Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {\left (1+x^3\right )^{2/3}}{x^3}-\frac {2 x^3 \left (1+x^3\right )^{2/3}}{-2+x^3+2 x^6}\right ) \, dx \\ & = -\left (2 \int \frac {x^3 \left (1+x^3\right )^{2/3}}{-2+x^3+2 x^6} \, dx\right )+\int \frac {\left (1+x^3\right )^{2/3}}{x^3} \, dx \\ & = -\frac {\left (1+x^3\right )^{2/3}}{2 x^2}+\int \frac {-2-x^3}{\sqrt [3]{1+x^3} \left (-2+x^3+2 x^6\right )} \, dx \\ & = -\frac {\left (1+x^3\right )^{2/3}}{2 x^2}+\int \left (\frac {-1-\frac {7}{\sqrt {17}}}{\sqrt [3]{1+x^3} \left (1-\sqrt {17}+4 x^3\right )}+\frac {-1+\frac {7}{\sqrt {17}}}{\sqrt [3]{1+x^3} \left (1+\sqrt {17}+4 x^3\right )}\right ) \, dx \\ & = -\frac {\left (1+x^3\right )^{2/3}}{2 x^2}+\frac {1}{17} \left (-17+7 \sqrt {17}\right ) \int \frac {1}{\sqrt [3]{1+x^3} \left (1+\sqrt {17}+4 x^3\right )} \, dx-\frac {1}{17} \left (17+7 \sqrt {17}\right ) \int \frac {1}{\sqrt [3]{1+x^3} \left (1-\sqrt {17}+4 x^3\right )} \, dx \\ & = -\frac {\left (1+x^3\right )^{2/3}}{2 x^2}+\frac {\sqrt [3]{\frac {1}{2} \left (-19+5 \sqrt {17}\right )} \arctan \left (\frac {1+\frac {\sqrt [3]{2 \left (5-\sqrt {17}\right )} x}{\sqrt [3]{1+x^3}}}{\sqrt {3}}\right )}{\sqrt {51}}+\frac {\sqrt [3]{\frac {1}{2} \left (19+5 \sqrt {17}\right )} \arctan \left (\frac {1+\frac {\sqrt [3]{2 \left (5+\sqrt {17}\right )} x}{\sqrt [3]{1+x^3}}}{\sqrt {3}}\right )}{\sqrt {51}}+\frac {\sqrt [3]{\frac {1}{2} \left (19+5 \sqrt {17}\right )} \log \left (1-\sqrt {17}+4 x^3\right )}{6 \sqrt {17}}+\frac {\sqrt [3]{\frac {1}{2} \left (-19+5 \sqrt {17}\right )} \log \left (1+\sqrt {17}+4 x^3\right )}{6 \sqrt {17}}-\frac {\sqrt [3]{\frac {1}{2} \left (-19+5 \sqrt {17}\right )} \log \left (\frac {\sqrt [3]{5-\sqrt {17}} x}{2^{2/3}}-\sqrt [3]{1+x^3}\right )}{2 \sqrt {17}}-\frac {\sqrt [3]{\frac {1}{2} \left (19+5 \sqrt {17}\right )} \log \left (\frac {\sqrt [3]{5+\sqrt {17}} x}{2^{2/3}}-\sqrt [3]{1+x^3}\right )}{2 \sqrt {17}} \\ \end{align*}

Mathematica [A] (verified)

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

[In]

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

[Out]

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

Maple [N/A] (verified)

Time = 151.26 (sec) , antiderivative size = 73, normalized size of antiderivative = 0.71

method result size
pseudoelliptic \(\frac {-2 \left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (2 \textit {\_Z}^{6}-5 \textit {\_Z}^{3}+1\right )}{\sum }\frac {\left (2 \textit {\_R}^{3}-1\right ) \ln \left (\frac {-\textit {\_R} x +\left (x^{3}+1\right )^{\frac {1}{3}}}{x}\right )}{4 \textit {\_R}^{4}-5 \textit {\_R}}\right ) x^{2}-3 \left (x^{3}+1\right )^{\frac {2}{3}}}{6 x^{2}}\) \(73\)
risch \(\text {Expression too large to display}\) \(7989\)
trager \(\text {Expression too large to display}\) \(12165\)

[In]

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

[Out]

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

Fricas [F(-2)]

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

[In]

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

[Out]

Exception raised: TypeError >>  Error detected within library code:   integrate: implementation incomplete (tr
ace 0)

Sympy [F(-1)]

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

[In]

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

[Out]

Timed out

Maxima [N/A]

Not integrable

Time = 0.30 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.29 \[ \int \frac {\left (-2+x^3\right ) \left (1+x^3\right )^{2/3}}{x^3 \left (-2+x^3+2 x^6\right )} \, dx=\int { \frac {{\left (x^{3} + 1\right )}^{\frac {2}{3}} {\left (x^{3} - 2\right )}}{{\left (2 \, x^{6} + x^{3} - 2\right )} x^{3}} \,d x } \]

[In]

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

[Out]

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

Giac [N/A]

Not integrable

Time = 0.30 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.29 \[ \int \frac {\left (-2+x^3\right ) \left (1+x^3\right )^{2/3}}{x^3 \left (-2+x^3+2 x^6\right )} \, dx=\int { \frac {{\left (x^{3} + 1\right )}^{\frac {2}{3}} {\left (x^{3} - 2\right )}}{{\left (2 \, x^{6} + x^{3} - 2\right )} x^{3}} \,d x } \]

[In]

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

[Out]

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

Mupad [N/A]

Not integrable

Time = 6.39 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.29 \[ \int \frac {\left (-2+x^3\right ) \left (1+x^3\right )^{2/3}}{x^3 \left (-2+x^3+2 x^6\right )} \, dx=\int \frac {{\left (x^3+1\right )}^{2/3}\,\left (x^3-2\right )}{x^3\,\left (2\,x^6+x^3-2\right )} \,d x \]

[In]

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

[Out]

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