3.49.42 \(\int (e^x (-3-3 x)+3 x+6 e^3 x+6 x \log (x)) \, dx\)

Optimal. Leaf size=18 \[ 3 x \left (-e^x+e^3 x+x \log (x)\right ) \]

________________________________________________________________________________________

Rubi [B]  time = 0.02, antiderivative size = 42, normalized size of antiderivative = 2.33, number of steps used = 5, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {6, 2176, 2194, 2304} \begin {gather*} \frac {3}{2} \left (1+2 e^3\right ) x^2-\frac {3 x^2}{2}+3 x^2 \log (x)+3 e^x-3 e^x (x+1) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[E^x*(-3 - 3*x) + 3*x + 6*E^3*x + 6*x*Log[x],x]

[Out]

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

Rule 6

Int[(u_.)*((w_.) + (a_.)*(v_) + (b_.)*(v_))^(p_.), x_Symbol] :> Int[u*((a + b)*v + w)^p, x] /; FreeQ[{a, b}, x
] &&  !FreeQ[v, x]

Rule 2176

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] &&  !$UseGamma === True

Rule 2194

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 2304

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*Log[c*x^
n]))/(d*(m + 1)), x] - Simp[(b*n*(d*x)^(m + 1))/(d*(m + 1)^2), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1
]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 22, normalized size = 1.22 \begin {gather*} -3 e^x x+3 e^3 x^2+3 x^2 \log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[E^x*(-3 - 3*x) + 3*x + 6*E^3*x + 6*x*Log[x],x]

[Out]

-3*E^x*x + 3*E^3*x^2 + 3*x^2*Log[x]

________________________________________________________________________________________

fricas [A]  time = 0.70, size = 20, normalized size = 1.11 \begin {gather*} 3 \, x^{2} e^{3} + 3 \, x^{2} \log \relax (x) - 3 \, x e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(6*x*log(x)+(-3*x-3)*exp(x)+6*x*exp(3)+3*x,x, algorithm="fricas")

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.14, size = 20, normalized size = 1.11 \begin {gather*} 3 \, x^{2} e^{3} + 3 \, x^{2} \log \relax (x) - 3 \, x e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(6*x*log(x)+(-3*x-3)*exp(x)+6*x*exp(3)+3*x,x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.04, size = 21, normalized size = 1.17




method result size



default \(-3 \,{\mathrm e}^{x} x +3 x^{2} {\mathrm e}^{3}+3 x^{2} \ln \relax (x )\) \(21\)
norman \(-3 \,{\mathrm e}^{x} x +3 x^{2} {\mathrm e}^{3}+3 x^{2} \ln \relax (x )\) \(21\)
risch \(-3 \,{\mathrm e}^{x} x +3 x^{2} {\mathrm e}^{3}+3 x^{2} \ln \relax (x )\) \(21\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(6*x*ln(x)+(-3*x-3)*exp(x)+6*x*exp(3)+3*x,x,method=_RETURNVERBOSE)

[Out]

-3*exp(x)*x+3*x^2*exp(3)+3*x^2*ln(x)

________________________________________________________________________________________

maxima [A]  time = 0.36, size = 20, normalized size = 1.11 \begin {gather*} 3 \, x^{2} e^{3} + 3 \, x^{2} \log \relax (x) - 3 \, x e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(6*x*log(x)+(-3*x-3)*exp(x)+6*x*exp(3)+3*x,x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 3.39, size = 16, normalized size = 0.89 \begin {gather*} 3\,x\,\left (x\,{\mathrm {e}}^3-{\mathrm {e}}^x+x\,\ln \relax (x)\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(3*x + 6*x*exp(3) - exp(x)*(3*x + 3) + 6*x*log(x),x)

[Out]

3*x*(x*exp(3) - exp(x) + x*log(x))

________________________________________________________________________________________

sympy [A]  time = 0.29, size = 22, normalized size = 1.22 \begin {gather*} 3 x^{2} \log {\relax (x )} + 3 x^{2} e^{3} - 3 x e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(6*x*ln(x)+(-3*x-3)*exp(x)+6*x*exp(3)+3*x,x)

[Out]

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

________________________________________________________________________________________