Optimal. Leaf size=105 \[ -b x \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^3+\frac{1}{2} \tanh ^{-1}(\tanh (a+b x))^2 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^2-\frac{1}{3} \tanh ^{-1}(\tanh (a+b x))^3 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )+\frac{1}{4} \tanh ^{-1}(\tanh (a+b x))^4+\log (x) \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^4 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.064792, antiderivative size = 105, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {2159, 2158, 29} \[ -b x \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^3+\frac{1}{2} \tanh ^{-1}(\tanh (a+b x))^2 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^2-\frac{1}{3} \tanh ^{-1}(\tanh (a+b x))^3 \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )+\frac{1}{4} \tanh ^{-1}(\tanh (a+b x))^4+\log (x) \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^4 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2159
Rule 2158
Rule 29
Rubi steps
\begin{align*} \int \frac{\tanh ^{-1}(\tanh (a+b x))^4}{x} \, dx &=\frac{1}{4} \tanh ^{-1}(\tanh (a+b x))^4-\left (b x-\tanh ^{-1}(\tanh (a+b x))\right ) \int \frac{\tanh ^{-1}(\tanh (a+b x))^3}{x} \, dx\\ &=-\frac{1}{3} \left (b x-\tanh ^{-1}(\tanh (a+b x))\right ) \tanh ^{-1}(\tanh (a+b x))^3+\frac{1}{4} \tanh ^{-1}(\tanh (a+b x))^4-\left (\left (b x-\tanh ^{-1}(\tanh (a+b x))\right ) \left (-b x+\tanh ^{-1}(\tanh (a+b x))\right )\right ) \int \frac{\tanh ^{-1}(\tanh (a+b x))^2}{x} \, dx\\ &=\frac{1}{2} \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^2 \tanh ^{-1}(\tanh (a+b x))^2-\frac{1}{3} \left (b x-\tanh ^{-1}(\tanh (a+b x))\right ) \tanh ^{-1}(\tanh (a+b x))^3+\frac{1}{4} \tanh ^{-1}(\tanh (a+b x))^4+\left (\left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^2 \left (-b x+\tanh ^{-1}(\tanh (a+b x))\right )\right ) \int \frac{\tanh ^{-1}(\tanh (a+b x))}{x} \, dx\\ &=-b x \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^3+\frac{1}{2} \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^2 \tanh ^{-1}(\tanh (a+b x))^2-\frac{1}{3} \left (b x-\tanh ^{-1}(\tanh (a+b x))\right ) \tanh ^{-1}(\tanh (a+b x))^3+\frac{1}{4} \tanh ^{-1}(\tanh (a+b x))^4-\left (\left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^3 \left (-b x+\tanh ^{-1}(\tanh (a+b x))\right )\right ) \int \frac{1}{x} \, dx\\ &=-b x \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^3+\frac{1}{2} \left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^2 \tanh ^{-1}(\tanh (a+b x))^2-\frac{1}{3} \left (b x-\tanh ^{-1}(\tanh (a+b x))\right ) \tanh ^{-1}(\tanh (a+b x))^3+\frac{1}{4} \tanh ^{-1}(\tanh (a+b x))^4+\left (b x-\tanh ^{-1}(\tanh (a+b x))\right )^4 \log (x)\\ \end{align*}
Mathematica [A] time = 0.0914317, size = 175, normalized size = 1.67 \[ \frac{1}{2} (a+b x)^2 \left (a^2-4 a \left (-\tanh ^{-1}(\tanh (a+b x))+a+b x\right )+6 \left (-\tanh ^{-1}(\tanh (a+b x))+a+b x\right )^2\right )+(a+b x) \left (-4 a^2 \left (-\tanh ^{-1}(\tanh (a+b x))+a+b x\right )+a^3+6 a \left (-\tanh ^{-1}(\tanh (a+b x))+a+b x\right )^2-4 \left (-\tanh ^{-1}(\tanh (a+b x))+a+b x\right )^3\right )+\frac{1}{4} (a+b x)^4-\frac{1}{3} (a+b x)^3 \left (-4 \tanh ^{-1}(\tanh (a+b x))+3 a+4 b x\right )+\log (b x) \left (\tanh ^{-1}(\tanh (a+b x))-b x\right )^4 \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.038, size = 127, normalized size = 1.2 \begin{align*} \ln \left ( x \right ) \left ({\it Artanh} \left ( \tanh \left ( bx+a \right ) \right ) \right ) ^{4}-4\,{\it Artanh} \left ( \tanh \left ( bx+a \right ) \right ) \ln \left ( x \right ){x}^{3}{b}^{3}+6\, \left ({\it Artanh} \left ( \tanh \left ( bx+a \right ) \right ) \right ) ^{2}\ln \left ( x \right ){x}^{2}{b}^{2}+{\frac{22\,{\it Artanh} \left ( \tanh \left ( bx+a \right ) \right ){x}^{3}{b}^{3}}{3}}-9\, \left ({\it Artanh} \left ( \tanh \left ( bx+a \right ) \right ) \right ) ^{2}{x}^{2}{b}^{2}-4\,b \left ({\it Artanh} \left ( \tanh \left ( bx+a \right ) \right ) \right ) ^{3}\ln \left ( x \right ) x+{b}^{4}{x}^{4}\ln \left ( x \right ) -{\frac{25\,{x}^{4}{b}^{4}}{12}}+4\,b \left ({\it Artanh} \left ( \tanh \left ( bx+a \right ) \right ) \right ) ^{3}x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 2.40378, size = 57, normalized size = 0.54 \begin{align*} \frac{1}{4} \, b^{4} x^{4} + \frac{4}{3} \, a b^{3} x^{3} + 3 \, a^{2} b^{2} x^{2} + 4 \, a^{3} b x + a^{4} \log \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.61591, size = 95, normalized size = 0.9 \begin{align*} \frac{1}{4} \, b^{4} x^{4} + \frac{4}{3} \, a b^{3} x^{3} + 3 \, a^{2} b^{2} x^{2} + 4 \, a^{3} b x + a^{4} \log \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{atanh}^{4}{\left (\tanh{\left (a + b x \right )} \right )}}{x}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1105, size = 58, normalized size = 0.55 \begin{align*} \frac{1}{4} \, b^{4} x^{4} + \frac{4}{3} \, a b^{3} x^{3} + 3 \, a^{2} b^{2} x^{2} + 4 \, a^{3} b x + a^{4} \log \left ({\left | x \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]