21.24 Problem number 2550

\[ \int (d+e x)^m \left (a+b x+c x^2\right )^3 \, dx \]

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