Integrand size = 13, antiderivative size = 37 \[ \int \frac {\text {csch}^4(x)}{a+a \cosh (x)} \, dx=\frac {4 \coth (x)}{5 a}-\frac {4 \coth ^3(x)}{15 a}+\frac {\text {csch}^3(x)}{5 (a+a \cosh (x))} \]
Time = 0.14 (sec) , antiderivative size = 38, normalized size of antiderivative = 1.03 \[ \int \frac {\text {csch}^4(x)}{a+a \cosh (x)} \, dx=\frac {(-6 \cosh (x)-2 \cosh (2 x)+2 \cosh (3 x)+\cosh (4 x)) \text {csch}^3(x)}{15 a (1+\cosh (x))} \]
Result contains complex when optimal does not.
Time = 0.30 (sec) , antiderivative size = 43, normalized size of antiderivative = 1.16, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.385, Rules used = {3042, 3151, 3042, 4254, 2009}
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 {csch}^4(x)}{a \cosh (x)+a} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {1}{\cos \left (-\frac {\pi }{2}+i x\right )^4 \left (a-a \sin \left (-\frac {\pi }{2}+i x\right )\right )}dx\) |
\(\Big \downarrow \) 3151 |
\(\displaystyle \frac {4 \int \text {csch}^4(x)dx}{5 a}+\frac {\text {csch}^3(x)}{5 (a \cosh (x)+a)}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\text {csch}^3(x)}{5 (a \cosh (x)+a)}+\frac {4 \int \csc (i x)^4dx}{5 a}\) |
\(\Big \downarrow \) 4254 |
\(\displaystyle \frac {\text {csch}^3(x)}{5 (a \cosh (x)+a)}+\frac {4 i \int \left (1-\coth ^2(x)\right )d(-i \coth (x))}{5 a}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {\text {csch}^3(x)}{5 (a \cosh (x)+a)}+\frac {4 i \left (\frac {1}{3} i \coth ^3(x)-i \coth (x)\right )}{5 a}\) |
3.2.63.3.1 Defintions of rubi rules used
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x _)])^(m_), x_Symbol] :> Simp[b*(g*Cos[e + f*x])^(p + 1)*((a + b*Sin[e + f*x ])^m/(a*f*g*Simplify[2*m + p + 1])), x] + Simp[Simplify[m + p + 1]/(a*Simpl ify[2*m + p + 1]) Int[(g*Cos[e + f*x])^p*(a + b*Sin[e + f*x])^(m + 1), x] , x] /; FreeQ[{a, b, e, f, g, m, p}, x] && EqQ[a^2 - b^2, 0] && ILtQ[Simpli fy[m + p + 1], 0] && NeQ[2*m + p + 1, 0] && !IGtQ[m, 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]
Time = 2.64 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.97
method | result | size |
risch | \(-\frac {16 \left (6 \,{\mathrm e}^{3 x}+2 \,{\mathrm e}^{2 x}-2 \,{\mathrm e}^{x}-1\right )}{15 a \left ({\mathrm e}^{x}+1\right )^{5} \left ({\mathrm e}^{x}-1\right )^{3}}\) | \(36\) |
default | \(\frac {\frac {\tanh \left (\frac {x}{2}\right )^{5}}{5}-\frac {4 \tanh \left (\frac {x}{2}\right )^{3}}{3}+6 \tanh \left (\frac {x}{2}\right )+\frac {4}{\tanh \left (\frac {x}{2}\right )}-\frac {1}{3 \tanh \left (\frac {x}{2}\right )^{3}}}{16 a}\) | \(45\) |
Leaf count of result is larger than twice the leaf count of optimal. 250 vs. \(2 (31) = 62\).
Time = 0.25 (sec) , antiderivative size = 250, normalized size of antiderivative = 6.76 \[ \int \frac {\text {csch}^4(x)}{a+a \cosh (x)} \, dx=-\frac {16 \, {\left (6 \, \cosh \left (x\right )^{2} + 3 \, {\left (4 \, \cosh \left (x\right ) + 1\right )} \sinh \left (x\right ) + 6 \, \sinh \left (x\right )^{2} + \cosh \left (x\right ) - 2\right )}}{15 \, {\left (a \cosh \left (x\right )^{7} + a \sinh \left (x\right )^{7} + 2 \, a \cosh \left (x\right )^{6} + {\left (7 \, a \cosh \left (x\right ) + 2 \, a\right )} \sinh \left (x\right )^{6} - 2 \, a \cosh \left (x\right )^{5} + {\left (21 \, a \cosh \left (x\right )^{2} + 12 \, a \cosh \left (x\right ) - 2 \, a\right )} \sinh \left (x\right )^{5} - 6 \, a \cosh \left (x\right )^{4} + {\left (35 \, a \cosh \left (x\right )^{3} + 30 \, a \cosh \left (x\right )^{2} - 10 \, a \cosh \left (x\right ) - 6 \, a\right )} \sinh \left (x\right )^{4} + {\left (35 \, a \cosh \left (x\right )^{4} + 40 \, a \cosh \left (x\right )^{3} - 20 \, a \cosh \left (x\right )^{2} - 24 \, a \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 6 \, a \cosh \left (x\right )^{2} + {\left (21 \, a \cosh \left (x\right )^{5} + 30 \, a \cosh \left (x\right )^{4} - 20 \, a \cosh \left (x\right )^{3} - 36 \, a \cosh \left (x\right )^{2} + 6 \, a\right )} \sinh \left (x\right )^{2} + a \cosh \left (x\right ) + {\left (7 \, a \cosh \left (x\right )^{6} + 12 \, a \cosh \left (x\right )^{5} - 10 \, a \cosh \left (x\right )^{4} - 24 \, a \cosh \left (x\right )^{3} + 12 \, a \cosh \left (x\right ) + 3 \, a\right )} \sinh \left (x\right ) - 2 \, a\right )}} \]
-16/15*(6*cosh(x)^2 + 3*(4*cosh(x) + 1)*sinh(x) + 6*sinh(x)^2 + cosh(x) - 2)/(a*cosh(x)^7 + a*sinh(x)^7 + 2*a*cosh(x)^6 + (7*a*cosh(x) + 2*a)*sinh(x )^6 - 2*a*cosh(x)^5 + (21*a*cosh(x)^2 + 12*a*cosh(x) - 2*a)*sinh(x)^5 - 6* a*cosh(x)^4 + (35*a*cosh(x)^3 + 30*a*cosh(x)^2 - 10*a*cosh(x) - 6*a)*sinh( x)^4 + (35*a*cosh(x)^4 + 40*a*cosh(x)^3 - 20*a*cosh(x)^2 - 24*a*cosh(x))*s inh(x)^3 + 6*a*cosh(x)^2 + (21*a*cosh(x)^5 + 30*a*cosh(x)^4 - 20*a*cosh(x) ^3 - 36*a*cosh(x)^2 + 6*a)*sinh(x)^2 + a*cosh(x) + (7*a*cosh(x)^6 + 12*a*c osh(x)^5 - 10*a*cosh(x)^4 - 24*a*cosh(x)^3 + 12*a*cosh(x) + 3*a)*sinh(x) - 2*a)
\[ \int \frac {\text {csch}^4(x)}{a+a \cosh (x)} \, dx=\frac {\int \frac {\operatorname {csch}^{4}{\left (x \right )}}{\cosh {\left (x \right )} + 1}\, dx}{a} \]
Leaf count of result is larger than twice the leaf count of optimal. 233 vs. \(2 (31) = 62\).
Time = 0.19 (sec) , antiderivative size = 233, normalized size of antiderivative = 6.30 \[ \int \frac {\text {csch}^4(x)}{a+a \cosh (x)} \, dx=\frac {32 \, e^{\left (-x\right )}}{15 \, {\left (2 \, a e^{\left (-x\right )} - 2 \, a e^{\left (-2 \, x\right )} - 6 \, a e^{\left (-3 \, x\right )} + 6 \, a e^{\left (-5 \, x\right )} + 2 \, a e^{\left (-6 \, x\right )} - 2 \, a e^{\left (-7 \, x\right )} - a e^{\left (-8 \, x\right )} + a\right )}} - \frac {32 \, e^{\left (-2 \, x\right )}}{15 \, {\left (2 \, a e^{\left (-x\right )} - 2 \, a e^{\left (-2 \, x\right )} - 6 \, a e^{\left (-3 \, x\right )} + 6 \, a e^{\left (-5 \, x\right )} + 2 \, a e^{\left (-6 \, x\right )} - 2 \, a e^{\left (-7 \, x\right )} - a e^{\left (-8 \, x\right )} + a\right )}} - \frac {32 \, e^{\left (-3 \, x\right )}}{5 \, {\left (2 \, a e^{\left (-x\right )} - 2 \, a e^{\left (-2 \, x\right )} - 6 \, a e^{\left (-3 \, x\right )} + 6 \, a e^{\left (-5 \, x\right )} + 2 \, a e^{\left (-6 \, x\right )} - 2 \, a e^{\left (-7 \, x\right )} - a e^{\left (-8 \, x\right )} + a\right )}} + \frac {16}{15 \, {\left (2 \, a e^{\left (-x\right )} - 2 \, a e^{\left (-2 \, x\right )} - 6 \, a e^{\left (-3 \, x\right )} + 6 \, a e^{\left (-5 \, x\right )} + 2 \, a e^{\left (-6 \, x\right )} - 2 \, a e^{\left (-7 \, x\right )} - a e^{\left (-8 \, x\right )} + a\right )}} \]
32/15*e^(-x)/(2*a*e^(-x) - 2*a*e^(-2*x) - 6*a*e^(-3*x) + 6*a*e^(-5*x) + 2* a*e^(-6*x) - 2*a*e^(-7*x) - a*e^(-8*x) + a) - 32/15*e^(-2*x)/(2*a*e^(-x) - 2*a*e^(-2*x) - 6*a*e^(-3*x) + 6*a*e^(-5*x) + 2*a*e^(-6*x) - 2*a*e^(-7*x) - a*e^(-8*x) + a) - 32/5*e^(-3*x)/(2*a*e^(-x) - 2*a*e^(-2*x) - 6*a*e^(-3*x ) + 6*a*e^(-5*x) + 2*a*e^(-6*x) - 2*a*e^(-7*x) - a*e^(-8*x) + a) + 16/15/( 2*a*e^(-x) - 2*a*e^(-2*x) - 6*a*e^(-3*x) + 6*a*e^(-5*x) + 2*a*e^(-6*x) - 2 *a*e^(-7*x) - a*e^(-8*x) + a)
Time = 0.25 (sec) , antiderivative size = 59, normalized size of antiderivative = 1.59 \[ \int \frac {\text {csch}^4(x)}{a+a \cosh (x)} \, dx=\frac {9 \, e^{\left (2 \, x\right )} - 24 \, e^{x} + 11}{24 \, a {\left (e^{x} - 1\right )}^{3}} - \frac {45 \, e^{\left (4 \, x\right )} + 240 \, e^{\left (3 \, x\right )} + 490 \, e^{\left (2 \, x\right )} + 320 \, e^{x} + 73}{120 \, a {\left (e^{x} + 1\right )}^{5}} \]
1/24*(9*e^(2*x) - 24*e^x + 11)/(a*(e^x - 1)^3) - 1/120*(45*e^(4*x) + 240*e ^(3*x) + 490*e^(2*x) + 320*e^x + 73)/(a*(e^x + 1)^5)
Time = 1.67 (sec) , antiderivative size = 263, normalized size of antiderivative = 7.11 \[ \int \frac {\text {csch}^4(x)}{a+a \cosh (x)} \, dx=\frac {1}{6\,a\,\left (3\,{\mathrm {e}}^{2\,x}-{\mathrm {e}}^{3\,x}-3\,{\mathrm {e}}^x+1\right )}-\frac {\frac {3\,{\mathrm {e}}^{2\,x}}{8\,a}+\frac {3\,{\mathrm {e}}^{3\,x}}{40\,a}+\frac {1}{8\,a}+\frac {5\,{\mathrm {e}}^x}{8\,a}}{6\,{\mathrm {e}}^{2\,x}+4\,{\mathrm {e}}^{3\,x}+{\mathrm {e}}^{4\,x}+4\,{\mathrm {e}}^x+1}-\frac {\frac {3\,{\mathrm {e}}^{2\,x}}{40\,a}+\frac {5}{24\,a}+\frac {{\mathrm {e}}^x}{4\,a}}{3\,{\mathrm {e}}^{2\,x}+{\mathrm {e}}^{3\,x}+3\,{\mathrm {e}}^x+1}-\frac {\frac {1}{8\,a}+\frac {3\,{\mathrm {e}}^x}{40\,a}}{{\mathrm {e}}^{2\,x}+2\,{\mathrm {e}}^x+1}-\frac {\frac {5\,{\mathrm {e}}^{2\,x}}{4\,a}+\frac {{\mathrm {e}}^{3\,x}}{2\,a}+\frac {3\,{\mathrm {e}}^{4\,x}}{40\,a}+\frac {3}{40\,a}+\frac {{\mathrm {e}}^x}{2\,a}}{10\,{\mathrm {e}}^{2\,x}+10\,{\mathrm {e}}^{3\,x}+5\,{\mathrm {e}}^{4\,x}+{\mathrm {e}}^{5\,x}+5\,{\mathrm {e}}^x+1}-\frac {1}{4\,a\,\left ({\mathrm {e}}^{2\,x}-2\,{\mathrm {e}}^x+1\right )}+\frac {3}{8\,a\,\left ({\mathrm {e}}^x-1\right )}-\frac {3}{40\,a\,\left ({\mathrm {e}}^x+1\right )} \]
1/(6*a*(3*exp(2*x) - exp(3*x) - 3*exp(x) + 1)) - ((3*exp(2*x))/(8*a) + (3* exp(3*x))/(40*a) + 1/(8*a) + (5*exp(x))/(8*a))/(6*exp(2*x) + 4*exp(3*x) + exp(4*x) + 4*exp(x) + 1) - ((3*exp(2*x))/(40*a) + 5/(24*a) + exp(x)/(4*a)) /(3*exp(2*x) + exp(3*x) + 3*exp(x) + 1) - (1/(8*a) + (3*exp(x))/(40*a))/(e xp(2*x) + 2*exp(x) + 1) - ((5*exp(2*x))/(4*a) + exp(3*x)/(2*a) + (3*exp(4* x))/(40*a) + 3/(40*a) + exp(x)/(2*a))/(10*exp(2*x) + 10*exp(3*x) + 5*exp(4 *x) + exp(5*x) + 5*exp(x) + 1) - 1/(4*a*(exp(2*x) - 2*exp(x) + 1)) + 3/(8* a*(exp(x) - 1)) - 3/(40*a*(exp(x) + 1))