3.2.24 \(\int \frac {(a+b \coth ^{-1}(\frac {\sqrt {1-c x}}{\sqrt {1+c x}}))^2}{1-c^2 x^2} \, dx\) [124]

3.2.24.1 Optimal result
3.2.24.2 Mathematica [F]
3.2.24.3 Rubi [A] (verified)
3.2.24.4 Maple [B] (verified)
3.2.24.5 Fricas [F]
3.2.24.6 Sympy [F]
3.2.24.7 Maxima [F]
3.2.24.8 Giac [F]
3.2.24.9 Mupad [F(-1)]

3.2.24.1 Optimal result

Integrand size = 40, antiderivative size = 302 \[ \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 {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 ) \operatorname {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 ) \operatorname {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 \operatorname {PolyLog}\left (3,1-\frac {2}{1+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{2 c}+\frac {b^2 \operatorname {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} \]

output
-2*arccoth(1-2/(1-(-c*x+1)^(1/2)/(c*x+1)^(1/2)))*(a+b*arccoth((-c*x+1)^(1/ 
2)/(c*x+1)^(1/2)))^2/c-b*(a+b*arccoth((-c*x+1)^(1/2)/(c*x+1)^(1/2)))*polyl 
og(2,1-2/((-c*x+1)^(1/2)/(c*x+1)^(1/2)+1))/c+b*(a+b*arccoth((-c*x+1)^(1/2) 
/(c*x+1)^(1/2)))*polylog(2,1-2*(-c*x+1)^(1/2)/((-c*x+1)^(1/2)/(c*x+1)^(1/2 
)+1)/(c*x+1)^(1/2))/c-1/2*b^2*polylog(3,1-2/((-c*x+1)^(1/2)/(c*x+1)^(1/2)+ 
1))/c+1/2*b^2*polylog(3,1-2*(-c*x+1)^(1/2)/((-c*x+1)^(1/2)/(c*x+1)^(1/2)+1 
)/(c*x+1)^(1/2))/c
 
3.2.24.2 Mathematica [F]

\[ \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=\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 \]

input
Integrate[(a + b*ArcCoth[Sqrt[1 - c*x]/Sqrt[1 + c*x]])^2/(1 - c^2*x^2),x]
 
output
Integrate[(a + b*ArcCoth[Sqrt[1 - c*x]/Sqrt[1 + c*x]])^2/(1 - c^2*x^2), x]
 
3.2.24.3 Rubi [A] (verified)

Time = 0.84 (sec) , antiderivative size = 305, normalized size of antiderivative = 1.01, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {7232, 6449, 6615, 6619, 7164}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {\left (a+b \coth ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )\right )^2}{1-c^2 x^2} \, dx\)

\(\Big \downarrow \) 7232

\(\displaystyle -\frac {\int \frac {\sqrt {c x+1} \left (a+b \coth ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )\right )^2}{\sqrt {1-c x}}d\frac {\sqrt {1-c x}}{\sqrt {c x+1}}}{c}\)

\(\Big \downarrow \) 6449

\(\displaystyle -\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-4 b \int \frac {\left (a+b \coth ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )\right ) \coth ^{-1}\left (1-\frac {2}{1-\frac {\sqrt {1-c x}}{\sqrt {c x+1}}}\right )}{1-\frac {1-c x}{c x+1}}d\frac {\sqrt {1-c x}}{\sqrt {c x+1}}}{c}\)

\(\Big \downarrow \) 6615

\(\displaystyle -\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-4 b \left (\frac {1}{2} \int \frac {\left (a+b \coth ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )\right ) \log \left (\frac {2 \sqrt {1-c x}}{\sqrt {c x+1} \left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}+1\right )}\right )}{1-\frac {1-c x}{c x+1}}d\frac {\sqrt {1-c x}}{\sqrt {c x+1}}-\frac {1}{2} \int \frac {\left (a+b \coth ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )\right ) \log \left (\frac {2}{\frac {\sqrt {1-c x}}{\sqrt {c x+1}}+1}\right )}{1-\frac {1-c x}{c x+1}}d\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )}{c}\)

\(\Big \downarrow \) 6619

\(\displaystyle -\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-4 b \left (\frac {1}{2} \left (\frac {1}{2} b \int \frac {\operatorname {PolyLog}\left (2,1-\frac {2}{\frac {\sqrt {1-c x}}{\sqrt {c x+1}}+1}\right )}{1-\frac {1-c x}{c x+1}}d\frac {\sqrt {1-c x}}{\sqrt {c x+1}}-\frac {1}{2} \operatorname {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 )\right )+\frac {1}{2} \left (\frac {1}{2} \operatorname {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 )-\frac {1}{2} b \int \frac {\operatorname {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 )}{1-\frac {1-c x}{c x+1}}d\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )\right )}{c}\)

