Integrand size = 13, antiderivative size = 43 \[ \int \frac {\text {sech}^3(x)}{a+a \cosh (x)} \, dx=\frac {3 \arctan (\sinh (x))}{2 a}-\frac {2 \tanh (x)}{a}+\frac {3 \text {sech}(x) \tanh (x)}{2 a}-\frac {\text {sech}(x) \tanh (x)}{a+a \cosh (x)} \]
Time = 0.17 (sec) , antiderivative size = 49, normalized size of antiderivative = 1.14 \[ \int \frac {\text {sech}^3(x)}{a+a \cosh (x)} \, dx=\frac {\cosh \left (\frac {x}{2}\right ) \left (-2 \sinh \left (\frac {x}{2}\right )+\cosh \left (\frac {x}{2}\right ) \left (6 \arctan \left (\tanh \left (\frac {x}{2}\right )\right )+(-2+\text {sech}(x)) \tanh (x)\right )\right )}{a (1+\cosh (x))} \]
(Cosh[x/2]*(-2*Sinh[x/2] + Cosh[x/2]*(6*ArcTan[Tanh[x/2]] + (-2 + Sech[x]) *Tanh[x])))/(a*(1 + Cosh[x]))
Time = 0.46 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.02, number of steps used = 12, number of rules used = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.846, Rules used = {3042, 3247, 25, 3042, 3227, 3042, 4254, 24, 4255, 3042, 4257}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\text {sech}^3(x)}{a \cosh (x)+a} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {1}{\sin \left (\frac {\pi }{2}+i x\right )^3 \left (a+a \sin \left (\frac {\pi }{2}+i x\right )\right )}dx\) |
\(\Big \downarrow \) 3247 |
\(\displaystyle -\frac {\int -\left ((3 a-2 a \cosh (x)) \text {sech}^3(x)\right )dx}{a^2}-\frac {\tanh (x) \text {sech}(x)}{a \cosh (x)+a}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {\int (3 a-2 a \cosh (x)) \text {sech}^3(x)dx}{a^2}-\frac {\tanh (x) \text {sech}(x)}{a \cosh (x)+a}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {\tanh (x) \text {sech}(x)}{a \cosh (x)+a}+\frac {\int \frac {3 a-2 a \sin \left (i x+\frac {\pi }{2}\right )}{\sin \left (i x+\frac {\pi }{2}\right )^3}dx}{a^2}\) |
\(\Big \downarrow \) 3227 |
\(\displaystyle \frac {3 a \int \text {sech}^3(x)dx-2 a \int \text {sech}^2(x)dx}{a^2}-\frac {\tanh (x) \text {sech}(x)}{a \cosh (x)+a}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {\tanh (x) \text {sech}(x)}{a \cosh (x)+a}+\frac {3 a \int \csc \left (i x+\frac {\pi }{2}\right )^3dx-2 a \int \csc \left (i x+\frac {\pi }{2}\right )^2dx}{a^2}\) |
\(\Big \downarrow \) 4254 |
\(\displaystyle -\frac {\tanh (x) \text {sech}(x)}{a \cosh (x)+a}+\frac {3 a \int \csc \left (i x+\frac {\pi }{2}\right )^3dx-2 i a \int 1d(-i \tanh (x))}{a^2}\) |
\(\Big \downarrow \) 24 |
\(\displaystyle -\frac {\tanh (x) \text {sech}(x)}{a \cosh (x)+a}+\frac {-2 a \tanh (x)+3 a \int \csc \left (i x+\frac {\pi }{2}\right )^3dx}{a^2}\) |
\(\Big \downarrow \) 4255 |
\(\displaystyle \frac {3 a \left (\frac {\int \text {sech}(x)dx}{2}+\frac {1}{2} \tanh (x) \text {sech}(x)\right )-2 a \tanh (x)}{a^2}-\frac {\tanh (x) \text {sech}(x)}{a \cosh (x)+a}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {\tanh (x) \text {sech}(x)}{a \cosh (x)+a}+\frac {-2 a \tanh (x)+3 a \left (\frac {1}{2} \tanh (x) \text {sech}(x)+\frac {1}{2} \int \csc \left (i x+\frac {\pi }{2}\right )dx\right )}{a^2}\) |
\(\Big \downarrow \) 4257 |
\(\displaystyle \frac {3 a \left (\frac {1}{2} \arctan (\sinh (x))+\frac {1}{2} \tanh (x) \text {sech}(x)\right )-2 a \tanh (x)}{a^2}-\frac {\tanh (x) \text {sech}(x)}{a \cosh (x)+a}\) |
-((Sech[x]*Tanh[x])/(a + a*Cosh[x])) + (-2*a*Tanh[x] + 3*a*(ArcTan[Sinh[x] ]/2 + (Sech[x]*Tanh[x])/2))/a^2
3.1.30.3.1 Defintions of rubi rules used
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x _)]), x_Symbol] :> Simp[c Int[(b*Sin[e + f*x])^m, x], x] + Simp[d/b Int [(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]
Int[((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_)/((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(-b^2)*Cos[e + f*x]*((c + d*Sin[e + f*x])^( n + 1)/(a*f*(b*c - a*d)*(a + b*Sin[e + f*x]))), x] + Simp[d/(a*(b*c - a*d)) Int[(c + d*Sin[e + f*x])^n*(a*n - b*(n + 1)*Sin[e + f*x]), x], x] /; Fre eQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[ c^2 - d^2, 0] && LtQ[n, 0] && (IntegerQ[2*n] || EqQ[c, 0])
Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Simp[-d^(-1) Subst[Int[Exp andIntegrand[(1 + x^2)^(n/2 - 1), x], x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]
Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d* x]*((b*Csc[c + d*x])^(n - 1)/(d*(n - 1))), x] + Simp[b^2*((n - 2)/(n - 1)) Int[(b*Csc[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && IntegerQ[2*n]
Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[-ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]
Time = 0.22 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.07
method | result | size |
default | \(\frac {-\tanh \left (\frac {x}{2}\right )+\frac {-3 \tanh \left (\frac {x}{2}\right )^{3}-\tanh \left (\frac {x}{2}\right )}{\left (1+\tanh \left (\frac {x}{2}\right )^{2}\right )^{2}}+3 \arctan \left (\tanh \left (\frac {x}{2}\right )\right )}{a}\) | \(46\) |
parallelrisch | \(\frac {-3 i \ln \left (-i+\coth \left (x \right )-\operatorname {csch}\left (x \right )\right )+3 i \ln \left (i+\coth \left (x \right )-\operatorname {csch}\left (x \right )\right )+\left (-\operatorname {sech}\left (x \right )^{2}+2 \,\operatorname {sech}\left (x \right )+3\right ) \operatorname {csch}\left (x \right )-4 \coth \left (x \right )}{2 a}\) | \(52\) |
risch | \(\frac {3 \,{\mathrm e}^{4 x}+3 \,{\mathrm e}^{3 x}+5 \,{\mathrm e}^{2 x}+{\mathrm e}^{x}+4}{a \left (1+{\mathrm e}^{2 x}\right )^{2} \left ({\mathrm e}^{x}+1\right )}+\frac {3 i \ln \left ({\mathrm e}^{x}+i\right )}{2 a}-\frac {3 i \ln \left ({\mathrm e}^{x}-i\right )}{2 a}\) | \(66\) |
1/a*(-tanh(1/2*x)+2*(-3/2*tanh(1/2*x)^3-1/2*tanh(1/2*x))/(1+tanh(1/2*x)^2) ^2+3*arctan(tanh(1/2*x)))
Leaf count of result is larger than twice the leaf count of optimal. 325 vs. \(2 (39) = 78\).
Time = 0.26 (sec) , antiderivative size = 325, normalized size of antiderivative = 7.56 \[ \int \frac {\text {sech}^3(x)}{a+a \cosh (x)} \, dx=\frac {3 \, \cosh \left (x\right )^{4} + 3 \, {\left (4 \, \cosh \left (x\right ) + 1\right )} \sinh \left (x\right )^{3} + 3 \, \sinh \left (x\right )^{4} + 3 \, \cosh \left (x\right )^{3} + {\left (18 \, \cosh \left (x\right )^{2} + 9 \, \cosh \left (x\right ) + 5\right )} \sinh \left (x\right )^{2} + 3 \, {\left (\cosh \left (x\right )^{5} + {\left (5 \, \cosh \left (x\right ) + 1\right )} \sinh \left (x\right )^{4} + \sinh \left (x\right )^{5} + \cosh \left (x\right )^{4} + 2 \, {\left (5 \, \cosh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) + 1\right )} \sinh \left (x\right )^{3} + 2 \, \cosh \left (x\right )^{3} + 2 \, {\left (5 \, \cosh \left (x\right )^{3} + 3 \, \cosh \left (x\right )^{2} + 3 \, \cosh \left (x\right ) + 1\right )} \sinh \left (x\right )^{2} + 2 \, \cosh \left (x\right )^{2} + {\left (5 \, \cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right )^{3} + 6 \, \cosh \left (x\right )^{2} + 4 \, \cosh \left (x\right ) + 1\right )} \sinh \left (x\right ) + \cosh \left (x\right ) + 1\right )} \arctan \left (\cosh \left (x\right ) + \sinh \left (x\right )\right ) + 5 \, \cosh \left (x\right )^{2} + {\left (12 \, \cosh \left (x\right )^{3} + 9 \, \cosh \left (x\right )^{2} + 10 \, \cosh \left (x\right ) + 1\right )} \sinh \left (x\right ) + \cosh \left (x\right ) + 4}{a \cosh \left (x\right )^{5} + a \sinh \left (x\right )^{5} + a \cosh \left (x\right )^{4} + {\left (5 \, a \cosh \left (x\right ) + a\right )} \sinh \left (x\right )^{4} + 2 \, a \cosh \left (x\right )^{3} + 2 \, {\left (5 \, a \cosh \left (x\right )^{2} + 2 \, a \cosh \left (x\right ) + a\right )} \sinh \left (x\right )^{3} + 2 \, a \cosh \left (x\right )^{2} + 2 \, {\left (5 \, a \cosh \left (x\right )^{3} + 3 \, a \cosh \left (x\right )^{2} + 3 \, a \cosh \left (x\right ) + a\right )} \sinh \left (x\right )^{2} + a \cosh \left (x\right ) + {\left (5 \, a \cosh \left (x\right )^{4} + 4 \, a \cosh \left (x\right )^{3} + 6 \, a \cosh \left (x\right )^{2} + 4 \, a \cosh \left (x\right ) + a\right )} \sinh \left (x\right ) + a} \]
(3*cosh(x)^4 + 3*(4*cosh(x) + 1)*sinh(x)^3 + 3*sinh(x)^4 + 3*cosh(x)^3 + ( 18*cosh(x)^2 + 9*cosh(x) + 5)*sinh(x)^2 + 3*(cosh(x)^5 + (5*cosh(x) + 1)*s inh(x)^4 + sinh(x)^5 + cosh(x)^4 + 2*(5*cosh(x)^2 + 2*cosh(x) + 1)*sinh(x) ^3 + 2*cosh(x)^3 + 2*(5*cosh(x)^3 + 3*cosh(x)^2 + 3*cosh(x) + 1)*sinh(x)^2 + 2*cosh(x)^2 + (5*cosh(x)^4 + 4*cosh(x)^3 + 6*cosh(x)^2 + 4*cosh(x) + 1) *sinh(x) + cosh(x) + 1)*arctan(cosh(x) + sinh(x)) + 5*cosh(x)^2 + (12*cosh (x)^3 + 9*cosh(x)^2 + 10*cosh(x) + 1)*sinh(x) + cosh(x) + 4)/(a*cosh(x)^5 + a*sinh(x)^5 + a*cosh(x)^4 + (5*a*cosh(x) + a)*sinh(x)^4 + 2*a*cosh(x)^3 + 2*(5*a*cosh(x)^2 + 2*a*cosh(x) + a)*sinh(x)^3 + 2*a*cosh(x)^2 + 2*(5*a*c osh(x)^3 + 3*a*cosh(x)^2 + 3*a*cosh(x) + a)*sinh(x)^2 + a*cosh(x) + (5*a*c osh(x)^4 + 4*a*cosh(x)^3 + 6*a*cosh(x)^2 + 4*a*cosh(x) + a)*sinh(x) + a)
\[ \int \frac {\text {sech}^3(x)}{a+a \cosh (x)} \, dx=\frac {\int \frac {\operatorname {sech}^{3}{\left (x \right )}}{\cosh {\left (x \right )} + 1}\, dx}{a} \]
Time = 0.27 (sec) , antiderivative size = 73, normalized size of antiderivative = 1.70 \[ \int \frac {\text {sech}^3(x)}{a+a \cosh (x)} \, dx=-\frac {e^{\left (-x\right )} + 5 \, e^{\left (-2 \, x\right )} + 3 \, e^{\left (-3 \, x\right )} + 3 \, e^{\left (-4 \, x\right )} + 4}{a e^{\left (-x\right )} + 2 \, a e^{\left (-2 \, x\right )} + 2 \, a e^{\left (-3 \, x\right )} + a e^{\left (-4 \, x\right )} + a e^{\left (-5 \, x\right )} + a} - \frac {3 \, \arctan \left (e^{\left (-x\right )}\right )}{a} \]
-(e^(-x) + 5*e^(-2*x) + 3*e^(-3*x) + 3*e^(-4*x) + 4)/(a*e^(-x) + 2*a*e^(-2 *x) + 2*a*e^(-3*x) + a*e^(-4*x) + a*e^(-5*x) + a) - 3*arctan(e^(-x))/a
Time = 0.25 (sec) , antiderivative size = 48, normalized size of antiderivative = 1.12 \[ \int \frac {\text {sech}^3(x)}{a+a \cosh (x)} \, dx=\frac {3 \, \arctan \left (e^{x}\right )}{a} + \frac {e^{\left (3 \, x\right )} + 2 \, e^{\left (2 \, x\right )} - e^{x} + 2}{a {\left (e^{\left (2 \, x\right )} + 1\right )}^{2}} + \frac {2}{a {\left (e^{x} + 1\right )}} \]
Time = 1.70 (sec) , antiderivative size = 73, normalized size of antiderivative = 1.70 \[ \int \frac {\text {sech}^3(x)}{a+a \cosh (x)} \, dx=\frac {2}{a\,\left ({\mathrm {e}}^x+1\right )}+\frac {\frac {2}{a}+\frac {{\mathrm {e}}^x}{a}}{{\mathrm {e}}^{2\,x}+1}+\frac {3\,\mathrm {atan}\left (\frac {{\mathrm {e}}^x\,\sqrt {a^2}}{a}\right )}{\sqrt {a^2}}-\frac {2\,{\mathrm {e}}^x}{a\,\left (2\,{\mathrm {e}}^{2\,x}+{\mathrm {e}}^{4\,x}+1\right )} \]