3.66.62 \(\int \frac {9 x^2+4 x^3+e^x (-6 x-6 x^2-x^3)}{2 \log (9)} \, dx\)

Optimal. Leaf size=21 \[ \frac {x^2 (3+x) \left (-e^x+x\right )}{2 \log (9)} \]

________________________________________________________________________________________

Rubi [B]  time = 0.10, antiderivative size = 51, normalized size of antiderivative = 2.43, number of steps used = 14, number of rules used = 5, integrand size = 37, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.135, Rules used = {12, 1594, 2196, 2176, 2194} \begin {gather*} \frac {x^4}{2 \log (9)}-\frac {e^x x^3}{2 \log (9)}+\frac {3 x^3}{2 \log (9)}-\frac {3 e^x x^2}{2 \log (9)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(9*x^2 + 4*x^3 + E^x*(-6*x - 6*x^2 - x^3))/(2*Log[9]),x]

[Out]

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

Rule 12

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

Rule 1594

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

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 2196

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.04, size = 19, normalized size = 0.90 \begin {gather*} -\frac {\left (e^x-x\right ) x^2 (3+x)}{\log (81)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(9*x^2 + 4*x^3 + E^x*(-6*x - 6*x^2 - x^3))/(2*Log[9]),x]

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.99, size = 28, normalized size = 1.33 \begin {gather*} \frac {x^{4} + 3 \, x^{3} - {\left (x^{3} + 3 \, x^{2}\right )} e^{x}}{4 \, \log \relax (3)} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.22, size = 28, normalized size = 1.33 \begin {gather*} \frac {x^{4} + 3 \, x^{3} - {\left (x^{3} + 3 \, x^{2}\right )} e^{x}}{4 \, \log \relax (3)} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.06, size = 30, normalized size = 1.43




method result size



default \(\frac {-3 \,{\mathrm e}^{x} x^{2}-{\mathrm e}^{x} x^{3}+3 x^{3}+x^{4}}{4 \ln \relax (3)}\) \(30\)
risch \(\frac {x^{4}}{4 \ln \relax (3)}+\frac {3 x^{3}}{4 \ln \relax (3)}+\frac {\left (-x^{3}-3 x^{2}\right ) {\mathrm e}^{x}}{4 \ln \relax (3)}\) \(39\)
norman \(\frac {3 x^{3}}{4 \ln \relax (3)}+\frac {x^{4}}{4 \ln \relax (3)}-\frac {3 x^{2} {\mathrm e}^{x}}{4 \ln \relax (3)}-\frac {x^{3} {\mathrm e}^{x}}{4 \ln \relax (3)}\) \(42\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.37, size = 28, normalized size = 1.33 \begin {gather*} \frac {x^{4} + 3 \, x^{3} - {\left (x^{3} + 3 \, x^{2}\right )} e^{x}}{4 \, \log \relax (3)} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.05, size = 30, normalized size = 1.43 \begin {gather*} -\frac {3\,x^2\,{\mathrm {e}}^x+x^3\,{\mathrm {e}}^x-3\,x^3-x^4}{4\,\ln \relax (3)} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((9*x^2)/4 - (exp(x)*(6*x + 6*x^2 + x^3))/4 + x^3)/log(3),x)

[Out]

-(3*x^2*exp(x) + x^3*exp(x) - 3*x^3 - x^4)/(4*log(3))

________________________________________________________________________________________

sympy [B]  time = 0.12, size = 36, normalized size = 1.71 \begin {gather*} \frac {x^{4}}{4 \log {\relax (3 )}} + \frac {3 x^{3}}{4 \log {\relax (3 )}} + \frac {\left (- x^{3} - 3 x^{2}\right ) e^{x}}{4 \log {\relax (3 )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/4*((-x**3-6*x**2-6*x)*exp(x)+4*x**3+9*x**2)/ln(3),x)

[Out]

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

________________________________________________________________________________________