Integrand size = 19, antiderivative size = 47 \[ \int \frac {1}{x \sqrt {\tanh \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} \]
Time = 0.14 (sec) , antiderivative size = 47, normalized size of antiderivative = 1.00 \[ \int \frac {1}{x \sqrt {\tanh \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} \]
Time = 0.26 (sec) , antiderivative size = 49, normalized size of antiderivative = 1.04, number of steps used = 9, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.421, Rules used = {3039, 3042, 3957, 25, 266, 756, 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 \sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}} \, dx\) |
\(\Big \downarrow \) 3039 |
\(\displaystyle \frac {\int \frac {1}{\sqrt {\tanh \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}{\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 {\int -\frac {1}{\sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )} \left (1-\tanh ^2\left (a+b \log \left (c x^n\right )\right )\right )}d\tanh \left (a+b \log \left (c x^n\right )\right )}{b n}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {\int \frac {1}{\sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )} \left (1-\tanh ^2\left (a+b \log \left (c x^n\right )\right )\right )}d\tanh \left (a+b \log \left (c x^n\right )\right )}{b n}\) |
\(\Big \downarrow \) 266 |
\(\displaystyle \frac {2 \int \frac {1}{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 n}\) |
\(\Big \downarrow \) 756 |
\(\displaystyle \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 n}\) |
\(\Big \downarrow \) 216 |
\(\displaystyle \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 n}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {2 \left (\frac {1}{2} \arctan \left (\sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}\right )+\frac {1}{2} \text {arctanh}\left (\sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}\right )\right )}{b n}\) |
(2*(ArcTan[Sqrt[Tanh[a + b*Log[c*x^n]]]]/2 + ArcTanh[Sqrt[Tanh[a + b*Log[c *x^n]]]]/2))/(b*n)
3.2.97.3.1 Defintions of rubi rules used
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])
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])
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]
Int[((a_) + (b_.)*(x_)^4)^(-1), x_Symbol] :> With[{r = Numerator[Rt[-a/b, 2 ]], s = Denominator[Rt[-a/b, 2]]}, Simp[r/(2*a) Int[1/(r - s*x^2), x], x] + Simp[r/(2*a) Int[1/(r + s*x^2), x], x]] /; FreeQ[{a, b}, x] && !GtQ[a /b, 0]
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]
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]
Time = 0.26 (sec) , antiderivative size = 37, normalized size of antiderivative = 0.79
method | result | size |
derivativedivides | \(\frac {\operatorname {arctanh}\left (\sqrt {\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}\right )+\arctan \left (\sqrt {\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}\right )}{n b}\) | \(37\) |
default | \(\frac {\operatorname {arctanh}\left (\sqrt {\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}\right )+\arctan \left (\sqrt {\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}\right )}{n b}\) | \(37\) |
Leaf count of result is larger than twice the leaf count of optimal. 305 vs. \(2 (43) = 86\).
Time = 0.28 (sec) , antiderivative size = 305, normalized size of antiderivative = 6.49 \[ \int \frac {1}{x \sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}} \, dx=\frac {2 \, \arctan \left (-\cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} - 2 \, \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) - \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + {\left (\cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + 2 \, \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) + \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + 1\right )} \sqrt {\frac {\sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}{\cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}}\right ) - \log \left (-\cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} - 2 \, \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) - \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + {\left (\cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + 2 \, \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) + \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + 1\right )} \sqrt {\frac {\sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}{\cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}}\right )}{2 \, b n} \]
1/2*(2*arctan(-cosh(b*n*log(x) + b*log(c) + a)^2 - 2*cosh(b*n*log(x) + b*l og(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))) - 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*log(x) + b*log(c) + a))))/(b*n)
Time = 1.82 (sec) , antiderivative size = 66, normalized size of antiderivative = 1.40 \[ \int \frac {1}{x \sqrt {\tanh \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} \]
-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)
\[ \int \frac {1}{x \sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}} \, dx=\int { \frac {1}{x \sqrt {\tanh \left (b \log \left (c x^{n}\right ) + a\right )}} \,d x } \]
Timed out. \[ \int \frac {1}{x \sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}} \, dx=\text {Timed out} \]
Time = 2.18 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.77 \[ \int \frac {1}{x \sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}} \, dx=\frac {\mathrm {atan}\left (\sqrt {\mathrm {tanh}\left (a+b\,\ln \left (c\,x^n\right )\right )}\right )+\mathrm {atanh}\left (\sqrt {\mathrm {tanh}\left (a+b\,\ln \left (c\,x^n\right )\right )}\right )}{b\,n} \]