3.1.92 \(\int \frac {-1+x}{(1+x) \sqrt [3]{2+x^3}} \, dx\) [92]

3.1.92.1 Optimal result
3.1.92.2 Mathematica [A] (verified)
3.1.92.3 Rubi [A] (verified)
3.1.92.4 Maple [C] (verified)
3.1.92.5 Fricas [F(-2)]
3.1.92.6 Sympy [F]
3.1.92.7 Maxima [F]
3.1.92.8 Giac [F]
3.1.92.9 Mupad [F(-1)]
3.1.92.10 Reduce [F]

3.1.92.1 Optimal result

Integrand size = 18, antiderivative size = 53 \[ \int \frac {-1+x}{(1+x) \sqrt [3]{2+x^3}} \, dx=\sqrt {3} \arctan \left (\frac {1+\frac {2 (2+x)}{\sqrt [3]{2+x^3}}}{\sqrt {3}}\right )+\log (1+x)-\frac {3}{2} \log \left (2+x-\sqrt [3]{2+x^3}\right ) \]

output
ln(1+x)-3/2*ln(2+x-(x^3+2)^(1/3))+arctan(1/3*(1+2*(2+x)/(x^3+2)^(1/3))*3^( 
1/2))*3^(1/2)
 
3.1.92.2 Mathematica [A] (verified)

Time = 0.76 (sec) , antiderivative size = 92, normalized size of antiderivative = 1.74 \[ \int \frac {-1+x}{(1+x) \sqrt [3]{2+x^3}} \, dx=-\sqrt {3} \arctan \left (\frac {\sqrt {3} \sqrt [3]{2+x^3}}{4+2 x+\sqrt [3]{2+x^3}}\right )-\log \left (-2-x+\sqrt [3]{2+x^3}\right )+\frac {1}{2} \log \left (4+4 x+x^2+(2+x) \sqrt [3]{2+x^3}+\left (2+x^3\right )^{2/3}\right ) \]

input
Integrate[(-1 + x)/((1 + x)*(2 + x^3)^(1/3)),x]
 
output
-(Sqrt[3]*ArcTan[(Sqrt[3]*(2 + x^3)^(1/3))/(4 + 2*x + (2 + x^3)^(1/3))]) - 
 Log[-2 - x + (2 + x^3)^(1/3)] + Log[4 + 4*x + x^2 + (2 + x)*(2 + x^3)^(1/ 
3) + (2 + x^3)^(2/3)]/2
 
3.1.92.3 Rubi [A] (verified)

Time = 0.20 (sec) , antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {2576}

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-1}{(x+1) \sqrt [3]{x^3+2}} \, dx\)

\(\Big \downarrow \) 2576

\(\displaystyle \sqrt {3} \arctan \left (\frac {\frac {2 (x+2)}{\sqrt [3]{x^3+2}}+1}{\sqrt {3}}\right )-\frac {3}{2} \log \left (-\sqrt [3]{x^3+2}+x+2\right )+\log (x+1)\)

input
Int[(-1 + x)/((1 + x)*(2 + x^3)^(1/3)),x]
 
output
Sqrt[3]*ArcTan[(1 + (2*(2 + x))/(2 + x^3)^(1/3))/Sqrt[3]] + Log[1 + x] - ( 
3*Log[2 + x - (2 + x^3)^(1/3)])/2
 

3.1.92.3.1 Defintions of rubi rules used

rule 2576
Int[((e_) + (f_.)*(x_))/(((c_) + (d_.)*(x_))*((a_) + (b_.)*(x_)^3)^(1/3)), 
x_Symbol] :> Simp[Sqrt[3]*f*(ArcTan[(1 + 2*Rt[b, 3]*((2*c + d*x)/(d*(a + b* 
x^3)^(1/3))))/Sqrt[3]]/(Rt[b, 3]*d)), x] + (Simp[(f*Log[c + d*x])/(Rt[b, 3] 
*d), x] - Simp[(3*f*Log[Rt[b, 3]*(2*c + d*x) - d*(a + b*x^3)^(1/3)])/(2*Rt[ 
b, 3]*d), x]) /; FreeQ[{a, b, c, d, e, f}, x] && EqQ[d*e + c*f, 0] && EqQ[2 
*b*c^3 - a*d^3, 0]
 
