\(\int \frac {1}{x \tanh ^{\frac {3}{2}}(a+b \log (c x^n))} \, dx\) [208]

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

Optimal result

Integrand size = 19, antiderivative size = 71 \[ \int \frac {1}{x \tanh ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right )} \, dx=-\frac {\arctan \left (\sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}\right )}{b n}+\frac {\text {arctanh}\left (\sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}\right )}{b n}-\frac {2}{b n \sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}} \] Output:

-arctan(tanh(a+b*ln(c*x^n))^(1/2))/b/n+arctanh(tanh(a+b*ln(c*x^n))^(1/2))/ 
b/n-2/b/n/tanh(a+b*ln(c*x^n))^(1/2)
                                                                                    
                                                                                    
 

Mathematica [A] (verified)

Time = 0.11 (sec) , antiderivative size = 97, normalized size of antiderivative = 1.37 \[ \int \frac {1}{x \tanh ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right )} \, dx=\frac {-2-\arctan \left (\sqrt [4]{\tanh ^2\left (a+b \log \left (c x^n\right )\right )}\right ) \sqrt [4]{\tanh ^2\left (a+b \log \left (c x^n\right )\right )}+\text {arctanh}\left (\sqrt [4]{\tanh ^2\left (a+b \log \left (c x^n\right )\right )}\right ) \sqrt [4]{\tanh ^2\left (a+b \log \left (c x^n\right )\right )}}{b n \sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}} \] Input:

Integrate[1/(x*Tanh[a + b*Log[c*x^n]]^(3/2)),x]
 

Output:

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

Rubi [A] (verified)

Time = 0.35 (sec) , antiderivative size = 71, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.526, Rules used = {3039, 3042, 3955, 3042, 3957, 25, 266, 827, 216, 219}

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 {1}{x \tanh ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right )} \, dx\)

\(\Big \downarrow \) 3039

\(\displaystyle \frac {\int \frac {1}{\tanh ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right )}d\log \left (c x^n\right )}{n}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {\int \frac {1}{\left (-i \tan \left (i a+i b \log \left (c x^n\right )\right )\right )^{3/2}}d\log \left (c x^n\right )}{n}\)

\(\Big \downarrow \) 3955

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

\(\Big \downarrow \) 3042

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

\(\Big \downarrow \) 3957

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

\(\Big \downarrow \) 25

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

\(\Big \downarrow \) 266

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

\(\Big \downarrow \) 827

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

\(\Big \downarrow \) 216

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

\(\Big \downarrow \) 219

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

Input:

Int[1/(x*Tanh[a + b*Log[c*x^n]]^(3/2)),x]
 

Output:

((2*(-1/2*ArcTan[Sqrt[Tanh[a + b*Log[c*x^n]]]] + ArcTanh[Sqrt[Tanh[a + b*L 
og[c*x^n]]]]/2))/b - 2/(b*Sqrt[Tanh[a + b*Log[c*x^n]]]))/n
 

Defintions of rubi rules used

rule 25
Int[-(Fx_), x_Symbol] :> Simp[Identity[-1]   Int[Fx, x], x]
 

rule 216
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*A 
rcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a 
, 0] || GtQ[b, 0])
 

rule 219
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* 
ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt 
Q[a, 0] || LtQ[b, 0])
 

rule 266
Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> With[{k = De 
nominator[m]}, Simp[k/c   Subst[Int[x^(k*(m + 1) - 1)*(a + b*(x^(2*k)/c^2)) 
^p, x], x, (c*x)^(1/k)], x]] /; FreeQ[{a, b, c, p}, x] && FractionQ[m] && I 
ntBinomialQ[a, b, c, 2, m, p, x]
 

rule 827
Int[(x_)^2/((a_) + (b_.)*(x_)^4), x_Symbol] :> With[{r = Numerator[Rt[-a/b, 
 2]], s = Denominator[Rt[-a/b, 2]]}, Simp[s/(2*b)   Int[1/(r + s*x^2), x], 
x] - Simp[s/(2*b)   Int[1/(r - s*x^2), x], x]] /; FreeQ[{a, b}, x] &&  !GtQ 
[a/b, 0]
 

rule 3039
Int[u_, x_Symbol] :> With[{lst = FunctionOfLog[Cancel[x*u], x]}, Simp[1/lst 
[[3]]   Subst[Int[lst[[1]], x], x, Log[lst[[2]]]], x] /;  !FalseQ[lst]] /; 
NonsumQ[u]
 

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

