3.580 \(\int \text{sech}^5(x) \, dx\)

Optimal. Leaf size=26 \[ \frac{3}{8} \tan ^{-1}(\sinh (x))+\frac{1}{4} \tanh (x) \text{sech}^3(x)+\frac{3}{8} \tanh (x) \text{sech}(x) \]

[Out]

(3*ArcTan[Sinh[x]])/8 + (3*Sech[x]*Tanh[x])/8 + (Sech[x]^3*Tanh[x])/4

________________________________________________________________________________________

Rubi [A]  time = 0.0167193, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 4, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {3768, 3770} \[ \frac{3}{8} \tan ^{-1}(\sinh (x))+\frac{1}{4} \tanh (x) \text{sech}^3(x)+\frac{3}{8} \tanh (x) \text{sech}(x) \]

Antiderivative was successfully verified.

[In]

Int[Sech[x]^5,x]

[Out]

(3*ArcTan[Sinh[x]])/8 + (3*Sech[x]*Tanh[x])/8 + (Sech[x]^3*Tanh[x])/4

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 \text{sech}^5(x) \, dx &=\frac{1}{4} \text{sech}^3(x) \tanh (x)+\frac{3}{4} \int \text{sech}^3(x) \, dx\\ &=\frac{3}{8} \text{sech}(x) \tanh (x)+\frac{1}{4} \text{sech}^3(x) \tanh (x)+\frac{3}{8} \int \text{sech}(x) \, dx\\ &=\frac{3}{8} \tan ^{-1}(\sinh (x))+\frac{3}{8} \text{sech}(x) \tanh (x)+\frac{1}{4} \text{sech}^3(x) \tanh (x)\\ \end{align*}

Mathematica [A]  time = 0.0037519, size = 30, normalized size = 1.15 \[ \frac{3}{4} \tan ^{-1}\left (\tanh \left (\frac{x}{2}\right )\right )+\frac{1}{4} \tanh (x) \text{sech}^3(x)+\frac{3}{8} \tanh (x) \text{sech}(x) \]

Antiderivative was successfully verified.

[In]

Integrate[Sech[x]^5,x]

[Out]

(3*ArcTan[Tanh[x/2]])/4 + (3*Sech[x]*Tanh[x])/8 + (Sech[x]^3*Tanh[x])/4

________________________________________________________________________________________

Maple [A]  time = 0.035, size = 21, normalized size = 0.8 \begin{align*} \left ({\frac{ \left ({\rm sech} \left (x\right ) \right ) ^{3}}{4}}+{\frac{3\,{\rm sech} \left (x\right )}{8}} \right ) \tanh \left ( x \right ) +{\frac{3\,\arctan \left ({{\rm e}^{x}} \right ) }{4}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/cosh(x)^5,x)

[Out]

(1/4*sech(x)^3+3/8*sech(x))*tanh(x)+3/4*arctan(exp(x))

________________________________________________________________________________________

Maxima [B]  time = 1.41523, size = 82, normalized size = 3.15 \begin{align*} \frac{3 \, e^{\left (-x\right )} + 11 \, e^{\left (-3 \, x\right )} - 11 \, e^{\left (-5 \, x\right )} - 3 \, e^{\left (-7 \, x\right )}}{4 \,{\left (4 \, e^{\left (-2 \, x\right )} + 6 \, e^{\left (-4 \, x\right )} + 4 \, e^{\left (-6 \, x\right )} + e^{\left (-8 \, x\right )} + 1\right )}} - \frac{3}{4} \, \arctan \left (e^{\left (-x\right )}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/cosh(x)^5,x, algorithm="maxima")

[Out]

1/4*(3*e^(-x) + 11*e^(-3*x) - 11*e^(-5*x) - 3*e^(-7*x))/(4*e^(-2*x) + 6*e^(-4*x) + 4*e^(-6*x) + e^(-8*x) + 1)
- 3/4*arctan(e^(-x))

________________________________________________________________________________________

Fricas [B]  time = 2.09317, size = 1547, normalized size = 59.5 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/cosh(x)^5,x, algorithm="fricas")

[Out]