\(\Big \downarrow \) 7164

\(\displaystyle -\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-4 b \left (\frac {1}{2} \left (-\frac {1}{2} \operatorname {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 )-\frac {1}{4} b \operatorname {PolyLog}\left (3,1-\frac {2}{\frac {\sqrt {1-c x}}{\sqrt {c x+1}}+1}\right )\right )+\frac {1}{2} \left (\frac {1}{2} \operatorname {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 )+\frac {1}{4} b \operatorname {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 )\right )\right )}{c}\)

input
Int[(a + b*ArcCoth[Sqrt[1 - c*x]/Sqrt[1 + c*x]])^2/(1 - c^2*x^2),x]
 
output
-((2*(a + b*ArcCoth[Sqrt[1 - c*x]/Sqrt[1 + c*x]])^2*ArcCoth[1 - 2/(1 - Sqr 
t[1 - c*x]/Sqrt[1 + c*x])] - 4*b*((-1/2*((a + b*ArcCoth[Sqrt[1 - c*x]/Sqrt 
[1 + c*x]])*PolyLog[2, 1 - 2/(1 + Sqrt[1 - c*x]/Sqrt[1 + c*x])]) - (b*Poly 
Log[3, 1 - 2/(1 + Sqrt[1 - c*x]/Sqrt[1 + c*x])])/4)/2 + (((a + b*ArcCoth[S 
qrt[1 - c*x]/Sqrt[1 + c*x]])*PolyLog[2, 1 - (2*Sqrt[1 - c*x])/(Sqrt[1 + c* 
x]*(1 + Sqrt[1 - c*x]/Sqrt[1 + c*x]))])/2 + (b*PolyLog[3, 1 - (2*Sqrt[1 - 
c*x])/(Sqrt[1 + c*x]*(1 + Sqrt[1 - c*x]/Sqrt[1 + c*x]))])/4)/2))/c)
 

3.2.24.3.1 Defintions of rubi rules used

rule 6449
Int[((a_.) + ArcCoth[(c_.)*(x_)]*(b_.))^(p_)/(x_), x_Symbol] :> Simp[2*(a + 
 b*ArcCoth[c*x])^p*ArcCoth[1 - 2/(1 - c*x)], x] - Simp[2*b*c*p   Int[(a + b 
*ArcCoth[c*x])^(p - 1)*(ArcCoth[1 - 2/(1 - c*x)]/(1 - c^2*x^2)), x], x] /; 
FreeQ[{a, b, c}, x] && IGtQ[p, 1]
 

rule 6615
Int[(ArcCoth[u_]*((a_.) + ArcCoth[(c_.)*(x_)]*(b_.))^(p_.))/((d_) + (e_.)*( 
x_)^2), x_Symbol] :> Simp[1/2   Int[Log[SimplifyIntegrand[1 + 1/u, x]]*((a 
+ b*ArcCoth[c*x])^p/(d + e*x^2)), x], x] - Simp[1/2   Int[Log[SimplifyInteg 
rand[1 - 1/u, x]]*((a + b*ArcCoth[c*x])^p/(d + e*x^2)), x], x] /; FreeQ[{a, 
 b, c, d, e}, x] && IGtQ[p, 0] && EqQ[c^2*d + e, 0] && EqQ[u^2 - (1 - 2/(1 
- c*x))^2, 0]
 

rule 6619
Int[(Log[u_]*((a_.) + ArcCoth[(c_.)*(x_)]*(b_.))^(p_.))/((d_) + (e_.)*(x_)^ 
2), x_Symbol] :> Simp[(a + b*ArcCoth[c*x])^p*(PolyLog[2, 1 - u]/(2*c*d)), x 
] - Simp[b*(p/2)   Int[(a + b*ArcCoth[c*x])^(p - 1)*(PolyLog[2, 1 - u]/(d + 
 e*x^2)), x], x] /; FreeQ[{a, b, c, d, e}, x] && IGtQ[p, 0] && EqQ[c^2*d + 
e, 0] && EqQ[(1 - u)^2 - (1 - 2/(1 + c*x))^2, 0]
 

rule 7164
Int[(u_)*PolyLog[n_, v_], x_Symbol] :> With[{w = DerivativeDivides[v, u*v, 
x]}, Simp[w*PolyLog[n + 1, v], x] /;  !FalseQ[w]] /; FreeQ[n, x]
 

rule 7232
Int[((a_.) + (b_.)*(F_)[((c_.)*Sqrt[(d_.) + (e_.)*(x_)])/Sqrt[(f_.) + (g_.) 
*(x_)]])^(n_.)/((A_.) + (C_.)*(x_)^2), x_Symbol] :> Simp[2*e*(g/(C*(e*f - d 
*g)))   Subst[Int[(a + b*F[c*x])^n/x, x], x, Sqrt[d + e*x]/Sqrt[f + g*x]], 
x] /; FreeQ[{a, b, c, d, e, f, g, A, C, F}, x] && EqQ[C*d*f - A*e*g, 0] && 
EqQ[e*f + d*g, 0] && IGtQ[n, 0]
 
