67.17 Problem number 33

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

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

command

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

Giac 1.9.0-11 via sagemath 9.6 output

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

Giac 1.7.0 via sagemath 9.3 output

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