\(\int \frac {e^{-e^{6-2 e^{2 x}} x^2-2 e^{3-e^{2 x}} x^2 \log (\log (4))-x^2 \log ^2(\log (4))} (-4+e^{6-2 e^{2 x}} (-8 x^2+16 e^{2 x} x^3)+e^{3-e^{2 x}} (-16 x^2+16 e^{2 x} x^3) \log (\log (4))-8 x^2 \log ^2(\log (4)))}{x^2} \, dx\) [9822]

   Optimal result
   Rubi [B] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [B] (verification not implemented)
   Maxima [B] (verification not implemented)
   Giac [F]
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 123, antiderivative size = 29 \[ \int \frac {e^{-e^{6-2 e^{2 x}} x^2-2 e^{3-e^{2 x}} x^2 \log (\log (4))-x^2 \log ^2(\log (4))} \left (-4+e^{6-2 e^{2 x}} \left (-8 x^2+16 e^{2 x} x^3\right )+e^{3-e^{2 x}} \left (-16 x^2+16 e^{2 x} x^3\right ) \log (\log (4))-8 x^2 \log ^2(\log (4))\right )}{x^2} \, dx=\frac {4 e^{-x^2 \left (e^{3-e^{2 x}}+\log (\log (4))\right )^2}}{x} \]

[Out]

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

