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

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

Optimal result

Integrand size = 147, antiderivative size = 26 \[ \int \frac {e^{\frac {4+8 x+4 x^2}{x^2+e^{x^2} \left (2 x-2 x^2\right )+e^{2 x^2} \left (1-2 x+x^2\right )}} \left (8+8 x+e^{x^2} \left (-16+16 x^2-16 x^3-16 x^4\right )\right )}{-x^3+e^{2 x^2} \left (-3 x+6 x^2-3 x^3\right )+e^{3 x^2} \left (-1+3 x-3 x^2+x^3\right )+e^{x^2} \left (-3 x^2+3 x^3\right )} \, dx=-16+e^{\frac {4 (1+x)^2}{\left (e^{x^2} (-1+x)-x\right )^2}} \] Output:

exp(2*(1+x)*(2+2*x)/(exp(x^2)*(-1+x)-x)^2)-16
                                                                                    
                                                                                    
 

Mathematica [A] (verified)

Time = 0.93 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.88 \[ \int \frac {e^{\frac {4+8 x+4 x^2}{x^2+e^{x^2} \left (2 x-2 x^2\right )+e^{2 x^2} \left (1-2 x+x^2\right )}} \left (8+8 x+e^{x^2} \left (-16+16 x^2-16 x^3-16 x^4\right )\right )}{-x^3+e^{2 x^2} \left (-3 x+6 x^2-3 x^3\right )+e^{3 x^2} \left (-1+3 x-3 x^2+x^3\right )+e^{x^2} \left (-3 x^2+3 x^3\right )} \, dx=e^{\frac {4 (1+x)^2}{\left (-e^{x^2} (-1+x)+x\right )^2}} \] Input:

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

Output:

E^((4*(1 + x)^2)/(-(E^x^2*(-1 + x)) + x)^2)
 

Rubi [F]

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {\left (e^{x^2} \left (-16 x^4-16 x^3+16 x^2-16\right )+8 x+8\right ) \exp \left (\frac {4 x^2+8 x+4}{x^2+e^{x^2} \left (2 x-2 x^2\right )+e^{2 x^2} \left (x^2-2 x+1\right )}\right )}{-x^3+e^{2 x^2} \left (-3 x^3+6 x^2-3 x\right )+e^{3 x^2} \left (x^3-3 x^2+3 x-1\right )+e^{x^2} \left (3 x^3-3 x^2\right )} \, dx\)

\(\Big \downarrow \) 7239

\(\displaystyle \int \frac {8 e^{\frac {4 (x+1)^2}{\left (x-e^{x^2} (x-1)\right )^2}} (x+1) \left (1-2 e^{x^2} \left (x^3-x+1\right )\right )}{\left (e^{x^2} (x-1)-x\right )^3}dx\)

\(\Big \downarrow \) 27

\(\displaystyle 8 \int -\frac {e^{\frac {4 (x+1)^2}{\left (e^{x^2} (1-x)+x\right )^2}} (x+1) \left (1-2 e^{x^2} \left (x^3-x+1\right )\right )}{\left (e^{x^2} (1-x)+x\right )^3}dx\)

\(\Big \downarrow \) 25

\(\displaystyle -8 \int \frac {e^{\frac {4 (x+1)^2}{\left (e^{x^2} (1-x)+x\right )^2}} (x+1) \left (1-2 e^{x^2} \left (x^3-x+1\right )\right )}{\left (e^{x^2} (1-x)+x\right )^3}dx\)

\(\Big \downarrow \) 7293

\(\displaystyle -8 \int \left (\frac {e^{\frac {4 (x+1)^2}{\left (e^{x^2} (1-x)+x\right )^2}} \left (2 x^3-2 x^2+1\right ) (x+1)^2}{(x-1) \left (e^{x^2} x-x-e^{x^2}\right )^3}+\frac {2 e^{\frac {4 (x+1)^2}{\left (e^{x^2} (1-x)+x\right )^2}} \left (x^4+x^3-x^2+1\right )}{(x-1) \left (e^{x^2} x-x-e^{x^2}\right )^2}\right )dx\)

\(\Big \downarrow \) 2009

