\[ \int \frac {e^{\frac {18}{2 x^2+x^2 \log (x)}} \left (-90+4 x^2+\left (-36+4 x^2\right ) \log (x)+x^2 \log ^2(x)\right )}{4 x^2+4 x^2 \log (x)+x^2 \log ^2(x)} \, dx \]
Optimal antiderivative \[ x \,{\mathrm e}^{\frac {9}{\ln \left (x \right ) \left (\frac {x}{2}+\frac {x}{\ln \left (x \right )}\right ) x}} \]
command
integrate((x**2*ln(x)**2+(4*x**2-36)*ln(x)+4*x**2-90)*exp(18/(x**2*ln(x)+2*x**2))/(x**2*ln(x)**2+4*x**2*ln(x)+4*x**2),x)
Sympy 1.10.1 under Python 3.10.4 output
\[ \text {Exception raised: TypeError} \]
Sympy 1.8 under Python 3.8.8 output
\[ x e^{\frac {18}{x^{2} \log {\left (x \right )} + 2 x^{2}}} \]