Optimal. Leaf size=28 \[ \frac {\log \left (\tanh ^{-1}(\tanh (a+b x))\right )}{b^2}-\frac {x}{b \tanh ^{-1}(\tanh (a+b x))} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 28, normalized size of antiderivative = 1.00, 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 = {2168, 2157, 29} \[ \frac {\log \left (\tanh ^{-1}(\tanh (a+b x))\right )}{b^2}-\frac {x}{b \tanh ^{-1}(\tanh (a+b x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 2157
Rule 2168
Rubi steps
\begin {align*} \int \frac {x}{\tanh ^{-1}(\tanh (a+b x))^2} \, dx &=-\frac {x}{b \tanh ^{-1}(\tanh (a+b x))}+\frac {\int \frac {1}{\tanh ^{-1}(\tanh (a+b x))} \, dx}{b}\\ &=-\frac {x}{b \tanh ^{-1}(\tanh (a+b x))}+\frac {\operatorname {Subst}\left (\int \frac {1}{x} \, dx,x,\tanh ^{-1}(\tanh (a+b x))\right )}{b^2}\\ &=-\frac {x}{b \tanh ^{-1}(\tanh (a+b x))}+\frac {\log \left (\tanh ^{-1}(\tanh (a+b x))\right )}{b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 27, normalized size = 0.96 \[ \frac {-\frac {b x}{\tanh ^{-1}(\tanh (a+b x))}+\log \left (\tanh ^{-1}(\tanh (a+b x))\right )+1}{b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 28, normalized size = 1.00 \[ \frac {{\left (b x + a\right )} \log \left (b x + a\right ) + a}{b^{3} x + a b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.16, size = 24, normalized size = 0.86 \[ \frac {\log \left ({\left | b x + a \right |}\right )}{b^{2}} + \frac {a}{{\left (b x + a\right )} b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.14, size = 56, normalized size = 2.00 \[ \frac {\ln \left (\arctanh \left (\tanh \left (b x +a \right )\right )\right )}{b^{2}}+\frac {a}{b^{2} \arctanh \left (\tanh \left (b x +a \right )\right )}+\frac {\arctanh \left (\tanh \left (b x +a \right )\right )-b x -a}{b^{2} \arctanh \left (\tanh \left (b x +a \right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.74, size = 26, normalized size = 0.93 \[ \frac {a}{b^{3} x + a b^{2}} + \frac {\log \left (b x + a\right )}{b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.08, size = 28, normalized size = 1.00 \[ \frac {\ln \left (\mathrm {atanh}\left (\mathrm {tanh}\left (a+b\,x\right )\right )\right )}{b^2}-\frac {x}{b\,\mathrm {atanh}\left (\mathrm {tanh}\left (a+b\,x\right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________