\[ \int \frac {A+B \sin (e+f x)}{(a+a \sin (e+f x))^{5/2} (c+d \sin (e+f x))^2} \, dx \]
Optimal antiderivative \[ \frac {d^{\frac {3}{2}} \left (A d \left (7 c +5 d \right )-B \left (5 c^{2}+5 c d +2 d^{2}\right )\right ) \arctanh \left (\frac {\cos \left (f x +e \right ) \sqrt {a}\, \sqrt {d}}{\sqrt {c +d}\, \sqrt {a +a \sin \left (f x +e \right )}}\right )}{a^{\frac {5}{2}} \left (c -d \right )^{4} \left (c +d \right )^{\frac {3}{2}} f}-\frac {\left (A -B \right ) \cos \left (f x +e \right )}{4 \left (c -d \right ) f \left (a +a \sin \left (f x +e \right )\right )^{\frac {5}{2}} \left (c +d \sin \left (f x +e \right )\right )}-\frac {\left (3 A c -15 A d +5 B c +7 B d \right ) \cos \left (f x +e \right )}{16 a \left (c -d \right )^{2} f \left (a +a \sin \left (f x +e \right )\right )^{\frac {3}{2}} \left (c +d \sin \left (f x +e \right )\right )}-\frac {\left (B \left (5 c^{2}-58 c d -43 d^{2}\right )+A \left (3 c^{2}-22 c d +115 d^{2}\right )\right ) \arctanh \left (\frac {\cos \left (f x +e \right ) \sqrt {a}\, \sqrt {2}}{2 \sqrt {a +a \sin \left (f x +e \right )}}\right ) \sqrt {2}}{32 a^{\frac {5}{2}} \left (c -d \right )^{4} f}-\frac {d \left (A \left (3 c^{2}-16 c d -35 d^{2}\right )+B \left (5 c^{2}+32 c d +11 d^{2}\right )\right ) \cos \left (f x +e \right )}{16 a^{2} \left (c -d \right )^{3} \left (c +d \right ) f \left (c +d \sin \left (f x +e \right )\right ) \sqrt {a +a \sin \left (f x +e \right )}} \]
command
integrate((A+B*sin(f*x+e))/(a+a*sin(f*x+e))^(5/2)/(c+d*sin(f*x+e))^2,x, algorithm="giac")
Giac 1.9.0-11 via sagemath 9.6 output
\[ \text {output too large to display} \]
Giac 1.7.0 via sagemath 9.3 output \[ \text {Exception raised: TypeError} \]_______________________________________________________