3.1.33 \(\int \frac {a+b \text {arctanh}(\frac {\sqrt {1-c x}}{\sqrt {1+c x}})}{1-c^2 x^2} \, dx\) [33]

3.1.33.1 Optimal result
3.1.33.2 Mathematica [A] (verified)
3.1.33.3 Rubi [A] (verified)
3.1.33.4 Maple [B] (verified)
3.1.33.5 Fricas [F]
3.1.33.6 Sympy [F]
3.1.33.7 Maxima [F]
3.1.33.8 Giac [F]
3.1.33.9 Mupad [F(-1)]

3.1.33.1 Optimal result

Integrand size = 38, antiderivative size = 89 \[ \int \frac {a+b \text {arctanh}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{1-c^2 x^2} \, dx=-\frac {a \log \left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{c}+\frac {b \operatorname {PolyLog}\left (2,-\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{2 c}-\frac {b \operatorname {PolyLog}\left (2,\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{2 c} \]

output
-a*ln((-c*x+1)^(1/2)/(c*x+1)^(1/2))/c+1/2*b*polylog(2,-(-c*x+1)^(1/2)/(c*x 
+1)^(1/2))/c-1/2*b*polylog(2,(-c*x+1)^(1/2)/(c*x+1)^(1/2))/c
 
3.1.33.2 Mathematica [A] (verified)

Time = 0.30 (sec) , antiderivative size = 43, normalized size of antiderivative = 0.48 \[ \int \frac {a+b \text {arctanh}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{1-c^2 x^2} \, dx=\frac {a \text {arctanh}(c x)}{c}+\frac {b \left (\operatorname {PolyLog}\left (2,-e^{-\text {arctanh}(c x)}\right )-\operatorname {PolyLog}\left (2,e^{-\text {arctanh}(c x)}\right )\right )}{2 c} \]

input
Integrate[(a + b*ArcTanh[Sqrt[1 - c*x]/Sqrt[1 + c*x]])/(1 - c^2*x^2),x]
 
output
(a*ArcTanh[c*x])/c + (b*(PolyLog[2, -E^(-ArcTanh[c*x])] - PolyLog[2, E^(-A 
rcTanh[c*x])]))/(2*c)
 
3.1.33.3 Rubi [A] (verified)

Time = 0.30 (sec) , antiderivative size = 84, normalized size of antiderivative = 0.94, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.053, Rules used = {7232, 6446}

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 {a+b \text {arctanh}\left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )}{1-c^2 x^2} \, dx\)

\(\Big \downarrow \) 7232

\(\displaystyle -\frac {\int \frac {\sqrt {c x+1} \left (a+b \text {arctanh}\left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )\right )}{\sqrt {1-c x}}d\frac {\sqrt {1-c x}}{\sqrt {c x+1}}}{c}\)

\(\Big \downarrow \) 6446

\(\displaystyle -\frac {a \log \left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )-\frac {1}{2} b \operatorname {PolyLog}\left (2,-\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )+\frac {1}{2} b \operatorname {PolyLog}\left (2,\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )}{c}\)

input
Int[(a + b*ArcTanh[Sqrt[1 - c*x]/Sqrt[1 + c*x]])/(1 - c^2*x^2),x]
 
output
-((a*Log[Sqrt[1 - c*x]/Sqrt[1 + c*x]] - (b*PolyLog[2, -(Sqrt[1 - c*x]/Sqrt 
[1 + c*x])])/2 + (b*PolyLog[2, Sqrt[1 - c*x]/Sqrt[1 + c*x]])/2)/c)
 

3.1.33.3.1 Defintions of rubi rules used

rule 6446
Int[((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))/(x_), x_Symbol] :> Simp[a*Log[x], x 
] + (-Simp[(b/2)*PolyLog[2, (-c)*x], x] + Simp[(b/2)*PolyLog[2, c*x], x]) / 
; FreeQ[{a, b, c}, 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.1.33.4 Maple [B] (verified)

Leaf count of result is larger than twice the leaf count of optimal. \(356\) vs. \(2(73)=146\).

Time = 0.28 (sec) , antiderivative size = 357, normalized size of antiderivative = 4.01

method result size
default \(-\frac {a \ln \left (c x -1\right )}{2 c}+\frac {a \ln \left (c x +1\right )}{2 c}-b \left (\frac {\operatorname {arctanh}\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}{\sqrt {-\frac {-c x +1}{c x +1}+1}}\right )}{c}+\frac {\operatorname {polylog}\left (2, \frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}{\sqrt {-\frac {-c x +1}{c x +1}+1}}\right )}{c}+\frac {\operatorname {arctanh}\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}{\sqrt {-\frac {-c x +1}{c x +1}+1}}\right )}{c}+\frac {\operatorname {polylog}\left (2, -\frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}{\sqrt {-\frac {-c x +1}{c x +1}+1}}\right )}{c}-\frac {\operatorname {arctanh}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \ln \left (1+\frac {\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1\right )^{2}}{-\frac {-c x +1}{c x +1}+1}\right )}{c}-\frac {\operatorname {polylog}\left (2, -\frac {\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1\right )^{2}}{-\frac {-c x +1}{c x +1}+1}\right )}{2 c}\right )\) \(357\)
parts \(-\frac {a \ln \left (c x -1\right )}{2 c}+\frac {a \ln \left (c x +1\right )}{2 c}-b \left (\frac {\operatorname {arctanh}\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}{\sqrt {-\frac {-c x +1}{c x +1}+1}}\right )}{c}+\frac {\operatorname {polylog}\left (2, \frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}{\sqrt {-\frac {-c x +1}{c x +1}+1}}\right )}{c}+\frac {\operatorname {arctanh}\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}{\sqrt {-\frac {-c x +1}{c x +1}+1}}\right )}{c}+\frac {\operatorname {polylog}\left (2, -\frac {\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1}{\sqrt {-\frac {-c x +1}{c x +1}+1}}\right )}{c}-\frac {\operatorname {arctanh}\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}\right ) \ln \left (1+\frac {\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1\right )^{2}}{-\frac {-c x +1}{c x +1}+1}\right )}{c}-\frac {\operatorname {polylog}\left (2, -\frac {\left (\frac {\sqrt {-c x +1}}{\sqrt {c x +1}}+1\right )^{2}}{-\frac {-c x +1}{c x +1}+1}\right )}{2 c}\right )\) \(357\)

