Optimal. Leaf size=97 \[ \frac{1}{2} \text{PolyLog}\left (3,1-\frac{2}{a x+1}\right )-\frac{1}{2} \text{PolyLog}\left (3,1-\frac{2 a x}{a x+1}\right )+\coth ^{-1}(a x) \text{PolyLog}\left (2,1-\frac{2}{a x+1}\right )-\coth ^{-1}(a x) \text{PolyLog}\left (2,1-\frac{2 a x}{a x+1}\right )+2 \coth ^{-1}\left (1-\frac{2}{1-a x}\right ) \coth ^{-1}(a x)^2 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.232009, antiderivative size = 97, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {5915, 6053, 5949, 6057, 6610} \[ \frac{1}{2} \text{PolyLog}\left (3,1-\frac{2}{a x+1}\right )-\frac{1}{2} \text{PolyLog}\left (3,1-\frac{2 a x}{a x+1}\right )+\coth ^{-1}(a x) \text{PolyLog}\left (2,1-\frac{2}{a x+1}\right )-\coth ^{-1}(a x) \text{PolyLog}\left (2,1-\frac{2 a x}{a x+1}\right )+2 \coth ^{-1}\left (1-\frac{2}{1-a x}\right ) \coth ^{-1}(a x)^2 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5915
Rule 6053
Rule 5949
Rule 6057
Rule 6610
Rubi steps
\begin{align*} \int \frac{\coth ^{-1}(a x)^2}{x} \, dx &=2 \coth ^{-1}(a x)^2 \coth ^{-1}\left (1-\frac{2}{1-a x}\right )-(4 a) \int \frac{\coth ^{-1}(a x) \coth ^{-1}\left (1-\frac{2}{1-a x}\right )}{1-a^2 x^2} \, dx\\ &=2 \coth ^{-1}(a x)^2 \coth ^{-1}\left (1-\frac{2}{1-a x}\right )+(2 a) \int \frac{\coth ^{-1}(a x) \log \left (\frac{2}{1+a x}\right )}{1-a^2 x^2} \, dx-(2 a) \int \frac{\coth ^{-1}(a x) \log \left (\frac{2 a x}{1+a x}\right )}{1-a^2 x^2} \, dx\\ &=2 \coth ^{-1}(a x)^2 \coth ^{-1}\left (1-\frac{2}{1-a x}\right )+\coth ^{-1}(a x) \text{Li}_2\left (1-\frac{2}{1+a x}\right )-\coth ^{-1}(a x) \text{Li}_2\left (1-\frac{2 a x}{1+a x}\right )-a \int \frac{\text{Li}_2\left (1-\frac{2}{1+a x}\right )}{1-a^2 x^2} \, dx+a \int \frac{\text{Li}_2\left (1-\frac{2 a x}{1+a x}\right )}{1-a^2 x^2} \, dx\\ &=2 \coth ^{-1}(a x)^2 \coth ^{-1}\left (1-\frac{2}{1-a x}\right )+\coth ^{-1}(a x) \text{Li}_2\left (1-\frac{2}{1+a x}\right )-\coth ^{-1}(a x) \text{Li}_2\left (1-\frac{2 a x}{1+a x}\right )+\frac{1}{2} \text{Li}_3\left (1-\frac{2}{1+a x}\right )-\frac{1}{2} \text{Li}_3\left (1-\frac{2 a x}{1+a x}\right )\\ \end{align*}
Mathematica [A] time = 0.0634424, size = 114, normalized size = 1.18 \[ -\coth ^{-1}(a x) \text{PolyLog}\left (2,-e^{-2 \coth ^{-1}(a x)}\right )-\coth ^{-1}(a x) \text{PolyLog}\left (2,e^{2 \coth ^{-1}(a x)}\right )-\frac{1}{2} \text{PolyLog}\left (3,-e^{-2 \coth ^{-1}(a x)}\right )+\frac{1}{2} \text{PolyLog}\left (3,e^{2 \coth ^{-1}(a x)}\right )+\frac{2}{3} \coth ^{-1}(a x)^3+\coth ^{-1}(a x)^2 \log \left (e^{-2 \coth ^{-1}(a x)}+1\right )-\coth ^{-1}(a x)^2 \log \left (1-e^{2 \coth ^{-1}(a x)}\right ) \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.381, size = 487, normalized size = 5. \begin{align*} \ln \left ( ax \right ) \left ({\rm arccoth} \left (ax\right ) \right ) ^{2}+{\frac{i}{2}}\pi \,{\it csgn} \left ( i \left ({\frac{ax+1}{ax-1}}+1 \right ) \right ){\it csgn} \left ({i \left ({\frac{ax+1}{ax-1}}-1 \right ) ^{-1}} \right ){\it csgn} \left ({i \left ({\frac{ax+1}{ax-1}}+1 \right ) \left ({\frac{ax+1}{ax-1}}-1 \right ) ^{-1}} \right ) \left ({\rm arccoth} \left (ax\right ) \right ) ^{2}-{\frac{i}{2}}\pi \,{\it csgn} \left ( i \left ({\frac{ax+1}{ax-1}}+1 \right ) \right ) \left ({\it csgn} \left ({i \left ({\frac{ax+1}{ax-1}}+1 \right ) \left ({\frac{ax+1}{ax-1}}-1 \right ) ^{-1}} \right ) \right ) ^{2} \left ({\rm arccoth} \left (ax\right ) \right ) ^{2}-{\frac{i}{2}}\pi \,{\it csgn} \left ({i \left ({\frac{ax+1}{ax-1}}-1 \right ) ^{-1}} \right ) \left ({\it csgn} \left ({i \left ({\frac{ax+1}{ax-1}}+1 \right ) \left ({\frac{ax+1}{ax-1}}-1 \right ) ^{-1}} \right ) \right ) ^{2} \left ({\rm arccoth} \left (ax\right ) \right ) ^{2}+{\frac{i}{2}}\pi \, \left ({\it csgn} \left ({i \left ({\frac{ax+1}{ax-1}}+1 \right ) \left ({\frac{ax+1}{ax-1}}-1 \right ) ^{-1}} \right ) \right ) ^{3} \left ({\rm arccoth} \left (ax\right ) \right ) ^{2}+ \left ({\rm arccoth} \left (ax\right ) \right ) ^{2}\ln \left ({\frac{ax+1}{ax-1}}-1 \right ) - \left ({\rm arccoth} \left (ax\right ) \right ) ^{2}\ln \left ( 1-{\frac{1}{\sqrt{{\frac{ax-1}{ax+1}}}}} \right ) -2\,{\rm arccoth} \left (ax\right ){\it polylog} \left ( 2,{\frac{1}{\sqrt{{\frac{ax-1}{ax+1}}}}} \right ) +2\,{\it polylog} \left ( 3,{\frac{1}{\sqrt{{\frac{ax-1}{ax+1}}}}} \right ) - \left ({\rm arccoth} \left (ax\right ) \right ) ^{2}\ln \left ( 1+{\frac{1}{\sqrt{{\frac{ax-1}{ax+1}}}}} \right ) -2\,{\rm arccoth} \left (ax\right ){\it polylog} \left ( 2,-{\frac{1}{\sqrt{{\frac{ax-1}{ax+1}}}}} \right ) +2\,{\it polylog} \left ( 3,-{\frac{1}{\sqrt{{\frac{ax-1}{ax+1}}}}} \right ) +{\rm arccoth} \left (ax\right ){\it polylog} \left ( 2,-{\frac{ax+1}{ax-1}} \right ) -{\frac{1}{2}{\it polylog} \left ( 3,-{\frac{ax+1}{ax-1}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{arcoth}\left (a x\right )^{2}}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\operatorname{arcoth}\left (a x\right )^{2}}{x}, x\right ) \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{\operatorname{acoth}^{2}{\left (a x \right )}}{x}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{arcoth}\left (a x\right )^{2}}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]