22.32 Problem number 1655

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

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

command

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