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