3.1.92.4 Maple [C] (verified)

Result contains higher order function than in optimal. Order 9 vs. order 3.

Time = 2.09 (sec) , antiderivative size = 816, normalized size of antiderivative = 15.40

method result size
trager \(\text {Expression too large to display}\) \(816\)

input
int((-1+x)/(1+x)/(x^3+2)^(1/3),x,method=_RETURNVERBOSE)
 
output
RootOf(_Z^2-_Z+1)*ln(-(1239*RootOf(_Z^2-_Z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1)^2*x^3+4504*RootOf(_Z^2-_Z+1)*(x^3+2)^(2/3)*x+4504*R 
ootOf(_Z^2-_Z+1)*(x^3+2)^(1/3)*x^2+2478*RootOf(_Z^2-_Z+1)^2*x^2+5743*RootO 
f(_Z^2-_Z+1)*x^3+9008*RootOf(_Z^2-_Z+1)*(x^3+2)^(2/3)-4839*x*(x^3+2)^(2/3) 
+18016*RootOf(_Z^2-_Z+1)*(x^3+2)^(1/3)*x-4839*(x^3+2)^(1/3)*x^2+4956*RootO 
f(_Z^2-_Z+1)^2*x+5860*RootOf(_Z^2-_Z+1)*x^2-6078*x^3-9678*(x^3+2)^(2/3)...
 
3.1.92.5 Fricas [F(-2)]

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

input
integrate((-1+x)/(1+x)/(x^3+2)^(1/3),x, algorithm="fricas")
 
output
Exception raised: TypeError >>  Error detected within library code:   inte 
grate: implementation incomplete (residue poly has multiple non-linear fac 
tors)
 
3.1.92.6 Sympy [F]

\[ \int \frac {-1+x}{(1+x) \sqrt [3]{2+x^3}} \, dx=\int \frac {x - 1}{\left (x + 1\right ) \sqrt [3]{x^{3} + 2}}\, dx \]

input
integrate((-1+x)/(1+x)/(x**3+2)**(1/3),x)
 
output
Integral((x - 1)/((x + 1)*(x**3 + 2)**(1/3)), x)
 
3.1.92.7 Maxima [F]

\[ \int \frac {-1+x}{(1+x) \sqrt [3]{2+x^3}} \, dx=\int { \frac {x - 1}{{\left (x^{3} + 2\right )}^{\frac {1}{3}} {\left (x + 1\right )}} \,d x } \]

input
integrate((-1+x)/(1+x)/(x^3+2)^(1/3),x, algorithm="maxima")
 
output
integrate((x - 1)/((x^3 + 2)^(1/3)*(x + 1)), x)
 
3.1.92.8 Giac [F]

\[ \int \frac {-1+x}{(1+x) \sqrt [3]{2+x^3}} \, dx=\int { \frac {x - 1}{{\left (x^{3} + 2\right )}^{\frac {1}{3}} {\left (x + 1\right )}} \,d x } \]

input
integrate((-1+x)/(1+x)/(x^3+2)^(1/3),x, algorithm="giac")
 
output
integrate((x - 1)/((x^3 + 2)^(1/3)*(x + 1)), x)
 
3.1.92.9 Mupad [F(-1)]

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

input
int((x - 1)/((x^3 + 2)^(1/3)*(x + 1)),x)
 
output
int((x - 1)/((x^3 + 2)^(1/3)*(x + 1)), x)
 
3.1.92.10 Reduce [F]

\[ \int \frac {-1+x}{(1+x) \sqrt [3]{2+x^3}} \, dx=\int \frac {x}{\left (x^{3}+2\right )^{\frac {1}{3}} x +\left (x^{3}+2\right )^{\frac {1}{3}}}d x -\left (\int \frac {1}{\left (x^{3}+2\right )^{\frac {1}{3}} x +\left (x^{3}+2\right )^{\frac {1}{3}}}d x \right ) \]

input
int((x - 1)/((x**3 + 2)**(1/3)*(x + 1)),x)
 
output
int(x/((x**3 + 2)**(1/3)*x + (x**3 + 2)**(1/3)),x) - int(1/((x**3 + 2)**(1 
/3)*x + (x**3 + 2)**(1/3)),x)