\[ \int \frac {36864+e^7+384 e x+e^2 x^2}{36864+384 e x+e^2 x^2} \, dx \]
Optimal antiderivative \[ \frac {{\mathrm e}^{5}}{x^{2}-192 \,{\mathrm e}^{-1}-\left (1+x \right ) x}+x \]
command
integrate((exp(1)^2*exp(5)+x^2*exp(1)^2+384*x*exp(1)+36864)/(x^2*exp(1)^2+384*x*exp(1)+36864),x, algorithm="giac")
Giac 1.9.0-11 via sagemath 9.6 output
\[ x - \frac {e^{6}}{x e + 192} \]
Giac 1.7.0 via sagemath 9.3 output
\[ \text {Exception raised: NotImplementedError} \]________________________________________________________________________________________