49.5 Problem number 271

\[ \int \sqrt {\csc (a+b x)} \sec (a+b x) \, dx \]

Optimal antiderivative \[ -\frac {\arctan \left (\sqrt {\csc }\left (b x +a \right )\right )}{b}+\frac {\arctanh \left (\sqrt {\csc }\left (b x +a \right )\right )}{b} \]

command

integrate(csc(b*x+a)^(1/2)*sec(b*x+a),x, algorithm="giac")

Giac 1.9.0-11 via sagemath 9.6 output

\[ \frac {2 \, \arctan \left (\sqrt {\sin \left (b x + a\right )}\right ) + \log \left (\sqrt {\sin \left (b x + a\right )} + 1\right ) - \log \left ({\left | \sqrt {\sin \left (b x + a\right )} - 1 \right |}\right )}{2 \, b} \]

Giac 1.7.0 via sagemath 9.3 output

\[ \int \sqrt {\csc \left (b x + a\right )} \sec \left (b x + a\right )\,{d x} \]________________________________________________________________________________________