96.79 Problem number 151

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

Optimal antiderivative \[ \frac {\mathrm {arccoth}\left (\tanh \left (b x +a \right )\right )^{4}}{4 b} \]

command

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

Giac 1.9.0-11 via sagemath 9.6 output

\[ \frac {1}{4} \, b^{3} x^{4} - \frac {1}{2} \, {\left (-i \, \pi b^{2} - 2 \, a b^{2}\right )} x^{3} - \frac {3}{8} \, {\left (\pi ^{2} b - 4 i \, \pi a b - 4 \, a^{2} b\right )} x^{2} - \frac {1}{8} \, {\left (i \, \pi ^{3} + 6 \, \pi ^{2} a - 12 i \, \pi a^{2} - 8 \, a^{3}\right )} x \]

Giac 1.7.0 via sagemath 9.3 output

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