43.15 Problem number 154

\[ \int \csc ^2(e+f x) (a+b \sin (e+f x)) \, dx \]

Optimal antiderivative \[ -\frac {b \arctanh \left (\cos \left (f x +e \right )\right )}{f}-\frac {a \cot \left (f x +e \right )}{f} \]

command

integrate(csc(f*x+e)^2*(a+b*sin(f*x+e)),x, algorithm="giac")

Giac 1.9.0-11 via sagemath 9.6 output

\[ \frac {2 \, b \log \left ({\left | \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) \right |}\right ) + a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - \frac {2 \, b \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + a}{\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )}}{2 \, f} \]

Giac 1.7.0 via sagemath 9.3 output

\[ \text {Exception raised: NotImplementedError} \]________________________________________________________________________________________