23.8 Problem number 926

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

Optimal antiderivative \[ \frac {\left (a \,e^{2}-b d e +c \,d^{2}\right )^{2} \left (-d g +e f \right ) \left (e x +d \right )^{1+m}}{e^{6} \left (1+m \right )}-\frac {\left (a \,e^{2}-b d e +c \,d^{2}\right ) \left (c d \left (-5 d g +4 e f \right )-e \left (a e g -3 b d g +2 b e f \right )\right ) \left (e x +d \right )^{2+m}}{e^{6} \left (2+m \right )}+\frac {\left (2 c^{2} d^{2} \left (-5 d g +3 e f \right )+b \,e^{2} \left (2 a e g -3 b d g +b e f \right )+2 c e \left (a e \left (-3 d g +e f \right )-3 b d \left (-2 d g +e f \right )\right )\right ) \left (e x +d \right )^{3+m}}{e^{6} \left (3+m \right )}+\frac {\left (b^{2} e^{2} g -2 c^{2} d \left (-5 d g +2 e f \right )+2 c e \left (a e g -4 b d g +b e f \right )\right ) \left (e x +d \right )^{4+m}}{e^{6} \left (4+m \right )}+\frac {c \left (2 b e g -5 c d g +c e f \right ) \left (e x +d \right )^{5+m}}{e^{6} \left (5+m \right )}+\frac {c^{2} g \left (e x +d \right )^{6+m}}{e^{6} \left (6+m \right )} \]

command

integrate((e*x+d)**m*(g*x+f)*(c*x**2+b*x+a)**2,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} \]_____________________________________________________