3.3.69 \(\int \frac {x}{(1+x+x^2)^{3/2}} \, dx\) [269]

Optimal. Leaf size=17 \[ -\frac {2 (2+x)}{3 \sqrt {1+x+x^2}} \]

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {650} \begin {gather*} -\frac {2 (x+2)}{3 \sqrt {x^2+x+1}} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 650

Int[((d_.) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(3/2), x_Symbol] :> Simp[-2*((b*d - 2*a*e + (2*c*
d - b*e)*x)/((b^2 - 4*a*c)*Sqrt[a + b*x + c*x^2])), x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[2*c*d - b*e, 0] &&
NeQ[b^2 - 4*a*c, 0]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.08, size = 17, normalized size = 1.00 \begin {gather*} -\frac {2 (2+x)}{3 \sqrt {1+x+x^2}} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

Maple [A]
time = 0.11, size = 27, normalized size = 1.59

method result size
gosper \(-\frac {2 \left (2+x \right )}{3 \sqrt {x^{2}+x +1}}\) \(14\)
trager \(-\frac {2 \left (2+x \right )}{3 \sqrt {x^{2}+x +1}}\) \(14\)
risch \(-\frac {2 \left (2+x \right )}{3 \sqrt {x^{2}+x +1}}\) \(14\)
default \(-\frac {1}{\sqrt {x^{2}+x +1}}-\frac {1+2 x}{3 \sqrt {x^{2}+x +1}}\) \(27\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Maxima [A]
time = 3.37, size = 22, normalized size = 1.29 \begin {gather*} -\frac {2 \, x}{3 \, \sqrt {x^{2} + x + 1}} - \frac {4}{3 \, \sqrt {x^{2} + x + 1}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 28 vs. \(2 (13) = 26\).
time = 0.46, size = 28, normalized size = 1.65 \begin {gather*} -\frac {2 \, {\left (x^{2} + \sqrt {x^{2} + x + 1} {\left (x + 2\right )} + x + 1\right )}}{3 \, {\left (x^{2} + x + 1\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Giac [A]
time = 0.76, size = 13, normalized size = 0.76 \begin {gather*} -\frac {2 \, {\left (x + 2\right )}}{3 \, \sqrt {x^{2} + x + 1}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 0.02, size = 15, normalized size = 0.88 \begin {gather*} -\frac {2\,x+4}{3\,\sqrt {x^2+x+1}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x/(x + x^2 + 1)^(3/2),x)

[Out]

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

________________________________________________________________________________________