\(\int \frac {\text {arctanh}(a x)^2}{x (1-a^2 x^2)} \, dx\) [238]

Optimal result
Mathematica [A] (verified)
Rubi [A] (verified)
Maple [C] (warning: unable to verify)
Fricas [F]
Sympy [F]
Maxima [F]
Giac [F]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 22, antiderivative size = 66 \[ \int \frac {\text {arctanh}(a x)^2}{x \left (1-a^2 x^2\right )} \, dx=\frac {1}{3} \text {arctanh}(a x)^3+\text {arctanh}(a x)^2 \log \left (2-\frac {2}{1+a x}\right )-\text {arctanh}(a x) \operatorname {PolyLog}\left (2,-1+\frac {2}{1+a x}\right )-\frac {1}{2} \operatorname {PolyLog}\left (3,-1+\frac {2}{1+a x}\right ) \] Output:

1/3*arctanh(a*x)^3+arctanh(a*x)^2*ln(2-2/(a*x+1))-arctanh(a*x)*polylog(2,- 
1+2/(a*x+1))-1/2*polylog(3,-1+2/(a*x+1))
 

Mathematica [A] (verified)

Time = 0.31 (sec) , antiderivative size = 60, normalized size of antiderivative = 0.91 \[ \int \frac {\text {arctanh}(a x)^2}{x \left (1-a^2 x^2\right )} \, dx=-\frac {1}{3} \text {arctanh}(a x)^3+\text {arctanh}(a x)^2 \log \left (1-e^{2 \text {arctanh}(a x)}\right )+\text {arctanh}(a x) \operatorname {PolyLog}\left (2,e^{2 \text {arctanh}(a x)}\right )-\frac {1}{2} \operatorname {PolyLog}\left (3,e^{2 \text {arctanh}(a x)}\right ) \] Input:

Integrate[ArcTanh[a*x]^2/(x*(1 - a^2*x^2)),x]
 

Output:

-1/3*ArcTanh[a*x]^3 + ArcTanh[a*x]^2*Log[1 - E^(2*ArcTanh[a*x])] + ArcTanh 
[a*x]*PolyLog[2, E^(2*ArcTanh[a*x])] - PolyLog[3, E^(2*ArcTanh[a*x])]/2
 

Rubi [A] (verified)

Time = 0.57 (sec) , antiderivative size = 78, normalized size of antiderivative = 1.18, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {6550, 6494, 6618, 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 {\text {arctanh}(a x)^2}{x \left (1-a^2 x^2\right )} \, dx\)

\(\Big \downarrow \) 6550

\(\displaystyle \int \frac {\text {arctanh}(a x)^2}{x (a x+1)}dx+\frac {1}{3} \text {arctanh}(a x)^3\)

\(\Big \downarrow \) 6494

\(\displaystyle -2 a \int \frac {\text {arctanh}(a x) \log \left (2-\frac {2}{a x+1}\right )}{1-a^2 x^2}dx+\frac {1}{3} \text {arctanh}(a x)^3+\text {arctanh}(a x)^2 \log \left (2-\frac {2}{a x+1}\right )\)

\(\Big \downarrow \) 6618

\(\displaystyle -2 a \left (\frac {\text {arctanh}(a x) \operatorname {PolyLog}\left (2,\frac {2}{a x+1}-1\right )}{2 a}-\frac {1}{2} \int \frac {\operatorname {PolyLog}\left (2,\frac {2}{a x+1}-1\right )}{1-a^2 x^2}dx\right )+\frac {1}{3} \text {arctanh}(a x)^3+\text {arctanh}(a x)^2 \log \left (2-\frac {2}{a x+1}\right )\)

\(\Big \downarrow \) 7164

\(\displaystyle -2 a \left (\frac {\text {arctanh}(a x) \operatorname {PolyLog}\left (2,\frac {2}{a x+1}-1\right )}{2 a}+\frac {\operatorname {PolyLog}\left (3,\frac {2}{a x+1}-1\right )}{4 a}\right )+\frac {1}{3} \text {arctanh}(a x)^3+\text {arctanh}(a x)^2 \log \left (2-\frac {2}{a x+1}\right )\)

Input:

Int[ArcTanh[a*x]^2/(x*(1 - a^2*x^2)),x]
 

Output:

ArcTanh[a*x]^3/3 + ArcTanh[a*x]^2*Log[2 - 2/(1 + a*x)] - 2*a*((ArcTanh[a*x 
]*PolyLog[2, -1 + 2/(1 + a*x)])/(2*a) + PolyLog[3, -1 + 2/(1 + a*x)]/(4*a) 
)
 

