\[ \int \frac {A+B \sin (e+f x)}{(a+a \sin (e+f x))^{5/2} (c-c \sin (e+f x))^{3/2}} \, dx \]
Optimal antiderivative \[ -\frac {\left (A -B \right ) \cos \left (f x +e \right )}{4 f \left (a +a \sin \left (f x +e \right )\right )^{\frac {5}{2}} \left (c -c \sin \left (f x +e \right )\right )^{\frac {3}{2}}}-\frac {\left (3 A +B \right ) \cos \left (f x +e \right )}{8 a f \left (a +a \sin \left (f x +e \right )\right )^{\frac {3}{2}} \left (c -c \sin \left (f x +e \right )\right )^{\frac {3}{2}}}+\frac {\left (3 A +B \right ) \cos \left (f x +e \right )}{8 a^{2} f \left (c -c \sin \left (f x +e \right )\right )^{\frac {3}{2}} \sqrt {a +a \sin \left (f x +e \right )}}+\frac {\left (3 A +B \right ) \arctanh \left (\sin \left (f x +e \right )\right ) \cos \left (f x +e \right )}{8 a^{2} c f \sqrt {a +a \sin \left (f x +e \right )}\, \sqrt {c -c \sin \left (f x +e \right )}} \]
command
integrate((A+B*sin(f*x+e))/(a+a*sin(f*x+e))^(5/2)/(c-c*sin(f*x+e))^(3/2),x, algorithm="giac")
Giac 1.9.0-11 via sagemath 9.6 output
\[ \frac {\frac {2 \, {\left (3 \, A \sqrt {a} \sqrt {c} + B \sqrt {a} \sqrt {c}\right )} \log \left (-\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 1\right )}{a^{3} c^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} - \frac {4 \, {\left (3 \, A \sqrt {a} \sqrt {c} + B \sqrt {a} \sqrt {c}\right )} \log \left ({\left | \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) \right |}\right )}{a^{3} c^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} + \frac {2 \, {\left (3 \, A \sqrt {a} \sqrt {c} + B \sqrt {a} \sqrt {c}\right )} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - {\left (3 \, A \sqrt {a} \sqrt {c} + B \sqrt {a} \sqrt {c}\right )} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - A \sqrt {a} \sqrt {c} + B \sqrt {a} \sqrt {c}}{{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 1\right )} a^{3} c^{2} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}}{32 \, f} \]
Giac 1.7.0 via sagemath 9.3 output
\[ \int \frac {B \sin \left (f x + e\right ) + A}{{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {5}{2}} {\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}}}\,{d x} \]________________________________________________________________________________________