\(\int \frac {e^{-x^2} (e^{e^{e^{-x^2} x}} (e^{x^2} (-15+12 x+3 x^2)+e^{e^{-x^2} x} (-15 x+12 x^2+33 x^3-24 x^4-6 x^5))+(\frac {-5+4 x+x^2}{x})^{5 x/3} (e^{x^2} (25+5 x^2)+e^{x^2} (-25+20 x+5 x^2) \log (\frac {-5+4 x+x^2}{x})))}{-15+12 x+3 x^2} \, dx\) [1097]

   Optimal result
   Rubi [F]
   Mathematica [A] (verified)
   Maple [C] (warning: unable to verify)
   Fricas [A] (verification not implemented)
   Sympy [F(-1)]
   Maxima [A] (verification not implemented)
   Giac [F]
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 150, antiderivative size = 30 \[ \int \frac {e^{-x^2} \left (e^{e^{e^{-x^2} x}} \left (e^{x^2} \left (-15+12 x+3 x^2\right )+e^{e^{-x^2} x} \left (-15 x+12 x^2+33 x^3-24 x^4-6 x^5\right )\right )+\left (\frac {-5+4 x+x^2}{x}\right )^{5 x/3} \left (e^{x^2} \left (25+5 x^2\right )+e^{x^2} \left (-25+20 x+5 x^2\right ) \log \left (\frac {-5+4 x+x^2}{x}\right )\right )\right )}{-15+12 x+3 x^2} \, dx=e^{e^{e^{-x^2} x}} x+\left (4-\frac {5}{x}+x\right )^{5 x/3} \]

[Out]

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

Rubi [F]

\[ \int \frac {e^{-x^2} \left (e^{e^{e^{-x^2} x}} \left (e^{x^2} \left (-15+12 x+3 x^2\right )+e^{e^{-x^2} x} \left (-15 x+12 x^2+33 x^3-24 x^4-6 x^5\right )\right )+\left (\frac {-5+4 x+x^2}{x}\right )^{5 x/3} \left (e^{x^2} \left (25+5 x^2\right )+e^{x^2} \left (-25+20 x+5 x^2\right ) \log \left (\frac {-5+4 x+x^2}{x}\right )\right )\right )}{-15+12 x+3 x^2} \, dx=\int \frac {e^{-x^2} \left (e^{e^{e^{-x^2} x}} \left (e^{x^2} \left (-15+12 x+3 x^2\right )+e^{e^{-x^2} x} \left (-15 x+12 x^2+33 x^3-24 x^4-6 x^5\right )\right )+\left (\frac {-5+4 x+x^2}{x}\right )^{5 x/3} \left (e^{x^2} \left (25+5 x^2\right )+e^{x^2} \left (-25+20 x+5 x^2\right ) \log \left (\frac {-5+4 x+x^2}{x}\right )\right )\right )}{-15+12 x+3 x^2} \, dx \]

[In]

Int[(E^E^(x/E^x^2)*(E^x^2*(-15 + 12*x + 3*x^2) + E^(x/E^x^2)*(-15*x + 12*x^2 + 33*x^3 - 24*x^4 - 6*x^5)) + ((-
5 + 4*x + x^2)/x)^((5*x)/3)*(E^x^2*(25 + 5*x^2) + E^x^2*(-25 + 20*x + 5*x^2)*Log[(-5 + 4*x + x^2)/x]))/(E^x^2*
(-15 + 12*x + 3*x^2)),x]

[Out]

(4 - 5/x + x)^((5*x)/3) + Defer[Int][E^E^(x/E^x^2), x] + Defer[Int][E^(E^(x/E^x^2) + x/E^x^2 - x^2)*x, x] - 2*
Defer[Int][E^(E^(x/E^x^2) + x/E^x^2 - x^2)*x^3, x] + (5*Defer[Int][(4 - 5/x + x)^((5*x)/3), x])/3 + (5*Defer[I
nt][(4 - 5/x + x)^((5*x)/3)/(-1 + x), x])/3 - (25*Defer[Int][(4 - 5/x + x)^((5*x)/3)/(5 + x), x])/3 - (25*Defe
r[Int][(4 - 5/x + x)^(-1 + (5*x)/3)/x, x])/3 - (5*Defer[Int][x*(4 - 5/x + x)^(-1 + (5*x)/3), x])/3

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

