91.5 Problem number 106

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

Optimal antiderivative \[ -\frac {x}{2 b \arctanh \left (\tanh \left (b x +a \right )\right )^{2}}-\frac {1}{2 b^{2} \arctanh \left (\tanh \left (b x +a \right )\right )} \]

command

integrate(x/atanh(tanh(b*x+a))**3,x)

Sympy 1.10.1 under Python 3.10.4 output

\[ \begin {cases} - \frac {x}{2 b \operatorname {atanh}^{2}{\left (\tanh {\left (a + b x \right )} \right )}} - \frac {1}{2 b^{2} \operatorname {atanh}{\left (\tanh {\left (a + b x \right )} \right )}} & \text {for}\: b \neq 0 \\\frac {x^{2}}{2 \operatorname {atanh}^{3}{\left (\tanh {\left (a \right )} \right )}} & \text {otherwise} \end {cases} \]

Sympy 1.8 under Python 3.8.8 output

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