\[ \int \frac {(A+B \sin (e+f x)) (c-c \sin (e+f x))^{9/2}}{(a+a \sin (e+f x))^{5/2}} \, dx \]
Optimal antiderivative \[ \frac {\left (3 A -7 B \right ) c \cos \left (f x +e \right ) \left (c -c \sin \left (f x +e \right )\right )^{\frac {7}{2}}}{4 a f \left (a +a \sin \left (f x +e \right )\right )^{\frac {3}{2}}}-\frac {\left (A -B \right ) \cos \left (f x +e \right ) \left (c -c \sin \left (f x +e \right )\right )^{\frac {9}{2}}}{4 f \left (a +a \sin \left (f x +e \right )\right )^{\frac {5}{2}}}+\frac {\left (3 A -7 B \right ) c^{3} \cos \left (f x +e \right ) \left (c -c \sin \left (f x +e \right )\right )^{\frac {3}{2}}}{a^{2} f \sqrt {a +a \sin \left (f x +e \right )}}+\frac {\left (3 A -7 B \right ) c^{2} \cos \left (f x +e \right ) \left (c -c \sin \left (f x +e \right )\right )^{\frac {5}{2}}}{3 a^{2} f \sqrt {a +a \sin \left (f x +e \right )}}+\frac {8 \left (3 A -7 B \right ) c^{5} \cos \left (f x +e \right ) \ln \left (1+\sin \left (f x +e \right )\right )}{a^{2} f \sqrt {a +a \sin \left (f x +e \right )}\, \sqrt {c -c \sin \left (f x +e \right )}}+\frac {4 \left (3 A -7 B \right ) c^{4} \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}}{a^{2} f \sqrt {a +a \sin \left (f x +e \right )}} \]
command
integrate((A+B*sin(f*x+e))*(c-c*sin(f*x+e))^(9/2)/(a+a*sin(f*x+e))^(5/2),x, algorithm="giac")
Giac 1.9.0-11 via sagemath 9.6 output
\[ -\frac {\sqrt {2} \sqrt {c} {\left (\frac {12 \, {\left (3 \, \sqrt {2} A \sqrt {a} c^{4} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - 7 \, \sqrt {2} B \sqrt {a} c^{4} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \log \left (-\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 1\right )}{a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} + \frac {3 \, \sqrt {2} {\left (7 \, A \sqrt {a} c^{4} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - 11 \, B \sqrt {a} c^{4} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - 4 \, {\left (2 \, A \sqrt {a} c^{4} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - 3 \, B \sqrt {a} c^{4} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2}\right )}}{{\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 1\right )}^{2} a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} - \frac {\sqrt {2} {\left (4 \, B a^{\frac {13}{2}} c^{4} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{6} - 3 \, A a^{\frac {13}{2}} c^{4} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} + 15 \, B a^{\frac {13}{2}} c^{4} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 18 \, A a^{\frac {13}{2}} c^{4} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 54 \, B a^{\frac {13}{2}} c^{4} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2}\right )}}{a^{9} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}\right )}}{3 \, f} \]
Giac 1.7.0 via sagemath 9.3 output
\[ \text {Timed out} \]________________________________________________________________________________________