3.193 \(\int \frac {\text {sech}^3(a+b \log (c x^n))}{x} \, dx\)

Optimal. Leaf size=55 \[ \frac {\tan ^{-1}\left (\sinh \left (a+b \log \left (c x^n\right )\right )\right )}{2 b n}+\frac {\tanh \left (a+b \log \left (c x^n\right )\right ) \text {sech}\left (a+b \log \left (c x^n\right )\right )}{2 b n} \]

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 55, 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 = {3768, 3770} \[ \frac {\tan ^{-1}\left (\sinh \left (a+b \log \left (c x^n\right )\right )\right )}{2 b n}+\frac {\tanh \left (a+b \log \left (c x^n\right )\right ) \text {sech}\left (a+b \log \left (c x^n\right )\right )}{2 b n} \]

Antiderivative was successfully verified.

[In]

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

[Out]

ArcTan[Sinh[a + b*Log[c*x^n]]]/(2*b*n) + (Sech[a + b*Log[c*x^n]]*Tanh[a + b*Log[c*x^n]])/(2*b*n)

Rule 3768

Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> -Simp[(b*Cos[c + d*x]*(b*Csc[c + d*x])^(n - 1))/(d*(n -
 1)), x] + Dist[(b^2*(n - 2))/(n - 1), Int[(b*Csc[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1
] && IntegerQ[2*n]

Rule 3770

Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.06, size = 55, normalized size = 1.00 \[ \frac {\tan ^{-1}\left (\sinh \left (a+b \log \left (c x^n\right )\right )\right )}{2 b n}+\frac {\tanh \left (a+b \log \left (c x^n\right )\right ) \text {sech}\left (a+b \log \left (c x^n\right )\right )}{2 b n} \]

Antiderivative was successfully verified.

[In]

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

[Out]

ArcTan[Sinh[a + b*Log[c*x^n]]]/(2*b*n) + (Sech[a + b*Log[c*x^n]]*Tanh[a + b*Log[c*x^n]])/(2*b*n)

________________________________________________________________________________________

fricas [B]  time = 0.43, size = 452, normalized size = 8.22 \[ \frac {\cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{3} + 3 \, \cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right ) \sinh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{2} + \sinh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{3} + {\left (\cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{4} + 4 \, \cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right ) \sinh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{3} + \sinh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{4} + 2 \, {\left (3 \, \cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{2} + 1\right )} \sinh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{2} + 2 \, \cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{2} + 4 \, {\left (\cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{3} + \cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right )\right )} \sinh \left (b n \log \relax (x) + b \log \relax (c) + a\right ) + 1\right )} \arctan \left (\cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right ) + \sinh \left (b n \log \relax (x) + b \log \relax (c) + a\right )\right ) + {\left (3 \, \cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{2} - 1\right )} \sinh \left (b n \log \relax (x) + b \log \relax (c) + a\right ) - \cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right )}{b n \cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{4} + 4 \, b n \cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right ) \sinh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{3} + b n \sinh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{4} + 2 \, b n \cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{2} + 2 \, {\left (3 \, b n \cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{2} + b n\right )} \sinh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{2} + b n + 4 \, {\left (b n \cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{3} + b n \cosh \left (b n \log \relax (x) + b \log \relax (c) + a\right )\right )} \sinh \left (b n \log \relax (x) + b \log \relax (c) + a\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(cosh(b*n*log(x) + b*log(c) + a)^3 + 3*cosh(b*n*log(x) + b*log(c) + a)*sinh(b*n*log(x) + b*log(c) + a)^2 + sin
h(b*n*log(x) + b*log(c) + a)^3 + (cosh(b*n*log(x) + b*log(c) + a)^4 + 4*cosh(b*n*log(x) + b*log(c) + a)*sinh(b
*n*log(x) + b*log(c) + a)^3 + sinh(b*n*log(x) + b*log(c) + a)^4 + 2*(3*cosh(b*n*log(x) + b*log(c) + a)^2 + 1)*
sinh(b*n*log(x) + b*log(c) + a)^2 + 2*cosh(b*n*log(x) + b*log(c) + a)^2 + 4*(cosh(b*n*log(x) + b*log(c) + a)^3
 + cosh(b*n*log(x) + b*log(c) + a))*sinh(b*n*log(x) + b*log(c) + a) + 1)*arctan(cosh(b*n*log(x) + b*log(c) + a
) + sinh(b*n*log(x) + b*log(c) + a)) + (3*cosh(b*n*log(x) + b*log(c) + a)^2 - 1)*sinh(b*n*log(x) + b*log(c) +
a) - cosh(b*n*log(x) + b*log(c) + a))/(b*n*cosh(b*n*log(x) + b*log(c) + a)^4 + 4*b*n*cosh(b*n*log(x) + b*log(c
) + a)*sinh(b*n*log(x) + b*log(c) + a)^3 + b*n*sinh(b*n*log(x) + b*log(c) + a)^4 + 2*b*n*cosh(b*n*log(x) + b*l
og(c) + a)^2 + 2*(3*b*n*cosh(b*n*log(x) + b*log(c) + a)^2 + b*n)*sinh(b*n*log(x) + b*log(c) + a)^2 + b*n + 4*(
b*n*cosh(b*n*log(x) + b*log(c) + a)^3 + b*n*cosh(b*n*log(x) + b*log(c) + a))*sinh(b*n*log(x) + b*log(c) + a))

________________________________________________________________________________________

giac [B]  time = 0.15, size = 115, normalized size = 2.09 \[ c^{3 \, b} {\left (\frac {\arctan \left (\frac {c^{2 \, b} x^{b n} e^{a}}{c^{b}}\right ) e^{\left (-3 \, a\right )}}{b c^{2 \, b} c^{b} n} + \frac {{\left (c^{2 \, b} x^{3 \, b n} e^{\left (2 \, a\right )} - x^{b n}\right )} e^{\left (-2 \, a\right )}}{{\left (c^{2 \, b} x^{2 \, b n} e^{\left (2 \, a\right )} + 1\right )}^{2} b c^{2 \, b} n}\right )} e^{\left (3 \, a\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.30, size = 51, normalized size = 0.93 \[ \frac {\mathrm {sech}\left (a +b \ln \left (c \,x^{n}\right )\right ) \tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}{2 b n}+\frac {\arctan \left ({\mathrm e}^{a +b \ln \left (c \,x^{n}\right )}\right )}{b n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sech(a+b*ln(c*x^n))^3/x,x)

[Out]

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

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ 8 \, c^{b} \int \frac {e^{\left (b \log \left (x^{n}\right ) + a\right )}}{8 \, {\left (c^{2 \, b} x e^{\left (2 \, b \log \left (x^{n}\right ) + 2 \, a\right )} + x\right )}}\,{d x} + \frac {c^{3 \, b} e^{\left (3 \, b \log \left (x^{n}\right ) + 3 \, a\right )} - c^{b} e^{\left (b \log \left (x^{n}\right ) + a\right )}}{b c^{4 \, b} n e^{\left (4 \, b \log \left (x^{n}\right ) + 4 \, a\right )} + 2 \, b c^{2 \, b} n e^{\left (2 \, b \log \left (x^{n}\right ) + 2 \, a\right )} + b n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

8*c^b*integrate(1/8*e^(b*log(x^n) + a)/(c^(2*b)*x*e^(2*b*log(x^n) + 2*a) + x), x) + (c^(3*b)*e^(3*b*log(x^n) +
 3*a) - c^b*e^(b*log(x^n) + a))/(b*c^(4*b)*n*e^(4*b*log(x^n) + 4*a) + 2*b*c^(2*b)*n*e^(2*b*log(x^n) + 2*a) + b
*n)

________________________________________________________________________________________

mupad [B]  time = 1.40, size = 139, normalized size = 2.53 \[ \frac {2\,{\mathrm {e}}^{-a}}{{\left (c\,x^n\right )}^b\,\left (b\,n+\frac {2\,b\,n\,{\mathrm {e}}^{-2\,a}}{{\left (c\,x^n\right )}^{2\,b}}+\frac {b\,n\,{\mathrm {e}}^{-4\,a}}{{\left (c\,x^n\right )}^{4\,b}}\right )}-\frac {{\mathrm {e}}^{-a}}{{\left (c\,x^n\right )}^b\,\left (b\,n+\frac {b\,n\,{\mathrm {e}}^{-2\,a}}{{\left (c\,x^n\right )}^{2\,b}}\right )}-\frac {\mathrm {atan}\left (\frac {{\mathrm {e}}^{-a}\,\sqrt {b^2\,n^2}}{b\,n\,{\left (c\,x^n\right )}^b}\right )}{\sqrt {b^2\,n^2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\operatorname {sech}^{3}{\left (a + b \log {\left (c x^{n} \right )} \right )}}{x}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________