rule 3955
Int[((b_.)*tan[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(b*Tan[c + d*x] 
)^(n + 1)/(b*d*(n + 1)), x] - Simp[1/b^2   Int[(b*Tan[c + d*x])^(n + 2), x] 
, x] /; FreeQ[{b, c, d}, x] && LtQ[n, -1]
 

rule 3957
Int[((b_.)*tan[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[b/d   Subst[Int 
[x^n/(b^2 + x^2), x], x, b*Tan[c + d*x]], x] /; FreeQ[{b, c, d, n}, x] && 
!IntegerQ[n]
 
Maple [A] (verified)

Time = 1.15 (sec) , antiderivative size = 76, normalized size of antiderivative = 1.07

method result size
derivativedivides \(\frac {-\frac {\ln \left (\sqrt {\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}-1\right )}{2}-\frac {2}{\sqrt {\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}}-\arctan \left (\sqrt {\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}\right )+\frac {\ln \left (\sqrt {\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}+1\right )}{2}}{n b}\) \(76\)
default \(\frac {-\frac {\ln \left (\sqrt {\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}-1\right )}{2}-\frac {2}{\sqrt {\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}}-\arctan \left (\sqrt {\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}\right )+\frac {\ln \left (\sqrt {\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}+1\right )}{2}}{n b}\) \(76\)

Input:

int(1/x/tanh(a+b*ln(c*x^n))^(3/2),x,method=_RETURNVERBOSE)
 

Output:

1/n/b*(-1/2*ln(tanh(a+b*ln(c*x^n))^(1/2)-1)-2/tanh(a+b*ln(c*x^n))^(1/2)-ar 
ctan(tanh(a+b*ln(c*x^n))^(1/2))+1/2*ln(tanh(a+b*ln(c*x^n))^(1/2)+1))
 

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 625 vs. \(2 (65) = 130\).

Time = 0.11 (sec) , antiderivative size = 625, normalized size of antiderivative = 8.80 \[ \int \frac {1}{x \tanh ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right )} \, dx=\text {Too large to display} \] Input:

integrate(1/x/tanh(a+b*log(c*x^n))^(3/2),x, algorithm="fricas")
 

Output:

-1/2*(2*(cosh(b*n*log(x) + b*log(c) + a)^2 + 2*cosh(b*n*log(x) + b*log(c) 
+ a)*sinh(b*n*log(x) + b*log(c) + a) + sinh(b*n*log(x) + b*log(c) + a)^2 - 
 1)*arctan(-cosh(b*n*log(x) + b*log(c) + a)^2 - 2*cosh(b*n*log(x) + b*log( 
c) + a)*sinh(b*n*log(x) + b*log(c) + a) - sinh(b*n*log(x) + b*log(c) + a)^ 
2 + (cosh(b*n*log(x) + b*log(c) + a)^2 + 2*cosh(b*n*log(x) + b*log(c) + a) 
*sinh(b*n*log(x) + b*log(c) + a) + sinh(b*n*log(x) + b*log(c) + a)^2 + 1)* 
sqrt(sinh(b*n*log(x) + b*log(c) + a)/cosh(b*n*log(x) + b*log(c) + a))) + 4 
*cosh(b*n*log(x) + b*log(c) + a)^2 + (cosh(b*n*log(x) + b*log(c) + a)^2 + 
2*cosh(b*n*log(x) + b*log(c) + a)*sinh(b*n*log(x) + b*log(c) + a) + sinh(b 
*n*log(x) + b*log(c) + a)^2 - 1)*log(-cosh(b*n*log(x) + b*log(c) + a)^2 - 
2*cosh(b*n*log(x) + b*log(c) + a)*sinh(b*n*log(x) + b*log(c) + a) - sinh(b 
*n*log(x) + b*log(c) + a)^2 + (cosh(b*n*log(x) + b*log(c) + a)^2 + 2*cosh( 
b*n*log(x) + b*log(c) + a)*sinh(b*n*log(x) + b*log(c) + a) + sinh(b*n*log( 
x) + b*log(c) + a)^2 + 1)*sqrt(sinh(b*n*log(x) + b*log(c) + a)/cosh(b*n*lo 
g(x) + b*log(c) + a))) + 8*cosh(b*n*log(x) + b*log(c) + a)*sinh(b*n*log(x) 
 + b*log(c) + a) + 4*sinh(b*n*log(x) + b*log(c) + a)^2 + 4*(cosh(b*n*log(x 
) + b*log(c) + a)^2 + 2*cosh(b*n*log(x) + b*log(c) + a)*sinh(b*n*log(x) + 
b*log(c) + a) + sinh(b*n*log(x) + b*log(c) + a)^2 + 1)*sqrt(sinh(b*n*log(x 
) + b*log(c) + a)/cosh(b*n*log(x) + b*log(c) + a)) - 4)/(b*n*cosh(b*n*log( 
x) + b*log(c) + a)^2 + 2*b*n*cosh(b*n*log(x) + b*log(c) + a)*sinh(b*n*l...
 

Sympy [A] (verification not implemented)

Time = 8.25 (sec) , antiderivative size = 87, normalized size of antiderivative = 1.23 \[ \int \frac {1}{x \tanh ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right )} \, dx=- \frac {\log {\left (\sqrt {\tanh {\left (a + b \log {\left (c x^{n} \right )} \right )}} - 1 \right )}}{2 b n} + \frac {\log {\left (\sqrt {\tanh {\left (a + b \log {\left (c x^{n} \right )} \right )}} + 1 \right )}}{2 b n} - \frac {\operatorname {atan}{\left (\sqrt {\tanh {\left (a + b \log {\left (c x^{n} \right )} \right )}} \right )}}{b n} - \frac {2}{b n \sqrt {\tanh {\left (a + b \log {\left (c x^{n} \right )} \right )}}} \] Input:

integrate(1/x/tanh(a+b*ln(c*x**n))**(3/2),x)
 

Output:

-log(sqrt(tanh(a + b*log(c*x**n))) - 1)/(2*b*n) + log(sqrt(tanh(a + b*log( 
c*x**n))) + 1)/(2*b*n) - atan(sqrt(tanh(a + b*log(c*x**n))))/(b*n) - 2/(b* 
n*sqrt(tanh(a + b*log(c*x**n))))
                                                                                    
                                                                                    
 

Maxima [F]

\[ \int \frac {1}{x \tanh ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right )} \, dx=\int { \frac {1}{x \tanh \left (b \log \left (c x^{n}\right ) + a\right )^{\frac {3}{2}}} \,d x } \] Input:

integrate(1/x/tanh(a+b*log(c*x^n))^(3/2),x, algorithm="maxima")
 

Output:

integrate(1/(x*tanh(b*log(c*x^n) + a)^(3/2)), x)
 

Giac [F(-1)]

Timed out. \[ \int \frac {1}{x \tanh ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right )} \, dx=\text {Timed out} \] Input:

integrate(1/x/tanh(a+b*log(c*x^n))^(3/2),x, algorithm="giac")
 

Output:

Timed out
 

Mupad [B] (verification not implemented)

Time = 2.73 (sec) , antiderivative size = 65, normalized size of antiderivative = 0.92 \[ \int \frac {1}{x \tanh ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right )} \, dx=\frac {\mathrm {atanh}\left (\sqrt {\mathrm {tanh}\left (a+b\,\ln \left (c\,x^n\right )\right )}\right )}{b\,n}-\frac {\mathrm {atan}\left (\sqrt {\mathrm {tanh}\left (a+b\,\ln \left (c\,x^n\right )\right )}\right )}{b\,n}-\frac {2}{b\,n\,\sqrt {\mathrm {tanh}\left (a+b\,\ln \left (c\,x^n\right )\right )}} \] Input:

int(1/(x*tanh(a + b*log(c*x^n))^(3/2)),x)
 

Output:

atanh(tanh(a + b*log(c*x^n))^(1/2))/(b*n) - atan(tanh(a + b*log(c*x^n))^(1 
/2))/(b*n) - 2/(b*n*tanh(a + b*log(c*x^n))^(1/2))
 

Reduce [F]

\[ \int \frac {1}{x \tanh ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right )} \, dx=\int \frac {\sqrt {\tanh \left (\mathrm {log}\left (x^{n} c \right ) b +a \right )}}{{\tanh \left (\mathrm {log}\left (x^{n} c \right ) b +a \right )}^{2} x}d x \] Input:

int(1/x/tanh(a+b*log(c*x^n))^(3/2),x)
 

Output:

int(sqrt(tanh(log(x**n*c)*b + a))/(tanh(log(x**n*c)*b + a)**2*x),x)