75.134 Problem number 248

\[ \int \frac {\sec (e+f x) (a+b \sec (e+f x))}{c+d \sec (e+f x)} \, dx \]

Optimal antiderivative \[ \frac {b \arctanh \left (\sin \left (f x +e \right )\right )}{d f}-\frac {2 \left (-a d +b c \right ) \arctanh \left (\frac {\sqrt {c -d}\, \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{\sqrt {c +d}}\right )}{d f \sqrt {c -d}\, \sqrt {c +d}} \]

command

integrate(sec(f*x+e)*(a+b*sec(f*x+e))/(c+d*sec(f*x+e)),x, algorithm="giac")

Giac 1.9.0-11 via sagemath 9.6 output

\[ \frac {\frac {b \log \left ({\left | \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1 \right |}\right )}{d} - \frac {b \log \left ({\left | \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1 \right |}\right )}{d} + \frac {2 \, {\left (\pi \left \lfloor \frac {f x + e}{2 \, \pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (2 \, c - 2 \, d\right ) + \arctan \left (\frac {c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )}{\sqrt {-c^{2} + d^{2}}}\right )\right )} {\left (b c - a d\right )}}{\sqrt {-c^{2} + d^{2}} d}}{f} \]

Giac 1.7.0 via sagemath 9.3 output

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