\[ \int \sqrt {d \cos (a+b x)} \csc ^2(a+b x) \, dx \]
Optimal antiderivative \[ -\frac {\left (d \cos \left (b x +a \right )\right )^{\frac {3}{2}} \csc \left (b x +a \right )}{b d}-\frac {\sqrt {\frac {\cos \left (b x +a \right )}{2}+\frac {1}{2}}\, \EllipticE \left (\sin \left (\frac {a}{2}+\frac {b x}{2}\right ), \sqrt {2}\right ) \sqrt {d \cos \left (b x +a \right )}}{\cos \left (\frac {a}{2}+\frac {b x}{2}\right ) b \sqrt {\cos \left (b x +a \right )}} \]
command
integrate((d*cos(b*x+a))^(1/2)*csc(b*x+a)^2,x, algorithm="fricas")
Fricas 1.3.8 (sbcl 2.2.11.debian) via sagemath 9.6 output
\[ \frac {-i \, \sqrt {2} \sqrt {d} \sin \left (b x + a\right ) {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (b x + a\right ) + i \, \sin \left (b x + a\right )\right )\right ) + i \, \sqrt {2} \sqrt {d} \sin \left (b x + a\right ) {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (b x + a\right ) - i \, \sin \left (b x + a\right )\right )\right ) - 2 \, \sqrt {d \cos \left (b x + a\right )} \cos \left (b x + a\right )}{2 \, b \sin \left (b x + a\right )} \]
Fricas 1.3.7 via sagemath 9.3 output
\[ {\rm integral}\left (\sqrt {d \cos \left (b x + a\right )} \csc \left (b x + a\right )^{2}, x\right ) \]