38.14 Problem number 259

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

Optimal antiderivative \[ \frac {e x}{a}+\frac {f \,x^{2}}{2 a}+\frac {\left (f x +e \right ) \cos \left (d x +c \right )}{a d}-\frac {f \sin \left (d x +c \right )}{a \,d^{2}} \]

command

integrate((f*x+e)*cos(d*x+c)^2/(a+a*sin(d*x+c)),x, algorithm="giac")

Giac 1.9.0-11 via sagemath 9.6 output

\[ \text {output too large to display} \]

Giac 1.7.0 via sagemath 9.3 output \[ \text {Timed out} \]_______________________________________________________