15.49 Problem number 2667

\[ \int x^m \left (a+b x^n\right )^3 \, dx \]

Optimal antiderivative \[ \frac {a^{3} x^{1+m}}{1+m}+\frac {3 a^{2} b \,x^{1+m +n}}{1+m +n}+\frac {3 a \,b^{2} x^{1+m +2 n}}{1+m +2 n}+\frac {b^{3} x^{1+m +3 n}}{1+m +3 n} \]

command

integrate(x**m*(a+b*x**n)**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} \]_____________________________________________________