\[ \int (d+e x)^m \left (b x+c x^2\right )^3 \, dx \]
Optimal antiderivative \[ \frac {d^{3} \left (-b e +c d \right )^{3} \left (e x +d \right )^{1+m}}{e^{7} \left (1+m \right )}-\frac {3 d^{2} \left (-b e +c d \right )^{2} \left (-b e +2 c d \right ) \left (e x +d \right )^{2+m}}{e^{7} \left (2+m \right )}+\frac {3 d \left (-b e +c d \right ) \left (b^{2} e^{2}-5 b c d e +5 c^{2} d^{2}\right ) \left (e x +d \right )^{3+m}}{e^{7} \left (3+m \right )}-\frac {\left (-b e +2 c d \right ) \left (b^{2} e^{2}-10 b c d e +10 c^{2} d^{2}\right ) \left (e x +d \right )^{4+m}}{e^{7} \left (4+m \right )}+\frac {3 c \left (b^{2} e^{2}-5 b c d e +5 c^{2} d^{2}\right ) \left (e x +d \right )^{5+m}}{e^{7} \left (5+m \right )}-\frac {3 c^{2} \left (-b e +2 c d \right ) \left (e x +d \right )^{6+m}}{e^{7} \left (6+m \right )}+\frac {c^{3} \left (e x +d \right )^{7+m}}{e^{7} \left (7+m \right )} \]
command
integrate((e*x+d)**m*(c*x**2+b*x)**3,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} \]_____________________________________________________