Rubi [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(200\) vs. \(2(29)=58\).

Time = 0.97 (sec) , antiderivative size = 200, normalized size of antiderivative = 6.90, number of steps used = 1, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.008, Rules used = {2326} \[ \int \frac {e^{-e^{6-2 e^{2 x}} x^2-2 e^{3-e^{2 x}} x^2 \log (\log (4))-x^2 \log ^2(\log (4))} \left (-4+e^{6-2 e^{2 x}} \left (-8 x^2+16 e^{2 x} x^3\right )+e^{3-e^{2 x}} \left (-16 x^2+16 e^{2 x} x^3\right ) \log (\log (4))-8 x^2 \log ^2(\log (4))\right )}{x^2} \, dx=\frac {4 e^{-e^{6-2 e^{2 x}} x^2-x^2 \log ^2(\log (4))} \log ^{-2 e^{3-e^{2 x}} x^2}(4) \left (x^2 \log ^2(\log (4))+e^{6-2 e^{2 x}} \left (x^2-2 e^{2 x} x^3\right )+2 e^{3-e^{2 x}} \left (x^2-e^{2 x} x^3\right ) \log (\log (4))\right )}{x^2 \left (-2 e^{2 x-2 e^{2 x}+6} x^2-2 e^{2 x-e^{2 x}+3} x^2 \log (\log (4))+e^{6-2 e^{2 x}} x+x \log ^2(\log (4))+2 e^{3-e^{2 x}} x \log (\log (4))\right )} \]

[In]

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

[Out]

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

Rule 2326

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{align*} \text {integral}& = \frac {4 e^{-e^{6-2 e^{2 x}} x^2-x^2 \log ^2(\log (4))} \log ^{-2 e^{3-e^{2 x}} x^2}(4) \left (e^{6-2 e^{2 x}} \left (x^2-2 e^{2 x} x^3\right )+2 e^{3-e^{2 x}} \left (x^2-e^{2 x} x^3\right ) \log (\log (4))+x^2 \log ^2(\log (4))\right )}{x^2 \left (e^{6-2 e^{2 x}} x-2 e^{6-2 e^{2 x}+2 x} x^2+2 e^{3-e^{2 x}} x \log (\log (4))-2 e^{3-e^{2 x}+2 x} x^2 \log (\log (4))+x \log ^2(\log (4))\right )} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.23 (sec) , antiderivative size = 48, normalized size of antiderivative = 1.66 \[ \int \frac {e^{-e^{6-2 e^{2 x}} x^2-2 e^{3-e^{2 x}} x^2 \log (\log (4))-x^2 \log ^2(\log (4))} \left (-4+e^{6-2 e^{2 x}} \left (-8 x^2+16 e^{2 x} x^3\right )+e^{3-e^{2 x}} \left (-16 x^2+16 e^{2 x} x^3\right ) \log (\log (4))-8 x^2 \log ^2(\log (4))\right )}{x^2} \, dx=\frac {4 e^{-x^2 \left (e^{6-2 e^{2 x}}+\log ^2(\log (4))\right )} \log ^{-2 e^{3-e^{2 x}} x^2}(4)}{x} \]

[In]

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

[Out]

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

Maple [A] (verified)

Time = 3.50 (sec) , antiderivative size = 48, normalized size of antiderivative = 1.66

method result size
parallelrisch \(\frac {4 \,{\mathrm e}^{-x^{2} \left ({\mathrm e}^{3-{\mathrm e}^{2 x}} \ln \left (4 \ln \left (2\right )^{2}\right )+\ln \left (2 \ln \left (2\right )\right )^{2}+{\mathrm e}^{6-2 \,{\mathrm e}^{2 x}}\right )}}{x}\) \(48\)
risch \(\frac {4 \ln \left (2\right )^{-2 x^{2} {\mathrm e}^{3-{\mathrm e}^{2 x}}} 4^{-x^{2} {\mathrm e}^{3-{\mathrm e}^{2 x}}} \ln \left (2\right )^{-2 x^{2} \ln \left (2\right )} {\mathrm e}^{-x^{2} \left (\ln \left (2\right )^{2}+\ln \left (\ln \left (2\right )\right )^{2}+{\mathrm e}^{6-2 \,{\mathrm e}^{2 x}}\right )}}{x}\) \(79\)

[In]

int(((16*exp(x)^2*x^3-8*x^2)*exp(-exp(x)^2+3)^2+(16*exp(x)^2*x^3-16*x^2)*ln(2*ln(2))*exp(-exp(x)^2+3)-8*x^2*ln
(2*ln(2))^2-4)/x^2/exp(x^2*exp(-exp(x)^2+3)^2+2*x^2*ln(2*ln(2))*exp(-exp(x)^2+3)+x^2*ln(2*ln(2))^2),x,method=_
RETURNVERBOSE)

[Out]

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

Fricas [A] (verification not implemented)

none

Time = 0.25 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.79 \[ \int \frac {e^{-e^{6-2 e^{2 x}} x^2-2 e^{3-e^{2 x}} x^2 \log (\log (4))-x^2 \log ^2(\log (4))} \left (-4+e^{6-2 e^{2 x}} \left (-8 x^2+16 e^{2 x} x^3\right )+e^{3-e^{2 x}} \left (-16 x^2+16 e^{2 x} x^3\right ) \log (\log (4))-8 x^2 \log ^2(\log (4))\right )}{x^2} \, dx=\frac {4 \, e^{\left (-2 \, x^{2} e^{\left (-e^{\left (2 \, x\right )} + 3\right )} \log \left (2 \, \log \left (2\right )\right ) - x^{2} \log \left (2 \, \log \left (2\right )\right )^{2} - x^{2} e^{\left (-2 \, e^{\left (2 \, x\right )} + 6\right )}\right )}}{x} \]

[In]

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

[Out]

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

Sympy [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 51 vs. \(2 (24) = 48\).

Time = 0.34 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.76 \[ \int \frac {e^{-e^{6-2 e^{2 x}} x^2-2 e^{3-e^{2 x}} x^2 \log (\log (4))-x^2 \log ^2(\log (4))} \left (-4+e^{6-2 e^{2 x}} \left (-8 x^2+16 e^{2 x} x^3\right )+e^{3-e^{2 x}} \left (-16 x^2+16 e^{2 x} x^3\right ) \log (\log (4))-8 x^2 \log ^2(\log (4))\right )}{x^2} \, dx=\frac {4 e^{- 2 x^{2} e^{3 - e^{2 x}} \log {\left (2 \log {\left (2 \right )} \right )} - x^{2} e^{6 - 2 e^{2 x}} - x^{2} \log {\left (2 \log {\left (2 \right )} \right )}^{2}}}{x} \]

[In]

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

[Out]

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

Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 83 vs. \(2 (28) = 56\).

Time = 0.40 (sec) , antiderivative size = 83, normalized size of antiderivative = 2.86 \[ \int \frac {e^{-e^{6-2 e^{2 x}} x^2-2 e^{3-e^{2 x}} x^2 \log (\log (4))-x^2 \log ^2(\log (4))} \left (-4+e^{6-2 e^{2 x}} \left (-8 x^2+16 e^{2 x} x^3\right )+e^{3-e^{2 x}} \left (-16 x^2+16 e^{2 x} x^3\right ) \log (\log (4))-8 x^2 \log ^2(\log (4))\right )}{x^2} \, dx=\frac {4 \, e^{\left (-2 \, x^{2} e^{\left (-e^{\left (2 \, x\right )} + 3\right )} \log \left (2\right ) - x^{2} \log \left (2\right )^{2} - 2 \, x^{2} e^{\left (-e^{\left (2 \, x\right )} + 3\right )} \log \left (\log \left (2\right )\right ) - 2 \, x^{2} \log \left (2\right ) \log \left (\log \left (2\right )\right ) - x^{2} \log \left (\log \left (2\right )\right )^{2} - x^{2} e^{\left (-2 \, e^{\left (2 \, x\right )} + 6\right )}\right )}}{x} \]

[In]

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

[Out]

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

Giac [F]

\[ \int \frac {e^{-e^{6-2 e^{2 x}} x^2-2 e^{3-e^{2 x}} x^2 \log (\log (4))-x^2 \log ^2(\log (4))} \left (-4+e^{6-2 e^{2 x}} \left (-8 x^2+16 e^{2 x} x^3\right )+e^{3-e^{2 x}} \left (-16 x^2+16 e^{2 x} x^3\right ) \log (\log (4))-8 x^2 \log ^2(\log (4))\right )}{x^2} \, dx=\int { -\frac {4 \, {\left (2 \, x^{2} \log \left (2 \, \log \left (2\right )\right )^{2} - 4 \, {\left (x^{3} e^{\left (2 \, x\right )} - x^{2}\right )} e^{\left (-e^{\left (2 \, x\right )} + 3\right )} \log \left (2 \, \log \left (2\right )\right ) - 2 \, {\left (2 \, x^{3} e^{\left (2 \, x\right )} - x^{2}\right )} e^{\left (-2 \, e^{\left (2 \, x\right )} + 6\right )} + 1\right )} e^{\left (-2 \, x^{2} e^{\left (-e^{\left (2 \, x\right )} + 3\right )} \log \left (2 \, \log \left (2\right )\right ) - x^{2} \log \left (2 \, \log \left (2\right )\right )^{2} - x^{2} e^{\left (-2 \, e^{\left (2 \, x\right )} + 6\right )}\right )}}{x^{2}} \,d x } \]

[In]

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

[Out]

undef

Mupad [B] (verification not implemented)

Time = 0.48 (sec) , antiderivative size = 90, normalized size of antiderivative = 3.10 \[ \int \frac {e^{-e^{6-2 e^{2 x}} x^2-2 e^{3-e^{2 x}} x^2 \log (\log (4))-x^2 \log ^2(\log (4))} \left (-4+e^{6-2 e^{2 x}} \left (-8 x^2+16 e^{2 x} x^3\right )+e^{3-e^{2 x}} \left (-16 x^2+16 e^{2 x} x^3\right ) \log (\log (4))-8 x^2 \log ^2(\log (4))\right )}{x^2} \, dx=\frac {4\,{\mathrm {e}}^{-x^2\,{\mathrm {e}}^{-2\,{\mathrm {e}}^{2\,x}}\,{\mathrm {e}}^6}\,{\mathrm {e}}^{-x^2\,{\ln \left (2\right )}^2}\,{\mathrm {e}}^{-x^2\,{\ln \left (\ln \left (2\right )\right )}^2}}{2^{2\,x^2\,\ln \left (\ln \left (2\right )\right )}\,2^{2\,x^2\,{\mathrm {e}}^{-{\mathrm {e}}^{2\,x}}\,{\mathrm {e}}^3}\,x\,{\ln \left (2\right )}^{2\,x^2\,{\mathrm {e}}^{-{\mathrm {e}}^{2\,x}}\,{\mathrm {e}}^3}} \]

[In]

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

[Out]

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