3.100.6 \(\int e^{3-e-x} (1+e^{-3+e+x} (1-2 x)) \, dx\) [9906]

Optimal. Leaf size=19 \[ -e^{3-e-x}+x-x^2 \]

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.06, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {6820, 2225} \begin {gather*} -x^2+x-e^{-x-e+3} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

-E^(3 - E - x) + x - x^2

Rule 2225

Int[((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(n_.), x_Symbol] :> Simp[(F^(c*(a + b*x)))^n/(b*c*n*Log[F]), x] /; Fre
eQ[{F, a, b, c, n}, x]

Rule 6820

Int[u_, x_Symbol] :> With[{v = SimplifyIntegrand[u, x]}, Int[v, x] /; SimplerIntegrandQ[v, u, x]]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \left (1+e^{3-e-x}-2 x\right ) \, dx\\ &=x-x^2+\int e^{3-e-x} \, dx\\ &=-e^{3-e-x}+x-x^2\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]
time = 0.02, size = 19, normalized size = 1.00 \begin {gather*} -e^{3-e-x}+x-x^2 \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

-E^(3 - E - x) + x - x^2

________________________________________________________________________________________

Maple [A]
time = 0.03, size = 33, normalized size = 1.74

method result size
risch \(-x^{2}+x -{\mathrm e}^{3-{\mathrm e}-x}\) \(20\)
norman \(\left ({\mathrm e}^{x} x -{\mathrm e}^{x} x^{2}-{\mathrm e}^{-{\mathrm e}} {\mathrm e}^{3}\right ) {\mathrm e}^{-x}\) \(29\)
default \({\mathrm e}^{3-{\mathrm e}} \left (-{\mathrm e}^{-x}+{\mathrm e}^{{\mathrm e}} {\mathrm e}^{-3} x -x^{2} {\mathrm e}^{{\mathrm e}} {\mathrm e}^{-3}\right )\) \(33\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Maxima [A]
time = 0.26, size = 19, normalized size = 1.00 \begin {gather*} -x^{2} + x - e^{\left (-x - e + 3\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.36, size = 28, normalized size = 1.47 \begin {gather*} -{\left ({\left (x^{2} - x\right )} e^{\left (x + e - 3\right )} + 1\right )} e^{\left (-x - e + 3\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Sympy [A]
time = 0.05, size = 15, normalized size = 0.79 \begin {gather*} - x^{2} + x - \frac {e^{3} e^{- x}}{e^{e}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-x**2 + x - exp(3)*exp(-E)*exp(-x)

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 39 vs. \(2 (19) = 38\).
time = 0.43, size = 39, normalized size = 2.05 \begin {gather*} -{\left (x + e - 3\right )}^{2} + 2 \, {\left (x + e - 3\right )} e - 5 \, x - 5 \, e - e^{\left (-x - e + 3\right )} + 15 \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-(x + e - 3)^2 + 2*(x + e - 3)*e - 5*x - 5*e - e^(-x - e + 3) + 15

________________________________________________________________________________________

Mupad [B]
time = 0.08, size = 20, normalized size = 1.05 \begin {gather*} x-x^2-{\mathrm {e}}^{-\mathrm {e}}\,{\mathrm {e}}^{-x}\,{\mathrm {e}}^3 \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-exp(-x)*exp(3 - exp(1))*(exp(exp(1) - 3)*exp(x)*(2*x - 1) - 1),x)

[Out]

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

________________________________________________________________________________________