3.2.63 \(\int \frac {1}{\sqrt {\text {sech}(2 \log (c x))}} \, dx\) [163]

Optimal. Leaf size=59 \[ \frac {x}{2 \sqrt {\text {sech}(2 \log (c x))}}-\frac {\text {csch}^{-1}\left (c^2 x^2\right )}{2 c^2 \sqrt {1+\frac {1}{c^4 x^4}} x \sqrt {\text {sech}(2 \log (c x))}} \]

[Out]

1/2*x/sech(2*ln(c*x))^(1/2)-1/2*arccsch(c^2*x^2)/c^2/x/(1+1/c^4/x^4)^(1/2)/sech(2*ln(c*x))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.546, Rules used = {5664, 5662, 342, 281, 283, 221} \begin {gather*} \frac {x}{2 \sqrt {\text {sech}(2 \log (c x))}}-\frac {\text {csch}^{-1}\left (c^2 x^2\right )}{2 c^2 x \sqrt {\frac {1}{c^4 x^4}+1} \sqrt {\text {sech}(2 \log (c x))}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/Sqrt[Sech[2*Log[c*x]]],x]

[Out]

x/(2*Sqrt[Sech[2*Log[c*x]]]) - ArcCsch[c^2*x^2]/(2*c^2*Sqrt[1 + 1/(c^4*x^4)]*x*Sqrt[Sech[2*Log[c*x]]])

Rule 221

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSinh[Rt[b, 2]*(x/Sqrt[a])]/Rt[b, 2], x] /; FreeQ[{a, b},
 x] && GtQ[a, 0] && PosQ[b]

Rule 281

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> With[{k = GCD[m + 1, n]}, Dist[1/k, Subst[Int[x^((m
 + 1)/k - 1)*(a + b*x^(n/k))^p, x], x, x^k], x] /; k != 1] /; FreeQ[{a, b, p}, x] && IGtQ[n, 0] && IntegerQ[m]

Rule 283

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(c*x)^(m + 1)*((a + b*x^n)^p/(c*(m + 1
))), x] - Dist[b*n*(p/(c^n*(m + 1))), Int[(c*x)^(m + n)*(a + b*x^n)^(p - 1), x], x] /; FreeQ[{a, b, c}, x] &&
IGtQ[n, 0] && GtQ[p, 0] && LtQ[m, -1] &&  !ILtQ[(m + n*p + n + 1)/n, 0] && IntBinomialQ[a, b, c, n, m, p, x]

Rule 342

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> -Subst[Int[(a + b/x^n)^p/x^(m + 2), x], x, 1/x] /;
FreeQ[{a, b, p}, x] && ILtQ[n, 0] && IntegerQ[m]

Rule 5662

Int[Sech[((a_.) + Log[x_]*(b_.))*(d_.)]^(p_.), x_Symbol] :> Dist[Sech[d*(a + b*Log[x])]^p*((1 + 1/(E^(2*a*d)*x
^(2*b*d)))^p/x^((-b)*d*p)), Int[1/(x^(b*d*p)*(1 + 1/(E^(2*a*d)*x^(2*b*d)))^p), x], x] /; FreeQ[{a, b, d, p}, x
] &&  !IntegerQ[p]

Rule 5664

Int[Sech[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*(d_.)]^(p_.), x_Symbol] :> Dist[x/(n*(c*x^n)^(1/n)), Subst[Int[
x^(1/n - 1)*Sech[d*(a + b*Log[x])]^p, x], x, c*x^n], x] /; FreeQ[{a, b, c, d, n, p}, x] && (NeQ[c, 1] || NeQ[n
, 1])

Rubi steps

