Integrand size = 26, antiderivative size = 171 \[ \int \frac {-5+x}{\sqrt [3]{-2-x+x^2} \left (-3+4 x+x^2\right )} \, dx=\frac {\sqrt {3} \arctan \left (\frac {\sqrt {3} \sqrt [3]{-2-x+x^2}}{-2^{2/3}-2^{2/3} x+\sqrt [3]{-2-x+x^2}}\right )}{2^{2/3}}+\frac {\log \left (2^{2/3}+2^{2/3} x+2 \sqrt [3]{-2-x+x^2}\right )}{2^{2/3}}-\frac {\log \left (-\sqrt [3]{2}-2 \sqrt [3]{2} x-\sqrt [3]{2} x^2+\left (2^{2/3}+2^{2/3} x\right ) \sqrt [3]{-2-x+x^2}-2 \left (-2-x+x^2\right )^{2/3}\right )}{2\ 2^{2/3}} \] Output:
1/2*3^(1/2)*arctan(3^(1/2)*(x^2-x-2)^(1/3)/(-2^(2/3)-2^(2/3)*x+(x^2-x-2)^( 1/3)))*2^(1/3)+1/2*ln(2^(2/3)+2^(2/3)*x+2*(x^2-x-2)^(1/3))*2^(1/3)-1/4*ln( -2^(1/3)-2*2^(1/3)*x-2^(1/3)*x^2+(2^(2/3)+2^(2/3)*x)*(x^2-x-2)^(1/3)-2*(x^ 2-x-2)^(2/3))*2^(1/3)
Time = 0.21 (sec) , antiderivative size = 160, normalized size of antiderivative = 0.94 \[ \int \frac {-5+x}{\sqrt [3]{-2-x+x^2} \left (-3+4 x+x^2\right )} \, dx=\frac {2 \sqrt {3} \arctan \left (\frac {\sqrt {3} \sqrt [3]{-2-x+x^2}}{-2^{2/3}-2^{2/3} x+\sqrt [3]{-2-x+x^2}}\right )+2 \log \left (2^{2/3}+2^{2/3} x+2 \sqrt [3]{-2-x+x^2}\right )-\log \left (-\sqrt [3]{2}-2 \sqrt [3]{2} x-\sqrt [3]{2} x^2+2^{2/3} (1+x) \sqrt [3]{-2-x+x^2}-2 \left (-2-x+x^2\right )^{2/3}\right )}{2\ 2^{2/3}} \] Input:
Integrate[(-5 + x)/((-2 - x + x^2)^(1/3)*(-3 + 4*x + x^2)),x]
Output:
(2*Sqrt[3]*ArcTan[(Sqrt[3]*(-2 - x + x^2)^(1/3))/(-2^(2/3) - 2^(2/3)*x + ( -2 - x + x^2)^(1/3))] + 2*Log[2^(2/3) + 2^(2/3)*x + 2*(-2 - x + x^2)^(1/3) ] - Log[-2^(1/3) - 2*2^(1/3)*x - 2^(1/3)*x^2 + 2^(2/3)*(1 + x)*(-2 - x + x ^2)^(1/3) - 2*(-2 - x + x^2)^(2/3)])/(2*2^(2/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-5}{\sqrt [3]{x^2-x-2} \left (x^2+4 x-3\right )} \, dx\) |
\(\Big \downarrow \) 1375 |
\(\displaystyle \int \frac {x-5}{\sqrt [3]{x^2-x-2} \left (x^2+4 x-3\right )}dx\) |
Input:
Int[(-5 + x)/((-2 - x + x^2)^(1/3)*(-3 + 4*x + x^2)),x]
Output:
$Aborted
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 2.57 (sec) , antiderivative size = 942, normalized size of antiderivative = 5.51
Input:
int((-5+x)/(x^2-x-2)^(1/3)/(x^2+4*x-3),x,method=_RETURNVERBOSE)
Output:
1/2*RootOf(_Z^3-2)*ln((-192*RootOf(RootOf(_Z^3-2)^2+2*_Z*RootOf(_Z^3-2)+4* _Z^2)^2*RootOf(_Z^3-2)^2*x^2+356*RootOf(RootOf(_Z^3-2)^2+2*_Z*RootOf(_Z^3- 2)+4*_Z^2)*RootOf(_Z^3-2)^3*x^2+1500*RootOf(RootOf(_Z^3-2)^2+2*_Z*RootOf(_ Z^3-2)+4*_Z^2)*RootOf(_Z^3-2)^2*(x^2-x-2)^(2/3)-480*RootOf(RootOf(_Z^3-2)^ 2+2*_Z*RootOf(_Z^3-2)+4*_Z^2)^2*RootOf(_Z^3-2)^2*x+890*RootOf(RootOf(_Z^3- 2)^2+2*_Z*RootOf(_Z^3-2)+4*_Z^2)*RootOf(_Z^3-2)^3*x+1746*RootOf(RootOf(_Z^ 3-2)^2+2*_Z*RootOf(_Z^3-2)+4*_Z^2)*RootOf(_Z^3-2)*(x^2-x-2)^(1/3)*x+750*Ro otOf(_Z^3-2)^2*(x^2-x-2)^(1/3)*x+1746*RootOf(RootOf(_Z^3-2)^2+2*_Z*RootOf( _Z^3-2)+4*_Z^2)*RootOf(_Z^3-2)*(x^2-x-2)^(1/3)+750*RootOf(_Z^3-2)^2*(x^2-x -2)^(1/3)-240*RootOf(RootOf(_Z^3-2)^2+2*_Z*RootOf(_Z^3-2)+4*_Z^2)*x^2+445* RootOf(_Z^3-2)*x^2-246*(x^2-x-2)^(2/3)-96*RootOf(RootOf(_Z^3-2)^2+2*_Z*Roo tOf(_Z^3-2)+4*_Z^2)*x+178*RootOf(_Z^3-2)*x-1008*RootOf(RootOf(_Z^3-2)^2+2* _Z*RootOf(_Z^3-2)+4*_Z^2)+1869*RootOf(_Z^3-2))/(x^2+4*x-3))+RootOf(RootOf( _Z^3-2)^2+2*_Z*RootOf(_Z^3-2)+4*_Z^2)*ln(-(356*RootOf(RootOf(_Z^3-2)^2+2*_ Z*RootOf(_Z^3-2)+4*_Z^2)^2*RootOf(_Z^3-2)^2*x^2-48*RootOf(RootOf(_Z^3-2)^2 +2*_Z*RootOf(_Z^3-2)+4*_Z^2)*RootOf(_Z^3-2)^3*x^2+750*RootOf(RootOf(_Z^3-2 )^2+2*_Z*RootOf(_Z^3-2)+4*_Z^2)*RootOf(_Z^3-2)^2*(x^2-x-2)^(2/3)+890*RootO f(RootOf(_Z^3-2)^2+2*_Z*RootOf(_Z^3-2)+4*_Z^2)^2*RootOf(_Z^3-2)^2*x-120*Ro otOf(RootOf(_Z^3-2)^2+2*_Z*RootOf(_Z^3-2)+4*_Z^2)*RootOf(_Z^3-2)^3*x-123*R ootOf(RootOf(_Z^3-2)^2+2*_Z*RootOf(_Z^3-2)+4*_Z^2)*RootOf(_Z^3-2)*(x^2-...
Leaf count of result is larger than twice the leaf count of optimal. 300 vs. \(2 (133) = 266\).
Time = 4.18 (sec) , antiderivative size = 300, normalized size of antiderivative = 1.75 \[ \int \frac {-5+x}{\sqrt [3]{-2-x+x^2} \left (-3+4 x+x^2\right )} \, dx=-\frac {1}{6} \cdot 4^{\frac {1}{6}} \sqrt {3} \arctan \left (\frac {4^{\frac {1}{6}} \sqrt {3} {\left (12 \cdot 4^{\frac {2}{3}} {\left (x^{4} + 5 \, x^{3} + 4 \, x^{2} + 9 \, x - 9\right )} {\left (x^{2} - x - 2\right )}^{\frac {2}{3}} + 4^{\frac {1}{3}} {\left (x^{6} + 30 \, x^{5} + 3 \, x^{4} + 100 \, x^{3} - 45 \, x^{2} - 306 \, x - 351\right )} + 12 \, {\left (x^{5} - 9 \, x^{4} + 40 \, x^{2} + 75 \, x + 45\right )} {\left (x^{2} - x - 2\right )}^{\frac {1}{3}}\right )}}{6 \, {\left (x^{6} - 42 \, x^{5} - 69 \, x^{4} + 100 \, x^{3} + 315 \, x^{2} + 486 \, x + 81\right )}}\right ) - \frac {1}{24} \cdot 4^{\frac {2}{3}} \log \left (\frac {6 \cdot 4^{\frac {2}{3}} {\left (x^{2} + x + 3\right )} {\left (x^{2} - x - 2\right )}^{\frac {2}{3}} + 4^{\frac {1}{3}} {\left (x^{4} - 10 \, x^{3} + 10 \, x^{2} + 30 \, x + 45\right )} - 6 \, {\left (x^{3} - x^{2} + 7 \, x + 9\right )} {\left (x^{2} - x - 2\right )}^{\frac {1}{3}}}{x^{4} + 8 \, x^{3} + 10 \, x^{2} - 24 \, x + 9}\right ) + \frac {1}{12} \cdot 4^{\frac {2}{3}} \log \left (\frac {4^{\frac {2}{3}} {\left (x^{2} + 4 \, x - 3\right )} + 6 \cdot 4^{\frac {1}{3}} {\left (x^{2} - x - 2\right )}^{\frac {1}{3}} {\left (x + 1\right )} + 12 \, {\left (x^{2} - x - 2\right )}^{\frac {2}{3}}}{x^{2} + 4 \, x - 3}\right ) \] Input:
integrate((-5+x)/(x^2-x-2)^(1/3)/(x^2+4*x-3),x, algorithm="fricas")
Output:
-1/6*4^(1/6)*sqrt(3)*arctan(1/6*4^(1/6)*sqrt(3)*(12*4^(2/3)*(x^4 + 5*x^3 + 4*x^2 + 9*x - 9)*(x^2 - x - 2)^(2/3) + 4^(1/3)*(x^6 + 30*x^5 + 3*x^4 + 10 0*x^3 - 45*x^2 - 306*x - 351) + 12*(x^5 - 9*x^4 + 40*x^2 + 75*x + 45)*(x^2 - x - 2)^(1/3))/(x^6 - 42*x^5 - 69*x^4 + 100*x^3 + 315*x^2 + 486*x + 81)) - 1/24*4^(2/3)*log((6*4^(2/3)*(x^2 + x + 3)*(x^2 - x - 2)^(2/3) + 4^(1/3) *(x^4 - 10*x^3 + 10*x^2 + 30*x + 45) - 6*(x^3 - x^2 + 7*x + 9)*(x^2 - x - 2)^(1/3))/(x^4 + 8*x^3 + 10*x^2 - 24*x + 9)) + 1/12*4^(2/3)*log((4^(2/3)*( x^2 + 4*x - 3) + 6*4^(1/3)*(x^2 - x - 2)^(1/3)*(x + 1) + 12*(x^2 - x - 2)^ (2/3))/(x^2 + 4*x - 3))
\[ \int \frac {-5+x}{\sqrt [3]{-2-x+x^2} \left (-3+4 x+x^2\right )} \, dx=\int \frac {x - 5}{\sqrt [3]{\left (x - 2\right ) \left (x + 1\right )} \left (x^{2} + 4 x - 3\right )}\, dx \] Input:
integrate((-5+x)/(x**2-x-2)**(1/3)/(x**2+4*x-3),x)
Output:
Integral((x - 5)/(((x - 2)*(x + 1))**(1/3)*(x**2 + 4*x - 3)), x)
\[ \int \frac {-5+x}{\sqrt [3]{-2-x+x^2} \left (-3+4 x+x^2\right )} \, dx=\int { \frac {x - 5}{{\left (x^{2} + 4 \, x - 3\right )} {\left (x^{2} - x - 2\right )}^{\frac {1}{3}}} \,d x } \] Input:
integrate((-5+x)/(x^2-x-2)^(1/3)/(x^2+4*x-3),x, algorithm="maxima")
Output:
integrate((x - 5)/((x^2 + 4*x - 3)*(x^2 - x - 2)^(1/3)), x)
\[ \int \frac {-5+x}{\sqrt [3]{-2-x+x^2} \left (-3+4 x+x^2\right )} \, dx=\int { \frac {x - 5}{{\left (x^{2} + 4 \, x - 3\right )} {\left (x^{2} - x - 2\right )}^{\frac {1}{3}}} \,d x } \] Input:
integrate((-5+x)/(x^2-x-2)^(1/3)/(x^2+4*x-3),x, algorithm="giac")
Output:
integrate((x - 5)/((x^2 + 4*x - 3)*(x^2 - x - 2)^(1/3)), x)
Timed out. \[ \int \frac {-5+x}{\sqrt [3]{-2-x+x^2} \left (-3+4 x+x^2\right )} \, dx=\int \frac {x-5}{{\left (x^2-x-2\right )}^{1/3}\,\left (x^2+4\,x-3\right )} \,d x \] Input:
int((x - 5)/((x^2 - x - 2)^(1/3)*(4*x + x^2 - 3)),x)
Output:
int((x - 5)/((x^2 - x - 2)^(1/3)*(4*x + x^2 - 3)), x)
\[ \int \frac {-5+x}{\sqrt [3]{-2-x+x^2} \left (-3+4 x+x^2\right )} \, dx=\int \frac {x}{\left (x^{2}-x -2\right )^{\frac {1}{3}} x^{2}+4 \left (x^{2}-x -2\right )^{\frac {1}{3}} x -3 \left (x^{2}-x -2\right )^{\frac {1}{3}}}d x -5 \left (\int \frac {1}{\left (x^{2}-x -2\right )^{\frac {1}{3}} x^{2}+4 \left (x^{2}-x -2\right )^{\frac {1}{3}} x -3 \left (x^{2}-x -2\right )^{\frac {1}{3}}}d x \right ) \] Input:
int((-5+x)/(x^2-x-2)^(1/3)/(x^2+4*x-3),x)
Output:
int(x/((x**2 - x - 2)**(1/3)*x**2 + 4*(x**2 - x - 2)**(1/3)*x - 3*(x**2 - x - 2)**(1/3)),x) - 5*int(1/((x**2 - x - 2)**(1/3)*x**2 + 4*(x**2 - x - 2) **(1/3)*x - 3*(x**2 - x - 2)**(1/3)),x)