input
int((a+b*arctanh((-c*x+1)^(1/2)/(c*x+1)^(1/2)))/(-c^2*x^2+1),x,method=_RET 
URNVERBOSE)
 
output
-1/2*a/c*ln(c*x-1)+1/2*a/c*ln(c*x+1)-b*(1/c*arctanh((-c*x+1)^(1/2)/(c*x+1) 
^(1/2))*ln(1-((-c*x+1)^(1/2)/(c*x+1)^(1/2)+1)/(-(-c*x+1)/(c*x+1)+1)^(1/2)) 
+1/c*polylog(2,((-c*x+1)^(1/2)/(c*x+1)^(1/2)+1)/(-(-c*x+1)/(c*x+1)+1)^(1/2 
))+1/c*arctanh((-c*x+1)^(1/2)/(c*x+1)^(1/2))*ln(1+((-c*x+1)^(1/2)/(c*x+1)^ 
(1/2)+1)/(-(-c*x+1)/(c*x+1)+1)^(1/2))+1/c*polylog(2,-((-c*x+1)^(1/2)/(c*x+ 
1)^(1/2)+1)/(-(-c*x+1)/(c*x+1)+1)^(1/2))-1/c*arctanh((-c*x+1)^(1/2)/(c*x+1 
)^(1/2))*ln(1+((-c*x+1)^(1/2)/(c*x+1)^(1/2)+1)^2/(-(-c*x+1)/(c*x+1)+1))-1/ 
2/c*polylog(2,-((-c*x+1)^(1/2)/(c*x+1)^(1/2)+1)^2/(-(-c*x+1)/(c*x+1)+1)))
 
