3.35 \(\int \frac {1}{\sqrt {a \text {sech}^2(x)}} \, dx\)

Optimal. Leaf size=13 \[ \frac {\tanh (x)}{\sqrt {a \text {sech}^2(x)}} \]

[Out]

tanh(x)/(a*sech(x)^2)^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 13, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4122, 191} \[ \frac {\tanh (x)}{\sqrt {a \text {sech}^2(x)}} \]

Antiderivative was successfully verified.

[In]

Int[1/Sqrt[a*Sech[x]^2],x]

[Out]

Tanh[x]/Sqrt[a*Sech[x]^2]

Rule 191

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(x*(a + b*x^n)^(p + 1))/a, x] /; FreeQ[{a, b, n, p}, x] &
& EqQ[1/n + p + 1, 0]

Rule 4122

Int[((b_.)*sec[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> With[{ff = FreeFactors[Tan[e + f*x], x]}, Dist[(b*ff)
/f, Subst[Int[(b + b*ff^2*x^2)^(p - 1), x], x, Tan[e + f*x]/ff], x]] /; FreeQ[{b, e, f, p}, x] &&  !IntegerQ[p
]

Rubi steps

\begin {align*} \int \frac {1}{\sqrt {a \text {sech}^2(x)}} \, dx &=a \operatorname {Subst}\left (\int \frac {1}{\left (a-a x^2\right )^{3/2}} \, dx,x,\tanh (x)\right )\\ &=\frac {\tanh (x)}{\sqrt {a \text {sech}^2(x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 13, normalized size = 1.00 \[ \frac {\tanh (x)}{\sqrt {a \text {sech}^2(x)}} \]

Antiderivative was successfully verified.

[In]

Integrate[1/Sqrt[a*Sech[x]^2],x]

[Out]

Tanh[x]/Sqrt[a*Sech[x]^2]

________________________________________________________________________________________

fricas [B]  time = 0.44, size = 79, normalized size = 6.08 \[ \frac {{\left ({\left (e^{\left (2 \, x\right )} + 1\right )} \sinh \relax (x)^{2} + \cosh \relax (x)^{2} + {\left (\cosh \relax (x)^{2} - 1\right )} e^{\left (2 \, x\right )} + 2 \, {\left (\cosh \relax (x) e^{\left (2 \, x\right )} + \cosh \relax (x)\right )} \sinh \relax (x) - 1\right )} \sqrt {\frac {a}{e^{\left (4 \, x\right )} + 2 \, e^{\left (2 \, x\right )} + 1}} e^{x}}{2 \, {\left (a \cosh \relax (x) e^{x} + a e^{x} \sinh \relax (x)\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/2*((e^(2*x) + 1)*sinh(x)^2 + cosh(x)^2 + (cosh(x)^2 - 1)*e^(2*x) + 2*(cosh(x)*e^(2*x) + cosh(x))*sinh(x) - 1
)*sqrt(a/(e^(4*x) + 2*e^(2*x) + 1))*e^x/(a*cosh(x)*e^x + a*e^x*sinh(x))

________________________________________________________________________________________

giac [A]  time = 0.11, size = 14, normalized size = 1.08 \[ -\frac {e^{\left (-x\right )} - e^{x}}{2 \, \sqrt {a}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/2*(e^(-x) - e^x)/sqrt(a)

________________________________________________________________________________________

maple [B]  time = 0.21, size = 58, normalized size = 4.46 \[ \frac {{\mathrm e}^{2 x}}{2 \sqrt {\frac {a \,{\mathrm e}^{2 x}}{\left (1+{\mathrm e}^{2 x}\right )^{2}}}\, \left (1+{\mathrm e}^{2 x}\right )}-\frac {1}{2 \left (1+{\mathrm e}^{2 x}\right ) \sqrt {\frac {a \,{\mathrm e}^{2 x}}{\left (1+{\mathrm e}^{2 x}\right )^{2}}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/2/(a*exp(2*x)/(1+exp(2*x))^2)^(1/2)/(1+exp(2*x))*exp(2*x)-1/2/(1+exp(2*x))/(a*exp(2*x)/(1+exp(2*x))^2)^(1/2)

________________________________________________________________________________________

maxima [A]  time = 0.45, size = 17, normalized size = 1.31 \[ -\frac {e^{\left (-x\right )}}{2 \, \sqrt {a}} + \frac {e^{x}}{2 \, \sqrt {a}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/2*e^(-x)/sqrt(a) + 1/2*e^x/sqrt(a)

________________________________________________________________________________________

mupad [B]  time = 0.12, size = 33, normalized size = 2.54 \[ -\frac {\left (\frac {{\mathrm {e}}^{-2\,x}}{2}-\frac {{\mathrm {e}}^{2\,x}}{2}\right )\,\sqrt {\frac {1}{{\left (\frac {{\mathrm {e}}^{-x}}{2}+\frac {{\mathrm {e}}^x}{2}\right )}^2}}}{2\,\sqrt {a}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-((exp(-2*x)/2 - exp(2*x)/2)*(1/(exp(-x)/2 + exp(x)/2)^2)^(1/2))/(2*a^(1/2))

________________________________________________________________________________________

sympy [A]  time = 0.59, size = 15, normalized size = 1.15 \[ \frac {\tanh {\relax (x )}}{\sqrt {a} \sqrt {\operatorname {sech}^{2}{\relax (x )}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

tanh(x)/(sqrt(a)*sqrt(sech(x)**2))

________________________________________________________________________________________