91.1 Problem number 139

\[ \int \frac {\tanh ^4(c+d x)}{a+b \text {sech}^2(c+d x)} \, dx \]

Optimal antiderivative \[ \frac {x}{a}-\frac {\left (a +b \right )^{\frac {3}{2}} \arctanh \left (\frac {\sqrt {b}\, \tanh \left (d x +c \right )}{\sqrt {a +b}}\right )}{a \,b^{\frac {3}{2}} d}+\frac {\tanh \left (d x +c \right )}{b d} \]

command

integrate(tanh(d*x+c)^4/(a+b*sech(d*x+c)^2),x, algorithm="giac")

Giac 1.9.0-11 via sagemath 9.6 output

\[ \frac {\frac {d x + c}{a} - \frac {{\left (a^{2} + 2 \, a b + b^{2}\right )} \arctan \left (\frac {a e^{\left (2 \, d x + 2 \, c\right )} + a + 2 \, b}{2 \, \sqrt {-a b - b^{2}}}\right )}{\sqrt {-a b - b^{2}} a b} - \frac {2}{b {\left (e^{\left (2 \, d x + 2 \, c\right )} + 1\right )}}}{d} \]

Giac 1.7.0 via sagemath 9.3 output

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