\[ \int (a+a \sin (e+f x)) (A+B \sin (e+f x)) (c-c \sin (e+f x))^{3/2} \, dx \]
Optimal antiderivative \[ \frac {8 a \left (7 A -B \right ) c^{3} \left (\cos ^{3}\left (f x +e \right )\right )}{105 f \left (c -c \sin \left (f x +e \right )\right )^{\frac {3}{2}}}+\frac {2 a \left (7 A -B \right ) c^{2} \left (\cos ^{3}\left (f x +e \right )\right )}{35 f \sqrt {c -c \sin \left (f x +e \right )}}-\frac {2 a B c \left (\cos ^{3}\left (f x +e \right )\right ) \sqrt {c -c \sin \left (f x +e \right )}}{7 f} \]
command
integrate((a+a*sin(f*x+e))*(A+B*sin(f*x+e))*(c-c*sin(f*x+e))^(3/2),x, algorithm="giac")
Giac 1.9.0-11 via sagemath 9.6 output
\[ \frac {\sqrt {2} {\left (15 \, B a c \cos \left (-\frac {7}{4} \, \pi + \frac {7}{2} \, f x + \frac {7}{2} \, e\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - 105 \, {\left (4 \, A a c \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - B a c \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 35 \, {\left (2 \, A a c \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + B a c \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \cos \left (-\frac {3}{4} \, \pi + \frac {3}{2} \, f x + \frac {3}{2} \, e\right ) + 21 \, {\left (2 \, A a c \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - B a c \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \cos \left (-\frac {5}{4} \, \pi + \frac {5}{2} \, f x + \frac {5}{2} \, e\right )\right )} \sqrt {c}}{420 \, f} \]
Giac 1.7.0 via sagemath 9.3 output
\[ \text {Exception raised: NotImplementedError} \]________________________________________________________________________________________