Optimal. Leaf size=302 \[ -\frac{b \text{PolyLog}\left (2,1-\frac{2}{\frac{\sqrt{1-c x}}{\sqrt{c x+1}}+1}\right ) \left (a+b \coth ^{-1}\left (\frac{\sqrt{1-c x}}{\sqrt{c x+1}}\right )\right )}{c}+\frac{b \text{PolyLog}\left (2,1-\frac{2 \sqrt{1-c x}}{\sqrt{c x+1} \left (\frac{\sqrt{1-c x}}{\sqrt{c x+1}}+1\right )}\right ) \left (a+b \coth ^{-1}\left (\frac{\sqrt{1-c x}}{\sqrt{c x+1}}\right )\right )}{c}-\frac{b^2 \text{PolyLog}\left (3,1-\frac{2}{\frac{\sqrt{1-c x}}{\sqrt{c x+1}}+1}\right )}{2 c}+\frac{b^2 \text{PolyLog}\left (3,1-\frac{2 \sqrt{1-c x}}{\sqrt{c x+1} \left (\frac{\sqrt{1-c x}}{\sqrt{c x+1}}+1\right )}\right )}{2 c}-\frac{2 \coth ^{-1}\left (1-\frac{2}{1-\frac{\sqrt{1-c x}}{\sqrt{c x+1}}}\right ) \left (a+b \coth ^{-1}\left (\frac{\sqrt{1-c x}}{\sqrt{c x+1}}\right )\right )^2}{c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.346365, antiderivative size = 302, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.15, Rules used = {6681, 5915, 6053, 5949, 6057, 6610} \[ -\frac{b \text{PolyLog}\left (2,1-\frac{2}{\frac{\sqrt{1-c x}}{\sqrt{c x+1}}+1}\right ) \left (a+b \coth ^{-1}\left (\frac{\sqrt{1-c x}}{\sqrt{c x+1}}\right )\right )}{c}+\frac{b \text{PolyLog}\left (2,1-\frac{2 \sqrt{1-c x}}{\sqrt{c x+1} \left (\frac{\sqrt{1-c x}}{\sqrt{c x+1}}+1\right )}\right ) \left (a+b \coth ^{-1}\left (\frac{\sqrt{1-c x}}{\sqrt{c x+1}}\right )\right )}{c}-\frac{b^2 \text{PolyLog}\left (3,1-\frac{2}{\frac{\sqrt{1-c x}}{\sqrt{c x+1}}+1}\right )}{2 c}+\frac{b^2 \text{PolyLog}\left (3,1-\frac{2 \sqrt{1-c x}}{\sqrt{c x+1} \left (\frac{\sqrt{1-c x}}{\sqrt{c x+1}}+1\right )}\right )}{2 c}-\frac{2 \coth ^{-1}\left (1-\frac{2}{1-\frac{\sqrt{1-c x}}{\sqrt{c x+1}}}\right ) \left (a+b \coth ^{-1}\left (\frac{\sqrt{1-c x}}{\sqrt{c x+1}}\right )\right )^2}{c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6681
Rule 5915
Rule 6053
Rule 5949
Rule 6057
Rule 6610
Rubi steps
\begin{align*} \int \frac{\left (a+b \coth ^{-1}\left (\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )\right )^2}{1-c^2 x^2} \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{\left (a+b \coth ^{-1}(x)\right )^2}{x} \, dx,x,\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )}{c}\\ &=-\frac{2 \left (a+b \coth ^{-1}\left (\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )\right )^2 \coth ^{-1}\left (1-\frac{2}{1-\frac{\sqrt{1-c x}}{\sqrt{1+c x}}}\right )}{c}+\frac{(4 b) \operatorname{Subst}\left (\int \frac{\coth ^{-1}\left (1-\frac{2}{1-x}\right ) \left (a+b \coth ^{-1}(x)\right )}{1-x^2} \, dx,x,\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )}{c}\\ &=-\frac{2 \left (a+b \coth ^{-1}\left (\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )\right )^2 \coth ^{-1}\left (1-\frac{2}{1-\frac{\sqrt{1-c x}}{\sqrt{1+c x}}}\right )}{c}-\frac{(2 b) \operatorname{Subst}\left (\int \frac{\left (a+b \coth ^{-1}(x)\right ) \log \left (\frac{2}{1+x}\right )}{1-x^2} \, dx,x,\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )}{c}+\frac{(2 b) \operatorname{Subst}\left (\int \frac{\left (a+b \coth ^{-1}(x)\right ) \log \left (\frac{2 x}{1+x}\right )}{1-x^2} \, dx,x,\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )}{c}\\ &=-\frac{2 \left (a+b \coth ^{-1}\left (\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )\right )^2 \coth ^{-1}\left (1-\frac{2}{1-\frac{\sqrt{1-c x}}{\sqrt{1+c x}}}\right )}{c}-\frac{b \left (a+b \coth ^{-1}\left (\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )\right ) \text{Li}_2\left (1-\frac{2}{1+\frac{\sqrt{1-c x}}{\sqrt{1+c x}}}\right )}{c}+\frac{b \left (a+b \coth ^{-1}\left (\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )\right ) \text{Li}_2\left (1-\frac{2 \sqrt{1-c x}}{\sqrt{1+c x} \left (1+\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )}\right )}{c}+\frac{b^2 \operatorname{Subst}\left (\int \frac{\text{Li}_2\left (1-\frac{2}{1+x}\right )}{1-x^2} \, dx,x,\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )}{c}-\frac{b^2 \operatorname{Subst}\left (\int \frac{\text{Li}_2\left (1-\frac{2 x}{1+x}\right )}{1-x^2} \, dx,x,\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )}{c}\\ &=-\frac{2 \left (a+b \coth ^{-1}\left (\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )\right )^2 \coth ^{-1}\left (1-\frac{2}{1-\frac{\sqrt{1-c x}}{\sqrt{1+c x}}}\right )}{c}-\frac{b \left (a+b \coth ^{-1}\left (\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )\right ) \text{Li}_2\left (1-\frac{2}{1+\frac{\sqrt{1-c x}}{\sqrt{1+c x}}}\right )}{c}+\frac{b \left (a+b \coth ^{-1}\left (\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )\right ) \text{Li}_2\left (1-\frac{2 \sqrt{1-c x}}{\sqrt{1+c x} \left (1+\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )}\right )}{c}-\frac{b^2 \text{Li}_3\left (1-\frac{2}{1+\frac{\sqrt{1-c x}}{\sqrt{1+c x}}}\right )}{2 c}+\frac{b^2 \text{Li}_3\left (1-\frac{2 \sqrt{1-c x}}{\sqrt{1+c x} \left (1+\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )}\right )}{2 c}\\ \end{align*}
Mathematica [F] time = 0.510229, size = 0, normalized size = 0. \[ \int \frac{\left (a+b \coth ^{-1}\left (\frac{\sqrt{1-c x}}{\sqrt{1+c x}}\right )\right )^2}{1-c^2 x^2} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 1.202, size = 696, normalized size = 2.3 \begin{align*} \text{result too large to display} \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*} \frac{1}{2} \, a^{2}{\left (\frac{\log \left (c x + 1\right )}{c} - \frac{\log \left (c x - 1\right )}{c}\right )} + \frac{{\left (b^{2} \log \left (c x + 1\right ) - b^{2} \log \left (-c x + 1\right )\right )} \log \left (-\sqrt{c x + 1} + \sqrt{-c x + 1}\right )^{2}}{8 \, c} + \int -\frac{2 \,{\left (\sqrt{c x + 1} b^{2} - \sqrt{-c x + 1} b^{2}\right )} \log \left (\sqrt{c x + 1} + \sqrt{-c x + 1}\right )^{2} + 8 \,{\left (\sqrt{c x + 1} a b - \sqrt{-c x + 1} a b\right )} \log \left (\sqrt{c x + 1} + \sqrt{-c x + 1}\right ) -{\left (4 \,{\left (\sqrt{c x + 1} b^{2} - \sqrt{-c x + 1} b^{2}\right )} \log \left (\sqrt{c x + 1} + \sqrt{-c x + 1}\right ) +{\left (8 \, a b -{\left (b^{2} c x - b^{2}\right )} \log \left (c x + 1\right ) +{\left (b^{2} c x - b^{2}\right )} \log \left (-c x + 1\right )\right )} \sqrt{c x + 1} -{\left (8 \, a b -{\left (b^{2} c x + b^{2}\right )} \log \left (c x + 1\right ) +{\left (b^{2} c x + b^{2}\right )} \log \left (-c x + 1\right )\right )} \sqrt{-c x + 1}\right )} \log \left (-\sqrt{c x + 1} + \sqrt{-c x + 1}\right )}{8 \,{\left ({\left (c^{2} x^{2} - 1\right )} \sqrt{c x + 1} -{\left (c^{2} x^{2} - 1\right )} \sqrt{-c x + 1}\right )}}\,{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{b^{2} \operatorname{arcoth}\left (\frac{\sqrt{-c x + 1}}{\sqrt{c x + 1}}\right )^{2} + 2 \, a b \operatorname{arcoth}\left (\frac{\sqrt{-c x + 1}}{\sqrt{c x + 1}}\right ) + a^{2}}{c^{2} x^{2} - 1}, 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{a^{2}}{c^{2} x^{2} - 1}\, dx - \int \frac{b^{2} \operatorname{acoth}^{2}{\left (\frac{\sqrt{- c x + 1}}{\sqrt{c x + 1}} \right )}}{c^{2} x^{2} - 1}\, dx - \int \frac{2 a b \operatorname{acoth}{\left (\frac{\sqrt{- c x + 1}}{\sqrt{c x + 1}} \right )}}{c^{2} x^{2} - 1}\, 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{{\left (b \operatorname{arcoth}\left (\frac{\sqrt{-c x + 1}}{\sqrt{c x + 1}}\right ) + a\right )}^{2}}{c^{2} x^{2} - 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]