\(\int \frac {\coth (x)}{\sqrt {a+b \tanh ^2(x)+c \tanh ^4(x)}} \, dx\) [213]

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

Optimal result

Integrand size = 21, antiderivative size = 106 \[ \int \frac {\coth (x)}{\sqrt {a+b \tanh ^2(x)+c \tanh ^4(x)}} \, dx=-\frac {\text {arctanh}\left (\frac {2 a+b \tanh ^2(x)}{2 \sqrt {a} \sqrt {a+b \tanh ^2(x)+c \tanh ^4(x)}}\right )}{2 \sqrt {a}}+\frac {\text {arctanh}\left (\frac {2 a+b+(b+2 c) \tanh ^2(x)}{2 \sqrt {a+b+c} \sqrt {a+b \tanh ^2(x)+c \tanh ^4(x)}}\right )}{2 \sqrt {a+b+c}} \] Output:

-1/2*arctanh(1/2*(2*a+b*tanh(x)^2)/a^(1/2)/(a+b*tanh(x)^2+c*tanh(x)^4)^(1/ 
2))/a^(1/2)+1/2*arctanh(1/2*(2*a+b+(b+2*c)*tanh(x)^2)/(a+b+c)^(1/2)/(a+b*t 
anh(x)^2+c*tanh(x)^4)^(1/2))/(a+b+c)^(1/2)
                                                                                    
                                                                                    
 

Mathematica [A] (verified)

Time = 0.24 (sec) , antiderivative size = 109, normalized size of antiderivative = 1.03 \[ \int \frac {\coth (x)}{\sqrt {a+b \tanh ^2(x)+c \tanh ^4(x)}} \, dx=-\frac {\text {arctanh}\left (\frac {2 a+b \tanh ^2(x)}{2 \sqrt {a} \sqrt {a+b \tanh ^2(x)+c \tanh ^4(x)}}\right )}{2 \sqrt {a}}-\frac {\text {arctanh}\left (\frac {-2 a-b-(b+2 c) \tanh ^2(x)}{2 \sqrt {a+b+c} \sqrt {a+b \tanh ^2(x)+c \tanh ^4(x)}}\right )}{2 \sqrt {a+b+c}} \] Input:

Integrate[Coth[x]/Sqrt[a + b*Tanh[x]^2 + c*Tanh[x]^4],x]
 

Output:

-1/2*ArcTanh[(2*a + b*Tanh[x]^2)/(2*Sqrt[a]*Sqrt[a + b*Tanh[x]^2 + c*Tanh[ 
x]^4])]/Sqrt[a] - ArcTanh[(-2*a - b - (b + 2*c)*Tanh[x]^2)/(2*Sqrt[a + b + 
 c]*Sqrt[a + b*Tanh[x]^2 + c*Tanh[x]^4])]/(2*Sqrt[a + b + c])
 

Rubi [C] (warning: unable to verify)

Result contains complex when optimal does not.

Time = 0.46 (sec) , antiderivative size = 111, normalized size of antiderivative = 1.05, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {3042, 26, 4183, 1578, 1289, 2009}

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 {\coth (x)}{\sqrt {a+b \tanh ^2(x)+c \tanh ^4(x)}} \, dx\)

\(\Big \downarrow \) 3042

\(\displaystyle \int \frac {i}{\tan (i x) \sqrt {a-b \tan (i x)^2+c \tan (i x)^4}}dx\)

\(\Big \downarrow \) 26

\(\displaystyle i \int \frac {1}{\tan (i x) \sqrt {c \tan (i x)^4-b \tan (i x)^2+a}}dx\)

\(\Big \downarrow \) 4183

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

\(\Big \downarrow \) 1578

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

\(\Big \downarrow \) 1289

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

\(\Big \downarrow \) 2009

\(\displaystyle \frac {1}{2} \left (\frac {\text {arctanh}\left (\frac {2 a-i (b+2 c) \tanh (x)+b}{2 \sqrt {a+b+c} \sqrt {a-i b \tanh (x)-c \tanh ^2(x)}}\right )}{\sqrt {a+b+c}}-\frac {\text {arctanh}\left (\frac {2 a-i b \tanh (x)}{2 \sqrt {a} \sqrt {a-i b \tanh (x)-c \tanh ^2(x)}}\right )}{\sqrt {a}}\right )\)

Input:

Int[Coth[x]/Sqrt[a + b*Tanh[x]^2 + c*Tanh[x]^4],x]
 

Output:

(-(ArcTanh[(2*a - I*b*Tanh[x])/(2*Sqrt[a]*Sqrt[a - I*b*Tanh[x] - c*Tanh[x] 
^2])]/Sqrt[a]) + ArcTanh[(2*a + b - I*(b + 2*c)*Tanh[x])/(2*Sqrt[a + b + c 
]*Sqrt[a - I*b*Tanh[x] - c*Tanh[x]^2])]/Sqrt[a + b + c])/2
 

Defintions of rubi rules used

rule 26
Int[(Complex[0, a_])*(Fx_), x_Symbol] :> Simp[(Complex[Identity[0], a])   I 
nt[Fx, x], x] /; FreeQ[a, x] && EqQ[a^2, 1]
 

