\[ \int \frac {a+b x^n}{\left (c+d x^n\right )^3} \, dx \]
Optimal antiderivative \[ -\frac {\left (-a d +b c \right ) x}{2 c d n \left (c +d \,x^{n}\right )^{2}}+\frac {\left (b c -a d \left (1-2 n \right )\right ) x \hypergeom \! \left (\left [2, \frac {1}{n}\right ], \left [1+\frac {1}{n}\right ], -\frac {d \,x^{n}}{c}\right )}{2 c^{3} d n} \]
command
integrate((a+b*x**n)/(c+d*x**n)**3,x)
Sympy 1.10.1 under Python 3.10.4 output
\[ \text {Timed out} \]
Sympy 1.8 under Python 3.8.8 output
\[ \text {output too large to display} \]