46.6 Problem number 433

\[ \int \frac {\cos ^2(c+d x)}{a+b \sin (c+d x)} \, dx \]

Optimal antiderivative \[ \frac {a x}{b^{2}}+\frac {\cos \left (d x +c \right )}{b d}-\frac {2 \arctan \left (\frac {b +a \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {a^{2}-b^{2}}}\right ) \sqrt {a^{2}-b^{2}}}{b^{2} d} \]

command

integrate(cos(d*x+c)**2/(a+b*sin(d*x+c)),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} \]_____________________________________________________