\[ \int \frac {e^{\text {ArcTan}(a x)}}{\left (c+a^2 c x^2\right )^5} \, dx \]
Optimal antiderivative \[ \frac {8064 \,{\mathrm e}^{\arctan \left (a x \right )}}{40885 a \,c^{5}}+\frac {{\mathrm e}^{\arctan \left (a x \right )} \left (8 a x +1\right )}{65 a \,c^{5} \left (a^{2} x^{2}+1\right )^{4}}+\frac {56 \,{\mathrm e}^{\arctan \left (a x \right )} \left (6 a x +1\right )}{2405 a \,c^{5} \left (a^{2} x^{2}+1\right )^{3}}+\frac {336 \,{\mathrm e}^{\arctan \left (a x \right )} \left (4 a x +1\right )}{8177 a \,c^{5} \left (a^{2} x^{2}+1\right )^{2}}+\frac {4032 \,{\mathrm e}^{\arctan \left (a x \right )} \left (2 a x +1\right )}{40885 a \,c^{5} \left (a^{2} x^{2}+1\right )} \]
command
integrate(exp(atan(a*x))/(a**2*c*x**2+c)**5,x)
Sympy 1.10.1 under Python 3.10.4 output
\[ \begin {cases} \frac {8064 a^{8} x^{8} e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} + \frac {8064 a^{7} x^{7} e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} + \frac {36288 a^{6} x^{6} e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} + \frac {30912 a^{5} x^{5} e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} + \frac {62160 a^{4} x^{4} e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} + \frac {43344 a^{3} x^{3} e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} + \frac {48664 a^{2} x^{2} e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} + \frac {25528 a x e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} + \frac {15357 e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} & \text {for}\: a \neq 0 \\\frac {x}{c^{5}} & \text {otherwise} \end {cases} \]
Sympy 1.8 under Python 3.8.8 output
\[ \begin {cases} \frac {8064 a^{8} x^{8} e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} + \frac {8064 a^{7} x^{7} e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} + \frac {36288 a^{6} x^{6} e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} + \frac {30912 a^{5} x^{5} e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} + \frac {62160 a^{4} x^{4} e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} + \frac {43344 a^{3} x^{3} e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} + \frac {48664 a^{2} x^{2} e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} + \frac {25528 a x e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} + \frac {15357 e^{\operatorname {atan}{\left (a x \right )}}}{40885 a^{9} c^{5} x^{8} + 163540 a^{7} c^{5} x^{6} + 245310 a^{5} c^{5} x^{4} + 163540 a^{3} c^{5} x^{2} + 40885 a c^{5}} & \text {for}\: c \neq 0 \\\tilde {\infty } \int e^{\operatorname {atan}{\left (a x \right )}}\, dx & \text {otherwise} \end {cases} \]________________________________________________________________________________________