\[ \int \frac {\coth ^{-1}(\tanh (a+b x))}{x^3} \, dx \]
Optimal antiderivative \[ -\frac {b}{2 x}-\frac {\mathrm {arccoth}\left (\tanh \left (b x +a \right )\right )}{2 x^{2}} \]
command
integrate(arccoth(tanh(b*x+a))/x^3,x, algorithm="giac")
Giac 1.9.0-11 via sagemath 9.6 output
\[ -\frac {b}{2 \, x} - \frac {\log \left (-\frac {\frac {e^{\left (2 \, b x + 2 \, a\right )} + 1}{e^{\left (2 \, b x + 2 \, a\right )} - 1} + 1}{\frac {e^{\left (2 \, b x + 2 \, a\right )} + 1}{e^{\left (2 \, b x + 2 \, a\right )} - 1} - 1}\right )}{4 \, x^{2}} \]
Giac 1.7.0 via sagemath 9.3 output
\[ \int \frac {\operatorname {arcoth}\left (\tanh \left (b x + a\right )\right )}{x^{3}}\,{d x} \]________________________________________________________________________________________