\(\int \frac {e^{-4 x^2} (e^{4 x^2} \log ^2(x)+e^{\frac {e^{-4 x^2} x}{\log (x)}} (31+5 x+(-31-5 x+248 x^2+40 x^3) \log (x)-5 e^{4 x^2} \log ^2(x)))}{\log ^2(x)} \, dx\) [7785]

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

Optimal result

Integrand size = 77, antiderivative size = 25 \[ \int \frac {e^{-4 x^2} \left (e^{4 x^2} \log ^2(x)+e^{\frac {e^{-4 x^2} x}{\log (x)}} \left (31+5 x+\left (-31-5 x+248 x^2+40 x^3\right ) \log (x)-5 e^{4 x^2} \log ^2(x)\right )\right )}{\log ^2(x)} \, dx=x+e^{\frac {e^{-4 x^2} x}{\log (x)}} (4-5 (7+x)) \]

[Out]

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

Rubi [F]

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

[In]

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

[Out]

x - 5*Defer[Int][E^(x/(E^(4*x^2)*Log[x])), x] + 31*Defer[Int][E^(-4*x^2 + x/(E^(4*x^2)*Log[x]))/Log[x]^2, x] +
 5*Defer[Int][(E^(-4*x^2 + x/(E^(4*x^2)*Log[x]))*x)/Log[x]^2, x] - 31*Defer[Int][E^(-4*x^2 + x/(E^(4*x^2)*Log[
x]))/Log[x], x] - 5*Defer[Int][(E^(-4*x^2 + x/(E^(4*x^2)*Log[x]))*x)/Log[x], x] + 248*Defer[Int][(E^(-4*x^2 +
x/(E^(4*x^2)*Log[x]))*x^2)/Log[x], x] + 40*Defer[Int][(E^(-4*x^2 + x/(E^(4*x^2)*Log[x]))*x^3)/Log[x], x]

Rubi steps \begin{align*} \text {integral}& = \int \left (1-5 e^{\frac {e^{-4 x^2} x}{\log (x)}}+\frac {e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}} (31+5 x) \left (1-\log (x)+8 x^2 \log (x)\right )}{\log ^2(x)}\right ) \, dx \\ & = x-5 \int e^{\frac {e^{-4 x^2} x}{\log (x)}} \, dx+\int \frac {e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}} (31+5 x) \left (1-\log (x)+8 x^2 \log (x)\right )}{\log ^2(x)} \, dx \\ & = x-5 \int e^{\frac {e^{-4 x^2} x}{\log (x)}} \, dx+\int \left (\frac {e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}} (31+5 x)}{\log ^2(x)}+\frac {e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}} \left (-31-5 x+248 x^2+40 x^3\right )}{\log (x)}\right ) \, dx \\ & = x-5 \int e^{\frac {e^{-4 x^2} x}{\log (x)}} \, dx+\int \frac {e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}} (31+5 x)}{\log ^2(x)} \, dx+\int \frac {e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}} \left (-31-5 x+248 x^2+40 x^3\right )}{\log (x)} \, dx \\ & = x-5 \int e^{\frac {e^{-4 x^2} x}{\log (x)}} \, dx+\int \left (\frac {31 e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}}}{\log ^2(x)}+\frac {5 e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}} x}{\log ^2(x)}\right ) \, dx+\int \left (-\frac {31 e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}}}{\log (x)}-\frac {5 e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}} x}{\log (x)}+\frac {248 e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}} x^2}{\log (x)}+\frac {40 e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}} x^3}{\log (x)}\right ) \, dx \\ & = x-5 \int e^{\frac {e^{-4 x^2} x}{\log (x)}} \, dx+5 \int \frac {e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}} x}{\log ^2(x)} \, dx-5 \int \frac {e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}} x}{\log (x)} \, dx+31 \int \frac {e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}}}{\log ^2(x)} \, dx-31 \int \frac {e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}}}{\log (x)} \, dx+40 \int \frac {e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}} x^3}{\log (x)} \, dx+248 \int \frac {e^{-4 x^2+\frac {e^{-4 x^2} x}{\log (x)}} x^2}{\log (x)} \, dx \\ \end{align*}

