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

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

Optimal result

Integrand size = 15, antiderivative size = 20 \[ \int \frac {1}{2} \left (-1+e^x (-3-3 x)\right ) \, dx=\frac {1}{2} \left (5-e^7-x-3 e^x x\right ) \]

[Out]

-3/2*exp(x)*x+5/2-1/2*exp(7)-1/2*x

Rubi [A] (verified)

Time = 0.01 (sec) , antiderivative size = 23, normalized size of antiderivative = 1.15, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {12, 2207, 2225} \[ \int \frac {1}{2} \left (-1+e^x (-3-3 x)\right ) \, dx=-\frac {x}{2}+\frac {3 e^x}{2}-\frac {3}{2} e^x (x+1) \]

[In]

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

[Out]

(3*E^x)/2 - x/2 - (3*E^x*(1 + 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 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]

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

Mathematica [A] (verified)

Time = 0.00 (sec) , antiderivative size = 14, normalized size of antiderivative = 0.70 \[ \int \frac {1}{2} \left (-1+e^x (-3-3 x)\right ) \, dx=\frac {1}{2} \left (-x-3 e^x x\right ) \]

[In]

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

[Out]

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

Maple [A] (verified)

Time = 0.02 (sec) , antiderivative size = 10, normalized size of antiderivative = 0.50

method result size
default \(-\frac {x}{2}-\frac {3 \,{\mathrm e}^{x} x}{2}\) \(10\)
norman \(-\frac {x}{2}-\frac {3 \,{\mathrm e}^{x} x}{2}\) \(10\)
risch \(-\frac {x}{2}-\frac {3 \,{\mathrm e}^{x} x}{2}\) \(10\)
parallelrisch \(-\frac {x}{2}-\frac {3 \,{\mathrm e}^{x} x}{2}\) \(10\)
parts \(-\frac {x}{2}-\frac {3 \,{\mathrm e}^{x} x}{2}\) \(10\)

[In]

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

[Out]

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

Fricas [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 9, normalized size of antiderivative = 0.45 \[ \int \frac {1}{2} \left (-1+e^x (-3-3 x)\right ) \, dx=-\frac {3}{2} \, x e^{x} - \frac {1}{2} \, x \]

[In]

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

[Out]

-3/2*x*e^x - 1/2*x

Sympy [A] (verification not implemented)

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

[In]

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

[Out]

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

Maxima [A] (verification not implemented)

none

Time = 0.19 (sec) , antiderivative size = 15, normalized size of antiderivative = 0.75 \[ \int \frac {1}{2} \left (-1+e^x (-3-3 x)\right ) \, dx=-\frac {3}{2} \, {\left (x - 1\right )} e^{x} - \frac {1}{2} \, x - \frac {3}{2} \, e^{x} \]

[In]

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

[Out]

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

Giac [A] (verification not implemented)

none

Time = 0.26 (sec) , antiderivative size = 9, normalized size of antiderivative = 0.45 \[ \int \frac {1}{2} \left (-1+e^x (-3-3 x)\right ) \, dx=-\frac {3}{2} \, x e^{x} - \frac {1}{2} \, x \]

[In]

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

[Out]

-3/2*x*e^x - 1/2*x

Mupad [B] (verification not implemented)

Time = 13.39 (sec) , antiderivative size = 9, normalized size of antiderivative = 0.45 \[ \int \frac {1}{2} \left (-1+e^x (-3-3 x)\right ) \, dx=-\frac {x\,\left (3\,{\mathrm {e}}^x+1\right )}{2} \]

[In]

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

[Out]

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