3.102.53 \(\int (4-2 x+3 x^2+e (-2+4 x)) \, dx\) [10153]

Optimal. Leaf size=25 \[ e^4-e^{e^2}+(2 e+x) \left (4-x+x^2\right ) \]

[Out]

(x^2-x+4)*(2*exp(1)+x)-exp(exp(2))+exp(4)

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 24, normalized size of antiderivative = 0.96, number of steps used = 1, number of rules used = 0, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} x^3-x^2+4 x+\frac {1}{2} e (1-2 x)^2 \end {gather*}

Antiderivative was successfully verified.

[In]

Int[4 - 2*x + 3*x^2 + E*(-2 + 4*x),x]

[Out]

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

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{2} e (1-2 x)^2+4 x-x^2+x^3\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 22, normalized size = 0.88 \begin {gather*} 4 x-2 e x-x^2+2 e x^2+x^3 \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[4 - 2*x + 3*x^2 + E*(-2 + 4*x),x]

[Out]

4*x - 2*E*x - x^2 + 2*E*x^2 + x^3

________________________________________________________________________________________

Maple [A]
time = 0.01, size = 25, normalized size = 1.00

method result size
gosper \(x \left (2 x \,{\mathrm e}+x^{2}-2 \,{\mathrm e}-x +4\right )\) \(20\)
norman \(x^{3}+\left (2 \,{\mathrm e}-1\right ) x^{2}+\left (-2 \,{\mathrm e}+4\right ) x\) \(23\)
default \(2 x^{2} {\mathrm e}+x^{3}-2 x \,{\mathrm e}-x^{2}+4 x\) \(25\)
risch \(2 x^{2} {\mathrm e}+x^{3}-2 x \,{\mathrm e}-x^{2}+4 x\) \(25\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((4*x-2)*exp(1)+3*x^2-2*x+4,x,method=_RETURNVERBOSE)

[Out]

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

________________________________________________________________________________________

Maxima [A]
time = 0.25, size = 23, normalized size = 0.92 \begin {gather*} x^{3} - x^{2} + 2 \, {\left (x^{2} - x\right )} e + 4 \, x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x^3 - x^2 + 2*(x^2 - x)*e + 4*x

________________________________________________________________________________________

Fricas [A]
time = 0.44, size = 23, normalized size = 0.92 \begin {gather*} x^{3} - x^{2} + 2 \, {\left (x^{2} - x\right )} e + 4 \, x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x^3 - x^2 + 2*(x^2 - x)*e + 4*x

________________________________________________________________________________________

Sympy [A]
time = 0.01, size = 20, normalized size = 0.80 \begin {gather*} x^{3} + x^{2} \left (-1 + 2 e\right ) + x \left (4 - 2 e\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*x-2)*exp(1)+3*x**2-2*x+4,x)

[Out]

x**3 + x**2*(-1 + 2*E) + x*(4 - 2*E)

________________________________________________________________________________________

Giac [A]
time = 0.40, size = 23, normalized size = 0.92 \begin {gather*} x^{3} - x^{2} + 2 \, {\left (x^{2} - x\right )} e + 4 \, x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x^3 - x^2 + 2*(x^2 - x)*e + 4*x

________________________________________________________________________________________

Mupad [B]
time = 7.22, size = 23, normalized size = 0.92 \begin {gather*} x^3+\left (2\,\mathrm {e}-1\right )\,x^2+\left (4-2\,\mathrm {e}\right )\,x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(3*x^2 - 2*x + exp(1)*(4*x - 2) + 4,x)

[Out]

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

________________________________________________________________________________________