Integrand size = 21, antiderivative size = 108 \[ \int \frac {\left (-1+x^3\right )^{2/3} \left (-2+x^3+x^6\right )}{x^6} \, dx=\frac {\left (-1+x^3\right )^{2/3} \left (12-27 x^3+10 x^6\right )}{30 x^5}+\frac {\arctan \left (\frac {\sqrt {3} x}{x+2 \sqrt [3]{-1+x^3}}\right )}{3 \sqrt {3}}-\frac {1}{9} \log \left (-x+\sqrt [3]{-1+x^3}\right )+\frac {1}{18} \log \left (x^2+x \sqrt [3]{-1+x^3}+\left (-1+x^3\right )^{2/3}\right ) \] Output:
1/30*(x^3-1)^(2/3)*(10*x^6-27*x^3+12)/x^5+1/9*arctan(3^(1/2)*x/(x+2*(x^3-1 )^(1/3)))*3^(1/2)-1/9*ln(-x+(x^3-1)^(1/3))+1/18*ln(x^2+x*(x^3-1)^(1/3)+(x^ 3-1)^(2/3))
Time = 0.22 (sec) , antiderivative size = 104, normalized size of antiderivative = 0.96 \[ \int \frac {\left (-1+x^3\right )^{2/3} \left (-2+x^3+x^6\right )}{x^6} \, dx=\frac {1}{90} \left (\frac {3 \left (-1+x^3\right )^{2/3} \left (12-27 x^3+10 x^6\right )}{x^5}+10 \sqrt {3} \arctan \left (\frac {\sqrt {3} x}{x+2 \sqrt [3]{-1+x^3}}\right )-10 \log \left (-x+\sqrt [3]{-1+x^3}\right )+5 \log \left (x^2+x \sqrt [3]{-1+x^3}+\left (-1+x^3\right )^{2/3}\right )\right ) \] Input:
Integrate[((-1 + x^3)^(2/3)*(-2 + x^3 + x^6))/x^6,x]
Output:
((3*(-1 + x^3)^(2/3)*(12 - 27*x^3 + 10*x^6))/x^5 + 10*Sqrt[3]*ArcTan[(Sqrt [3]*x)/(x + 2*(-1 + x^3)^(1/3))] - 10*Log[-x + (-1 + x^3)^(1/3)] + 5*Log[x ^2 + x*(-1 + x^3)^(1/3) + (-1 + x^3)^(2/3)])/90
Time = 0.22 (sec) , antiderivative size = 107, normalized size of antiderivative = 0.99, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {1387, 955, 809, 748, 769}
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^6+x^3-2\right )}{x^6} \, dx\) |
\(\Big \downarrow \) 1387 |
\(\displaystyle \int \frac {\left (x^3-1\right )^{5/3} \left (x^3+2\right )}{x^6}dx\) |
\(\Big \downarrow \) 955 |
\(\displaystyle \frac {2 \left (x^3-1\right )^{8/3}}{5 x^5}-\frac {1}{5} \int \frac {\left (x^3-1\right )^{5/3}}{x^3}dx\) |
\(\Big \downarrow \) 809 |
\(\displaystyle \frac {1}{5} \left (\frac {\left (x^3-1\right )^{5/3}}{2 x^2}-\frac {5}{2} \int \left (x^3-1\right )^{2/3}dx\right )+\frac {2 \left (x^3-1\right )^{8/3}}{5 x^5}\) |
\(\Big \downarrow \) 748 |
\(\displaystyle \frac {1}{5} \left (\frac {\left (x^3-1\right )^{5/3}}{2 x^2}-\frac {5}{2} \left (\frac {1}{3} x \left (x^3-1\right )^{2/3}-\frac {2}{3} \int \frac {1}{\sqrt [3]{x^3-1}}dx\right )\right )+\frac {2 \left (x^3-1\right )^{8/3}}{5 x^5}\) |
\(\Big \downarrow \) 769 |
\(\displaystyle \frac {1}{5} \left (\frac {\left (x^3-1\right )^{5/3}}{2 x^2}-\frac {5}{2} \left (\frac {1}{3} x \left (x^3-1\right )^{2/3}-\frac {2}{3} \left (\frac {\arctan \left (\frac {\frac {2 x}{\sqrt [3]{x^3-1}}+1}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {1}{2} \log \left (\sqrt [3]{x^3-1}-x\right )\right )\right )\right )+\frac {2 \left (x^3-1\right )^{8/3}}{5 x^5}\) |
Input:
Int[((-1 + x^3)^(2/3)*(-2 + x^3 + x^6))/x^6,x]
Output:
(2*(-1 + x^3)^(8/3))/(5*x^5) + ((-1 + x^3)^(5/3)/(2*x^2) - (5*((x*(-1 + x^ 3)^(2/3))/3 - (2*(ArcTan[(1 + (2*x)/(-1 + x^3)^(1/3))/Sqrt[3]]/Sqrt[3] - L og[-x + (-1 + x^3)^(1/3)]/2))/3))/2)/5
Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[x*((a + b*x^n)^p/(n*p + 1)), x] + Simp[a*n*(p/(n*p + 1)) Int[(a + b*x^n)^(p - 1), x], x] /; Fre eQ[{a, b}, x] && IGtQ[n, 0] && GtQ[p, 0] && (IntegerQ[2*p] || LtQ[Denominat or[p + 1/n], Denominator[p]])
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]]/(Sqrt[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]
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] - Simp[b*n*(p/(c^n*(m + 1))) I nt[(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] && IntB inomialQ[a, b, c, n, m, p, x]
Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n _)), x_Symbol] :> Simp[c*(e*x)^(m + 1)*((a + b*x^n)^(p + 1)/(a*e*(m + 1))), x] + Simp[(a*d*(m + 1) - b*c*(m + n*(p + 1) + 1))/(a*e^n*(m + 1)) Int[(e *x)^(m + n)*(a + b*x^n)^p, x], x] /; FreeQ[{a, b, c, d, e, p}, x] && NeQ[b* c - a*d, 0] && (IntegerQ[n] || GtQ[e, 0]) && ((GtQ[n, 0] && LtQ[m, -1]) || (LtQ[n, 0] && GtQ[m + n, -1])) && !ILtQ[p, -1]
Int[(u_.)*((a_) + (c_.)*(x_)^(n2_.) + (b_.)*(x_)^(n_))^(p_.)*((d_) + (e_.)* (x_)^(n_))^(q_.), x_Symbol] :> Int[u*(d + e*x^n)^(p + q)*(a/d + (c/e)*x^n)^ p, x] /; FreeQ[{a, b, c, d, e, n, p, q}, x] && EqQ[n2, 2*n] && EqQ[c*d^2 - b*d*e + a*e^2, 0] && (IntegerQ[p] || (GtQ[a, 0] && GtQ[d, 0] && LtQ[c, 0]))
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 1.92 (sec) , antiderivative size = 61, normalized size of antiderivative = 0.56
method | result | size |
risch | \(\frac {10 x^{9}-37 x^{6}+39 x^{3}-12}{30 x^{5} \left (x^{3}-1\right )^{\frac {1}{3}}}+\frac {{\left (-\operatorname {signum}\left (x^{3}-1\right )\right )}^{\frac {1}{3}} x \operatorname {hypergeom}\left (\left [\frac {1}{3}, \frac {1}{3}\right ], \left [\frac {4}{3}\right ], x^{3}\right )}{3 \operatorname {signum}\left (x^{3}-1\right )^{\frac {1}{3}}}\) | \(61\) |
meijerg | \(\frac {\operatorname {signum}\left (x^{3}-1\right )^{\frac {2}{3}} x \operatorname {hypergeom}\left (\left [-\frac {2}{3}, \frac {1}{3}\right ], \left [\frac {4}{3}\right ], x^{3}\right )}{{\left (-\operatorname {signum}\left (x^{3}-1\right )\right )}^{\frac {2}{3}}}-\frac {\operatorname {signum}\left (x^{3}-1\right )^{\frac {2}{3}} \operatorname {hypergeom}\left (\left [-\frac {2}{3}, -\frac {2}{3}\right ], \left [\frac {1}{3}\right ], x^{3}\right )}{2 {\left (-\operatorname {signum}\left (x^{3}-1\right )\right )}^{\frac {2}{3}} x^{2}}+\frac {2 \operatorname {signum}\left (x^{3}-1\right )^{\frac {2}{3}} \left (-x^{3}+1\right )^{\frac {5}{3}}}{5 {\left (-\operatorname {signum}\left (x^{3}-1\right )\right )}^{\frac {2}{3}} x^{5}}\) | \(95\) |
pseudoelliptic | \(\frac {5 \ln \left (\frac {x^{2}+x \left (x^{3}-1\right )^{\frac {1}{3}}+\left (x^{3}-1\right )^{\frac {2}{3}}}{x^{2}}\right ) x^{5}-10 \sqrt {3}\, \arctan \left (\frac {\sqrt {3}\, \left (x +2 \left (x^{3}-1\right )^{\frac {1}{3}}\right )}{3 x}\right ) x^{5}-10 \ln \left (\frac {-x +\left (x^{3}-1\right )^{\frac {1}{3}}}{x}\right ) x^{5}+\left (30 x^{6}-81 x^{3}+36\right ) \left (x^{3}-1\right )^{\frac {2}{3}}}{90 x^{5} \left (\left (x^{3}-1\right )^{\frac {2}{3}}+x \left (x +\left (x^{3}-1\right )^{\frac {1}{3}}\right )\right ) \left (-\left (x^{3}-1\right )^{\frac {1}{3}}+x \right )}\) | \(140\) |
trager | \(\frac {\left (x^{3}-1\right )^{\frac {2}{3}} \left (10 x^{6}-27 x^{3}+12\right )}{30 x^{5}}+\frac {32 \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right ) \ln \left (11665390592 \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right )^{2} x^{3}+6206811648 \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right ) \left (x^{3}-1\right )^{\frac {2}{3}} x +6206811648 \left (x^{3}-1\right )^{\frac {1}{3}} \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right ) x^{2}+5842268192 \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right ) x^{3}-1508552373 x \left (x^{3}-1\right )^{\frac {2}{3}}-1508552373 x^{2} \left (x^{3}-1\right )^{\frac {1}{3}}-1497160390 x^{3}-93323124736 \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right )^{2}+14869698528 \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right )+476369215\right )}{9}+\frac {\ln \left (416768 \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right )^{2} x^{3}-310272 \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right ) \left (x^{3}-1\right )^{\frac {2}{3}} x -310272 \left (x^{3}-1\right )^{\frac {1}{3}} \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right ) x^{2}-323296 \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right ) x^{3}+16659 x \left (x^{3}-1\right )^{\frac {2}{3}}+16659 x^{2} \left (x^{3}-1\right )^{\frac {1}{3}}+17066 x^{3}-3334144 \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right )^{2}+385312 \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right )-11130\right )}{9}-\frac {32 \ln \left (416768 \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right )^{2} x^{3}-310272 \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right ) \left (x^{3}-1\right )^{\frac {2}{3}} x -310272 \left (x^{3}-1\right )^{\frac {1}{3}} \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right ) x^{2}-323296 \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right ) x^{3}+16659 x \left (x^{3}-1\right )^{\frac {2}{3}}+16659 x^{2} \left (x^{3}-1\right )^{\frac {1}{3}}+17066 x^{3}-3334144 \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right )^{2}+385312 \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right )-11130\right ) \operatorname {RootOf}\left (1024 \textit {\_Z}^{2}-32 \textit {\_Z} +1\right )}{9}\) | \(462\) |
Input:
int((x^3-1)^(2/3)*(x^6+x^3-2)/x^6,x,method=_RETURNVERBOSE)
Output:
1/30*(10*x^9-37*x^6+39*x^3-12)/x^5/(x^3-1)^(1/3)+1/3/signum(x^3-1)^(1/3)*( -signum(x^3-1))^(1/3)*x*hypergeom([1/3,1/3],[4/3],x^3)
Time = 0.34 (sec) , antiderivative size = 117, normalized size of antiderivative = 1.08 \[ \int \frac {\left (-1+x^3\right )^{2/3} \left (-2+x^3+x^6\right )}{x^6} \, dx=\frac {10 \, \sqrt {3} x^{5} \arctan \left (-\frac {25382 \, \sqrt {3} {\left (x^{3} - 1\right )}^{\frac {1}{3}} x^{2} - 13720 \, \sqrt {3} {\left (x^{3} - 1\right )}^{\frac {2}{3}} x + \sqrt {3} {\left (5831 \, x^{3} - 7200\right )}}{58653 \, x^{3} - 8000}\right ) - 5 \, x^{5} \log \left (-3 \, {\left (x^{3} - 1\right )}^{\frac {1}{3}} x^{2} + 3 \, {\left (x^{3} - 1\right )}^{\frac {2}{3}} x + 1\right ) + 3 \, {\left (10 \, x^{6} - 27 \, x^{3} + 12\right )} {\left (x^{3} - 1\right )}^{\frac {2}{3}}}{90 \, x^{5}} \] Input:
integrate((x^3-1)^(2/3)*(x^6+x^3-2)/x^6,x, algorithm="fricas")
Output:
1/90*(10*sqrt(3)*x^5*arctan(-(25382*sqrt(3)*(x^3 - 1)^(1/3)*x^2 - 13720*sq rt(3)*(x^3 - 1)^(2/3)*x + sqrt(3)*(5831*x^3 - 7200))/(58653*x^3 - 8000)) - 5*x^5*log(-3*(x^3 - 1)^(1/3)*x^2 + 3*(x^3 - 1)^(2/3)*x + 1) + 3*(10*x^6 - 27*x^3 + 12)*(x^3 - 1)^(2/3))/x^5
Result contains complex when optimal does not.
Time = 2.02 (sec) , antiderivative size = 199, normalized size of antiderivative = 1.84 \[ \int \frac {\left (-1+x^3\right )^{2/3} \left (-2+x^3+x^6\right )}{x^6} \, dx=- \frac {x e^{- \frac {i \pi }{3}} \Gamma \left (\frac {1}{3}\right ) {{}_{2}F_{1}\left (\begin {matrix} - \frac {2}{3}, \frac {1}{3} \\ \frac {4}{3} \end {matrix}\middle | {x^{3}} \right )}}{3 \Gamma \left (\frac {4}{3}\right )} - 2 \left (\begin {cases} \frac {\left (-1 + \frac {1}{x^{3}}\right )^{\frac {2}{3}} e^{- \frac {i \pi }{3}} \Gamma \left (- \frac {5}{3}\right )}{3 \Gamma \left (- \frac {2}{3}\right )} - \frac {\left (-1 + \frac {1}{x^{3}}\right )^{\frac {2}{3}} e^{- \frac {i \pi }{3}} \Gamma \left (- \frac {5}{3}\right )}{3 x^{3} \Gamma \left (- \frac {2}{3}\right )} & \text {for}\: \frac {1}{\left |{x^{3}}\right |} > 1 \\- \frac {\left (1 - \frac {1}{x^{3}}\right )^{\frac {2}{3}} \Gamma \left (- \frac {5}{3}\right )}{3 \Gamma \left (- \frac {2}{3}\right )} + \frac {\left (1 - \frac {1}{x^{3}}\right )^{\frac {2}{3}} \Gamma \left (- \frac {5}{3}\right )}{3 x^{3} \Gamma \left (- \frac {2}{3}\right )} & \text {otherwise} \end {cases}\right ) + \frac {e^{\frac {2 i \pi }{3}} \Gamma \left (- \frac {2}{3}\right ) {{}_{2}F_{1}\left (\begin {matrix} - \frac {2}{3}, - \frac {2}{3} \\ \frac {1}{3} \end {matrix}\middle | {x^{3}} \right )}}{3 x^{2} \Gamma \left (\frac {1}{3}\right )} \] Input:
integrate((x**3-1)**(2/3)*(x**6+x**3-2)/x**6,x)
Output:
-x*exp(-I*pi/3)*gamma(1/3)*hyper((-2/3, 1/3), (4/3,), x**3)/(3*gamma(4/3)) - 2*Piecewise(((-1 + x**(-3))**(2/3)*exp(-I*pi/3)*gamma(-5/3)/(3*gamma(-2 /3)) - (-1 + x**(-3))**(2/3)*exp(-I*pi/3)*gamma(-5/3)/(3*x**3*gamma(-2/3)) , 1/Abs(x**3) > 1), (-(1 - 1/x**3)**(2/3)*gamma(-5/3)/(3*gamma(-2/3)) + (1 - 1/x**3)**(2/3)*gamma(-5/3)/(3*x**3*gamma(-2/3)), True)) + exp(2*I*pi/3) *gamma(-2/3)*hyper((-2/3, -2/3), (1/3,), x**3)/(3*x**2*gamma(1/3))
Time = 0.12 (sec) , antiderivative size = 118, normalized size of antiderivative = 1.09 \[ \int \frac {\left (-1+x^3\right )^{2/3} \left (-2+x^3+x^6\right )}{x^6} \, dx=-\frac {1}{9} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (\frac {2 \, {\left (x^{3} - 1\right )}^{\frac {1}{3}}}{x} + 1\right )}\right ) - \frac {{\left (x^{3} - 1\right )}^{\frac {2}{3}}}{2 \, x^{2}} - \frac {{\left (x^{3} - 1\right )}^{\frac {2}{3}}}{3 \, x^{2} {\left (\frac {x^{3} - 1}{x^{3}} - 1\right )}} - \frac {2 \, {\left (x^{3} - 1\right )}^{\frac {5}{3}}}{5 \, x^{5}} + \frac {1}{18} \, \log \left (\frac {{\left (x^{3} - 1\right )}^{\frac {1}{3}}}{x} + \frac {{\left (x^{3} - 1\right )}^{\frac {2}{3}}}{x^{2}} + 1\right ) - \frac {1}{9} \, \log \left (\frac {{\left (x^{3} - 1\right )}^{\frac {1}{3}}}{x} - 1\right ) \] Input:
integrate((x^3-1)^(2/3)*(x^6+x^3-2)/x^6,x, algorithm="maxima")
Output:
-1/9*sqrt(3)*arctan(1/3*sqrt(3)*(2*(x^3 - 1)^(1/3)/x + 1)) - 1/2*(x^3 - 1) ^(2/3)/x^2 - 1/3*(x^3 - 1)^(2/3)/(x^2*((x^3 - 1)/x^3 - 1)) - 2/5*(x^3 - 1) ^(5/3)/x^5 + 1/18*log((x^3 - 1)^(1/3)/x + (x^3 - 1)^(2/3)/x^2 + 1) - 1/9*l og((x^3 - 1)^(1/3)/x - 1)
\[ \int \frac {\left (-1+x^3\right )^{2/3} \left (-2+x^3+x^6\right )}{x^6} \, dx=\int { \frac {{\left (x^{6} + x^{3} - 2\right )} {\left (x^{3} - 1\right )}^{\frac {2}{3}}}{x^{6}} \,d x } \] Input:
integrate((x^3-1)^(2/3)*(x^6+x^3-2)/x^6,x, algorithm="giac")
Output:
integrate((x^6 + x^3 - 2)*(x^3 - 1)^(2/3)/x^6, x)
Timed out. \[ \int \frac {\left (-1+x^3\right )^{2/3} \left (-2+x^3+x^6\right )}{x^6} \, dx=\int \frac {{\left (x^3-1\right )}^{2/3}\,\left (x^6+x^3-2\right )}{x^6} \,d x \] Input:
int(((x^3 - 1)^(2/3)*(x^3 + x^6 - 2))/x^6,x)
Output:
int(((x^3 - 1)^(2/3)*(x^3 + x^6 - 2))/x^6, x)
\[ \int \frac {\left (-1+x^3\right )^{2/3} \left (-2+x^3+x^6\right )}{x^6} \, dx=\frac {10 \left (x^{3}-1\right )^{\frac {2}{3}} x^{6}-27 \left (x^{3}-1\right )^{\frac {2}{3}} x^{3}+12 \left (x^{3}-1\right )^{\frac {2}{3}}+10 \left (\int \frac {1}{\left (x^{3}-1\right )^{\frac {1}{3}}}d x \right ) x^{5}}{30 x^{5}} \] Input:
int((x^3-1)^(2/3)*(x^6+x^3-2)/x^6,x)
Output:
(10*(x**3 - 1)**(2/3)*x**6 - 27*(x**3 - 1)**(2/3)*x**3 + 12*(x**3 - 1)**(2 /3) + 10*int((x**3 - 1)**(2/3)/(x**3 - 1),x)*x**5)/(30*x**5)