1/4*(3*cosh(x)^7 + 21*cosh(x)*sinh(x)^6 + 3*sinh(x)^7 + (63*cosh(x)^2 + 11)*sinh(x)^5 + 11*cosh(x)^5 + 5*(21*c
osh(x)^3 + 11*cosh(x))*sinh(x)^4 + (105*cosh(x)^4 + 110*cosh(x)^2 - 11)*sinh(x)^3 - 11*cosh(x)^3 + (63*cosh(x)
^5 + 110*cosh(x)^3 - 33*cosh(x))*sinh(x)^2 + 3*(cosh(x)^8 + 8*cosh(x)*sinh(x)^7 + sinh(x)^8 + 4*(7*cosh(x)^2 +
 1)*sinh(x)^6 + 4*cosh(x)^6 + 8*(7*cosh(x)^3 + 3*cosh(x))*sinh(x)^5 + 2*(35*cosh(x)^4 + 30*cosh(x)^2 + 3)*sinh
(x)^4 + 6*cosh(x)^4 + 8*(7*cosh(x)^5 + 10*cosh(x)^3 + 3*cosh(x))*sinh(x)^3 + 4*(7*cosh(x)^6 + 15*cosh(x)^4 + 9
*cosh(x)^2 + 1)*sinh(x)^2 + 4*cosh(x)^2 + 8*(cosh(x)^7 + 3*cosh(x)^5 + 3*cosh(x)^3 + cosh(x))*sinh(x) + 1)*arc
tan(cosh(x) + sinh(x)) + (21*cosh(x)^6 + 55*cosh(x)^4 - 33*cosh(x)^2 - 3)*sinh(x) - 3*cosh(x))/(cosh(x)^8 + 8*
cosh(x)*sinh(x)^7 + sinh(x)^8 + 4*(7*cosh(x)^2 + 1)*sinh(x)^6 + 4*cosh(x)^6 + 8*(7*cosh(x)^3 + 3*cosh(x))*sinh
(x)^5 + 2*(35*cosh(x)^4 + 30*cosh(x)^2 + 3)*sinh(x)^4 + 6*cosh(x)^4 + 8*(7*cosh(x)^5 + 10*cosh(x)^3 + 3*cosh(x
))*sinh(x)^3 + 4*(7*cosh(x)^6 + 15*cosh(x)^4 + 9*cosh(x)^2 + 1)*sinh(x)^2 + 4*cosh(x)^2 + 8*(cosh(x)^7 + 3*cos
h(x)^5 + 3*cosh(x)^3 + cosh(x))*sinh(x) + 1)

________________________________________________________________________________________

Sympy [B]  time = 3.98338, size = 422, normalized size = 16.23 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/cosh(x)**5,x)

[Out]

3*tanh(x/2)**8*atan(tanh(x/2))/(4*tanh(x/2)**8 + 16*tanh(x/2)**6 + 24*tanh(x/2)**4 + 16*tanh(x/2)**2 + 4) - 5*
tanh(x/2)**7/(4*tanh(x/2)**8 + 16*tanh(x/2)**6 + 24*tanh(x/2)**4 + 16*tanh(x/2)**2 + 4) + 12*tanh(x/2)**6*atan
(tanh(x/2))/(4*tanh(x/2)**8 + 16*tanh(x/2)**6 + 24*tanh(x/2)**4 + 16*tanh(x/2)**2 + 4) + 3*tanh(x/2)**5/(4*tan
h(x/2)**8 + 16*tanh(x/2)**6 + 24*tanh(x/2)**4 + 16*tanh(x/2)**2 + 4) + 18*tanh(x/2)**4*atan(tanh(x/2))/(4*tanh
(x/2)**8 + 16*tanh(x/2)**6 + 24*tanh(x/2)**4 + 16*tanh(x/2)**2 + 4) - 3*tanh(x/2)**3/(4*tanh(x/2)**8 + 16*tanh
(x/2)**6 + 24*tanh(x/2)**4 + 16*tanh(x/2)**2 + 4) + 12*tanh(x/2)**2*atan(tanh(x/2))/(4*tanh(x/2)**8 + 16*tanh(
x/2)**6 + 24*tanh(x/2)**4 + 16*tanh(x/2)**2 + 4) + 5*tanh(x/2)/(4*tanh(x/2)**8 + 16*tanh(x/2)**6 + 24*tanh(x/2
)**4 + 16*tanh(x/2)**2 + 4) + 3*atan(tanh(x/2))/(4*tanh(x/2)**8 + 16*tanh(x/2)**6 + 24*tanh(x/2)**4 + 16*tanh(
x/2)**2 + 4)

________________________________________________________________________________________

Giac [B]  time = 1.16145, size = 81, normalized size = 3.12 \begin{align*} \frac{3}{16} \, \pi - \frac{3 \,{\left (e^{\left (-x\right )} - e^{x}\right )}^{3} + 20 \, e^{\left (-x\right )} - 20 \, e^{x}}{4 \,{\left ({\left (e^{\left (-x\right )} - e^{x}\right )}^{2} + 4\right )}^{2}} + \frac{3}{8} \, \arctan \left (\frac{1}{2} \,{\left (e^{\left (2 \, x\right )} - 1\right )} e^{\left (-x\right )}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/cosh(x)^5,x, algorithm="giac")

[Out]

3/16*pi - 1/4*(3*(e^(-x) - e^x)^3 + 20*e^(-x) - 20*e^x)/((e^(-x) - e^x)^2 + 4)^2 + 3/8*arctan(1/2*(e^(2*x) - 1
)*e^(-x))