96.66 Problem number 137

\[ \int x^3 \coth ^{-1}(\tanh (a+b x))^2 \, dx \]

Optimal antiderivative \[ \frac {b^{2} x^{6}}{60}-\frac {b \,x^{5} \mathrm {arccoth}\left (\tanh \left (b x +a \right )\right )}{10}+\frac {x^{4} \mathrm {arccoth}\left (\tanh \left (b x +a \right )\right )^{2}}{4} \]

command

integrate(x^3*arccoth(tanh(b*x+a))^2,x, algorithm="giac")

Giac 1.9.0-11 via sagemath 9.6 output

\[ \frac {1}{6} \, b^{2} x^{6} - \frac {1}{5} \, {\left (-i \, \pi b - 2 \, a b\right )} x^{5} - \frac {1}{16} \, {\left (\pi ^{2} - 4 i \, \pi a - 4 \, a^{2}\right )} x^{4} \]

Giac 1.7.0 via sagemath 9.3 output

\[ \int x^{3} \operatorname {arcoth}\left (\tanh \left (b x + a\right )\right )^{2}\,{d x} \]________________________________________________________________________________________