\(\int \frac {1}{\sqrt {a \cosh ^4(x)}} \, dx\) [137]

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

Optimal result

Integrand size = 10, antiderivative size = 15 \[ \int \frac {1}{\sqrt {a \cosh ^4(x)}} \, dx=\frac {\cosh (x) \sinh (x)}{\sqrt {a \cosh ^4(x)}} \]

[Out]

cosh(x)*sinh(x)/(a*cosh(x)^4)^(1/2)

Rubi [A] (verified)

Time = 0.01 (sec) , antiderivative size = 15, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {3286, 3852, 8} \[ \int \frac {1}{\sqrt {a \cosh ^4(x)}} \, dx=\frac {\sinh (x) \cosh (x)}{\sqrt {a \cosh ^4(x)}} \]

[In]

Int[1/Sqrt[a*Cosh[x]^4],x]

[Out]

(Cosh[x]*Sinh[x])/Sqrt[a*Cosh[x]^4]

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 3286

Int[(u_.)*((b_.)*sin[(e_.) + (f_.)*(x_)]^(n_))^(p_), x_Symbol] :> With[{ff = FreeFactors[Sin[e + f*x], x]}, Di
st[(b*ff^n)^IntPart[p]*((b*Sin[e + f*x]^n)^FracPart[p]/(Sin[e + f*x]/ff)^(n*FracPart[p])), Int[ActivateTrig[u]
*(Sin[e + f*x]/ff)^(n*p), x], x]] /; FreeQ[{b, e, f, n, p}, x] &&  !IntegerQ[p] && IntegerQ[n] && (EqQ[u, 1] |
| MatchQ[u, ((d_.)*(trig_)[e + f*x])^(m_.) /; FreeQ[{d, m}, x] && MemberQ[{sin, cos, tan, cot, sec, csc}, trig
]])

Rule 3852

Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Dist[-d^(-1), Subst[Int[ExpandIntegrand[(1 + x^2)^(n/2 - 1), x]
, x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]

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

Mathematica [A] (verified)

Time = 0.01 (sec) , antiderivative size = 15, normalized size of antiderivative = 1.00 \[ \int \frac {1}{\sqrt {a \cosh ^4(x)}} \, dx=\frac {\cosh (x) \sinh (x)}{\sqrt {a \cosh ^4(x)}} \]

[In]

Integrate[1/Sqrt[a*Cosh[x]^4],x]

[Out]

(Cosh[x]*Sinh[x])/Sqrt[a*Cosh[x]^4]

Maple [B] (verified)

Leaf count of result is larger than twice the leaf count of optimal. \(28\) vs. \(2(13)=26\).

Time = 0.17 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.93

method result size
risch \(-\frac {2 \,{\mathrm e}^{-2 x} \left (1+{\mathrm e}^{2 x}\right )}{\sqrt {a \left (1+{\mathrm e}^{2 x}\right )^{4} {\mathrm e}^{-4 x}}}\) \(29\)
default \(\frac {\sqrt {8}\, \sqrt {2}\, \sqrt {a \left (-1+\cosh \left (2 x \right )\right ) \left (1+\cosh \left (2 x \right )\right )}\, \sqrt {a \sinh \left (2 x \right )^{2}}}{4 a \sinh \left (2 x \right ) \sqrt {\left (1+\cosh \left (2 x \right )\right )^{2} a}}\) \(56\)

[In]

int(1/(a*cosh(x)^4)^(1/2),x,method=_RETURNVERBOSE)

[Out]

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

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 116 vs. \(2 (13) = 26\).

Time = 0.25 (sec) , antiderivative size = 116, normalized size of antiderivative = 7.73 \[ \int \frac {1}{\sqrt {a \cosh ^4(x)}} \, dx=-\frac {2 \, \sqrt {a e^{\left (8 \, x\right )} + 4 \, a e^{\left (6 \, x\right )} + 6 \, a e^{\left (4 \, x\right )} + 4 \, a e^{\left (2 \, x\right )} + a}}{a \cosh \left (x\right )^{2} + {\left (a e^{\left (4 \, x\right )} + 2 \, a e^{\left (2 \, x\right )} + a\right )} \sinh \left (x\right )^{2} + {\left (a \cosh \left (x\right )^{2} + a\right )} e^{\left (4 \, x\right )} + 2 \, {\left (a \cosh \left (x\right )^{2} + a\right )} e^{\left (2 \, x\right )} + 2 \, {\left (a \cosh \left (x\right ) e^{\left (4 \, x\right )} + 2 \, a \cosh \left (x\right ) e^{\left (2 \, x\right )} + a \cosh \left (x\right )\right )} \sinh \left (x\right ) + a} \]

[In]

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

[Out]

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

Sympy [F(-1)]

Timed out. \[ \int \frac {1}{\sqrt {a \cosh ^4(x)}} \, dx=\text {Timed out} \]

[In]

integrate(1/(a*cosh(x)**4)**(1/2),x)

[Out]

Timed out

Maxima [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.07 \[ \int \frac {1}{\sqrt {a \cosh ^4(x)}} \, dx=\frac {2}{\sqrt {a} e^{\left (-2 \, x\right )} + \sqrt {a}} \]

[In]

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

[Out]

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

Giac [A] (verification not implemented)

none

Time = 0.26 (sec) , antiderivative size = 13, normalized size of antiderivative = 0.87 \[ \int \frac {1}{\sqrt {a \cosh ^4(x)}} \, dx=-\frac {2}{\sqrt {a} {\left (e^{\left (2 \, x\right )} + 1\right )}} \]

[In]

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

[Out]

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

Mupad [B] (verification not implemented)

Time = 0.07 (sec) , antiderivative size = 39, normalized size of antiderivative = 2.60 \[ \int \frac {1}{\sqrt {a \cosh ^4(x)}} \, dx=-\frac {{\mathrm {e}}^{-x}\,\sqrt {a\,{\left (\frac {{\mathrm {e}}^{-x}}{2}+\frac {{\mathrm {e}}^x}{2}\right )}^4}}{a\,{\left (\frac {{\mathrm {e}}^{-x}}{2}+\frac {{\mathrm {e}}^x}{2}\right )}^3} \]

[In]

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

[Out]

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