\[ \int \frac {\cosh (x)}{a+b \cosh ^2(x)} \, dx \]
Optimal antiderivative \[ \frac {\arctan \left (\frac {\sinh \left (x \right ) \sqrt {b}}{\sqrt {a +b}}\right )}{\sqrt {b}\, \sqrt {a +b}} \]
command
integrate(cosh(x)/(a+b*cosh(x)**2),x)
Sympy 1.10.1 under Python 3.10.4 output
\[ \text {output too large to display} \]
Sympy 1.8 under Python 3.8.8 output \[ \text {Timed out} \]_____________________________________________________