Integrand size = 18, antiderivative size = 106 \[ \int \frac {1}{(-2+x) \sqrt [3]{1+2 x+x^2}} \, dx=\frac {\left ((1+x)^2\right )^{2/3} \left (-\frac {\arctan \left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{1+x}}{3^{5/6}}\right )}{\sqrt [6]{3}}+\frac {\log \left (-3+3^{2/3} \sqrt [3]{1+x}\right )}{3^{2/3}}-\frac {\log \left (3+3^{2/3} \sqrt [3]{1+x}+\sqrt [3]{3} (1+x)^{2/3}\right )}{2\ 3^{2/3}}\right )}{(1+x)^{4/3}} \]
((1+x)^2)^(2/3)*(-1/3*arctan(1/3*3^(1/2)+2/3*(1+x)^(1/3)*3^(1/6))*3^(5/6)+ 1/3*ln(-3+3^(2/3)*(1+x)^(1/3))*3^(1/3)-1/6*ln(3+3^(2/3)*(1+x)^(1/3)+3^(1/3 )*(1+x)^(2/3))*3^(1/3))/(1+x)^(4/3)
Time = 0.10 (sec) , antiderivative size = 101, normalized size of antiderivative = 0.95 \[ \int \frac {1}{(-2+x) \sqrt [3]{1+2 x+x^2}} \, dx=-\frac {(1+x)^{2/3} \left (2 \sqrt {3} \arctan \left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{1+x}}{3^{5/6}}\right )-2 \log \left (-3+3^{2/3} \sqrt [3]{1+x}\right )+\log \left (3+3^{2/3} \sqrt [3]{1+x}+\sqrt [3]{3} (1+x)^{2/3}\right )\right )}{2\ 3^{2/3} \sqrt [3]{(1+x)^2}} \]
-1/2*((1 + x)^(2/3)*(2*Sqrt[3]*ArcTan[1/Sqrt[3] + (2*(1 + x)^(1/3))/3^(5/6 )] - 2*Log[-3 + 3^(2/3)*(1 + x)^(1/3)] + Log[3 + 3^(2/3)*(1 + x)^(1/3) + 3 ^(1/3)*(1 + x)^(2/3)]))/(3^(2/3)*((1 + x)^2)^(1/3))
Time = 0.22 (sec) , antiderivative size = 91, normalized size of antiderivative = 0.86, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {1102, 25, 69, 16, 1082, 217}
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 {1}{(x-2) \sqrt [3]{x^2+2 x+1}} \, dx\) |
\(\Big \downarrow \) 1102 |
\(\displaystyle \frac {(x+1)^{2/3} \int -\frac {1}{(2-x) (x+1)^{2/3}}dx}{\sqrt [3]{x^2+2 x+1}}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {(x+1)^{2/3} \int \frac {1}{(2-x) (x+1)^{2/3}}dx}{\sqrt [3]{x^2+2 x+1}}\) |
\(\Big \downarrow \) 69 |
\(\displaystyle -\frac {(x+1)^{2/3} \left (\frac {1}{2} \sqrt [3]{3} \int \frac {1}{\sqrt [3]{3}-\sqrt [3]{x+1}}d\sqrt [3]{x+1}+\frac {1}{2} 3^{2/3} \int \frac {1}{(x+1)^{2/3}+\sqrt [3]{3} \sqrt [3]{x+1}+3^{2/3}}d\sqrt [3]{x+1}+\frac {\log (2-x)}{2\ 3^{2/3}}\right )}{\sqrt [3]{x^2+2 x+1}}\) |
\(\Big \downarrow \) 16 |
\(\displaystyle -\frac {(x+1)^{2/3} \left (\frac {1}{2} 3^{2/3} \int \frac {1}{(x+1)^{2/3}+\sqrt [3]{3} \sqrt [3]{x+1}+3^{2/3}}d\sqrt [3]{x+1}+\frac {\log (2-x)}{2\ 3^{2/3}}-\frac {1}{2} \sqrt [3]{3} \log \left (\sqrt [3]{3}-\sqrt [3]{x+1}\right )\right )}{\sqrt [3]{x^2+2 x+1}}\) |
\(\Big \downarrow \) 1082 |
\(\displaystyle -\frac {(x+1)^{2/3} \left (-\sqrt [3]{3} \int \frac {1}{-(x+1)^{2/3}-3}d\left (\frac {2 \sqrt [3]{x+1}}{\sqrt [3]{3}}+1\right )+\frac {\log (2-x)}{2\ 3^{2/3}}-\frac {1}{2} \sqrt [3]{3} \log \left (\sqrt [3]{3}-\sqrt [3]{x+1}\right )\right )}{\sqrt [3]{x^2+2 x+1}}\) |
\(\Big \downarrow \) 217 |
\(\displaystyle -\frac {(x+1)^{2/3} \left (\frac {\arctan \left (\frac {\frac {2 \sqrt [3]{x+1}}{\sqrt [3]{3}}+1}{\sqrt {3}}\right )}{\sqrt [6]{3}}+\frac {\log (2-x)}{2\ 3^{2/3}}-\frac {1}{2} \sqrt [3]{3} \log \left (\sqrt [3]{3}-\sqrt [3]{x+1}\right )\right )}{\sqrt [3]{x^2+2 x+1}}\) |
-(((1 + x)^(2/3)*(ArcTan[(1 + (2*(1 + x)^(1/3))/3^(1/3))/Sqrt[3]]/3^(1/6) + Log[2 - x]/(2*3^(2/3)) - (3^(1/3)*Log[3^(1/3) - (1 + x)^(1/3)])/2))/(1 + 2*x + x^2)^(1/3))
3.16.27.3.1 Defintions of rubi rules used
Int[(c_.)/((a_.) + (b_.)*(x_)), x_Symbol] :> Simp[c*(Log[RemoveContent[a + b*x, x]]/b), x] /; FreeQ[{a, b, c}, x]
Int[1/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))^(2/3)), x_Symbol] :> With[ {q = Rt[(b*c - a*d)/b, 3]}, Simp[-Log[RemoveContent[a + b*x, x]]/(2*b*q^2), x] + (-Simp[3/(2*b*q) Subst[Int[1/(q^2 + q*x + x^2), x], x, (c + d*x)^(1 /3)], x] - Simp[3/(2*b*q^2) Subst[Int[1/(q - x), x], x, (c + d*x)^(1/3)], x])] /; FreeQ[{a, b, c, d}, x] && PosQ[(b*c - a*d)/b]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(-(Rt[-a, 2]*Rt[-b, 2])^( -1))*ArcTan[Rt[-b, 2]*(x/Rt[-a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] & & (LtQ[a, 0] || LtQ[b, 0])
Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> With[{q = 1 - 4*S implify[a*(c/b^2)]}, Simp[-2/b Subst[Int[1/(q - x^2), x], x, 1 + 2*c*(x/b )], x] /; RationalQ[q] && (EqQ[q^2, 1] || !RationalQ[b^2 - 4*a*c])] /; Fre eQ[{a, b, c}, x]
Int[((d_.) + (e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_S ymbol] :> Simp[(a + b*x + c*x^2)^FracPart[p]/(c^IntPart[p]*(b/2 + c*x)^(2*F racPart[p])) Int[(d + e*x)^m*(b/2 + c*x)^(2*p), x], x] /; FreeQ[{a, b, c, d, e, m, p}, x] && EqQ[b^2 - 4*a*c, 0]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 1.63 (sec) , antiderivative size = 942, normalized size of antiderivative = 8.89
RootOf(RootOf(_Z^3-3)^2+3*_Z*RootOf(_Z^3-3)+9*_Z^2)*ln(-(6*RootOf(RootOf(_ Z^3-3)^2+3*_Z*RootOf(_Z^3-3)+9*_Z^2)*RootOf(_Z^3-3)^3*x^2+63*RootOf(RootOf (_Z^3-3)^2+3*_Z*RootOf(_Z^3-3)+9*_Z^2)^2*RootOf(_Z^3-3)^2*x^2+6*RootOf(Roo tOf(_Z^3-3)^2+3*_Z*RootOf(_Z^3-3)+9*_Z^2)*RootOf(_Z^3-3)^3*x+63*(x^2+2*x+1 )^(2/3)*RootOf(RootOf(_Z^3-3)^2+3*_Z*RootOf(_Z^3-3)+9*_Z^2)*RootOf(_Z^3-3) ^2+63*RootOf(RootOf(_Z^3-3)^2+3*_Z*RootOf(_Z^3-3)+9*_Z^2)^2*RootOf(_Z^3-3) ^2*x-21*(x^2+2*x+1)^(1/3)*RootOf(_Z^3-3)^2*x+72*(x^2+2*x+1)^(1/3)*RootOf(R ootOf(_Z^3-3)^2+3*_Z*RootOf(_Z^3-3)+9*_Z^2)*RootOf(_Z^3-3)*x-21*(x^2+2*x+1 )^(1/3)*RootOf(_Z^3-3)^2+72*(x^2+2*x+1)^(1/3)*RootOf(RootOf(_Z^3-3)^2+3*_Z *RootOf(_Z^3-3)+9*_Z^2)*RootOf(_Z^3-3)-2*RootOf(_Z^3-3)*x^2-21*RootOf(Root Of(_Z^3-3)^2+3*_Z*RootOf(_Z^3-3)+9*_Z^2)*x^2-28*RootOf(_Z^3-3)*x+135*(x^2+ 2*x+1)^(2/3)-294*RootOf(RootOf(_Z^3-3)^2+3*_Z*RootOf(_Z^3-3)+9*_Z^2)*x-26* RootOf(_Z^3-3)-273*RootOf(RootOf(_Z^3-3)^2+3*_Z*RootOf(_Z^3-3)+9*_Z^2))/(- 2+x)/(1+x))+1/3*RootOf(_Z^3-3)*ln((21*RootOf(RootOf(_Z^3-3)^2+3*_Z*RootOf( _Z^3-3)+9*_Z^2)*RootOf(_Z^3-3)^3*x^2+18*RootOf(RootOf(_Z^3-3)^2+3*_Z*RootO f(_Z^3-3)+9*_Z^2)^2*RootOf(_Z^3-3)^2*x^2+21*RootOf(RootOf(_Z^3-3)^2+3*_Z*R ootOf(_Z^3-3)+9*_Z^2)*RootOf(_Z^3-3)^3*x+63*(x^2+2*x+1)^(2/3)*RootOf(RootO f(_Z^3-3)^2+3*_Z*RootOf(_Z^3-3)+9*_Z^2)*RootOf(_Z^3-3)^2+18*RootOf(RootOf( _Z^3-3)^2+3*_Z*RootOf(_Z^3-3)+9*_Z^2)^2*RootOf(_Z^3-3)^2*x-21*(x^2+2*x+1)^ (1/3)*RootOf(_Z^3-3)^2*x-135*(x^2+2*x+1)^(1/3)*RootOf(RootOf(_Z^3-3)^2+...
Time = 0.28 (sec) , antiderivative size = 139, normalized size of antiderivative = 1.31 \[ \int \frac {1}{(-2+x) \sqrt [3]{1+2 x+x^2}} \, dx=\frac {1}{3} \cdot 9^{\frac {1}{6}} \sqrt {3} \arctan \left (\frac {9^{\frac {1}{6}} {\left (9^{\frac {1}{3}} \sqrt {3} {\left (x + 1\right )} + 6 \, \sqrt {3} {\left (x^{2} + 2 \, x + 1\right )}^{\frac {1}{3}}\right )}}{9 \, {\left (x + 1\right )}}\right ) - \frac {1}{18} \cdot 9^{\frac {2}{3}} \log \left (\frac {9^{\frac {2}{3}} {\left (x^{2} + 2 \, x + 1\right )} + 3 \cdot 9^{\frac {1}{3}} {\left (x^{2} + 2 \, x + 1\right )}^{\frac {1}{3}} {\left (x + 1\right )} + 9 \, {\left (x^{2} + 2 \, x + 1\right )}^{\frac {2}{3}}}{x^{2} + 2 \, x + 1}\right ) + \frac {1}{9} \cdot 9^{\frac {2}{3}} \log \left (-\frac {9^{\frac {1}{3}} {\left (x + 1\right )} - 3 \, {\left (x^{2} + 2 \, x + 1\right )}^{\frac {1}{3}}}{x + 1}\right ) \]
1/3*9^(1/6)*sqrt(3)*arctan(1/9*9^(1/6)*(9^(1/3)*sqrt(3)*(x + 1) + 6*sqrt(3 )*(x^2 + 2*x + 1)^(1/3))/(x + 1)) - 1/18*9^(2/3)*log((9^(2/3)*(x^2 + 2*x + 1) + 3*9^(1/3)*(x^2 + 2*x + 1)^(1/3)*(x + 1) + 9*(x^2 + 2*x + 1)^(2/3))/( x^2 + 2*x + 1)) + 1/9*9^(2/3)*log(-(9^(1/3)*(x + 1) - 3*(x^2 + 2*x + 1)^(1 /3))/(x + 1))
\[ \int \frac {1}{(-2+x) \sqrt [3]{1+2 x+x^2}} \, dx=\int \frac {1}{\left (x - 2\right ) \sqrt [3]{\left (x + 1\right )^{2}}}\, dx \]
\[ \int \frac {1}{(-2+x) \sqrt [3]{1+2 x+x^2}} \, dx=\int { \frac {1}{{\left (x^{2} + 2 \, x + 1\right )}^{\frac {1}{3}} {\left (x - 2\right )}} \,d x } \]
\[ \int \frac {1}{(-2+x) \sqrt [3]{1+2 x+x^2}} \, dx=\int { \frac {1}{{\left (x^{2} + 2 \, x + 1\right )}^{\frac {1}{3}} {\left (x - 2\right )}} \,d x } \]
Timed out. \[ \int \frac {1}{(-2+x) \sqrt [3]{1+2 x+x^2}} \, dx=\int \frac {1}{\left (x-2\right )\,{\left (x^2+2\,x+1\right )}^{1/3}} \,d x \]