\(\displaystyle -8 \left (3 \int \frac {e^{\frac {4 (x+1)^2}{\left (e^{x^2} (1-x)+x\right )^2}}}{\left (e^{x^2} x-x-e^{x^2}\right )^3}dx+4 \int \frac {e^{\frac {4 (x+1)^2}{\left (e^{x^2} (1-x)+x\right )^2}}}{(x-1) \left (e^{x^2} x-x-e^{x^2}\right )^3}dx+\int \frac {e^{\frac {4 (x+1)^2}{\left (e^{x^2} (1-x)+x\right )^2}} x}{\left (e^{x^2} x-x-e^{x^2}\right )^3}dx+2 \int \frac {e^{\frac {4 (x+1)^2}{\left (e^{x^2} (1-x)+x\right )^2}} x^2}{\left (e^{x^2} x-x-e^{x^2}\right )^3}dx+2 \int \frac {e^{\frac {4 (x+1)^2}{\left (e^{x^2} (1-x)+x\right )^2}}}{\left (e^{x^2} x-x-e^{x^2}\right )^2}dx+4 \int \frac {e^{\frac {4 (x+1)^2}{\left (e^{x^2} (1-x)+x\right )^2}}}{(x-1) \left (e^{x^2} x-x-e^{x^2}\right )^2}dx+2 \int \frac {e^{\frac {4 (x+1)^2}{\left (e^{x^2} (1-x)+x\right )^2}} x}{\left (e^{x^2} x-x-e^{x^2}\right )^2}dx+4 \int \frac {e^{\frac {4 (x+1)^2}{\left (e^{x^2} (1-x)+x\right )^2}} x^2}{\left (e^{x^2} x-x-e^{x^2}\right )^2}dx+2 \int \frac {e^{\frac {4 (x+1)^2}{\left (e^{x^2} (1-x)+x\right )^2}} x^4}{\left (e^{x^2} x-x-e^{x^2}\right )^3}dx+4 \int \frac {e^{\frac {4 (x+1)^2}{\left (e^{x^2} (1-x)+x\right )^2}} x^3}{\left (e^{x^2} x-x-e^{x^2}\right )^3}dx+2 \int \frac {e^{\frac {4 (x+1)^2}{\left (e^{x^2} (1-x)+x\right )^2}} x^3}{\left (e^{x^2} x-x-e^{x^2}\right )^2}dx\right )\)

Input:

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

Output:

$Aborted
 
Maple [B] (verified)

Leaf count of result is larger than twice the leaf count of optimal. \(55\) vs. \(2(27)=54\).

Time = 2.45 (sec) , antiderivative size = 56, normalized size of antiderivative = 2.15

method result size
risch \({\mathrm e}^{\frac {4 \left (1+x \right )^{2}}{-2 x^{2} {\mathrm e}^{x^{2}}+x^{2} {\mathrm e}^{2 x^{2}}+2 \,{\mathrm e}^{x^{2}} x -2 x \,{\mathrm e}^{2 x^{2}}+x^{2}+{\mathrm e}^{2 x^{2}}}}\) \(56\)
parallelrisch \({\mathrm e}^{\frac {4 x^{2}+8 x +4}{-2 x^{2} {\mathrm e}^{x^{2}}+x^{2} {\mathrm e}^{2 x^{2}}+2 \,{\mathrm e}^{x^{2}} x -2 x \,{\mathrm e}^{2 x^{2}}+x^{2}+{\mathrm e}^{2 x^{2}}}}\) \(59\)

Input:

int(((-16*x^4-16*x^3+16*x^2-16)*exp(x^2)+8*x+8)*exp((4*x^2+8*x+4)/((x^2-2* 
x+1)*exp(x^2)^2+(-2*x^2+2*x)*exp(x^2)+x^2))/((x^3-3*x^2+3*x-1)*exp(x^2)^3+ 
(-3*x^3+6*x^2-3*x)*exp(x^2)^2+(3*x^3-3*x^2)*exp(x^2)-x^3),x,method=_RETURN 
VERBOSE)
 

Output:

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

Fricas [A] (verification not implemented)

Time = 0.09 (sec) , antiderivative size = 45, normalized size of antiderivative = 1.73 \[ \int \frac {e^{\frac {4+8 x+4 x^2}{x^2+e^{x^2} \left (2 x-2 x^2\right )+e^{2 x^2} \left (1-2 x+x^2\right )}} \left (8+8 x+e^{x^2} \left (-16+16 x^2-16 x^3-16 x^4\right )\right )}{-x^3+e^{2 x^2} \left (-3 x+6 x^2-3 x^3\right )+e^{3 x^2} \left (-1+3 x-3 x^2+x^3\right )+e^{x^2} \left (-3 x^2+3 x^3\right )} \, dx=e^{\left (\frac {4 \, {\left (x^{2} + 2 \, x + 1\right )}}{x^{2} + {\left (x^{2} - 2 \, x + 1\right )} e^{\left (2 \, x^{2}\right )} - 2 \, {\left (x^{2} - x\right )} e^{\left (x^{2}\right )}}\right )} \] Input:

