3.28 \(\int \frac{\text{sech}(x)}{a+a \cosh (x)} \, dx\)

Optimal. Leaf size=20 \[ \frac{\tan ^{-1}(\sinh (x))}{a}-\frac{\sinh (x)}{a \cosh (x)+a} \]

[Out]

ArcTan[Sinh[x]]/a - Sinh[x]/(a + a*Cosh[x])

________________________________________________________________________________________

Rubi [A]  time = 0.0415903, antiderivative size = 20, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.273, Rules used = {2747, 3770, 2648} \[ \frac{\tan ^{-1}(\sinh (x))}{a}-\frac{\sinh (x)}{a \cosh (x)+a} \]

Antiderivative was successfully verified.

[In]

Int[Sech[x]/(a + a*Cosh[x]),x]

[Out]

ArcTan[Sinh[x]]/a - Sinh[x]/(a + a*Cosh[x])

Rule 2747

Int[1/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])), x_Symbol] :> Dist[b/(
b*c - a*d), Int[1/(a + b*Sin[e + f*x]), x], x] - Dist[d/(b*c - a*d), Int[1/(c + d*Sin[e + f*x]), x], x] /; Fre
eQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0]

Rule 3770

Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]

Rule 2648

Int[((a_) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(-1), x_Symbol] :> -Simp[Cos[c + d*x]/(d*(b + a*Sin[c + d*x])), x]
/; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0]

Rubi steps

\begin{align*} \int \frac{\text{sech}(x)}{a+a \cosh (x)} \, dx &=\frac{\int \text{sech}(x) \, dx}{a}-\int \frac{1}{a+a \cosh (x)} \, dx\\ &=\frac{\tan ^{-1}(\sinh (x))}{a}-\frac{\sinh (x)}{a+a \cosh (x)}\\ \end{align*}

Mathematica [A]  time = 0.0235633, size = 22, normalized size = 1.1 \[ \frac{2 \tan ^{-1}\left (\tanh \left (\frac{x}{2}\right )\right )-\tanh \left (\frac{x}{2}\right )}{a} \]

Antiderivative was successfully verified.

[In]

Integrate[Sech[x]/(a + a*Cosh[x]),x]

[Out]

(2*ArcTan[Tanh[x/2]] - Tanh[x/2])/a

________________________________________________________________________________________

Maple [A]  time = 0.017, size = 21, normalized size = 1.1 \begin{align*} -{\frac{1}{a}\tanh \left ({\frac{x}{2}} \right ) }+2\,{\frac{\arctan \left ( \tanh \left ( x/2 \right ) \right ) }{a}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sech(x)/(a+a*cosh(x)),x)

[Out]

-1/a*tanh(1/2*x)+2/a*arctan(tanh(1/2*x))

________________________________________________________________________________________

Maxima [A]  time = 1.81931, size = 31, normalized size = 1.55 \begin{align*} -\frac{2 \, \arctan \left (e^{\left (-x\right )}\right )}{a} - \frac{2}{a e^{\left (-x\right )} + a} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(x)/(a+a*cosh(x)),x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

Fricas [A]  time = 1.78969, size = 117, normalized size = 5.85 \begin{align*} \frac{2 \,{\left ({\left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right )} \arctan \left (\cosh \left (x\right ) + \sinh \left (x\right )\right ) + 1\right )}}{a \cosh \left (x\right ) + a \sinh \left (x\right ) + a} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(x)/(a+a*cosh(x)),x, algorithm="fricas")

[Out]

2*((cosh(x) + sinh(x) + 1)*arctan(cosh(x) + sinh(x)) + 1)/(a*cosh(x) + a*sinh(x) + a)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\int \frac{\operatorname{sech}{\left (x \right )}}{\cosh{\left (x \right )} + 1}\, dx}{a} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(x)/(a+a*cosh(x)),x)

[Out]

Integral(sech(x)/(cosh(x) + 1), x)/a

________________________________________________________________________________________

Giac [A]  time = 1.17131, size = 27, normalized size = 1.35 \begin{align*} \frac{2 \, \arctan \left (e^{x}\right )}{a} + \frac{2}{a{\left (e^{x} + 1\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(x)/(a+a*cosh(x)),x, algorithm="giac")

[Out]

2*arctan(e^x)/a + 2/(a*(e^x + 1))