Optimal. Leaf size=81 \[ -\frac{\text{PolyLog}\left (2,-\frac{a+b x+1}{-a-b x+1}\right )}{b}+\frac{(a+b x) \coth ^{-1}(a+b x)^2}{b}+\frac{\coth ^{-1}(a+b x)^2}{b}-\frac{2 \log \left (\frac{2}{-a-b x+1}\right ) \coth ^{-1}(a+b x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0902758, antiderivative size = 81, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.75, Rules used = {6104, 5911, 5985, 5919, 2402, 2315} \[ -\frac{\text{PolyLog}\left (2,-\frac{a+b x+1}{-a-b x+1}\right )}{b}+\frac{(a+b x) \coth ^{-1}(a+b x)^2}{b}+\frac{\coth ^{-1}(a+b x)^2}{b}-\frac{2 \log \left (\frac{2}{-a-b x+1}\right ) \coth ^{-1}(a+b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6104
Rule 5911
Rule 5985
Rule 5919
Rule 2402
Rule 2315
Rubi steps
\begin{align*} \int \coth ^{-1}(a+b x)^2 \, dx &=\frac{\operatorname{Subst}\left (\int \coth ^{-1}(x)^2 \, dx,x,a+b x\right )}{b}\\ &=\frac{(a+b x) \coth ^{-1}(a+b x)^2}{b}-\frac{2 \operatorname{Subst}\left (\int \frac{x \coth ^{-1}(x)}{1-x^2} \, dx,x,a+b x\right )}{b}\\ &=\frac{\coth ^{-1}(a+b x)^2}{b}+\frac{(a+b x) \coth ^{-1}(a+b x)^2}{b}-\frac{2 \operatorname{Subst}\left (\int \frac{\coth ^{-1}(x)}{1-x} \, dx,x,a+b x\right )}{b}\\ &=\frac{\coth ^{-1}(a+b x)^2}{b}+\frac{(a+b x) \coth ^{-1}(a+b x)^2}{b}-\frac{2 \coth ^{-1}(a+b x) \log \left (\frac{2}{1-a-b x}\right )}{b}+\frac{2 \operatorname{Subst}\left (\int \frac{\log \left (\frac{2}{1-x}\right )}{1-x^2} \, dx,x,a+b x\right )}{b}\\ &=\frac{\coth ^{-1}(a+b x)^2}{b}+\frac{(a+b x) \coth ^{-1}(a+b x)^2}{b}-\frac{2 \coth ^{-1}(a+b x) \log \left (\frac{2}{1-a-b x}\right )}{b}-\frac{2 \operatorname{Subst}\left (\int \frac{\log (2 x)}{1-2 x} \, dx,x,\frac{1}{1-a-b x}\right )}{b}\\ &=\frac{\coth ^{-1}(a+b x)^2}{b}+\frac{(a+b x) \coth ^{-1}(a+b x)^2}{b}-\frac{2 \coth ^{-1}(a+b x) \log \left (\frac{2}{1-a-b x}\right )}{b}-\frac{\text{Li}_2\left (1-\frac{2}{1-a-b x}\right )}{b}\\ \end{align*}
Mathematica [A] time = 0.0696864, size = 55, normalized size = 0.68 \[ \frac{\text{PolyLog}\left (2,e^{-2 \coth ^{-1}(a+b x)}\right )+\coth ^{-1}(a+b x) \left ((a+b x-1) \coth ^{-1}(a+b x)-2 \log \left (1-e^{-2 \coth ^{-1}(a+b x)}\right )\right )}{b} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.102, size = 151, normalized size = 1.9 \begin{align*} x \left ({\rm arccoth} \left (bx+a\right ) \right ) ^{2}+{\frac{ \left ({\rm arccoth} \left (bx+a\right ) \right ) ^{2}a}{b}}-2\,{\frac{{\rm arccoth} \left (bx+a\right )}{b}\ln \left ( 1+{\frac{1}{\sqrt{{\frac{bx+a-1}{bx+a+1}}}}} \right ) }-2\,{\frac{{\rm arccoth} \left (bx+a\right )}{b}\ln \left ( 1-{\frac{1}{\sqrt{{\frac{bx+a-1}{bx+a+1}}}}} \right ) }+{\frac{ \left ({\rm arccoth} \left (bx+a\right ) \right ) ^{2}}{b}}-2\,{\frac{1}{b}{\it polylog} \left ( 2,-{\frac{1}{\sqrt{{\frac{bx+a-1}{bx+a+1}}}}} \right ) }-2\,{\frac{1}{b}{\it polylog} \left ( 2,{\frac{1}{\sqrt{{\frac{bx+a-1}{bx+a+1}}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.97802, size = 188, normalized size = 2.32 \begin{align*} -\frac{1}{4} \, b^{2}{\left (\frac{{\left (a + 1\right )} \log \left (b x + a + 1\right )^{2} - 2 \,{\left (a + 1\right )} \log \left (b x + a + 1\right ) \log \left (b x + a - 1\right ) +{\left (a - 1\right )} \log \left (b x + a - 1\right )^{2}}{b^{3}} + \frac{4 \,{\left (\log \left (b x + a - 1\right ) \log \left (\frac{1}{2} \, b x + \frac{1}{2} \, a + \frac{1}{2}\right ) +{\rm Li}_2\left (-\frac{1}{2} \, b x - \frac{1}{2} \, a + \frac{1}{2}\right )\right )}}{b^{3}}\right )} + b{\left (\frac{{\left (a + 1\right )} \log \left (b x + a + 1\right )}{b^{2}} - \frac{{\left (a - 1\right )} \log \left (b x + a - 1\right )}{b^{2}}\right )} \operatorname{arcoth}\left (b x + a\right ) + x \operatorname{arcoth}\left (b x + a\right )^{2} \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 (\operatorname{arcoth}\left (b x + a\right )^{2}, 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 \operatorname{acoth}^{2}{\left (a + b x \right )}\, 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 \operatorname{arcoth}\left (b x + a\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]