38.115 Problem number 518

\[ \int (d \csc (e+f x))^{3/2} \sin ^2(e+f x) \, dx \]

Optimal antiderivative \[ -\frac {2 d^{2} \sqrt {\frac {1}{2}+\frac {\sin \left (f x +e \right )}{2}}\, \EllipticE \left (\cos \left (\frac {e}{2}+\frac {\pi }{4}+\frac {f x}{2}\right ), \sqrt {2}\right )}{\sin \left (\frac {e}{2}+\frac {\pi }{4}+\frac {f x}{2}\right ) f \sqrt {d \csc \left (f x +e \right )}\, \sqrt {\sin \left (f x +e \right )}} \]

command

integrate((d*csc(f*x+e))^(3/2)*sin(f*x+e)^2,x, algorithm="fricas")

Fricas 1.3.8 (sbcl 2.2.11.debian) via sagemath 9.6 output

\[ \frac {\sqrt {2 i \, d} d {\rm weierstrassZeta}\left (4, 0, {\rm weierstrassPInverse}\left (4, 0, \cos \left (f x + e\right ) + i \, \sin \left (f x + e\right )\right )\right ) + \sqrt {-2 i \, d} d {\rm weierstrassZeta}\left (4, 0, {\rm weierstrassPInverse}\left (4, 0, \cos \left (f x + e\right ) - i \, \sin \left (f x + e\right )\right )\right )}{f} \]

Fricas 1.3.7 via sagemath 9.3 output

\[ {\rm integral}\left (-{\left (d \cos \left (f x + e\right )^{2} - d\right )} \sqrt {d \csc \left (f x + e\right )} \csc \left (f x + e\right ), x\right ) \]