3.1.33.5 Fricas [F]

\[ \int \frac {a+b \text {arctanh}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{1-c^2 x^2} \, dx=\int { -\frac {b \operatorname {artanh}\left (\frac {\sqrt {-c x + 1}}{\sqrt {c x + 1}}\right ) + a}{c^{2} x^{2} - 1} \,d x } \]

input
integrate((a+b*arctanh((-c*x+1)^(1/2)/(c*x+1)^(1/2)))/(-c^2*x^2+1),x, algo 
rithm="fricas")
 
output
integral(-(b*arctanh(sqrt(-c*x + 1)/sqrt(c*x + 1)) + a)/(c^2*x^2 - 1), x)
 
3.1.33.6 Sympy [F]

\[ \int \frac {a+b \text {arctanh}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{1-c^2 x^2} \, dx=- \int \frac {a}{c^{2} x^{2} - 1}\, dx - \int \frac {b \operatorname {atanh}{\left (\frac {\sqrt {- c x + 1}}{\sqrt {c x + 1}} \right )}}{c^{2} x^{2} - 1}\, dx \]

input
integrate((a+b*atanh((-c*x+1)**(1/2)/(c*x+1)**(1/2)))/(-c**2*x**2+1),x)
 
output
-Integral(a/(c**2*x**2 - 1), x) - Integral(b*atanh(sqrt(-c*x + 1)/sqrt(c*x 
 + 1))/(c**2*x**2 - 1), x)
 
3.1.33.7 Maxima [F]

\[ \int \frac {a+b \text {arctanh}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{1-c^2 x^2} \, dx=\int { -\frac {b \operatorname {artanh}\left (\frac {\sqrt {-c x + 1}}{\sqrt {c x + 1}}\right ) + a}{c^{2} x^{2} - 1} \,d x } \]

input
integrate((a+b*arctanh((-c*x+1)^(1/2)/(c*x+1)^(1/2)))/(-c^2*x^2+1),x, algo 
rithm="maxima")
 
output
1/4*b*(((log(c*x + 1) - log(-c*x + 1))*log(sqrt(c*x + 1) + sqrt(-c*x + 1)) 
 - (log(c*x + 1) - log(-c*x + 1))*log(sqrt(c*x + 1) - sqrt(-c*x + 1)))/c - 
 2*integrate(-1/2*sqrt(c*x + 1)*(log(c*x + 1) - log(-c*x + 1))/((c^2*x^2 - 
 1)*sqrt(c*x + 1) + (c^2*x^2 - 1)*sqrt(-c*x + 1)), x) - 2*integrate(1/2*sq 
rt(c*x + 1)*(log(c*x + 1) - log(-c*x + 1))/((c^2*x^2 - 1)*sqrt(c*x + 1) - 
(c^2*x^2 - 1)*sqrt(-c*x + 1)), x)) + 1/2*a*(log(c*x + 1)/c - log(c*x - 1)/ 
c)
 
3.1.33.8 Giac [F]

\[ \int \frac {a+b \text {arctanh}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{1-c^2 x^2} \, dx=\int { -\frac {b \operatorname {artanh}\left (\frac {\sqrt {-c x + 1}}{\sqrt {c x + 1}}\right ) + a}{c^{2} x^{2} - 1} \,d x } \]

input
integrate((a+b*arctanh((-c*x+1)^(1/2)/(c*x+1)^(1/2)))/(-c^2*x^2+1),x, algo 
rithm="giac")
 
output
integrate(-(b*arctanh(sqrt(-c*x + 1)/sqrt(c*x + 1)) + a)/(c^2*x^2 - 1), x)
 
3.1.33.9 Mupad [F(-1)]

Timed out. \[ \int \frac {a+b \text {arctanh}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{1-c^2 x^2} \, dx=\int -\frac {a+b\,\mathrm {atanh}\left (\frac {\sqrt {1-c\,x}}{\sqrt {c\,x+1}}\right )}{c^2\,x^2-1} \,d x \]

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