3.196 \(\int \frac{\coth ^4(x)}{a+a \cosh (x)} \, dx\)

Optimal. Leaf size=41 \[ \frac{\coth ^5(x)}{5 a}-\frac{\text{csch}^5(x)}{5 a}-\frac{2 \text{csch}^3(x)}{3 a}-\frac{\text{csch}(x)}{a} \]

[Out]

Coth[x]^5/(5*a) - Csch[x]/a - (2*Csch[x]^3)/(3*a) - Csch[x]^5/(5*a)

________________________________________________________________________________________

Rubi [A]  time = 0.0807787, antiderivative size = 41, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.385, Rules used = {2706, 2607, 30, 2606, 194} \[ \frac{\coth ^5(x)}{5 a}-\frac{\text{csch}^5(x)}{5 a}-\frac{2 \text{csch}^3(x)}{3 a}-\frac{\text{csch}(x)}{a} \]

Antiderivative was successfully verified.

[In]

Int[Coth[x]^4/(a + a*Cosh[x]),x]

[Out]

Coth[x]^5/(5*a) - Csch[x]/a - (2*Csch[x]^3)/(3*a) - Csch[x]^5/(5*a)

Rule 2706

Int[((g_.)*tan[(e_.) + (f_.)*(x_)])^(p_.)/((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[1/a, Int[S
ec[e + f*x]^2*(g*Tan[e + f*x])^p, x], x] - Dist[1/(b*g), Int[Sec[e + f*x]*(g*Tan[e + f*x])^(p + 1), x], x] /;
FreeQ[{a, b, e, f, g, p}, x] && EqQ[a^2 - b^2, 0] && NeQ[p, -1]

Rule 2607

Int[sec[(e_.) + (f_.)*(x_)]^(m_)*((b_.)*tan[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Dist[1/f, Subst[Int[(b*x)
^n*(1 + x^2)^(m/2 - 1), x], x, Tan[e + f*x]], x] /; FreeQ[{b, e, f, n}, x] && IntegerQ[m/2] &&  !(IntegerQ[(n
- 1)/2] && LtQ[0, n, m - 1])

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 2606

Int[((a_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((b_.)*tan[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Dist[a/f, Subst[
Int[(a*x)^(m - 1)*(-1 + x^2)^((n - 1)/2), x], x, Sec[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && IntegerQ[(n -
1)/2] &&  !(IntegerQ[m/2] && LtQ[0, m, n + 1])

Rule 194

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Int[ExpandIntegrand[(a + b*x^n)^p, x], x] /; FreeQ[{a, b}, x]
&& IGtQ[n, 0] && IGtQ[p, 0]

Rubi steps

\begin{align*} \int \frac{\coth ^4(x)}{a+a \cosh (x)} \, dx &=\frac{\int \coth ^5(x) \text{csch}(x) \, dx}{a}-\frac{\int \coth ^4(x) \text{csch}^2(x) \, dx}{a}\\ &=-\frac{i \operatorname{Subst}\left (\int x^4 \, dx,x,i \coth (x)\right )}{a}-\frac{i \operatorname{Subst}\left (\int \left (-1+x^2\right )^2 \, dx,x,-i \text{csch}(x)\right )}{a}\\ &=\frac{\coth ^5(x)}{5 a}-\frac{i \operatorname{Subst}\left (\int \left (1-2 x^2+x^4\right ) \, dx,x,-i \text{csch}(x)\right )}{a}\\ &=\frac{\coth ^5(x)}{5 a}-\frac{\text{csch}(x)}{a}-\frac{2 \text{csch}^3(x)}{3 a}-\frac{\text{csch}^5(x)}{5 a}\\ \end{align*}

Mathematica [A]  time = 0.0728887, size = 41, normalized size = 1. \[ -\frac{(8 \cosh (x)+36 \cosh (2 x)+24 \cosh (3 x)-3 \cosh (4 x)-25) \text{csch}^3(x)}{120 a (\cosh (x)+1)} \]

Antiderivative was successfully verified.

[In]

Integrate[Coth[x]^4/(a + a*Cosh[x]),x]

[Out]

-((-25 + 8*Cosh[x] + 36*Cosh[2*x] + 24*Cosh[3*x] - 3*Cosh[4*x])*Csch[x]^3)/(120*a*(1 + Cosh[x]))

________________________________________________________________________________________

Maple [A]  time = 0.028, size = 45, normalized size = 1.1 \begin{align*}{\frac{1}{16\,a} \left ({\frac{1}{5} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{5}}+{\frac{4}{3} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{3}}+6\,\tanh \left ( x/2 \right ) -4\, \left ( \tanh \left ( x/2 \right ) \right ) ^{-1}-{\frac{1}{3} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{-3}} \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(coth(x)^4/(a+a*cosh(x)),x)

[Out]

1/16/a*(1/5*tanh(1/2*x)^5+4/3*tanh(1/2*x)^3+6*tanh(1/2*x)-4/tanh(1/2*x)-1/3/tanh(1/2*x)^3)

________________________________________________________________________________________

Maxima [B]  time = 1.0675, size = 633, normalized size = 15.44 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(coth(x)^4/(a+a*cosh(x)),x, algorithm="maxima")

[Out]

-6/5*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) - 14/5*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) - 26/15*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) + 10/3*e^(-4*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) + 2/3*e^(-5*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) - 2*e^(-6*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) - 2*e^(-7*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) + 2/5/(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)

________________________________________________________________________________________

Fricas [B]  time = 1.85135, size = 728, normalized size = 17.76 \begin{align*} -\frac{2 \,{\left (15 \, \cosh \left (x\right )^{4} + 6 \,{\left (10 \, \cosh \left (x\right ) + 3\right )} \sinh \left (x\right )^{3} + 15 \, \sinh \left (x\right )^{4} + 12 \, \cosh \left (x\right )^{3} + 2 \,{\left (45 \, \cosh \left (x\right )^{2} + 18 \, \cosh \left (x\right ) + 2\right )} \sinh \left (x\right )^{2} + 4 \, \cosh \left (x\right )^{2} + 2 \,{\left (30 \, \cosh \left (x\right )^{3} + 27 \, \cosh \left (x\right )^{2} - 14 \, \cosh \left (x\right ) - 23\right )} \sinh \left (x\right ) - 4 \, \cosh \left (x\right ) + 13\right )}}{15 \,{\left (a \cosh \left (x\right )^{5} + a \sinh \left (x\right )^{5} + 2 \, a \cosh \left (x\right )^{4} +{\left (5 \, a \cosh \left (x\right ) + 2 \, a\right )} \sinh \left (x\right )^{4} - 3 \, a \cosh \left (x\right )^{3} +{\left (10 \, a \cosh \left (x\right )^{2} + 8 \, a \cosh \left (x\right ) - a\right )} \sinh \left (x\right )^{3} - 8 \, a \cosh \left (x\right )^{2} +{\left (10 \, a \cosh \left (x\right )^{3} + 12 \, a \cosh \left (x\right )^{2} - 9 \, a \cosh \left (x\right ) - 8 \, a\right )} \sinh \left (x\right )^{2} + 2 \, a \cosh \left (x\right ) +{\left (5 \, a \cosh \left (x\right )^{4} + 8 \, a \cosh \left (x\right )^{3} - 3 \, a \cosh \left (x\right )^{2} - 8 \, a \cosh \left (x\right ) - 2 \, a\right )} \sinh \left (x\right ) + 6 \, a\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(coth(x)^4/(a+a*cosh(x)),x, algorithm="fricas")

[Out]

-2/15*(15*cosh(x)^4 + 6*(10*cosh(x) + 3)*sinh(x)^3 + 15*sinh(x)^4 + 12*cosh(x)^3 + 2*(45*cosh(x)^2 + 18*cosh(x
) + 2)*sinh(x)^2 + 4*cosh(x)^2 + 2*(30*cosh(x)^3 + 27*cosh(x)^2 - 14*cosh(x) - 23)*sinh(x) - 4*cosh(x) + 13)/(
a*cosh(x)^5 + a*sinh(x)^5 + 2*a*cosh(x)^4 + (5*a*cosh(x) + 2*a)*sinh(x)^4 - 3*a*cosh(x)^3 + (10*a*cosh(x)^2 +
8*a*cosh(x) - a)*sinh(x)^3 - 8*a*cosh(x)^2 + (10*a*cosh(x)^3 + 12*a*cosh(x)^2 - 9*a*cosh(x) - 8*a)*sinh(x)^2 +
 2*a*cosh(x) + (5*a*cosh(x)^4 + 8*a*cosh(x)^3 - 3*a*cosh(x)^2 - 8*a*cosh(x) - 2*a)*sinh(x) + 6*a)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(coth(x)**4/(a+a*cosh(x)),x)

[Out]

Integral(coth(x)**4/(cosh(x) + 1), x)/a

________________________________________________________________________________________

Giac [A]  time = 1.31358, size = 80, normalized size = 1.95 \begin{align*} -\frac{15 \, e^{\left (2 \, x\right )} - 24 \, e^{x} + 13}{24 \, a{\left (e^{x} - 1\right )}^{3}} - \frac{165 \, e^{\left (4 \, x\right )} + 480 \, e^{\left (3 \, x\right )} + 650 \, e^{\left (2 \, x\right )} + 400 \, e^{x} + 113}{120 \, a{\left (e^{x} + 1\right )}^{5}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(coth(x)^4/(a+a*cosh(x)),x, algorithm="giac")

[Out]

-1/24*(15*e^(2*x) - 24*e^x + 13)/(a*(e^x - 1)^3) - 1/120*(165*e^(4*x) + 480*e^(3*x) + 650*e^(2*x) + 400*e^x +
113)/(a*(e^x + 1)^5)