3.2.24.4 Maple [B] (verified)

Leaf count of result is larger than twice the leaf count of optimal. \(925\) vs. \(2(258)=516\).

Time = 0.90 (sec) , antiderivative size = 926, normalized size of antiderivative = 3.07

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}-b^{2} \left (-\frac {\operatorname {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 \,\operatorname {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \operatorname {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 \operatorname {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 {\operatorname {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right )^{2} \ln \left (1+\frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}{\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}-1}\right )}{c}+\frac {\operatorname {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \operatorname {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 {\operatorname {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 {\operatorname {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 \,\operatorname {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \operatorname {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 \operatorname {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}\right )-2 a b \left (-\frac {\operatorname {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \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 {\operatorname {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 {\operatorname {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \ln \left (1+\frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}{\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}-1}\right )}{c}+\frac {\operatorname {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 )}{2 c}-\frac {\operatorname {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \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 {\operatorname {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}\right )\) \(926\)
parts \(-\frac {a^{2} \ln \left (c x -1\right )}{2 c}+\frac {a^{2} \ln \left (c x +1\right )}{2 c}-b^{2} \left (-\frac {\operatorname {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 \,\operatorname {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \operatorname {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 \operatorname {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 {\operatorname {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right )^{2} \ln \left (1+\frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}{\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}-1}\right )}{c}+\frac {\operatorname {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \operatorname {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 {\operatorname {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 {\operatorname {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 \,\operatorname {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \operatorname {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 \operatorname {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}\right )-2 a b \left (-\frac {\operatorname {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \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 {\operatorname {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 {\operatorname {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \ln \left (1+\frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}{\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}-1}\right )}{c}+\frac {\operatorname {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 )}{2 c}-\frac {\operatorname {arccoth}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \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 {\operatorname {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}\right )\) \(926\)

input
int((a+b*arccoth((-c*x+1)^(1/2)/(c*x+1)^(1/2)))^2/(-c^2*x^2+1),x,method=_R 
ETURNVERBOSE)
 
output
-1/2*a^2/c*ln(c*x-1)+1/2*a^2/c*ln(c*x+1)-b^2*(-1/c*arccoth((-c*x+1)^(1/2)/ 
(c*x+1)^(1/2))^2*ln(1+1/(((-c*x+1)^(1/2)/(c*x+1)^(1/2)-1)/((-c*x+1)^(1/2)/ 
(c*x+1)^(1/2)+1))^(1/2))-2/c*arccoth((-c*x+1)^(1/2)/(c*x+1)^(1/2))*polylog 
(2,-1/(((-c*x+1)^(1/2)/(c*x+1)^(1/2)-1)/((-c*x+1)^(1/2)/(c*x+1)^(1/2)+1))^ 
(1/2))+2/c*polylog(3,-1/(((-c*x+1)^(1/2)/(c*x+1)^(1/2)-1)/((-c*x+1)^(1/2)/ 
(c*x+1)^(1/2)+1))^(1/2))+1/c*arccoth((-c*x+1)^(1/2)/(c*x+1)^(1/2))^2*ln(1+ 
1/((-c*x+1)^(1/2)/(c*x+1)^(1/2)-1)*((-c*x+1)^(1/2)/(c*x+1)^(1/2)+1))+1/c*a 
rccoth((-c*x+1)^(1/2)/(c*x+1)^(1/2))*polylog(2,-1/((-c*x+1)^(1/2)/(c*x+1)^ 
(1/2)-1)*((-c*x+1)^(1/2)/(c*x+1)^(1/2)+1))-1/2/c*polylog(3,-1/((-c*x+1)^(1 
/2)/(c*x+1)^(1/2)-1)*((-c*x+1)^(1/2)/(c*x+1)^(1/2)+1))-1/c*arccoth((-c*x+1 
)^(1/2)/(c*x+1)^(1/2))^2*ln(1-1/(((-c*x+1)^(1/2)/(c*x+1)^(1/2)-1)/((-c*x+1 
)^(1/2)/(c*x+1)^(1/2)+1))^(1/2))-2/c*arccoth((-c*x+1)^(1/2)/(c*x+1)^(1/2)) 
*polylog(2,1/(((-c*x+1)^(1/2)/(c*x+1)^(1/2)-1)/((-c*x+1)^(1/2)/(c*x+1)^(1/ 
2)+1))^(1/2))+2/c*polylog(3,1/(((-c*x+1)^(1/2)/(c*x+1)^(1/2)-1)/((-c*x+1)^ 
(1/2)/(c*x+1)^(1/2)+1))^(1/2)))-2*a*b*(-1/c*arccoth((-c*x+1)^(1/2)/(c*x+1) 
^(1/2))*ln(1+1/(((-c*x+1)^(1/2)/(c*x+1)^(1/2)-1)/((-c*x+1)^(1/2)/(c*x+1)^( 
1/2)+1))^(1/2))-1/c*polylog(2,-1/(((-c*x+1)^(1/2)/(c*x+1)^(1/2)-1)/((-c*x+ 
1)^(1/2)/(c*x+1)^(1/2)+1))^(1/2))+1/c*arccoth((-c*x+1)^(1/2)/(c*x+1)^(1/2) 
)*ln(1+1/((-c*x+1)^(1/2)/(c*x+1)^(1/2)-1)*((-c*x+1)^(1/2)/(c*x+1)^(1/2)+1) 
)+1/2/c*polylog(2,-1/((-c*x+1)^(1/2)/(c*x+1)^(1/2)-1)*((-c*x+1)^(1/2)/(...
 
3.2.24.5 Fricas [F]

\[ \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=\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 } \]

input
integrate((a+b*arccoth((-c*x+1)^(1/2)/(c*x+1)^(1/2)))^2/(-c^2*x^2+1),x, al 
gorithm="fricas")
 
output
integral(-(b^2*arccoth(sqrt(-c*x + 1)/sqrt(c*x + 1))^2 + 2*a*b*arccoth(sqr 
t(-c*x + 1)/sqrt(c*x + 1)) + a^2)/(c^2*x^2 - 1), x)
 
3.2.24.6 Sympy [F]

\[ \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=- \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 \]

input
integrate((a+b*acoth((-c*x+1)**(1/2)/(c*x+1)**(1/2)))**2/(-c**2*x**2+1),x)
 
output
-Integral(a**2/(c**2*x**2 - 1), x) - Integral(b**2*acoth(sqrt(-c*x + 1)/sq 
rt(c*x + 1))**2/(c**2*x**2 - 1), x) - Integral(2*a*b*acoth(sqrt(-c*x + 1)/ 
sqrt(c*x + 1))/(c**2*x**2 - 1), x)
 
3.2.24.7 Maxima [F]

\[ \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=\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 } \]

input
integrate((a+b*arccoth((-c*x+1)^(1/2)/(c*x+1)^(1/2)))^2/(-c^2*x^2+1),x, al 
gorithm="maxima")
 
output
1/2*a^2*(log(c*x + 1)/c - log(c*x - 1)/c) + 1/8*(b^2*log(c*x + 1) - b^2*lo 
g(-c*x + 1))*log(-sqrt(c*x + 1) + sqrt(-c*x + 1))^2/c + integrate(-1/8*(2* 
(sqrt(c*x + 1)*b^2 - sqrt(-c*x + 1)*b^2)*log(sqrt(c*x + 1) + sqrt(-c*x + 1 
))^2 + 8*(sqrt(c*x + 1)*a*b - sqrt(-c*x + 1)*a*b)*log(sqrt(c*x + 1) + sqrt 
(-c*x + 1)) - (4*(sqrt(c*x + 1)*b^2 - sqrt(-c*x + 1)*b^2)*log(sqrt(c*x + 1 
) + sqrt(-c*x + 1)) + (8*a*b - (b^2*c*x - b^2)*log(c*x + 1) + (b^2*c*x - b 
^2)*log(-c*x + 1))*sqrt(c*x + 1) - (8*a*b - (b^2*c*x + b^2)*log(c*x + 1) + 
 (b^2*c*x + b^2)*log(-c*x + 1))*sqrt(-c*x + 1))*log(-sqrt(c*x + 1) + sqrt( 
-c*x + 1)))/((c^2*x^2 - 1)*sqrt(c*x + 1) - (c^2*x^2 - 1)*sqrt(-c*x + 1)), 
x)
 
3.2.24.8 Giac [F]

\[ \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=\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 } \]

input
integrate((a+b*arccoth((-c*x+1)^(1/2)/(c*x+1)^(1/2)))^2/(-c^2*x^2+1),x, al 
gorithm="giac")
 
output
integrate(-(b*arccoth(sqrt(-c*x + 1)/sqrt(c*x + 1)) + a)^2/(c^2*x^2 - 1), 
x)
 
3.2.24.9 Mupad [F(-1)]

Timed out. \[ \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=\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 \]

input
int(-(a + b*acoth((1 - c*x)^(1/2)/(c*x + 1)^(1/2)))^2/(c^2*x^2 - 1),x)
 
output
int(-(a + b*acoth((1 - c*x)^(1/2)/(c*x + 1)^(1/2)))^2/(c^2*x^2 - 1), x)