3.14.90 \(\int \frac {6+2 x+x^2}{\sqrt [3]{2+x^2} (1+3 x-2 x^2+x^3)} \, dx\) [1390]

Optimal. Leaf size=100 \[ -\sqrt {3} \text {ArcTan}\left (\frac {\frac {2}{\sqrt {3}}-\frac {2 x}{\sqrt {3}}+\frac {\sqrt [3]{2+x^2}}{\sqrt {3}}}{\sqrt [3]{2+x^2}}\right )+\log \left (-1+x+\sqrt [3]{2+x^2}\right )-\frac {1}{2} \log \left (1-2 x+x^2+(1-x) \sqrt [3]{2+x^2}+\left (2+x^2\right )^{2/3}\right ) \]

[Out]

-3^(1/2)*arctan((2/3*3^(1/2)-2/3*x*3^(1/2)+1/3*(x^2+2)^(1/3)*3^(1/2))/(x^2+2)^(1/3))+ln(-1+x+(x^2+2)^(1/3))-1/
2*ln(1-2*x+x^2+(1-x)*(x^2+2)^(1/3)+(x^2+2)^(2/3))

________________________________________________________________________________________

Rubi [F]
time = 0.35, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {6+2 x+x^2}{\sqrt [3]{2+x^2} \left (1+3 x-2 x^2+x^3\right )} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

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

[Out]

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

Rubi steps

\begin {align*} \int \frac {6+2 x+x^2}{\sqrt [3]{2+x^2} \left (1+3 x-2 x^2+x^3\right )} \, dx &=\int \left (\frac {6}{\sqrt [3]{2+x^2} \left (1+3 x-2 x^2+x^3\right )}+\frac {2 x}{\sqrt [3]{2+x^2} \left (1+3 x-2 x^2+x^3\right )}+\frac {x^2}{\sqrt [3]{2+x^2} \left (1+3 x-2 x^2+x^3\right )}\right ) \, dx\\ &=2 \int \frac {x}{\sqrt [3]{2+x^2} \left (1+3 x-2 x^2+x^3\right )} \, dx+6 \int \frac {1}{\sqrt [3]{2+x^2} \left (1+3 x-2 x^2+x^3\right )} \, dx+\int \frac {x^2}{\sqrt [3]{2+x^2} \left (1+3 x-2 x^2+x^3\right )} \, dx\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.10, size = 87, normalized size = 0.87 \begin {gather*} -\sqrt {3} \text {ArcTan}\left (\frac {2-2 x+\sqrt [3]{2+x^2}}{\sqrt {3} \sqrt [3]{2+x^2}}\right )+\log \left (-1+x+\sqrt [3]{2+x^2}\right )-\frac {1}{2} \log \left (1-2 x+x^2-(-1+x) \sqrt [3]{2+x^2}+\left (2+x^2\right )^{2/3}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 3.
time = 3.02, size = 772, normalized size = 7.72

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

RootOf(_Z^2+_Z+1)*ln(-(188*RootOf(_Z^2+_Z+1)^2*x^3+573*RootOf(_Z^2+_Z+1)*(x^2+2)^(2/3)*x-573*RootOf(_Z^2+_Z+1)
*(x^2+2)^(1/3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Of(_Z^2+_Z+1)*x^3-573*RootOf(_Z^2+_Z+1)*(x^2+2)^(2/3)-318*(x^2+2)^(2/3)*x+1146*RootOf(_Z^2+_Z+
1)*(x^2+2)^(1/3)*x+318*(x^2+2)^(1/3)*x^2-564*RootOf(_Z^2+_Z+1)^2*x-1079*x^2*RootOf(_Z^2+_Z+1)-103*x^3+318*(x^2
+2)^(2/3)-573*RootOf(_Z^2+_Z+1)*(x^2+2)^(1/3)-636*(x^2+2)^(1/3)*x+900*x*RootOf(_Z^2+_Z+1)+618*x^2+318*(x^2+2)^
(1/3)-658*RootOf(_Z^2+_Z+1)-309*x+721)/(x^3-2*x^2+3*x+1))

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.94, size = 138, normalized size = 1.38 \begin {gather*} -\sqrt {3} \arctan \left (\frac {2 \, \sqrt {3} {\left (x^{2} + 2\right )}^{\frac {2}{3}} {\left (x - 1\right )} + 2 \, \sqrt {3} {\left (x^{2} - 2 \, x + 1\right )} {\left (x^{2} + 2\right )}^{\frac {1}{3}} + \sqrt {3} {\left (x^{3} - 2 \, x^{2} + 3 \, x + 1\right )}}{3 \, {\left (x^{3} - 4 \, x^{2} + 3 \, x - 3\right )}}\right ) + \frac {1}{2} \, \log \left (\frac {x^{3} - 2 \, x^{2} + 3 \, {\left (x^{2} + 2\right )}^{\frac {2}{3}} {\left (x - 1\right )} + 3 \, {\left (x^{2} - 2 \, x + 1\right )} {\left (x^{2} + 2\right )}^{\frac {1}{3}} + 3 \, x + 1}{x^{3} - 2 \, x^{2} + 3 \, x + 1}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-sqrt(3)*arctan(1/3*(2*sqrt(3)*(x^2 + 2)^(2/3)*(x - 1) + 2*sqrt(3)*(x^2 - 2*x + 1)*(x^2 + 2)^(1/3) + sqrt(3)*(
x^3 - 2*x^2 + 3*x + 1))/(x^3 - 4*x^2 + 3*x - 3)) + 1/2*log((x^3 - 2*x^2 + 3*(x^2 + 2)^(2/3)*(x - 1) + 3*(x^2 -
 2*x + 1)*(x^2 + 2)^(1/3) + 3*x + 1)/(x^3 - 2*x^2 + 3*x + 1))

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2} + 2 x + 6}{\sqrt [3]{x^{2} + 2} \left (x^{3} - 2 x^{2} + 3 x + 1\right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^2+2\,x+6}{{\left (x^2+2\right )}^{1/3}\,\left (x^3-2\,x^2+3\,x+1\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________