3.2.19 \(\int (a+8 x-8 x^2+4 x^3-x^4) \, dx\) [119]

Optimal. Leaf size=26 \[ a x+4 x^2-\frac {8 x^3}{3}+x^4-\frac {x^5}{5} \]

[Out]

a*x+4*x^2-8/3*x^3+x^4-1/5*x^5

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 0, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} a x-\frac {x^5}{5}+x^4-\frac {8 x^3}{3}+4 x^2 \end {gather*}

Antiderivative was successfully verified.

[In]

Int[a + 8*x - 8*x^2 + 4*x^3 - x^4,x]

[Out]

a*x + 4*x^2 - (8*x^3)/3 + x^4 - x^5/5

Rubi steps

\begin {align*} \int \left (a+8 x-8 x^2+4 x^3-x^4\right ) \, dx &=a x+4 x^2-\frac {8 x^3}{3}+x^4-\frac {x^5}{5}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 26, normalized size = 1.00 \begin {gather*} a x+4 x^2-\frac {8 x^3}{3}+x^4-\frac {x^5}{5} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[a + 8*x - 8*x^2 + 4*x^3 - x^4,x]

[Out]

a*x + 4*x^2 - (8*x^3)/3 + x^4 - x^5/5

________________________________________________________________________________________

Maple [A]
time = 0.01, size = 23, normalized size = 0.88

method result size
gosper \(a x +4 x^{2}-\frac {8}{3} x^{3}+x^{4}-\frac {1}{5} x^{5}\) \(23\)
default \(a x +4 x^{2}-\frac {8}{3} x^{3}+x^{4}-\frac {1}{5} x^{5}\) \(23\)
norman \(a x +4 x^{2}-\frac {8}{3} x^{3}+x^{4}-\frac {1}{5} x^{5}\) \(23\)
risch \(a x +4 x^{2}-\frac {8}{3} x^{3}+x^{4}-\frac {1}{5} x^{5}\) \(23\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-x^4+4*x^3-8*x^2+a+8*x,x,method=_RETURNVERBOSE)

[Out]

a*x+4*x^2-8/3*x^3+x^4-1/5*x^5

________________________________________________________________________________________

Maxima [A]
time = 0.29, size = 22, normalized size = 0.85 \begin {gather*} -\frac {1}{5} \, x^{5} + x^{4} - \frac {8}{3} \, x^{3} + a x + 4 \, x^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-x^4+4*x^3-8*x^2+a+8*x,x, algorithm="maxima")

[Out]

-1/5*x^5 + x^4 - 8/3*x^3 + a*x + 4*x^2

________________________________________________________________________________________

Fricas [A]
time = 0.37, size = 22, normalized size = 0.85 \begin {gather*} -\frac {1}{5} \, x^{5} + x^{4} - \frac {8}{3} \, x^{3} + a x + 4 \, x^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-x^4+4*x^3-8*x^2+a+8*x,x, algorithm="fricas")

[Out]

-1/5*x^5 + x^4 - 8/3*x^3 + a*x + 4*x^2

________________________________________________________________________________________

Sympy [A]
time = 0.01, size = 22, normalized size = 0.85 \begin {gather*} a x - \frac {x^{5}}{5} + x^{4} - \frac {8 x^{3}}{3} + 4 x^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-x**4+4*x**3-8*x**2+a+8*x,x)

[Out]

a*x - x**5/5 + x**4 - 8*x**3/3 + 4*x**2

________________________________________________________________________________________

Giac [A]
time = 4.93, size = 22, normalized size = 0.85 \begin {gather*} -\frac {1}{5} \, x^{5} + x^{4} - \frac {8}{3} \, x^{3} + a x + 4 \, x^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-x^4+4*x^3-8*x^2+a+8*x,x, algorithm="giac")

[Out]

-1/5*x^5 + x^4 - 8/3*x^3 + a*x + 4*x^2

________________________________________________________________________________________

Mupad [B]
time = 0.02, size = 22, normalized size = 0.85 \begin {gather*} -\frac {x^5}{5}+x^4-\frac {8\,x^3}{3}+4\,x^2+a\,x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(a + 8*x - 8*x^2 + 4*x^3 - x^4,x)

[Out]

a*x + 4*x^2 - (8*x^3)/3 + x^4 - x^5/5

________________________________________________________________________________________