3.63.96 \(\int \frac {1}{8} e^{\frac {1}{2} (-2 x \log (3)-e^x (1-2 x^2 \log (3)))} (8+(10-8 x) \log (3)+e^x (5-4 x+(-20 x+6 x^2+8 x^3) \log (3))) \, dx\)

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

________________________________________________________________________________________

Rubi [B]  time = 0.24, antiderivative size = 92, normalized size of antiderivative = 2.88, number of steps used = 2, number of rules used = 2, integrand size = 66, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.030, Rules used = {12, 2288} \begin {gather*} \frac {3^{e^x x^2-x} e^{-\frac {e^x}{2}} \left (e^x \left (-2 \left (-4 x^3-3 x^2+10 x\right ) \log (3)-4 x+5\right )+2 (5-4 x) \log (3)\right )}{4 \left (-e^x \left (1-2 x^2 \log (3)\right )+4 e^x x \log (3)-\log (9)\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(E^((-2*x*Log[3] - E^x*(1 - 2*x^2*Log[3]))/2)*(8 + (10 - 8*x)*Log[3] + E^x*(5 - 4*x + (-20*x + 6*x^2 + 8*x
^3)*Log[3])))/8,x]

[Out]

(3^(-x + E^x*x^2)*(2*(5 - 4*x)*Log[3] + E^x*(5 - 4*x - 2*(10*x - 3*x^2 - 4*x^3)*Log[3])))/(4*E^(E^x/2)*(4*E^x*
x*Log[3] - E^x*(1 - 2*x^2*Log[3]) - 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 2288

Int[(y_.)*(F_)^(u_)*((v_) + (w_)), x_Symbol] :> With[{z = (v*y)/(Log[F]*D[u, x])}, Simp[F^u*z, x] /; EqQ[D[z,
x], w*y]] /; FreeQ[F, x]

Rubi steps

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

________________________________________________________________________________________

Mathematica [F]  time = 3.15, size = 69, normalized size = 2.16 \begin {gather*} \frac {1}{8} \int e^{\frac {1}{2} \left (-2 x \log (3)-e^x \left (1-2 x^2 \log (3)\right )\right )} \left (8+(10-8 x) \log (3)+e^x \left (5-4 x+\left (-20 x+6 x^2+8 x^3\right ) \log (3)\right )\right ) \, dx \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(E^((-2*x*Log[3] - E^x*(1 - 2*x^2*Log[3]))/2)*(8 + (10 - 8*x)*Log[3] + E^x*(5 - 4*x + (-20*x + 6*x^2
 + 8*x^3)*Log[3])))/8,x]

[Out]

Integrate[E^((-2*x*Log[3] - E^x*(1 - 2*x^2*Log[3]))/2)*(8 + (10 - 8*x)*Log[3] + E^x*(5 - 4*x + (-20*x + 6*x^2
+ 8*x^3)*Log[3])), x]/8

________________________________________________________________________________________

fricas [A]  time = 0.68, size = 27, normalized size = 0.84 \begin {gather*} \frac {1}{4} \, {\left (4 \, x - 5\right )} e^{\left (\frac {1}{2} \, {\left (2 \, x^{2} \log \relax (3) - 1\right )} e^{x} - x \log \relax (3)\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{8} \, {\left ({\left (2 \, {\left (4 \, x^{3} + 3 \, x^{2} - 10 \, x\right )} \log \relax (3) - 4 \, x + 5\right )} e^{x} - 2 \, {\left (4 \, x - 5\right )} \log \relax (3) + 8\right )} e^{\left (\frac {1}{2} \, {\left (2 \, x^{2} \log \relax (3) - 1\right )} e^{x} - x \log \relax (3)\right )}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integrate(1/8*((2*(4*x^3 + 3*x^2 - 10*x)*log(3) - 4*x + 5)*e^x - 2*(4*x - 5)*log(3) + 8)*e^(1/2*(2*x^2*log(3)
- 1)*e^x - x*log(3)), x)

________________________________________________________________________________________

maple [A]  time = 0.15, size = 26, normalized size = 0.81




method result size



norman \(\left (x -\frac {5}{4}\right ) {\mathrm e}^{-\frac {\left (-2 x^{2} \ln \relax (3)+1\right ) {\mathrm e}^{x}}{2}+x \ln \left (\frac {1}{3}\right )}\) \(26\)
risch \(\frac {\left (8 x -10\right ) 3^{-x} 3^{{\mathrm e}^{x} x^{2}} {\mathrm e}^{-\frac {{\mathrm e}^{x}}{2}}}{8}\) \(26\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.54, size = 26, normalized size = 0.81 \begin {gather*} \frac {1}{4} \, {\left (4 \, x - 5\right )} e^{\left (x^{2} e^{x} \log \relax (3) - x \log \relax (3) - \frac {1}{2} \, e^{x}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 4.13, size = 25, normalized size = 0.78 \begin {gather*} \frac {3^{x^2\,{\mathrm {e}}^x}\,{\mathrm {e}}^{-\frac {{\mathrm {e}}^x}{2}}\,\left (4\,x-5\right )}{4\,3^x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp((exp(x)*(2*x^2*log(3) - 1))/2 - x*log(3))*((exp(x)*(log(3)*(6*x^2 - 20*x + 8*x^3) - 4*x + 5))/8 - (log
(3)*(8*x - 10))/8 + 1),x)

[Out]

(3^(x^2*exp(x))*exp(-exp(x)/2)*(4*x - 5))/(4*3^x)

________________________________________________________________________________________

sympy [A]  time = 0.36, size = 27, normalized size = 0.84 \begin {gather*} \frac {\left (4 x - 5\right ) e^{- x \log {\relax (3 )} - \left (- x^{2} \log {\relax (3 )} + \frac {1}{2}\right ) e^{x}}}{4} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/8*(((8*x**3+6*x**2-20*x)*ln(3)-4*x+5)*exp(x)+(-8*x+10)*ln(3)+8)/exp(1/2*(-2*x**2*ln(3)+1)*exp(x)+x
*ln(3)),x)

[Out]

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

________________________________________________________________________________________