\(\int \frac {1}{2} e^{70+\frac {20-x}{2}} (4 x-x^2) \, dx\) [7595]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [B] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 26, antiderivative size = 13 \[ \int \frac {1}{2} e^{70+\frac {20-x}{2}} \left (4 x-x^2\right ) \, dx=e^{80-\frac {x}{2}} x^2 \]

[Out]

exp(-1/4*x+5)^2*x^2*exp(36)^2/exp(1)^2

Rubi [A] (verified)

Time = 0.05 (sec) , antiderivative size = 13, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.192, Rules used = {12, 1607, 2227, 2207, 2225} \[ \int \frac {1}{2} e^{70+\frac {20-x}{2}} \left (4 x-x^2\right ) \, dx=e^{80-\frac {x}{2}} x^2 \]

[In]

Int[(E^(70 + (20 - x)/2)*(4*x - x^2))/2,x]

[Out]

E^(80 - x/2)*x^2

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 1607

Int[(u_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.))^(n_.), x_Symbol] :> Int[u*x^(n*p)*(a + b*x^(q - p))^n, x] /; F
reeQ[{a, b, p, q}, x] && IntegerQ[n] && PosQ[q - p]

Rule 2207

Int[((b_.)*(F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[(c + d*x)^m*
((b*F^(g*(e + f*x)))^n/(f*g*n*Log[F])), x] - Dist[d*(m/(f*g*n*Log[F])), Int[(c + d*x)^(m - 1)*(b*F^(g*(e + f*x
)))^n, x], x] /; FreeQ[{F, b, c, d, e, f, g, n}, x] && GtQ[m, 0] && IntegerQ[2*m] &&  !TrueQ[$UseGamma]

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 2227

Int[(F_)^((c_.)*(v_))*(u_), x_Symbol] :> Int[ExpandIntegrand[F^(c*ExpandToSum[v, x]), u, x], x] /; FreeQ[{F, c
}, x] && PolynomialQ[u, x] && LinearQ[v, x] &&  !TrueQ[$UseGamma]

Rubi steps \begin{align*} \text {integral}& = \frac {1}{2} \int e^{70+\frac {20-x}{2}} \left (4 x-x^2\right ) \, dx \\ & = \frac {1}{2} \int e^{70+\frac {20-x}{2}} (4-x) x \, dx \\ & = \frac {1}{2} \int \left (4 e^{80-\frac {x}{2}} x-e^{80-\frac {x}{2}} x^2\right ) \, dx \\ & = -\left (\frac {1}{2} \int e^{80-\frac {x}{2}} x^2 \, dx\right )+2 \int e^{80-\frac {x}{2}} x \, dx \\ & = -4 e^{80-\frac {x}{2}} x+e^{80-\frac {x}{2}} x^2-2 \int e^{80-\frac {x}{2}} x \, dx+4 \int e^{80-\frac {x}{2}} \, dx \\ & = -8 e^{80-\frac {x}{2}}+e^{80-\frac {x}{2}} x^2-4 \int e^{80-\frac {x}{2}} \, dx \\ & = e^{80-\frac {x}{2}} x^2 \\ \end{align*}

Mathematica [A] (verified)

Time = 0.09 (sec) , antiderivative size = 13, normalized size of antiderivative = 1.00 \[ \int \frac {1}{2} e^{70+\frac {20-x}{2}} \left (4 x-x^2\right ) \, dx=e^{80-\frac {x}{2}} x^2 \]

[In]

Integrate[(E^(70 + (20 - x)/2)*(4*x - x^2))/2,x]

[Out]

E^(80 - x/2)*x^2

Maple [A] (verified)

Time = 0.11 (sec) , antiderivative size = 11, normalized size of antiderivative = 0.85

method result size
risch \(x^{2} {\mathrm e}^{80-\frac {x}{2}}\) \(11\)
gosper \({\mathrm e}^{-\frac {x}{2}+10} x^{2} {\mathrm e}^{72} {\mathrm e}^{-2}\) \(21\)
norman \({\mathrm e}^{-\frac {x}{2}+10} x^{2} {\mathrm e}^{72} {\mathrm e}^{-2}\) \(21\)
parallelrisch \({\mathrm e}^{-\frac {x}{2}+10} x^{2} {\mathrm e}^{72} {\mathrm e}^{-2}\) \(21\)
derivativedivides \(-2 \,{\mathrm e}^{72} {\mathrm e}^{-2} \left (-200 \,{\mathrm e}^{-\frac {x}{2}+10}+80 \,{\mathrm e}^{-\frac {x}{2}+10} \left (-\frac {x}{4}+5\right )-8 \,{\mathrm e}^{-\frac {x}{2}+10} \left (-\frac {x}{4}+5\right )^{2}\right )\) \(54\)
default \(\frac {{\mathrm e}^{72} {\mathrm e}^{-2} \left (800 \,{\mathrm e}^{-\frac {x}{2}+10}-320 \,{\mathrm e}^{-\frac {x}{2}+10} \left (-\frac {x}{4}+5\right )+32 \,{\mathrm e}^{-\frac {x}{2}+10} \left (-\frac {x}{4}+5\right )^{2}\right )}{2}\) \(54\)
meijerg \(-4 \,{\mathrm e}^{50-\frac {x}{2}+\frac {x \,{\mathrm e}^{10}}{2}} \left (2-\frac {\left (\frac {3 x^{2} {\mathrm e}^{20}}{4}+3 x \,{\mathrm e}^{10}+6\right ) {\mathrm e}^{-\frac {x \,{\mathrm e}^{10}}{2}}}{3}\right )+8 \,{\mathrm e}^{60-\frac {x}{2}+\frac {x \,{\mathrm e}^{10}}{2}} \left (1-\frac {\left (x \,{\mathrm e}^{10}+2\right ) {\mathrm e}^{-\frac {x \,{\mathrm e}^{10}}{2}}}{2}\right )\) \(68\)

[In]

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

[Out]

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

Fricas [A] (verification not implemented)

none

Time = 0.29 (sec) , antiderivative size = 10, normalized size of antiderivative = 0.77 \[ \int \frac {1}{2} e^{70+\frac {20-x}{2}} \left (4 x-x^2\right ) \, dx=x^{2} e^{\left (-\frac {1}{2} \, x + 80\right )} \]

[In]

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

[Out]

x^2*e^(-1/2*x + 80)

Sympy [A] (verification not implemented)

Time = 0.05 (sec) , antiderivative size = 12, normalized size of antiderivative = 0.92 \[ \int \frac {1}{2} e^{70+\frac {20-x}{2}} \left (4 x-x^2\right ) \, dx=x^{2} e^{70} e^{10 - \frac {x}{2}} \]

[In]

integrate(1/2*(-x**2+4*x)*exp(36)**2*exp(-1/4*x+5)**2/exp(1)**2,x)

[Out]

x**2*exp(70)*exp(10 - x/2)

Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 37 vs. \(2 (10) = 20\).

Time = 0.19 (sec) , antiderivative size = 37, normalized size of antiderivative = 2.85 \[ \int \frac {1}{2} e^{70+\frac {20-x}{2}} \left (4 x-x^2\right ) \, dx={\left (x^{2} e^{80} + 4 \, x e^{80} + 8 \, e^{80}\right )} e^{\left (-\frac {1}{2} \, x\right )} - 4 \, {\left (x e^{80} + 2 \, e^{80}\right )} e^{\left (-\frac {1}{2} \, x\right )} \]

[In]

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

[Out]

(x^2*e^80 + 4*x*e^80 + 8*e^80)*e^(-1/2*x) - 4*(x*e^80 + 2*e^80)*e^(-1/2*x)

Giac [A] (verification not implemented)

none

Time = 0.28 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.31 \[ \int \frac {1}{2} e^{70+\frac {20-x}{2}} \left (4 x-x^2\right ) \, dx={\left ({\left (x - 160\right )}^{2} + 320 \, x - 25600\right )} e^{\left (-\frac {1}{2} \, x + 80\right )} \]

[In]

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

[Out]

((x - 160)^2 + 320*x - 25600)*e^(-1/2*x + 80)

Mupad [B] (verification not implemented)

Time = 0.05 (sec) , antiderivative size = 10, normalized size of antiderivative = 0.77 \[ \int \frac {1}{2} e^{70+\frac {20-x}{2}} \left (4 x-x^2\right ) \, dx=x^2\,{\mathrm {e}}^{-\frac {x}{2}}\,{\mathrm {e}}^{80} \]

[In]

int((exp(70)*exp(10 - x/2)*(4*x - x^2))/2,x)

[Out]

x^2*exp(-x/2)*exp(80)