rule 1289
Int[((d_.) + (e_.)*(x_))^(m_.)*((f_.) + (g_.)*(x_))^(n_.)*((a_.) + (b_.)*(x 
_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(d + e*x)^m*(f + 
 g*x)^n*(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && ( 
IntegerQ[p] || (ILtQ[m, 0] && ILtQ[n, 0]))
 

rule 1578
Int[(x_)^(m_.)*((d_) + (e_.)*(x_)^2)^(q_.)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_ 
)^4)^(p_.), x_Symbol] :> Simp[1/2   Subst[Int[x^((m - 1)/2)*(d + e*x)^q*(a 
+ b*x + c*x^2)^p, x], x, x^2], x] /; FreeQ[{a, b, c, d, e, p, q}, x] && Int 
egerQ[(m - 1)/2]
 

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 3042
Int[u_, x_Symbol] :> Int[DeactivateTrig[u, x], x] /; FunctionOfTrigOfLinear 
Q[u, x]
 

rule 4183
Int[tan[(d_.) + (e_.)*(x_)]^(m_.)*((a_.) + (b_.)*((f_.)*tan[(d_.) + (e_.)*( 
x_)])^(n_.) + (c_.)*((f_.)*tan[(d_.) + (e_.)*(x_)])^(n2_.))^(p_), x_Symbol] 
 :> Simp[f/e   Subst[Int[(x/f)^m*((a + b*x^n + c*x^(2*n))^p/(f^2 + x^2)), x 
], x, f*Tan[d + e*x]], x] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] && EqQ[n 
2, 2*n] && NeQ[b^2 - 4*a*c, 0]
 
Maple [F]

\[\int \frac {\coth \left (x \right )}{\sqrt {a +b \tanh \left (x \right )^{2}+c \tanh \left (x \right )^{4}}}d x\]

Input:

int(coth(x)/(a+b*tanh(x)^2+c*tanh(x)^4)^(1/2),x)
 

Output:

int(coth(x)/(a+b*tanh(x)^2+c*tanh(x)^4)^(1/2),x)
 

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 1520 vs. \(2 (86) = 172\).

Time = 0.83 (sec) , antiderivative size = 6705, normalized size of antiderivative = 63.25 \[ \int \frac {\coth (x)}{\sqrt {a+b \tanh ^2(x)+c \tanh ^4(x)}} \, dx=\text {Too large to display} \] Input:

integrate(coth(x)/(a+b*tanh(x)^2+c*tanh(x)^4)^(1/2),x, algorithm="fricas")
 

Output:

Too large to include
 

Sympy [F]

\[ \int \frac {\coth (x)}{\sqrt {a+b \tanh ^2(x)+c \tanh ^4(x)}} \, dx=\int \frac {\coth {\left (x \right )}}{\sqrt {a + b \tanh ^{2}{\left (x \right )} + c \tanh ^{4}{\left (x \right )}}}\, dx \] Input:

integrate(coth(x)/(a+b*tanh(x)**2+c*tanh(x)**4)**(1/2),x)
 

Output:

Integral(coth(x)/sqrt(a + b*tanh(x)**2 + c*tanh(x)**4), x)
 

Maxima [F]

\[ \int \frac {\coth (x)}{\sqrt {a+b \tanh ^2(x)+c \tanh ^4(x)}} \, dx=\int { \frac {\coth \left (x\right )}{\sqrt {c \tanh \left (x\right )^{4} + b \tanh \left (x\right )^{2} + a}} \,d x } \] Input:

integrate(coth(x)/(a+b*tanh(x)^2+c*tanh(x)^4)^(1/2),x, algorithm="maxima")
 

Output:

integrate(coth(x)/sqrt(c*tanh(x)^4 + b*tanh(x)^2 + a), x)
 

Giac [F(-1)]

Timed out. \[ \int \frac {\coth (x)}{\sqrt {a+b \tanh ^2(x)+c \tanh ^4(x)}} \, dx=\text {Timed out} \] Input:

integrate(coth(x)/(a+b*tanh(x)^2+c*tanh(x)^4)^(1/2),x, algorithm="giac")
 

Output:

Timed out
 

Mupad [F(-1)]

Timed out. \[ \int \frac {\coth (x)}{\sqrt {a+b \tanh ^2(x)+c \tanh ^4(x)}} \, dx=\int \frac {\mathrm {coth}\left (x\right )}{\sqrt {c\,{\mathrm {tanh}\left (x\right )}^4+b\,{\mathrm {tanh}\left (x\right )}^2+a}} \,d x \] Input:

int(coth(x)/(a + b*tanh(x)^2 + c*tanh(x)^4)^(1/2),x)
 

Output:

int(coth(x)/(a + b*tanh(x)^2 + c*tanh(x)^4)^(1/2), x)
 

Reduce [F]

\[ \int \frac {\coth (x)}{\sqrt {a+b \tanh ^2(x)+c \tanh ^4(x)}} \, dx=\int \frac {\sqrt {\tanh \left (x \right )^{4} c +\tanh \left (x \right )^{2} b +a}\, \coth \left (x \right )}{\tanh \left (x \right )^{4} c +\tanh \left (x \right )^{2} b +a}d x \] Input:

int(coth(x)/(a+b*tanh(x)^2+c*tanh(x)^4)^(1/2),x)
 

Output:

int((sqrt(tanh(x)**4*c + tanh(x)**2*b + a)*coth(x))/(tanh(x)**4*c + tanh(x 
)**2*b + a),x)