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

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

Optimal result

Integrand size = 88, antiderivative size = 33 \[ \int \frac {e^{2 e^{\frac {4+2 x-x^2}{x}}+2 x^2+2 x \log (3)} \left (4 x^3+e^{\frac {4+2 x-x^2}{x}} \left (-8-2 x^2\right )+2 x^2 \log (3)\right )+x^2 \log ^2(\log (5))}{x^2 \log ^2(\log (5))} \, dx=5+x+\frac {e^{2 e^{2+\frac {4}{x}-x}+2 x (x+\log (3))}}{\log ^2(\log (5))} \]

[Out]

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

Rubi [A] (verified)

Time = 0.44 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.33, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.034, Rules used = {12, 14, 2326} \[ \int \frac {e^{2 e^{\frac {4+2 x-x^2}{x}}+2 x^2+2 x \log (3)} \left (4 x^3+e^{\frac {4+2 x-x^2}{x}} \left (-8-2 x^2\right )+2 x^2 \log (3)\right )+x^2 \log ^2(\log (5))}{x^2 \log ^2(\log (5))} \, dx=\frac {2\ 9^x \log (3) \exp \left (-((1-2 x) x)+x+2 e^{-x+\frac {4}{x}+2}\right )}{\log (9) \log ^2(\log (5))}+x \]

[In]

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

[Out]

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

Rule 12

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

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

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 {\int \frac {e^{2 e^{\frac {4+2 x-x^2}{x}}+2 x^2+2 x \log (3)} \left (4 x^3+e^{\frac {4+2 x-x^2}{x}} \left (-8-2 x^2\right )+2 x^2 \log (3)\right )+x^2 \log ^2(\log (5))}{x^2} \, dx}{\log ^2(\log (5))} \\ & = \frac {\int \left (\frac {2\ 9^x e^{2 e^{2+\frac {4}{x}-x}+x (-1+2 x)} \left (-4 e^{2+\frac {4}{x}}-e^{2+\frac {4}{x}} x^2+2 e^x x^3+e^x x^2 \log (3)\right )}{x^2}+\log ^2(\log (5))\right ) \, dx}{\log ^2(\log (5))} \\ & = x+\frac {2 \int \frac {9^x e^{2 e^{2+\frac {4}{x}-x}+x (-1+2 x)} \left (-4 e^{2+\frac {4}{x}}-e^{2+\frac {4}{x}} x^2+2 e^x x^3+e^x x^2 \log (3)\right )}{x^2} \, dx}{\log ^2(\log (5))} \\ & = x+\frac {2\ 9^x e^{2 e^{2+\frac {4}{x}-x}+x-(1-2 x) x} \log (3)}{\log (9) \log ^2(\log (5))} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.99 (sec) , antiderivative size = 43, normalized size of antiderivative = 1.30 \[ \int \frac {e^{2 e^{\frac {4+2 x-x^2}{x}}+2 x^2+2 x \log (3)} \left (4 x^3+e^{\frac {4+2 x-x^2}{x}} \left (-8-2 x^2\right )+2 x^2 \log (3)\right )+x^2 \log ^2(\log (5))}{x^2 \log ^2(\log (5))} \, dx=x+\frac {2\ 9^x e^{2 e^{2+\frac {4}{x}-x}+x+x (-1+2 x)} \log (3)}{\log (9) \log ^2(\log (5))} \]

[In]

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

[Out]

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

Maple [A] (verified)

Time = 0.92 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.12

method result size
risch \(x +\frac {3^{2 x} {\mathrm e}^{2 \,{\mathrm e}^{-\frac {x^{2}-2 x -4}{x}}+2 x^{2}}}{\ln \left (\ln \left (5\right )\right )^{2}}\) \(37\)
parallelrisch \(\frac {x \ln \left (\ln \left (5\right )\right )^{2}+{\mathrm e}^{2 \,{\mathrm e}^{-\frac {x^{2}-2 x -4}{x}}+2 x \ln \left (3\right )+2 x^{2}}}{\ln \left (\ln \left (5\right )\right )^{2}}\) \(40\)
norman \(\frac {\ln \left (\ln \left (5\right )\right ) x^{2}+\frac {x \,{\mathrm e}^{2 \,{\mathrm e}^{\frac {-x^{2}+2 x +4}{x}}+2 x \ln \left (3\right )+2 x^{2}}}{\ln \left (\ln \left (5\right )\right )}}{x \ln \left (\ln \left (5\right )\right )}\) \(51\)

[In]

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

[Out]

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

Fricas [A] (verification not implemented)

none

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

[In]

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

[Out]

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

Sympy [A] (verification not implemented)

Time = 0.19 (sec) , antiderivative size = 34, normalized size of antiderivative = 1.03 \[ \int \frac {e^{2 e^{\frac {4+2 x-x^2}{x}}+2 x^2+2 x \log (3)} \left (4 x^3+e^{\frac {4+2 x-x^2}{x}} \left (-8-2 x^2\right )+2 x^2 \log (3)\right )+x^2 \log ^2(\log (5))}{x^2 \log ^2(\log (5))} \, dx=x + \frac {e^{2 x^{2} + 2 x \log {\left (3 \right )} + 2 e^{\frac {- x^{2} + 2 x + 4}{x}}}}{\log {\left (\log {\left (5 \right )} \right )}^{2}} \]

[In]

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

[Out]

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

Maxima [A] (verification not implemented)

none

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

[In]

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

[Out]

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

Giac [F]

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

[In]

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

[Out]

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

Mupad [B] (verification not implemented)

Time = 12.50 (sec) , antiderivative size = 34, normalized size of antiderivative = 1.03 \[ \int \frac {e^{2 e^{\frac {4+2 x-x^2}{x}}+2 x^2+2 x \log (3)} \left (4 x^3+e^{\frac {4+2 x-x^2}{x}} \left (-8-2 x^2\right )+2 x^2 \log (3)\right )+x^2 \log ^2(\log (5))}{x^2 \log ^2(\log (5))} \, dx=x+\frac {3^{2\,x}\,{\mathrm {e}}^{2\,{\mathrm {e}}^{-x}\,{\mathrm {e}}^2\,{\mathrm {e}}^{4/x}}\,{\mathrm {e}}^{2\,x^2}}{{\ln \left (\ln \left (5\right )\right )}^2} \]

[In]

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

[Out]

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