3.2.92 \(\int \frac {\text {sech}^2(a+b \log (c x^n))}{x} \, dx\) [192]

Optimal. Leaf size=18 \[ \frac {\tanh \left (a+b \log \left (c x^n\right )\right )}{b n} \]

[Out]

tanh(a+b*ln(c*x^n))/b/n

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 18, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {3852, 8} \begin {gather*} \frac {\tanh \left (a+b \log \left (c x^n\right )\right )}{b n} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sech[a + b*Log[c*x^n]]^2/x,x]

[Out]

Tanh[a + b*Log[c*x^n]]/(b*n)

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 3852

Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Dist[-d^(-1), Subst[Int[ExpandIntegrand[(1 + x^2)^(n/2 - 1), x]
, x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]

Rubi steps

\begin {align*} \int \frac {\text {sech}^2\left (a+b \log \left (c x^n\right )\right )}{x} \, dx &=\frac {\text {Subst}\left (\int \text {sech}^2(a+b x) \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=\frac {i \text {Subst}\left (\int 1 \, dx,x,-i \tanh \left (a+b \log \left (c x^n\right )\right )\right )}{b n}\\ &=\frac {\tanh \left (a+b \log \left (c x^n\right )\right )}{b n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.05, size = 18, normalized size = 1.00 \begin {gather*} \frac {\tanh \left (a+b \log \left (c x^n\right )\right )}{b n} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sech[a + b*Log[c*x^n]]^2/x,x]

[Out]

Tanh[a + b*Log[c*x^n]]/(b*n)

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 3.
time = 3.76, size = 116, normalized size = 6.44

method result size
risch \(-\frac {2}{b n \left (\left (x^{n}\right )^{2 b} c^{2 b} {\mathrm e}^{2 a} {\mathrm e}^{-i b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}} {\mathrm e}^{i b \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i c \right ) \pi } {\mathrm e}^{i b \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i x^{n}\right ) \pi } {\mathrm e}^{-i b \,\mathrm {csgn}\left (i c \,x^{n}\right ) \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \pi }+1\right )}\) \(116\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-2/b/n/(((x^n)^b)^2*(c^b)^2*exp(2*a)*exp(-I*b*csgn(I*c*x^n)^3*Pi)*exp(I*b*csgn(I*c*x^n)^2*csgn(I*c)*Pi)*exp(I*
b*csgn(I*c*x^n)^2*csgn(I*x^n)*Pi)*exp(-I*b*csgn(I*c*x^n)*csgn(I*c)*csgn(I*x^n)*Pi)+1)

________________________________________________________________________________________

Maxima [A]
time = 0.29, size = 28, normalized size = 1.56 \begin {gather*} -\frac {2}{b c^{2 \, b} n e^{\left (2 \, b \log \left (x^{n}\right ) + 2 \, a\right )} + b n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-2/(b*c^(2*b)*n*e^(2*b*log(x^n) + 2*a) + b*n)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 70 vs. \(2 (18) = 36\).
time = 0.36, size = 70, normalized size = 3.89 \begin {gather*} -\frac {2}{b n \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + 2 \, b n \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 ) + b n \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + b n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-2/(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*log(x) + b*log(c) +
 a) + b*n*sinh(b*n*log(x) + b*log(c) + a)^2 + b*n)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {sech}^{2}{\left (a + b \log {\left (c x^{n} \right )} \right )}}{x}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(a+b*ln(c*x**n))**2/x,x)

[Out]

Integral(sech(a + b*log(c*x**n))**2/x, x)

________________________________________________________________________________________

Giac [A]
time = 0.41, size = 28, normalized size = 1.56 \begin {gather*} -\frac {2}{{\left (c^{2 \, b} x^{2 \, b n} e^{\left (2 \, a\right )} + 1\right )} b n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-2/((c^(2*b)*x^(2*b*n)*e^(2*a) + 1)*b*n)

________________________________________________________________________________________

Mupad [B]
time = 1.33, size = 24, normalized size = 1.33 \begin {gather*} -\frac {2}{b\,n+b\,n\,{\mathrm {e}}^{2\,a}\,{\left (c\,x^n\right )}^{2\,b}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-2/(b*n + b*n*exp(2*a)*(c*x^n)^(2*b))

________________________________________________________________________________________