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.04, antiderivative size = 20, normalized size of antiderivative = 1.00, 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 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]

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]

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.03, size = 22, normalized size = 1.10 \[ \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

________________________________________________________________________________________

fricas [A]  time = 0.61, size = 29, normalized size = 1.45 \[ \frac {2 \, {\left ({\left (\cosh \relax (x) + \sinh \relax (x) + 1\right )} \arctan \left (\cosh \relax (x) + \sinh \relax (x)\right ) + 1\right )}}{a \cosh \relax (x) + a \sinh \relax (x) + a} \]

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)

________________________________________________________________________________________

giac [A]  time = 0.12, size = 20, normalized size = 1.00 \[ \frac {2 \, \arctan \left (e^{x}\right )}{a} + \frac {2}{a {\left (e^{x} + 1\right )}} \]

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))

________________________________________________________________________________________

maple [A]  time = 0.06, size = 21, normalized size = 1.05 \[ -\frac {\tanh \left (\frac {x}{2}\right )}{a}+\frac {2 \arctan \left (\tanh \left (\frac {x}{2}\right )\right )}{a} \]

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 = 0.40, size = 23, normalized size = 1.15 \[ -\frac {2 \, \arctan \left (e^{\left (-x\right )}\right )}{a} - \frac {2}{a e^{\left (-x\right )} + a} \]

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)

________________________________________________________________________________________

mupad [B]  time = 0.88, size = 31, normalized size = 1.55 \[ \frac {2}{a\,\left ({\mathrm {e}}^x+1\right )}+\frac {2\,\mathrm {atan}\left (\frac {{\mathrm {e}}^x\,\sqrt {a^2}}{a}\right )}{\sqrt {a^2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {\operatorname {sech}{\relax (x )}}{\cosh {\relax (x )} + 1}\, dx}{a} \]

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

________________________________________________________________________________________