Optimal. Leaf size=35 \[ \frac {\text {PolyLog}\left (2,-\frac {1}{a+b x}\right )}{2 d}-\frac {\text {PolyLog}\left (2,\frac {1}{a+b x}\right )}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {6243, 12, 6032}
\begin {gather*} \frac {\text {Li}_2\left (-\frac {1}{a+b x}\right )}{2 d}-\frac {\text {Li}_2\left (\frac {1}{a+b x}\right )}{2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 6032
Rule 6243
Rubi steps
\begin {align*} \int \frac {\coth ^{-1}(a+b x)}{\frac {a d}{b}+d x} \, dx &=\frac {\text {Subst}\left (\int \frac {b \coth ^{-1}(x)}{d x} \, dx,x,a+b x\right )}{b}\\ &=\frac {\text {Subst}\left (\int \frac {\coth ^{-1}(x)}{x} \, dx,x,a+b x\right )}{d}\\ &=\frac {\text {Li}_2\left (-\frac {1}{a+b x}\right )}{2 d}-\frac {\text {Li}_2\left (\frac {1}{a+b x}\right )}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(312\) vs. \(2(35)=70\).
time = 0.02, size = 312, normalized size = 8.91 \begin {gather*} b \left (-\frac {\log \left (\frac {b (-1+a+b x)}{(-1+a) b-a b}\right ) \log \left (\frac {-((-1+a) b)+a b}{b (a+b x)}\right )}{2 b d}-\frac {\log ^2\left (\frac {-((-1+a) b)+a b}{b (a+b x)}\right )}{4 b d}+\frac {\log \left (\frac {b (-1-a-b x)}{(-1-a) b+a b}\right ) \log \left (\frac {a b-(1+a) b}{b (a+b x)}\right )}{2 b d}+\frac {\log ^2\left (\frac {a b-(1+a) b}{b (a+b x)}\right )}{4 b d}+\frac {\log \left (\frac {-((-1+a) b)+a b}{b (a+b x)}\right ) \log \left (\frac {-1+a+b x}{a+b x}\right )}{2 b d}-\frac {\log \left (\frac {a b-(1+a) b}{b (a+b x)}\right ) \log \left (\frac {1+a+b x}{a+b x}\right )}{2 b d}-\frac {\text {PolyLog}(2,-a-b x)}{2 b d}+\frac {\text {PolyLog}(2,a+b x)}{2 b d}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.12, size = 61, normalized size = 1.74
method | result | size |
risch | \(-\frac {\dilog \left (b x +a +1\right )}{2 d}-\frac {\ln \left (b x +a -1\right ) \ln \left (b x +a \right )}{2 d}-\frac {\dilog \left (b x +a \right )}{2 d}\) | \(43\) |
derivativedivides | \(\frac {\frac {b \ln \left (b x +a \right ) \mathrm {arccoth}\left (b x +a \right )}{d}+\frac {b \left (-\frac {\dilog \left (b x +a \right )}{2}-\frac {\dilog \left (b x +a +1\right )}{2}-\frac {\ln \left (b x +a \right ) \ln \left (b x +a +1\right )}{2}\right )}{d}}{b}\) | \(61\) |
default | \(\frac {\frac {b \ln \left (b x +a \right ) \mathrm {arccoth}\left (b x +a \right )}{d}+\frac {b \left (-\frac {\dilog \left (b x +a \right )}{2}-\frac {\dilog \left (b x +a +1\right )}{2}-\frac {\ln \left (b x +a \right ) \ln \left (b x +a +1\right )}{2}\right )}{d}}{b}\) | \(61\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 132 vs.
\(2 (29) = 58\).
time = 0.28, size = 132, normalized size = 3.77 \begin {gather*} -\frac {1}{2} \, b {\left (\frac {\log \left (b x + a\right ) \log \left (b x + a - 1\right ) + {\rm Li}_2\left (-b x - a + 1\right )}{b d} - \frac {\log \left (b x + a + 1\right ) \log \left (-b x - a\right ) + {\rm Li}_2\left (b x + a + 1\right )}{b d}\right )} - \frac {b {\left (\frac {\log \left (b x + a + 1\right )}{b} - \frac {\log \left (b x + a - 1\right )}{b}\right )} \log \left (d x + \frac {a d}{b}\right )}{2 \, d} + \frac {\operatorname {arcoth}\left (b x + a\right ) \log \left (d x + \frac {a d}{b}\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {b \int \frac {\operatorname {acoth}{\left (a + b x \right )}}{a + b x}\, dx}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int \frac {\mathrm {acoth}\left (a+b\,x\right )}{d\,x+\frac {a\,d}{b}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________