Mathematica [A] (verified)

Time = 1.11 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.00 \[ \int \frac {e^{-x^2} \left (e^{e^{e^{-x^2} x}} \left (e^{x^2} \left (-15+12 x+3 x^2\right )+e^{e^{-x^2} x} \left (-15 x+12 x^2+33 x^3-24 x^4-6 x^5\right )\right )+\left (\frac {-5+4 x+x^2}{x}\right )^{5 x/3} \left (e^{x^2} \left (25+5 x^2\right )+e^{x^2} \left (-25+20 x+5 x^2\right ) \log \left (\frac {-5+4 x+x^2}{x}\right )\right )\right )}{-15+12 x+3 x^2} \, dx=e^{e^{e^{-x^2} x}} x+\left (4-\frac {5}{x}+x\right )^{5 x/3} \]

[In]

Integrate[(E^E^(x/E^x^2)*(E^x^2*(-15 + 12*x + 3*x^2) + E^(x/E^x^2)*(-15*x + 12*x^2 + 33*x^3 - 24*x^4 - 6*x^5))
 + ((-5 + 4*x + x^2)/x)^((5*x)/3)*(E^x^2*(25 + 5*x^2) + E^x^2*(-25 + 20*x + 5*x^2)*Log[(-5 + 4*x + x^2)/x]))/(
E^x^2*(-15 + 12*x + 3*x^2)),x]

[Out]

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

Maple [C] (warning: unable to verify)

Result contains higher order function than in optimal. Order 9 vs. order 3.

Time = 0.05 (sec) , antiderivative size = 108, normalized size of antiderivative = 3.60

\[x \,{\mathrm e}^{{\mathrm e}^{x \,{\mathrm e}^{-x^{2}}}}+x^{-\frac {5 x}{3}} \left (x^{2}+4 x -5\right )^{\frac {5 x}{3}} {\mathrm e}^{-\frac {5 i \pi \,\operatorname {csgn}\left (\frac {i \left (x^{2}+4 x -5\right )}{x}\right ) x \left (-\operatorname {csgn}\left (\frac {i \left (x^{2}+4 x -5\right )}{x}\right )+\operatorname {csgn}\left (i \left (x^{2}+4 x -5\right )\right )\right ) \left (-\operatorname {csgn}\left (\frac {i \left (x^{2}+4 x -5\right )}{x}\right )+\operatorname {csgn}\left (\frac {i}{x}\right )\right )}{6}}\]

[In]

int((((-6*x^5-24*x^4+33*x^3+12*x^2-15*x)*exp(x/exp(x^2))+(3*x^2+12*x-15)*exp(x^2))*exp(exp(x/exp(x^2)))+((5*x^
2+20*x-25)*exp(x^2)*ln((x^2+4*x-5)/x)+(5*x^2+25)*exp(x^2))*exp(5/3*x*ln((x^2+4*x-5)/x)))/(3*x^2+12*x-15)/exp(x
^2),x)

[Out]

x*exp(exp(x*exp(-x^2)))+x^(-5/3*x)*(x^2+4*x-5)^(5/3*x)*exp(-5/6*I*Pi*csgn(I/x*(x^2+4*x-5))*x*(-csgn(I/x*(x^2+4
*x-5))+csgn(I*(x^2+4*x-5)))*(-csgn(I/x*(x^2+4*x-5))+csgn(I/x)))