Mathematica [A] (verified)

Time = 5.10 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.92 \[ \int \frac {e^{-4 x^2} \left (e^{4 x^2} \log ^2(x)+e^{\frac {e^{-4 x^2} x}{\log (x)}} \left (31+5 x+\left (-31-5 x+248 x^2+40 x^3\right ) \log (x)-5 e^{4 x^2} \log ^2(x)\right )\right )}{\log ^2(x)} \, dx=e^{\frac {e^{-4 x^2} x}{\log (x)}} (-31-5 x)+x \]

[In]

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

[Out]

E^(x/(E^(4*x^2)*Log[x]))*(-31 - 5*x) + x

Maple [A] (verified)

Time = 0.53 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.88

method result size
risch \(x +{\mathrm e}^{\frac {x \,{\mathrm e}^{-4 x^{2}}}{\ln \left (x \right )}} \left (-31-5 x \right )\) \(22\)
parallelrisch \(-5 \,{\mathrm e}^{\frac {x \,{\mathrm e}^{-4 x^{2}}}{\ln \left (x \right )}} x -31 \,{\mathrm e}^{\frac {x \,{\mathrm e}^{-4 x^{2}}}{\ln \left (x \right )}}+x\) \(38\)

[In]

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

[Out]

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

Fricas [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.88 \[ \int \frac {e^{-4 x^2} \left (e^{4 x^2} \log ^2(x)+e^{\frac {e^{-4 x^2} x}{\log (x)}} \left (31+5 x+\left (-31-5 x+248 x^2+40 x^3\right ) \log (x)-5 e^{4 x^2} \log ^2(x)\right )\right )}{\log ^2(x)} \, dx=-{\left (5 \, x + 31\right )} e^{\left (\frac {x e^{\left (-4 \, x^{2}\right )}}{\log \left (x\right )}\right )} + x \]

[In]

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

[Out]

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

Sympy [A] (verification not implemented)

Time = 57.98 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.80 \[ \int \frac {e^{-4 x^2} \left (e^{4 x^2} \log ^2(x)+e^{\frac {e^{-4 x^2} x}{\log (x)}} \left (31+5 x+\left (-31-5 x+248 x^2+40 x^3\right ) \log (x)-5 e^{4 x^2} \log ^2(x)\right )\right )}{\log ^2(x)} \, dx=x + \left (- 5 x - 31\right ) e^{\frac {x e^{- 4 x^{2}}}{\log {\left (x \right )}}} \]

[In]

integrate(((-5*exp(4*x**2)*ln(x)**2+(40*x**3+248*x**2-5*x-31)*ln(x)+5*x+31)*exp(x/exp(4*x**2)/ln(x))+exp(4*x**
2)*ln(x)**2)/exp(4*x**2)/ln(x)**2,x)

[Out]

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

Maxima [F]

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

[In]

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

[Out]

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

Giac [F]

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

[In]

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

[Out]

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

Mupad [F(-1)]

Timed out. \[ \int \frac {e^{-4 x^2} \left (e^{4 x^2} \log ^2(x)+e^{\frac {e^{-4 x^2} x}{\log (x)}} \left (31+5 x+\left (-31-5 x+248 x^2+40 x^3\right ) \log (x)-5 e^{4 x^2} \log ^2(x)\right )\right )}{\log ^2(x)} \, dx=\int \frac {{\mathrm {e}}^{-4\,x^2}\,\left ({\mathrm {e}}^{4\,x^2}\,{\ln \left (x\right )}^2+{\mathrm {e}}^{\frac {x\,{\mathrm {e}}^{-4\,x^2}}{\ln \left (x\right )}}\,\left (-5\,{\mathrm {e}}^{4\,x^2}\,{\ln \left (x\right )}^2+\left (40\,x^3+248\,x^2-5\,x-31\right )\,\ln \left (x\right )+5\,x+31\right )\right )}{{\ln \left (x\right )}^2} \,d x \]

[In]

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

[Out]

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