Optimal. Leaf size=37 \[ -\frac {1}{2} \coth ^{-1}(x)^2+\coth ^{-1}(x) \log \left (\frac {2}{1-x}\right )+\frac {1}{2} \text {PolyLog}\left (2,\frac {1+x}{-1+x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {6132, 6056,
2449, 2352} \begin {gather*} \frac {1}{2} \text {Li}_2\left (\frac {x+1}{x-1}\right )-\frac {1}{2} \coth ^{-1}(x)^2+\log \left (\frac {2}{1-x}\right ) \coth ^{-1}(x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2352
Rule 2449
Rule 6056
Rule 6132
Rubi steps
\begin {align*} \int \frac {x \coth ^{-1}(x)}{1-x^2} \, dx &=-\frac {1}{2} \coth ^{-1}(x)^2+\int \frac {\coth ^{-1}(x)}{1-x} \, dx\\ &=-\frac {1}{2} \coth ^{-1}(x)^2+\coth ^{-1}(x) \log \left (\frac {2}{1-x}\right )-\int \frac {\log \left (\frac {2}{1-x}\right )}{1-x^2} \, dx\\ &=-\frac {1}{2} \coth ^{-1}(x)^2+\coth ^{-1}(x) \log \left (\frac {2}{1-x}\right )+\text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1-x}\right )\\ &=-\frac {1}{2} \coth ^{-1}(x)^2+\coth ^{-1}(x) \log \left (\frac {2}{1-x}\right )+\frac {1}{2} \text {Li}_2\left (\frac {1+x}{-1+x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 34, normalized size = 0.92 \begin {gather*} \frac {1}{2} \left (\coth ^{-1}(x) \left (\coth ^{-1}(x)+2 \log \left (1-e^{-2 \coth ^{-1}(x)}\right )\right )-\text {PolyLog}\left (2,e^{-2 \coth ^{-1}(x)}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(74\) vs.
\(2(33)=66\).
time = 0.09, size = 75, normalized size = 2.03
method | result | size |
risch | \(\frac {\dilog \left (\frac {1}{2}+\frac {x}{2}\right )}{2}+\frac {\ln \left (-1+x \right ) \ln \left (\frac {1}{2}+\frac {x}{2}\right )}{4}+\frac {\ln \left (-1+x \right )^{2}}{8}-\frac {\left (\ln \left (1+x \right )-\ln \left (\frac {1}{2}+\frac {x}{2}\right )\right ) \ln \left (\frac {1}{2}-\frac {x}{2}\right )}{4}-\frac {\ln \left (1+x \right )^{2}}{8}\) | \(59\) |
default | \(-\frac {\mathrm {arccoth}\left (x \right ) \ln \left (-1+x \right )}{2}-\frac {\mathrm {arccoth}\left (x \right ) \ln \left (1+x \right )}{2}+\frac {\dilog \left (\frac {1}{2}+\frac {x}{2}\right )}{2}+\frac {\ln \left (-1+x \right ) \ln \left (\frac {1}{2}+\frac {x}{2}\right )}{4}-\frac {\ln \left (-1+x \right )^{2}}{8}-\frac {\left (\ln \left (1+x \right )-\ln \left (\frac {1}{2}+\frac {x}{2}\right )\right ) \ln \left (\frac {1}{2}-\frac {x}{2}\right )}{4}+\frac {\ln \left (1+x \right )^{2}}{8}\) | \(75\) |
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. 76 vs.
\(2 (30) = 60\).
time = 0.25, size = 76, normalized size = 2.05 \begin {gather*} \frac {1}{4} \, {\left (\log \left (x + 1\right ) - \log \left (x - 1\right )\right )} \log \left (x^{2} - 1\right ) - \frac {1}{2} \, \operatorname {arcoth}\left (x\right ) \log \left (x^{2} - 1\right ) - \frac {1}{8} \, \log \left (x + 1\right )^{2} - \frac {1}{4} \, \log \left (x + 1\right ) \log \left (x - 1\right ) + \frac {1}{8} \, \log \left (x - 1\right )^{2} + \frac {1}{2} \, \log \left (x - 1\right ) \log \left (\frac {1}{2} \, x + \frac {1}{2}\right ) + \frac {1}{2} \, {\rm Li}_2\left (-\frac {1}{2} \, x + \frac {1}{2}\right ) \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*} - \int \frac {x \operatorname {acoth}{\left (x \right )}}{x^{2} - 1}\, dx \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 {x\,\mathrm {acoth}\left (x\right )}{x^2-1} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________