Fricas [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 29, normalized size of antiderivative = 0.97 \[ \int \frac {e^{-x^2} \left (e^{e^{e^{-x^2} x}} \left (e^{x^2} \left (-15+12 x+3 x^2\right )+e^{e^{-x^2} x} \left (-15 x+12 x^2+33 x^3-24 x^4-6 x^5\right )\right )+\left (\frac {-5+4 x+x^2}{x}\right )^{5 x/3} \left (e^{x^2} \left (25+5 x^2\right )+e^{x^2} \left (-25+20 x+5 x^2\right ) \log \left (\frac {-5+4 x+x^2}{x}\right )\right )\right )}{-15+12 x+3 x^2} \, dx=x e^{\left (e^{\left (x e^{\left (-x^{2}\right )}\right )}\right )} + \left (\frac {x^{2} + 4 \, x - 5}{x}\right )^{\frac {5}{3} \, x} \]

[In]

integrate((((-6*x^5-24*x^4+33*x^3+12*x^2-15*x)*exp(x/exp(x^2))+(3*x^2+12*x-15)*exp(x^2))*exp(exp(x/exp(x^2)))+
((5*x^2+20*x-25)*exp(x^2)*log((x^2+4*x-5)/x)+(5*x^2+25)*exp(x^2))*exp(5/3*x*log((x^2+4*x-5)/x)))/(3*x^2+12*x-1
5)/exp(x^2),x, algorithm="fricas")

[Out]

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

Sympy [F(-1)]

Timed out. \[ \int \frac {e^{-x^2} \left (e^{e^{e^{-x^2} x}} \left (e^{x^2} \left (-15+12 x+3 x^2\right )+e^{e^{-x^2} x} \left (-15 x+12 x^2+33 x^3-24 x^4-6 x^5\right )\right )+\left (\frac {-5+4 x+x^2}{x}\right )^{5 x/3} \left (e^{x^2} \left (25+5 x^2\right )+e^{x^2} \left (-25+20 x+5 x^2\right ) \log \left (\frac {-5+4 x+x^2}{x}\right )\right )\right )}{-15+12 x+3 x^2} \, dx=\text {Timed out} \]

[In]

integrate((((-6*x**5-24*x**4+33*x**3+12*x**2-15*x)*exp(x/exp(x**2))+(3*x**2+12*x-15)*exp(x**2))*exp(exp(x/exp(
x**2)))+((5*x**2+20*x-25)*exp(x**2)*ln((x**2+4*x-5)/x)+(5*x**2+25)*exp(x**2))*exp(5/3*x*ln((x**2+4*x-5)/x)))/(
3*x**2+12*x-15)/exp(x**2),x)

[Out]

Timed out

Maxima [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 43, normalized size of antiderivative = 1.43 \[ \int \frac {e^{-x^2} \left (e^{e^{e^{-x^2} x}} \left (e^{x^2} \left (-15+12 x+3 x^2\right )+e^{e^{-x^2} x} \left (-15 x+12 x^2+33 x^3-24 x^4-6 x^5\right )\right )+\left (\frac {-5+4 x+x^2}{x}\right )^{5 x/3} \left (e^{x^2} \left (25+5 x^2\right )+e^{x^2} \left (-25+20 x+5 x^2\right ) \log \left (\frac {-5+4 x+x^2}{x}\right )\right )\right )}{-15+12 x+3 x^2} \, dx=\frac {x e^{\left (\frac {5}{3} \, x \log \left (x\right ) + e^{\left (x e^{\left (-x^{2}\right )}\right )}\right )} + e^{\left (\frac {5}{3} \, x \log \left (x + 5\right ) + \frac {5}{3} \, x \log \left (x - 1\right )\right )}}{x^{\frac {5}{3} \, x}} \]

[In]

integrate((((-6*x^5-24*x^4+33*x^3+12*x^2-15*x)*exp(x/exp(x^2))+(3*x^2+12*x-15)*exp(x^2))*exp(exp(x/exp(x^2)))+
((5*x^2+20*x-25)*exp(x^2)*log((x^2+4*x-5)/x)+(5*x^2+25)*exp(x^2))*exp(5/3*x*log((x^2+4*x-5)/x)))/(3*x^2+12*x-1
5)/exp(x^2),x, algorithm="maxima")

[Out]

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

Giac [F]

\[ \int \frac {e^{-x^2} \left (e^{e^{e^{-x^2} x}} \left (e^{x^2} \left (-15+12 x+3 x^2\right )+e^{e^{-x^2} x} \left (-15 x+12 x^2+33 x^3-24 x^4-6 x^5\right )\right )+\left (\frac {-5+4 x+x^2}{x}\right )^{5 x/3} \left (e^{x^2} \left (25+5 x^2\right )+e^{x^2} \left (-25+20 x+5 x^2\right ) \log \left (\frac {-5+4 x+x^2}{x}\right )\right )\right )}{-15+12 x+3 x^2} \, dx=\int { \frac {{\left (5 \, {\left ({\left (x^{2} + 4 \, x - 5\right )} e^{\left (x^{2}\right )} \log \left (\frac {x^{2} + 4 \, x - 5}{x}\right ) + {\left (x^{2} + 5\right )} e^{\left (x^{2}\right )}\right )} \left (\frac {x^{2} + 4 \, x - 5}{x}\right )^{\frac {5}{3} \, x} + 3 \, {\left ({\left (x^{2} + 4 \, x - 5\right )} e^{\left (x^{2}\right )} - {\left (2 \, x^{5} + 8 \, x^{4} - 11 \, x^{3} - 4 \, x^{2} + 5 \, x\right )} e^{\left (x e^{\left (-x^{2}\right )}\right )}\right )} e^{\left (e^{\left (x e^{\left (-x^{2}\right )}\right )}\right )}\right )} e^{\left (-x^{2}\right )}}{3 \, {\left (x^{2} + 4 \, x - 5\right )}} \,d x } \]

[In]

integrate((((-6*x^5-24*x^4+33*x^3+12*x^2-15*x)*exp(x/exp(x^2))+(3*x^2+12*x-15)*exp(x^2))*exp(exp(x/exp(x^2)))+
((5*x^2+20*x-25)*exp(x^2)*log((x^2+4*x-5)/x)+(5*x^2+25)*exp(x^2))*exp(5/3*x*log((x^2+4*x-5)/x)))/(3*x^2+12*x-1
5)/exp(x^2),x, algorithm="giac")

[Out]

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

Mupad [B] (verification not implemented)

Time = 9.71 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.83 \[ \int \frac {e^{-x^2} \left (e^{e^{e^{-x^2} x}} \left (e^{x^2} \left (-15+12 x+3 x^2\right )+e^{e^{-x^2} x} \left (-15 x+12 x^2+33 x^3-24 x^4-6 x^5\right )\right )+\left (\frac {-5+4 x+x^2}{x}\right )^{5 x/3} \left (e^{x^2} \left (25+5 x^2\right )+e^{x^2} \left (-25+20 x+5 x^2\right ) \log \left (\frac {-5+4 x+x^2}{x}\right )\right )\right )}{-15+12 x+3 x^2} \, dx=x\,{\mathrm {e}}^{{\mathrm {e}}^{x\,{\mathrm {e}}^{-x^2}}}+{\left (x-\frac {5}{x}+4\right )}^{\frac {5\,x}{3}} \]

[In]

int((exp(-x^2)*(exp(exp(x*exp(-x^2)))*(exp(x^2)*(12*x + 3*x^2 - 15) - exp(x*exp(-x^2))*(15*x - 12*x^2 - 33*x^3
 + 24*x^4 + 6*x^5)) + exp((5*x*log((4*x + x^2 - 5)/x))/3)*(exp(x^2)*(5*x^2 + 25) + exp(x^2)*log((4*x + x^2 - 5
)/x)*(20*x + 5*x^2 - 25))))/(12*x + 3*x^2 - 15),x)

[Out]

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