Optimal. Leaf size=302 \[ -\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 {PolyLog}\left (2,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 {PolyLog}\left (2,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 {PolyLog}\left (3,1-\frac {2}{1+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{2 c}+\frac {b^2 \text {PolyLog}\left (3,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} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.25, antiderivative size = 302, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {6813, 6034,
6200, 6096, 6204, 6745} \begin {gather*} -\frac {b \text {Li}_2\left (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 {Li}_2\left (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 {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}-\frac {b^2 \text {Li}_3\left (1-\frac {2}{\frac {\sqrt {1-c x}}{\sqrt {c x+1}}+1}\right )}{2 c}+\frac {b^2 \text {Li}_3\left (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} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6034
Rule 6096
Rule 6200
Rule 6204
Rule 6745
Rule 6813
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 {\text {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) \text {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) \text {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) \text {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 \text {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 \text {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.27, size = 0, normalized size = 0.00 \begin {gather*} \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 \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(693\) vs.
\(2(258)=516\).
time = 0.67, size = 694, normalized size = 2.30
method | result | size |
default | \(-\frac {a^{2} \ln \left (c x -1\right )}{2 c}+\frac {a^{2} \ln \left (c x +1\right )}{2 c}-\frac {b^{2} \mathrm {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right )^{2} \ln \left (\frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}{\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}-1}+1\right )}{c}-\frac {b^{2} \mathrm {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \polylog \left (2, -\frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}{\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}-1}\right )}{c}+\frac {b^{2} \polylog \left (3, -\frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}{\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}-1}\right )}{2 c}+\frac {b^{2} \mathrm {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right )^{2} \ln \left (1+\frac {1}{\sqrt {\frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}-1}{\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}}}\right )}{c}+\frac {2 b^{2} \mathrm {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \polylog \left (2, -\frac {1}{\sqrt {\frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}-1}{\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}}}\right )}{c}-\frac {2 b^{2} \polylog \left (3, -\frac {1}{\sqrt {\frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}-1}{\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}}}\right )}{c}+\frac {b^{2} \mathrm {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right )^{2} \ln \left (1-\frac {1}{\sqrt {\frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}-1}{\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}}}\right )}{c}+\frac {2 b^{2} \mathrm {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \polylog \left (2, \frac {1}{\sqrt {\frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}-1}{\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}}}\right )}{c}-\frac {2 b^{2} \polylog \left (3, \frac {1}{\sqrt {\frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}-1}{\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}}}\right )}{c}+\frac {a b \left (4 \dilog \left (\frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}-1}{\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}\right )-\dilog \left (\frac {\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}-1\right )^{2}}{\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1\right )^{2}}\right )\right )}{2 c}\) | \(694\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \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 {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 {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.00 \begin {gather*} \int -\frac {{\left (a+b\,\mathrm {acoth}\left (\frac {\sqrt {1-c\,x}}{\sqrt {c\,x+1}}\right )\right )}^2}{c^2\,x^2-1} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________