Optimal. Leaf size=31 \[ \frac{\left (b x-\tanh ^{-1}(\tanh (a+b x))\right ) \log \left (\tanh ^{-1}(\tanh (a+b x))\right )}{b^2}+\frac{x}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0150204, antiderivative size = 31, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.273, Rules used = {2158, 2157, 29} \[ \frac{\left (b x-\tanh ^{-1}(\tanh (a+b x))\right ) \log \left (\tanh ^{-1}(\tanh (a+b x))\right )}{b^2}+\frac{x}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2158
Rule 2157
Rule 29
Rubi steps
\begin{align*} \int \frac{x}{\tanh ^{-1}(\tanh (a+b x))} \, dx &=\frac{x}{b}-\frac{\left (-b x+\tanh ^{-1}(\tanh (a+b x))\right ) \int \frac{1}{\tanh ^{-1}(\tanh (a+b x))} \, dx}{b}\\ &=\frac{x}{b}-\frac{\left (-b x+\tanh ^{-1}(\tanh (a+b x))\right ) \operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,\tanh ^{-1}(\tanh (a+b x))\right )}{b^2}\\ &=\frac{x}{b}+\frac{\left (b x-\tanh ^{-1}(\tanh (a+b x))\right ) \log \left (\tanh ^{-1}(\tanh (a+b x))\right )}{b^2}\\ \end{align*}
Mathematica [A] time = 0.0232616, size = 31, normalized size = 1. \[ \frac{x}{b}-\frac{\left (\tanh ^{-1}(\tanh (a+b x))-b x\right ) \log \left (\tanh ^{-1}(\tanh (a+b x))\right )}{b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.033, size = 49, normalized size = 1.6 \begin{align*}{\frac{x}{b}}-{\frac{\ln \left ({\it Artanh} \left ( \tanh \left ( bx+a \right ) \right ) \right ) a}{{b}^{2}}}-{\frac{\ln \left ({\it Artanh} \left ( \tanh \left ( bx+a \right ) \right ) \right ) \left ({\it Artanh} \left ( \tanh \left ( bx+a \right ) \right ) -bx-a \right ) }{{b}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.76601, size = 24, normalized size = 0.77 \begin{align*} \frac{x}{b} - \frac{a \log \left (b x + a\right )}{b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.53216, size = 38, normalized size = 1.23 \begin{align*} \frac{b x - a \log \left (b x + a\right )}{b^{2}} \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{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.13733, size = 26, normalized size = 0.84 \begin{align*} \frac{x}{b} - \frac{a \log \left ({\left | b x + a \right |}\right )}{b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]