2.1 Problem number 203

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

Optimal antiderivative \[ -\frac {3 \,\mathrm {I} f^{2} \left (f x +e \right ) \polylog \! \left (2, {\mathrm e}^{2 \,\mathrm {I} \left (d x +c \right )}\right )}{a \,d^{3}}+\frac {2 \left (f x +e \right )^{3} \arctanh \! \left ({\mathrm e}^{\mathrm {I} \left (d x +c \right )}\right )}{a d}-\frac {\left (f x +e \right )^{3} \cot \! \left (\frac {c}{2}+\frac {\pi }{4}+\frac {d x}{2}\right )}{a d}-\frac {\left (f x +e \right )^{3} \cot \! \left (d x +c \right )}{a d}+\frac {6 f \left (f x +e \right )^{2} \ln \! \left (1-\mathrm {I} \,{\mathrm e}^{\mathrm {I} \left (d x +c \right )}\right )}{a \,d^{2}}+\frac {3 f \left (f x +e \right )^{2} \ln \! \left (1-{\mathrm e}^{2 \,\mathrm {I} \left (d x +c \right )}\right )}{a \,d^{2}}-\frac {6 \,\mathrm {I} f^{3} \polylog \! \left (4, {\mathrm e}^{\mathrm {I} \left (d x +c \right )}\right )}{a \,d^{4}}+\frac {6 \,\mathrm {I} f^{3} \polylog \! \left (4, -{\mathrm e}^{\mathrm {I} \left (d x +c \right )}\right )}{a \,d^{4}}-\frac {3 \,\mathrm {I} f \left (f x +e \right )^{2} \polylog \! \left (2, -{\mathrm e}^{\mathrm {I} \left (d x +c \right )}\right )}{a \,d^{2}}+\frac {3 \,\mathrm {I} f \left (f x +e \right )^{2} \polylog \! \left (2, {\mathrm e}^{\mathrm {I} \left (d x +c \right )}\right )}{a \,d^{2}}+\frac {6 f^{2} \left (f x +e \right ) \polylog \! \left (3, -{\mathrm e}^{\mathrm {I} \left (d x +c \right )}\right )}{a \,d^{3}}+\frac {12 f^{3} \polylog \! \left (3, \mathrm {I} \,{\mathrm e}^{\mathrm {I} \left (d x +c \right )}\right )}{a \,d^{4}}-\frac {6 f^{2} \left (f x +e \right ) \polylog \! \left (3, {\mathrm e}^{\mathrm {I} \left (d x +c \right )}\right )}{a \,d^{3}}+\frac {3 f^{3} \polylog \! \left (3, {\mathrm e}^{2 \,\mathrm {I} \left (d x +c \right )}\right )}{2 a \,d^{4}}-\frac {12 \,\mathrm {I} f^{2} \left (f x +e \right ) \polylog \! \left (2, \mathrm {I} \,{\mathrm e}^{\mathrm {I} \left (d x +c \right )}\right )}{a \,d^{3}}-\frac {2 \,\mathrm {I} \left (f x +e \right )^{3}}{a d} \]

command

integrate((f*x+e)^3*csc(d*x+c)^2/(a+a*sin(d*x+c)),x, algorithm="maxima")

Maxima 5.46 SBCL 2.0.1.debian via sagemath 9.6 output

\[ \text {Exception raised: RuntimeError} \]

Maxima 5.44 via sagemath 9.3 output

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