\[ \int \frac {(a+a \sin (e+f x))^3}{(c-c \sin (e+f x))^8} \, dx \]
Optimal antiderivative \[ \frac {a^{3} c^{3} \left (\cos ^{7}\left (f x +e \right )\right )}{15 f \left (c -c \sin \left (f x +e \right )\right )^{11}}+\frac {4 a^{3} c^{2} \left (\cos ^{7}\left (f x +e \right )\right )}{195 f \left (c -c \sin \left (f x +e \right )\right )^{10}}+\frac {4 a^{3} c \left (\cos ^{7}\left (f x +e \right )\right )}{715 f \left (c -c \sin \left (f x +e \right )\right )^{9}}+\frac {8 a^{3} \left (\cos ^{7}\left (f x +e \right )\right )}{6435 f \left (c -c \sin \left (f x +e \right )\right )^{8}}+\frac {8 a^{3} \left (\cos ^{7}\left (f x +e \right )\right )}{45045 c f \left (c -c \sin \left (f x +e \right )\right )^{7}} \]
command
integrate((a+a*sin(f*x+e))**3/(c-c*sin(f*x+e))**8,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} \]_____________________________________________________