\(\int \sqrt {a \text {sech}^3(x)} \, dx\) [41]

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

Optimal result

Integrand size = 10, antiderivative size = 46 \[ \int \sqrt {a \text {sech}^3(x)} \, dx=2 i \cosh ^{\frac {3}{2}}(x) E\left (\left .\frac {i x}{2}\right |2\right ) \sqrt {a \text {sech}^3(x)}+2 \cosh (x) \sqrt {a \text {sech}^3(x)} \sinh (x) \]

[Out]

2*I*cosh(x)^(3/2)*(cosh(1/2*x)^2)^(1/2)/cosh(1/2*x)*EllipticE(I*sinh(1/2*x),2^(1/2))*(a*sech(x)^3)^(1/2)+2*cos
h(x)*sinh(x)*(a*sech(x)^3)^(1/2)

Rubi [A] (verified)

Time = 0.02 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {4208, 3853, 3856, 2719} \[ \int \sqrt {a \text {sech}^3(x)} \, dx=2 \sinh (x) \cosh (x) \sqrt {a \text {sech}^3(x)}+2 i \cosh ^{\frac {3}{2}}(x) E\left (\left .\frac {i x}{2}\right |2\right ) \sqrt {a \text {sech}^3(x)} \]

[In]

Int[Sqrt[a*Sech[x]^3],x]

[Out]

(2*I)*Cosh[x]^(3/2)*EllipticE[(I/2)*x, 2]*Sqrt[a*Sech[x]^3] + 2*Cosh[x]*Sqrt[a*Sech[x]^3]*Sinh[x]

Rule 2719

Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticE[(1/2)*(c - Pi/2 + d*x), 2], x] /; FreeQ[{
c, d}, x]

Rule 3853

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 3856

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

Rule 4208

Int[((b_.)*((c_.)*sec[(e_.) + (f_.)*(x_)])^(n_))^(p_), x_Symbol] :> Dist[b^IntPart[p]*((b*(c*Sec[e + f*x])^n)^
FracPart[p]/(c*Sec[e + f*x])^(n*FracPart[p])), Int[(c*Sec[e + f*x])^(n*p), x], x] /; FreeQ[{b, c, e, f, n, p},
 x] &&  !IntegerQ[p]

Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt {a \text {sech}^3(x)} \int \text {sech}^{\frac {3}{2}}(x) \, dx}{\text {sech}^{\frac {3}{2}}(x)} \\ & = 2 \cosh (x) \sqrt {a \text {sech}^3(x)} \sinh (x)-\frac {\sqrt {a \text {sech}^3(x)} \int \frac {1}{\sqrt {\text {sech}(x)}} \, dx}{\text {sech}^{\frac {3}{2}}(x)} \\ & = 2 \cosh (x) \sqrt {a \text {sech}^3(x)} \sinh (x)-\left (\cosh ^{\frac {3}{2}}(x) \sqrt {a \text {sech}^3(x)}\right ) \int \sqrt {\cosh (x)} \, dx \\ & = 2 i \cosh ^{\frac {3}{2}}(x) E\left (\left .\frac {i x}{2}\right |2\right ) \sqrt {a \text {sech}^3(x)}+2 \cosh (x) \sqrt {a \text {sech}^3(x)} \sinh (x) \\ \end{align*}

Mathematica [A] (verified)

Time = 0.04 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.78 \[ \int \sqrt {a \text {sech}^3(x)} \, dx=2 \cosh (x) \sqrt {a \text {sech}^3(x)} \left (i \sqrt {\cosh (x)} E\left (\left .\frac {i x}{2}\right |2\right )+\sinh (x)\right ) \]

[In]

Integrate[Sqrt[a*Sech[x]^3],x]

[Out]

2*Cosh[x]*Sqrt[a*Sech[x]^3]*(I*Sqrt[Cosh[x]]*EllipticE[(I/2)*x, 2] + Sinh[x])

Maple [F]

\[\int \sqrt {a \operatorname {sech}\left (x \right )^{3}}d x\]

[In]

int((a*sech(x)^3)^(1/2),x)

[Out]

int((a*sech(x)^3)^(1/2),x)

Fricas [C] (verification not implemented)

Result contains higher order function than in optimal. Order 9 vs. order 4.

Time = 0.08 (sec) , antiderivative size = 60, normalized size of antiderivative = 1.30 \[ \int \sqrt {a \text {sech}^3(x)} \, dx=2 \, \sqrt {2} \sqrt {\frac {a \cosh \left (x\right ) + a \sinh \left (x\right )}{\cosh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2} + 1}} {\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} + 2 \, \sqrt {2} \sqrt {a} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cosh \left (x\right ) + \sinh \left (x\right )\right )\right ) \]

[In]

integrate((a*sech(x)^3)^(1/2),x, algorithm="fricas")

[Out]

2*sqrt(2)*sqrt((a*cosh(x) + a*sinh(x))/(cosh(x)^2 + 2*cosh(x)*sinh(x) + sinh(x)^2 + 1))*(cosh(x) + sinh(x)) +
2*sqrt(2)*sqrt(a)*weierstrassZeta(-4, 0, weierstrassPInverse(-4, 0, cosh(x) + sinh(x)))

Sympy [F]

\[ \int \sqrt {a \text {sech}^3(x)} \, dx=\int \sqrt {a \operatorname {sech}^{3}{\left (x \right )}}\, dx \]

[In]

integrate((a*sech(x)**3)**(1/2),x)

[Out]

Integral(sqrt(a*sech(x)**3), x)

Maxima [F]

\[ \int \sqrt {a \text {sech}^3(x)} \, dx=\int { \sqrt {a \operatorname {sech}\left (x\right )^{3}} \,d x } \]

[In]

integrate((a*sech(x)^3)^(1/2),x, algorithm="maxima")

[Out]

integrate(sqrt(a*sech(x)^3), x)

Giac [F]

\[ \int \sqrt {a \text {sech}^3(x)} \, dx=\int { \sqrt {a \operatorname {sech}\left (x\right )^{3}} \,d x } \]

[In]

integrate((a*sech(x)^3)^(1/2),x, algorithm="giac")

[Out]

integrate(sqrt(a*sech(x)^3), x)

Mupad [F(-1)]

Timed out. \[ \int \sqrt {a \text {sech}^3(x)} \, dx=\int \sqrt {\frac {a}{{\mathrm {cosh}\left (x\right )}^3}} \,d x \]

[In]

int((a/cosh(x)^3)^(1/2),x)

[Out]

int((a/cosh(x)^3)^(1/2), x)