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

Optimal. Leaf size=26 \[ x+e^{\frac {2 e^2 (4-x) x}{3 (-4+x)}} x^2 \]

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.09, antiderivative size = 16, normalized size of antiderivative = 0.62, number of steps used = 10, number of rules used = 5, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.172, Rules used = {12, 1607, 2227, 2207, 2225} \begin {gather*} e^{-\frac {2 e^2 x}{3}} x^2+x \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

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 {gather*} \begin {aligned} \text {integral} &=\frac {1}{3} \int \left (3+e^{-\frac {2 e^2 x}{3}} \left (6 x-2 e^2 x^2\right )\right ) \, dx\\ &=x+\frac {1}{3} \int e^{-\frac {2 e^2 x}{3}} \left (6 x-2 e^2 x^2\right ) \, dx\\ &=x+\frac {1}{3} \int e^{-\frac {2 e^2 x}{3}} x \left (6-2 e^2 x\right ) \, dx\\ &=x+\frac {1}{3} \int \left (6 e^{-\frac {2 e^2 x}{3}} x-2 e^{2-\frac {2 e^2 x}{3}} x^2\right ) \, dx\\ &=x-\frac {2}{3} \int e^{2-\frac {2 e^2 x}{3}} x^2 \, dx+2 \int e^{-\frac {2 e^2 x}{3}} x \, dx\\ &=x-3 e^{-2-\frac {2 e^2 x}{3}} x+e^{-\frac {2 e^2 x}{3}} x^2-\frac {2 \int e^{2-\frac {2 e^2 x}{3}} x \, dx}{e^2}+\frac {3 \int e^{-\frac {2 e^2 x}{3}} \, dx}{e^2}\\ &=-\frac {9}{2} e^{-4-\frac {2 e^2 x}{3}}+x+e^{-\frac {2 e^2 x}{3}} x^2-\frac {3 \int e^{2-\frac {2 e^2 x}{3}} \, dx}{e^4}\\ &=x+e^{-\frac {2 e^2 x}{3}} x^2\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]
time = 0.15, size = 16, normalized size = 0.62 \begin {gather*} x+e^{-\frac {2 e^2 x}{3}} x^2 \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(86\) vs. \(2(24)=48\).
time = 0.04, size = 87, normalized size = 3.35

method result size
risch \(x +x^{2} {\mathrm e}^{-\frac {2 \,{\mathrm e}^{2} x}{3}}\) \(13\)
norman \(x +x^{2} {\mathrm e}^{-\frac {2 \,{\mathrm e}^{2} x}{3}}\) \(15\)
default \(x -18 \,{\mathrm e}^{-2} \left (-{\mathrm e}^{-2} \left (-\frac {{\mathrm e}^{2} x \,{\mathrm e}^{-\frac {2 \,{\mathrm e}^{2} x}{3}}}{6}-\frac {{\mathrm e}^{-\frac {2 \,{\mathrm e}^{2} x}{3}}}{4}\right )-{\mathrm e}^{-2} \left (\frac {{\mathrm e}^{4} x^{2} {\mathrm e}^{-\frac {2 \,{\mathrm e}^{2} x}{3}}}{18}+\frac {{\mathrm e}^{2} x \,{\mathrm e}^{-\frac {2 \,{\mathrm e}^{2} x}{3}}}{6}+\frac {{\mathrm e}^{-\frac {2 \,{\mathrm e}^{2} x}{3}}}{4}\right )\right )\) \(87\)
derivativedivides \(-{\mathrm e}^{-2} \left (-{\mathrm e}^{2} x -18 \,{\mathrm e}^{-2} \left (-\frac {{\mathrm e}^{2} x \,{\mathrm e}^{-\frac {2 \,{\mathrm e}^{2} x}{3}}}{6}-\frac {{\mathrm e}^{-\frac {2 \,{\mathrm e}^{2} x}{3}}}{4}\right )-18 \,{\mathrm e}^{-2} \left (\frac {{\mathrm e}^{4} x^{2} {\mathrm e}^{-\frac {2 \,{\mathrm e}^{2} x}{3}}}{18}+\frac {{\mathrm e}^{2} x \,{\mathrm e}^{-\frac {2 \,{\mathrm e}^{2} x}{3}}}{6}+\frac {{\mathrm e}^{-\frac {2 \,{\mathrm e}^{2} x}{3}}}{4}\right )\right )\) \(90\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 43 vs. \(2 (12) = 24\).
time = 0.25, size = 43, normalized size = 1.65 \begin {gather*} \frac {1}{2} \, {\left (2 \, x^{2} e^{4} + 6 \, x e^{2} + 9\right )} e^{\left (-\frac {2}{3} \, x e^{2} - 4\right )} - \frac {3}{2} \, {\left (2 \, x e^{2} + 3\right )} e^{\left (-\frac {2}{3} \, x e^{2} - 4\right )} + x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.38, size = 12, normalized size = 0.46 \begin {gather*} x^{2} e^{\left (-\frac {2}{3} \, x e^{2}\right )} + x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Sympy [A]
time = 0.04, size = 14, normalized size = 0.54 \begin {gather*} x^{2} e^{- \frac {2 x e^{2}}{3}} + x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 43 vs. \(2 (12) = 24\).
time = 0.40, size = 43, normalized size = 1.65 \begin {gather*} \frac {1}{2} \, {\left (2 \, x^{2} e^{4} + 6 \, x e^{2} + 9\right )} e^{\left (-\frac {2}{3} \, x e^{2} - 4\right )} - \frac {3}{2} \, {\left (2 \, x e^{2} + 3\right )} e^{\left (-\frac {2}{3} \, x e^{2} - 4\right )} + x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 0.06, size = 12, normalized size = 0.46 \begin {gather*} x+x^2\,{\mathrm {e}}^{-\frac {2\,x\,{\mathrm {e}}^2}{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________