Defintions of rubi rules used

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

rule 6550
Int[((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))^(p_.)/((x_)*((d_) + (e_.)*(x_)^2)), 
 x_Symbol] :> Simp[(a + b*ArcTanh[c*x])^(p + 1)/(b*d*(p + 1)), x] + Simp[1/ 
d   Int[(a + b*ArcTanh[c*x])^p/(x*(1 + c*x)), x], x] /; FreeQ[{a, b, c, d, 
e}, x] && EqQ[c^2*d + e, 0] && GtQ[p, 0]
 

rule 6618
Int[(Log[u_]*((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))^(p_.))/((d_) + (e_.)*(x_)^ 
2), x_Symbol] :> Simp[(a + b*ArcTanh[c*x])^p*(PolyLog[2, 1 - u]/(2*c*d)), x 
] - Simp[b*(p/2)   Int[(a + b*ArcTanh[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]
 
Maple [C] (warning: unable to verify)

Result contains higher order function than in optimal. Order 9 vs. order 4.

Time = 16.30 (sec) , antiderivative size = 1108, normalized size of antiderivative = 16.79

method result size
derivativedivides \(\text {Expression too large to display}\) \(1108\)
default \(\text {Expression too large to display}\) \(1108\)
parts \(\text {Expression too large to display}\) \(1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/(-(a*x+1)^2/(a^2*x^2-1)+1))*csgn(I*(-(a*x+1)^2/(a^2*x^2-1)-1) 
/(-(a*x+1)^2/(a^2*x^2-1)+1))+2*I*Pi*csgn(I/(-(a*x+1)^2/(a^2*x^2-1)+1))^3-I 
*Pi*csgn(I/(-(a*x+1)^2/(a^2*x^2-1)+1))*csgn(I*(a*x+1)^2/(a^2*x^2-1))*csgn( 
I*(a*x+1)^2/(a^2*x^2-1)/(-(a*x+1)^2/(a^2*x^2-1)+1))+4*ln(2))*arctanh(a*x)^ 
2-arctanh(a*x)^2*ln((a*x+1)^2/(-a^2*x^2+1)-1)+arctanh(a*x)^2*ln(1+(a*x+1)/ 
(-a^2*x^2+1)^(1/2))+2*arctanh(a*x)*polylog(2,-(a*x+1)/(-a^2*x^2+1)^(1/2))- 
2*polylog(3,-(a*x+1)/(-a^2*x^2+1)^(1/2))+arctanh(a*x)^2*ln(1-(a*x+1)/(-...
 

Fricas [F]

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

integrate(arctanh(a*x)^2/x/(-a^2*x^2+1),x, algorithm="fricas")
 

Output:

integral(-arctanh(a*x)^2/(a^2*x^3 - x), x)
 

Sympy [F]

\[ \int \frac {\text {arctanh}(a x)^2}{x \left (1-a^2 x^2\right )} \, dx=- \int \frac {\operatorname {atanh}^{2}{\left (a x \right )}}{a^{2} x^{3} - x}\, dx \] Input:

integrate(atanh(a*x)**2/x/(-a**2*x**2+1),x)
 

Output:

-Integral(atanh(a*x)**2/(a**2*x**3 - x), x)
 

Maxima [F]

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

integrate(arctanh(a*x)^2/x/(-a^2*x^2+1),x, algorithm="maxima")
 

Output:

-1/8*log(a*x + 1)*log(-a*x + 1)^2 - 1/24*log(-a*x + 1)^3 + 1/4*integrate(( 
(a^2*x^2 + a*x + 2)*log(a*x + 1)*log(-a*x + 1) - log(a*x + 1)^2)/(a^2*x^3 
- x), x)
 

Giac [F]

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

integrate(arctanh(a*x)^2/x/(-a^2*x^2+1),x, algorithm="giac")
 

Output:

integrate(-arctanh(a*x)^2/((a^2*x^2 - 1)*x), x)
 

Mupad [F(-1)]

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

int(-atanh(a*x)^2/(x*(a^2*x^2 - 1)),x)
 

Output:

-int(atanh(a*x)^2/(x*(a^2*x^2 - 1)), x)
 

Reduce [F]

\[ \int \frac {\text {arctanh}(a x)^2}{x \left (1-a^2 x^2\right )} \, dx=-\left (\int \frac {\mathit {atanh} \left (a x \right )^{2}}{a^{2} x^{3}-x}d x \right ) \] Input:

int(atanh(a*x)^2/x/(-a^2*x^2+1),x)
                                                                                    
                                                                                    
 

Output:

 - int(atanh(a*x)**2/(a**2*x**3 - x),x)