22.18 Problem number 1114

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

Optimal antiderivative \[ -\frac {d^{2} \left (-A e +B d \right ) \left (-b e +c d \right )^{2} \left (e x +d \right )^{1+m}}{e^{6} \left (1+m \right )}+\frac {d \left (-b e +c d \right ) \left (B d \left (-3 b e +5 c d \right )-2 A e \left (-b e +2 c d \right )\right ) \left (e x +d \right )^{2+m}}{e^{6} \left (2+m \right )}+\frac {\left (A e \left (b^{2} e^{2}-6 b c d e +6 c^{2} d^{2}\right )-B d \left (3 b^{2} e^{2}-12 b c d e +10 c^{2} d^{2}\right )\right ) \left (e x +d \right )^{3+m}}{e^{6} \left (3+m \right )}-\frac {\left (2 A c e \left (-b e +2 c d \right )-B \left (b^{2} e^{2}-8 b c d e +10 c^{2} d^{2}\right )\right ) \left (e x +d \right )^{4+m}}{e^{6} \left (4+m \right )}-\frac {c \left (-A c e -2 b B e +5 B c d \right ) \left (e x +d \right )^{5+m}}{e^{6} \left (5+m \right )}+\frac {B \,c^{2} \left (e x +d \right )^{6+m}}{e^{6} \left (6+m \right )} \]

command

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