Optimal. Leaf size=48 \[ -\frac {\coth ^{-1}(a+b x)}{b (a+b x)}+\frac {\log (a+b x)}{b}-\frac {\log \left (1-(a+b x)^2\right )}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.429, Rules used = {6243, 6038,
272, 36, 31, 29} \begin {gather*} \frac {\log (a+b x)}{b}-\frac {\log \left (1-(a+b x)^2\right )}{2 b}-\frac {\coth ^{-1}(a+b x)}{b (a+b x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 272
Rule 6038
Rule 6243
Rubi steps
\begin {align*} \int \frac {\coth ^{-1}(a+b x)}{(a+b x)^2} \, dx &=\frac {\text {Subst}\left (\int \frac {\coth ^{-1}(x)}{x^2} \, dx,x,a+b x\right )}{b}\\ &=-\frac {\coth ^{-1}(a+b x)}{b (a+b x)}+\frac {\text {Subst}\left (\int \frac {1}{x \left (1-x^2\right )} \, dx,x,a+b x\right )}{b}\\ &=-\frac {\coth ^{-1}(a+b x)}{b (a+b x)}+\frac {\text {Subst}\left (\int \frac {1}{(1-x) x} \, dx,x,(a+b x)^2\right )}{2 b}\\ &=-\frac {\coth ^{-1}(a+b x)}{b (a+b x)}+\frac {\text {Subst}\left (\int \frac {1}{1-x} \, dx,x,(a+b x)^2\right )}{2 b}+\frac {\text {Subst}\left (\int \frac {1}{x} \, dx,x,(a+b x)^2\right )}{2 b}\\ &=-\frac {\coth ^{-1}(a+b x)}{b (a+b x)}+\frac {\log (a+b x)}{b}-\frac {\log \left (1-(a+b x)^2\right )}{2 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 43, normalized size = 0.90 \begin {gather*} -\frac {\frac {2 \coth ^{-1}(a+b x)}{a+b x}-2 \log (a+b x)+\log \left (1-(a+b x)^2\right )}{2 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 45, normalized size = 0.94
method | result | size |
derivativedivides | \(\frac {-\frac {\mathrm {arccoth}\left (b x +a \right )}{b x +a}+\ln \left (b x +a \right )-\frac {\ln \left (b x +a -1\right )}{2}-\frac {\ln \left (b x +a +1\right )}{2}}{b}\) | \(45\) |
default | \(\frac {-\frac {\mathrm {arccoth}\left (b x +a \right )}{b x +a}+\ln \left (b x +a \right )-\frac {\ln \left (b x +a -1\right )}{2}-\frac {\ln \left (b x +a +1\right )}{2}}{b}\) | \(45\) |
risch | \(-\frac {\ln \left (b x +a +1\right )}{2 b \left (b x +a \right )}+\frac {2 \ln \left (-b x -a \right ) b x -\ln \left (b^{2} x^{2}+2 b x a +a^{2}-1\right ) b x +2 \ln \left (-b x -a \right ) a -\ln \left (b^{2} x^{2}+2 b x a +a^{2}-1\right ) a +\ln \left (b x +a -1\right )}{2 b \left (b x +a \right )}\) | \(109\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 53, normalized size = 1.10 \begin {gather*} -\frac {\log \left (b x + a + 1\right )}{2 \, b} + \frac {\log \left (b x + a\right )}{b} - \frac {\log \left (b x + a - 1\right )}{2 \, b} - \frac {\operatorname {arcoth}\left (b x + a\right )}{{\left (b x + a\right )} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 67, normalized size = 1.40 \begin {gather*} -\frac {{\left (b x + a\right )} \log \left (b^{2} x^{2} + 2 \, a b x + a^{2} - 1\right ) - 2 \, {\left (b x + a\right )} \log \left (b x + a\right ) + \log \left (\frac {b x + a + 1}{b x + a - 1}\right )}{2 \, {\left (b^{2} x + a b\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 136 vs.
\(2 (34) = 68\).
time = 0.59, size = 136, normalized size = 2.83 \begin {gather*} \begin {cases} \frac {a \log {\left (\frac {a}{b} + x \right )}}{a b + b^{2} x} - \frac {a \log {\left (\frac {a}{b} + x + \frac {1}{b} \right )}}{a b + b^{2} x} + \frac {a \operatorname {acoth}{\left (a + b x \right )}}{a b + b^{2} x} + \frac {b x \log {\left (\frac {a}{b} + x \right )}}{a b + b^{2} x} - \frac {b x \log {\left (\frac {a}{b} + x + \frac {1}{b} \right )}}{a b + b^{2} x} + \frac {b x \operatorname {acoth}{\left (a + b x \right )}}{a b + b^{2} x} - \frac {\operatorname {acoth}{\left (a + b x \right )}}{a b + b^{2} x} & \text {for}\: b \neq 0 \\\frac {x \operatorname {acoth}{\left (a \right )}}{a^{2}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 198 vs.
\(2 (46) = 92\).
time = 0.40, size = 198, normalized size = 4.12 \begin {gather*} -\frac {1}{2} \, {\left ({\left (a + 1\right )} b - {\left (a - 1\right )} b\right )} {\left (\frac {\log \left (\frac {{\left | b x + a + 1 \right |}}{{\left | b x + a - 1 \right |}}\right )}{b^{2}} - \frac {\log \left ({\left | \frac {b x + a + 1}{b x + a - 1} + 1 \right |}\right )}{b^{2}} - \frac {\log \left (-\frac {\frac {1}{a - \frac {{\left (\frac {{\left (b x + a + 1\right )} {\left (a - 1\right )}}{b x + a - 1} - a - 1\right )} b}{\frac {{\left (b x + a + 1\right )} b}{b x + a - 1} - b}} + 1}{\frac {1}{a - \frac {{\left (\frac {{\left (b x + a + 1\right )} {\left (a - 1\right )}}{b x + a - 1} - a - 1\right )} b}{\frac {{\left (b x + a + 1\right )} b}{b x + a - 1} - b}} - 1}\right )}{b^{2} {\left (\frac {b x + a + 1}{b x + a - 1} + 1\right )}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.41, size = 93, normalized size = 1.94 \begin {gather*} \frac {\ln \left (a+b\,x\right )}{b}-\frac {\ln \left (a^2+2\,a\,b\,x+b^2\,x^2-1\right )}{2\,b}-\frac {\ln \left (\frac {a+b\,x+1}{a+b\,x}\right )}{2\,\left (x\,b^2+a\,b\right )}+\frac {\ln \left (\frac {a+b\,x-1}{a+b\,x}\right )}{2\,x\,b^2+2\,a\,b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________