integrate(((-16*x^4-16*x^3+16*x^2-16)*exp(x^2)+8*x+8)*exp((4*x^2+8*x+4)/(( 
x^2-2*x+1)*exp(x^2)^2+(-2*x^2+2*x)*exp(x^2)+x^2))/((x^3-3*x^2+3*x-1)*exp(x 
^2)^3+(-3*x^3+6*x^2-3*x)*exp(x^2)^2+(3*x^3-3*x^2)*exp(x^2)-x^3),x, algorit 
hm="fricas")
 

Output:

e^(4*(x^2 + 2*x + 1)/(x^2 + (x^2 - 2*x + 1)*e^(2*x^2) - 2*(x^2 - x)*e^(x^2 
)))
 

Sympy [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 42 vs. \(2 (20) = 40\).

Time = 0.47 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.62 \[ \int \frac {e^{\frac {4+8 x+4 x^2}{x^2+e^{x^2} \left (2 x-2 x^2\right )+e^{2 x^2} \left (1-2 x+x^2\right )}} \left (8+8 x+e^{x^2} \left (-16+16 x^2-16 x^3-16 x^4\right )\right )}{-x^3+e^{2 x^2} \left (-3 x+6 x^2-3 x^3\right )+e^{3 x^2} \left (-1+3 x-3 x^2+x^3\right )+e^{x^2} \left (-3 x^2+3 x^3\right )} \, dx=e^{\frac {4 x^{2} + 8 x + 4}{x^{2} + \left (- 2 x^{2} + 2 x\right ) e^{x^{2}} + \left (x^{2} - 2 x + 1\right ) e^{2 x^{2}}}} \] Input:

integrate(((-16*x**4-16*x**3+16*x**2-16)*exp(x**2)+8*x+8)*exp((4*x**2+8*x+ 
4)/((x**2-2*x+1)*exp(x**2)**2+(-2*x**2+2*x)*exp(x**2)+x**2))/((x**3-3*x**2 
+3*x-1)*exp(x**2)**3+(-3*x**3+6*x**2-3*x)*exp(x**2)**2+(3*x**3-3*x**2)*exp 
(x**2)-x**3),x)
 

Output:

exp((4*x**2 + 8*x + 4)/(x**2 + (-2*x**2 + 2*x)*exp(x**2) + (x**2 - 2*x + 1 
)*exp(2*x**2)))
 

Maxima [B] (verification not implemented)

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

Time = 0.45 (sec) , antiderivative size = 267, normalized size of antiderivative = 10.27 \[ \int \frac {e^{\frac {4+8 x+4 x^2}{x^2+e^{x^2} \left (2 x-2 x^2\right )+e^{2 x^2} \left (1-2 x+x^2\right )}} \left (8+8 x+e^{x^2} \left (-16+16 x^2-16 x^3-16 x^4\right )\right )}{-x^3+e^{2 x^2} \left (-3 x+6 x^2-3 x^3\right )+e^{3 x^2} \left (-1+3 x-3 x^2+x^3\right )+e^{x^2} \left (-3 x^2+3 x^3\right )} \, dx=e^{\left (\frac {4 \, e^{\left (2 \, x^{2}\right )}}{x^{2} + {\left (x^{2} - 2 \, x + 1\right )} e^{\left (4 \, x^{2}\right )} - 2 \, {\left (2 \, x^{2} - 3 \, x + 1\right )} e^{\left (3 \, x^{2}\right )} + {\left (6 \, x^{2} - 6 \, x + 1\right )} e^{\left (2 \, x^{2}\right )} - 2 \, {\left (2 \, x^{2} - x\right )} e^{\left (x^{2}\right )}} - \frac {8 \, e^{\left (x^{2}\right )}}{x^{2} - {\left (x^{2} - 2 \, x + 1\right )} e^{\left (3 \, x^{2}\right )} + {\left (3 \, x^{2} - 4 \, x + 1\right )} e^{\left (2 \, x^{2}\right )} - {\left (3 \, x^{2} - 2 \, x\right )} e^{\left (x^{2}\right )}} + \frac {8 \, e^{\left (x^{2}\right )}}{{\left (x - 1\right )} e^{\left (3 \, x^{2}\right )} - {\left (3 \, x - 2\right )} e^{\left (2 \, x^{2}\right )} + {\left (3 \, x - 1\right )} e^{\left (x^{2}\right )} - x} + \frac {4}{x^{2} + {\left (x^{2} - 2 \, x + 1\right )} e^{\left (2 \, x^{2}\right )} - 2 \, {\left (x^{2} - x\right )} e^{\left (x^{2}\right )}} + \frac {8}{{\left (x - 1\right )} e^{\left (2 \, x^{2}\right )} - {\left (2 \, x - 1\right )} e^{\left (x^{2}\right )} + x} + \frac {4}{e^{\left (2 \, x^{2}\right )} - 2 \, e^{\left (x^{2}\right )} + 1}\right )} \] Input:

integrate(((-16*x^4-16*x^3+16*x^2-16)*exp(x^2)+8*x+8)*exp((4*x^2+8*x+4)/(( 
x^2-2*x+1)*exp(x^2)^2+(-2*x^2+2*x)*exp(x^2)+x^2))/((x^3-3*x^2+3*x-1)*exp(x 
^2)^3+(-3*x^3+6*x^2-3*x)*exp(x^2)^2+(3*x^3-3*x^2)*exp(x^2)-x^3),x, algorit 
hm="maxima")
 

Output:

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

Giac [F]

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

integrate(((-16*x^4-16*x^3+16*x^2-16)*exp(x^2)+8*x+8)*exp((4*x^2+8*x+4)/(( 
x^2-2*x+1)*exp(x^2)^2+(-2*x^2+2*x)*exp(x^2)+x^2))/((x^3-3*x^2+3*x-1)*exp(x 
^2)^3+(-3*x^3+6*x^2-3*x)*exp(x^2)^2+(3*x^3-3*x^2)*exp(x^2)-x^3),x, algorit 
hm="giac")
 

Output:

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

Mupad [B] (verification not implemented)

Time = 3.56 (sec) , antiderivative size = 155, normalized size of antiderivative = 5.96 \[ \int \frac {e^{\frac {4+8 x+4 x^2}{x^2+e^{x^2} \left (2 x-2 x^2\right )+e^{2 x^2} \left (1-2 x+x^2\right )}} \left (8+8 x+e^{x^2} \left (-16+16 x^2-16 x^3-16 x^4\right )\right )}{-x^3+e^{2 x^2} \left (-3 x+6 x^2-3 x^3\right )+e^{3 x^2} \left (-1+3 x-3 x^2+x^3\right )+e^{x^2} \left (-3 x^2+3 x^3\right )} \, dx={\mathrm {e}}^{\frac {8\,x}{{\mathrm {e}}^{2\,x^2}+2\,x\,{\mathrm {e}}^{x^2}-2\,x\,{\mathrm {e}}^{2\,x^2}-2\,x^2\,{\mathrm {e}}^{x^2}+x^2\,{\mathrm {e}}^{2\,x^2}+x^2}}\,{\mathrm {e}}^{\frac {4\,x^2}{{\mathrm {e}}^{2\,x^2}+2\,x\,{\mathrm {e}}^{x^2}-2\,x\,{\mathrm {e}}^{2\,x^2}-2\,x^2\,{\mathrm {e}}^{x^2}+x^2\,{\mathrm {e}}^{2\,x^2}+x^2}}\,{\mathrm {e}}^{\frac {4}{{\mathrm {e}}^{2\,x^2}+2\,x\,{\mathrm {e}}^{x^2}-2\,x\,{\mathrm {e}}^{2\,x^2}-2\,x^2\,{\mathrm {e}}^{x^2}+x^2\,{\mathrm {e}}^{2\,x^2}+x^2}} \] Input:

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

Output:

exp((8*x)/(exp(2*x^2) + 2*x*exp(x^2) - 2*x*exp(2*x^2) - 2*x^2*exp(x^2) + x 
^2*exp(2*x^2) + x^2))*exp((4*x^2)/(exp(2*x^2) + 2*x*exp(x^2) - 2*x*exp(2*x 
^2) - 2*x^2*exp(x^2) + x^2*exp(2*x^2) + x^2))*exp(4/(exp(2*x^2) + 2*x*exp( 
x^2) - 2*x*exp(2*x^2) - 2*x^2*exp(x^2) + x^2*exp(2*x^2) + x^2))
 

Reduce [F]

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

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

Output:

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