Optimal. Leaf size=44 \[ \frac{\log \left (\tanh ^{-1}(\tanh (a+b x))\right )}{b x-\tanh ^{-1}(\tanh (a+b x))}-\frac{\log (x)}{b x-\tanh ^{-1}(\tanh (a+b x))} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0265642, antiderivative size = 44, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {2160, 2157, 29} \[ \frac{\log \left (\tanh ^{-1}(\tanh (a+b x))\right )}{b x-\tanh ^{-1}(\tanh (a+b x))}-\frac{\log (x)}{b x-\tanh ^{-1}(\tanh (a+b x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2160
Rule 2157
Rule 29
Rubi steps
\begin{align*} \int \frac{1}{x \tanh ^{-1}(\tanh (a+b x))} \, dx &=-\frac{\int \frac{1}{x} \, dx}{b x-\tanh ^{-1}(\tanh (a+b x))}+\frac{b \int \frac{1}{\tanh ^{-1}(\tanh (a+b x))} \, dx}{b x-\tanh ^{-1}(\tanh (a+b x))}\\ &=-\frac{\log (x)}{b x-\tanh ^{-1}(\tanh (a+b x))}+\frac{\operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,\tanh ^{-1}(\tanh (a+b x))\right )}{b x-\tanh ^{-1}(\tanh (a+b x))}\\ &=-\frac{\log (x)}{b x-\tanh ^{-1}(\tanh (a+b x))}+\frac{\log \left (\tanh ^{-1}(\tanh (a+b x))\right )}{b x-\tanh ^{-1}(\tanh (a+b x))}\\ \end{align*}
Mathematica [A] time = 0.0188116, size = 29, normalized size = 0.66 \[ \frac{\log \left (\tanh ^{-1}(\tanh (a+b x))\right )-\log (x)}{b x-\tanh ^{-1}(\tanh (a+b x))} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.038, size = 43, normalized size = 1. \begin{align*}{\frac{\ln \left ( x \right ) }{{\it Artanh} \left ( \tanh \left ( bx+a \right ) \right ) -bx}}-{\frac{\ln \left ({\it Artanh} \left ( \tanh \left ( bx+a \right ) \right ) \right ) }{{\it Artanh} \left ( \tanh \left ( bx+a \right ) \right ) -bx}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.77811, size = 24, normalized size = 0.55 \begin{align*} -\frac{\log \left (b x + a\right )}{a} + \frac{\log \left (x\right )}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.55827, size = 38, normalized size = 0.86 \begin{align*} -\frac{\log \left (b x + a\right ) - \log \left (x\right )}{a} \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{1}{x \operatorname{atanh}{\left (\tanh{\left (a + b x \right )} \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15711, size = 27, normalized size = 0.61 \begin{align*} -\frac{\log \left ({\left | b x + a \right |}\right )}{a} + \frac{\log \left ({\left | x \right |}\right )}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]