\begin {align*} \int \frac {1}{\sqrt {\text {sech}(2 \log (c x))}} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{\sqrt {\text {sech}(2 \log (x))}} \, dx,x,c x\right )}{c}\\ &=\frac {\text {Subst}\left (\int \sqrt {1+\frac {1}{x^4}} x \, dx,x,c x\right )}{c^2 \sqrt {1+\frac {1}{c^4 x^4}} x \sqrt {\text {sech}(2 \log (c x))}}\\ &=-\frac {\text {Subst}\left (\int \frac {\sqrt {1+x^4}}{x^3} \, dx,x,\frac {1}{c x}\right )}{c^2 \sqrt {1+\frac {1}{c^4 x^4}} x \sqrt {\text {sech}(2 \log (c x))}}\\ &=-\frac {\text {Subst}\left (\int \frac {\sqrt {1+x^2}}{x^2} \, dx,x,\frac {1}{c^2 x^2}\right )}{2 c^2 \sqrt {1+\frac {1}{c^4 x^4}} x \sqrt {\text {sech}(2 \log (c x))}}\\ &=\frac {x}{2 \sqrt {\text {sech}(2 \log (c x))}}-\frac {\text {Subst}\left (\int \frac {1}{\sqrt {1+x^2}} \, dx,x,\frac {1}{c^2 x^2}\right )}{2 c^2 \sqrt {1+\frac {1}{c^4 x^4}} x \sqrt {\text {sech}(2 \log (c x))}}\\ &=\frac {x}{2 \sqrt {\text {sech}(2 \log (c x))}}-\frac {\text {csch}^{-1}\left (c^2 x^2\right )}{2 c^2 \sqrt {1+\frac {1}{c^4 x^4}} x \sqrt {\text {sech}(2 \log (c x))}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.07, size = 77, normalized size = 1.31 \begin {gather*} \frac {x \left (2 \sqrt {1+c^4 x^4}-2 \tanh ^{-1}\left (\sqrt {1+c^4 x^4}\right )\right )}{4 \sqrt {2} \sqrt {\frac {c^2 x^2}{1+c^4 x^4}} \sqrt {1+c^4 x^4}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/Sqrt[Sech[2*Log[c*x]]],x]

[Out]

(x*(2*Sqrt[1 + c^4*x^4] - 2*ArcTanh[Sqrt[1 + c^4*x^4]]))/(4*Sqrt[2]*Sqrt[(c^2*x^2)/(1 + c^4*x^4)]*Sqrt[1 + c^4
*x^4])

________________________________________________________________________________________

Maple [F]
time = 0.92, size = 0, normalized size = 0.00 \[\int \frac {1}{\sqrt {\mathrm {sech}\left (2 \ln \left (c x \right )\right )}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/sech(2*ln(c*x))^(1/2),x)

[Out]

int(1/sech(2*ln(c*x))^(1/2),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integrate(1/sqrt(sech(2*log(c*x))), x)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 100 vs. \(2 (49) = 98\).
time = 0.37, size = 100, normalized size = 1.69 \begin {gather*} \frac {\sqrt {2} c x \log \left (\frac {c^{5} x^{5} + 2 \, c x - 2 \, {\left (c^{4} x^{4} + 1\right )} \sqrt {\frac {c^{2} x^{2}}{c^{4} x^{4} + 1}}}{c x^{5}}\right ) + 2 \, \sqrt {2} {\left (c^{4} x^{4} + 1\right )} \sqrt {\frac {c^{2} x^{2}}{c^{4} x^{4} + 1}}}{8 \, c^{2} x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/8*(sqrt(2)*c*x*log((c^5*x^5 + 2*c*x - 2*(c^4*x^4 + 1)*sqrt(c^2*x^2/(c^4*x^4 + 1)))/(c*x^5)) + 2*sqrt(2)*(c^4
*x^4 + 1)*sqrt(c^2*x^2/(c^4*x^4 + 1)))/(c^2*x)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/sech(2*ln(c*x))**(1/2),x)

[Out]

Integral(1/sqrt(sech(2*log(c*x))), x)

________________________________________________________________________________________

Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Timed out

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {1}{\sqrt {\frac {1}{\mathrm {cosh}\left (2\,\ln \left (c\,x\right )\right )}}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(1/cosh(2*log(c*x)))^(1/2),x)

[Out]

int(1/(1/cosh(2*log(c*x)))^(1/2), x)

________________________________________________________________________________________