3.4.8 \(\int \frac {1}{16} (48+32 e^{2 x}+48 x+x^3+e^x (-192-8 x-4 x^2)+16 \log (4)) \, dx\)

Optimal. Leaf size=25 \[ -3+3 x+\left (6-e^x+\frac {x^2}{8}\right )^2+x \log (4) \]

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 41, normalized size of antiderivative = 1.64, number of steps used = 11, number of rules used = 4, integrand size = 37, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.108, Rules used = {12, 2194, 2196, 2176} \begin {gather*} \frac {x^4}{64}-\frac {e^x x^2}{4}+\frac {3 x^2}{2}-12 e^x+e^{2 x}+x (3+\log (4)) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(48 + 32*E^(2*x) + 48*x + x^3 + E^x*(-192 - 8*x - 4*x^2) + 16*Log[4])/16,x]

[Out]

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

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, 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 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 {1}{16} \int \left (48+32 e^{2 x}+48 x+x^3+e^x \left (-192-8 x-4 x^2\right )+16 \log (4)\right ) \, dx\\ &=\frac {3 x^2}{2}+\frac {x^4}{64}+x (3+\log (4))+\frac {1}{16} \int e^x \left (-192-8 x-4 x^2\right ) \, dx+2 \int e^{2 x} \, dx\\ &=e^{2 x}+\frac {3 x^2}{2}+\frac {x^4}{64}+x (3+\log (4))+\frac {1}{16} \int \left (-192 e^x-8 e^x x-4 e^x x^2\right ) \, dx\\ &=e^{2 x}+\frac {3 x^2}{2}+\frac {x^4}{64}+x (3+\log (4))-\frac {1}{4} \int e^x x^2 \, dx-\frac {1}{2} \int e^x x \, dx-12 \int e^x \, dx\\ &=-12 e^x+e^{2 x}-\frac {e^x x}{2}+\frac {3 x^2}{2}-\frac {e^x x^2}{4}+\frac {x^4}{64}+x (3+\log (4))+\frac {\int e^x \, dx}{2}+\frac {1}{2} \int e^x x \, dx\\ &=-\frac {23 e^x}{2}+e^{2 x}+\frac {3 x^2}{2}-\frac {e^x x^2}{4}+\frac {x^4}{64}+x (3+\log (4))-\frac {\int e^x \, dx}{2}\\ &=-12 e^x+e^{2 x}+\frac {3 x^2}{2}-\frac {e^x x^2}{4}+\frac {x^4}{64}+x (3+\log (4))\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 39, normalized size = 1.56 \begin {gather*} e^{2 x}+3 x+\frac {3 x^2}{2}+\frac {x^4}{64}-\frac {1}{4} e^x \left (48+x^2\right )+x \log (4) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(48 + 32*E^(2*x) + 48*x + x^3 + E^x*(-192 - 8*x - 4*x^2) + 16*Log[4])/16,x]

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.64, size = 32, normalized size = 1.28 \begin {gather*} \frac {1}{64} \, x^{4} + \frac {3}{2} \, x^{2} - \frac {1}{4} \, {\left (x^{2} + 48\right )} e^{x} + 2 \, x \log \relax (2) + 3 \, x + e^{\left (2 \, x\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.26, size = 32, normalized size = 1.28 \begin {gather*} \frac {1}{64} \, x^{4} + \frac {3}{2} \, x^{2} - \frac {1}{4} \, {\left (x^{2} + 48\right )} e^{x} + 2 \, x \log \relax (2) + 3 \, x + e^{\left (2 \, x\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.04, size = 35, normalized size = 1.40




method result size



default \(3 x +\frac {3 x^{2}}{2}+\frac {x^{4}}{64}+{\mathrm e}^{2 x}-\frac {{\mathrm e}^{x} x^{2}}{4}-12 \,{\mathrm e}^{x}+2 x \ln \relax (2)\) \(35\)
norman \({\mathrm e}^{2 x}+x \left (2 \ln \relax (2)+3\right )+\frac {3 x^{2}}{2}+\frac {x^{4}}{64}-\frac {{\mathrm e}^{x} x^{2}}{4}-12 \,{\mathrm e}^{x}\) \(35\)
risch \(3 x +\frac {3 x^{2}}{2}+\frac {x^{4}}{64}+{\mathrm e}^{2 x}-\frac {{\mathrm e}^{x} x^{2}}{4}-12 \,{\mathrm e}^{x}+2 x \ln \relax (2)\) \(35\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(2*exp(x)^2+1/16*(-4*x^2-8*x-192)*exp(x)+2*ln(2)+1/16*x^3+3*x+3,x,method=_RETURNVERBOSE)

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.62, size = 32, normalized size = 1.28 \begin {gather*} \frac {1}{64} \, x^{4} + \frac {3}{2} \, x^{2} - \frac {1}{4} \, {\left (x^{2} + 48\right )} e^{x} + 2 \, x \log \relax (2) + 3 \, x + e^{\left (2 \, x\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.35, size = 34, normalized size = 1.36 \begin {gather*} {\mathrm {e}}^{2\,x}-12\,{\mathrm {e}}^x+x\,\left (2\,\ln \relax (2)+3\right )-\frac {x^2\,{\mathrm {e}}^x}{4}+\frac {3\,x^2}{2}+\frac {x^4}{64} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(3*x + 2*exp(2*x) + 2*log(2) - (exp(x)*(8*x + 4*x^2 + 192))/16 + x^3/16 + 3,x)

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(2*exp(x)**2+1/16*(-4*x**2-8*x-192)*exp(x)+2*ln(2)+1/16*x**3+3*x+3,x)

[Out]

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

________________________________________________________________________________________