\[ \int \frac {(a+a \sin (e+f x))^3 (A+B \sin (e+f x))}{(c-c \sin (e+f x))^7} \, dx \]
Optimal antiderivative \[ \frac {a^{3} \left (A +B \right ) c^{3} \left (\cos ^{7}\left (f x +e \right )\right )}{13 f \left (c -c \sin \left (f x +e \right )\right )^{10}}+\frac {a^{3} \left (3 A -10 B \right ) c^{2} \left (\cos ^{7}\left (f x +e \right )\right )}{143 f \left (c -c \sin \left (f x +e \right )\right )^{9}}+\frac {2 a^{3} \left (3 A -10 B \right ) c \left (\cos ^{7}\left (f x +e \right )\right )}{1287 f \left (c -c \sin \left (f x +e \right )\right )^{8}}+\frac {2 a^{3} \left (3 A -10 B \right ) \left (\cos ^{7}\left (f x +e \right )\right )}{9009 f \left (c -c \sin \left (f x +e \right )\right )^{7}} \]
command
integrate((a+a*sin(f*x+e))**3*(A+B*sin(f*x+e))/(c-c*sin(f*x+e))**7,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} \]_____________________________________________________