Optimal. Leaf size=37 \[ -\frac{4 \coth ^3(x)}{15 a}+\frac{4 \coth (x)}{5 a}+\frac{\text{csch}^3(x)}{5 (a \cosh (x)+a)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0507936, antiderivative size = 37, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {2672, 3767} \[ -\frac{4 \coth ^3(x)}{15 a}+\frac{4 \coth (x)}{5 a}+\frac{\text{csch}^3(x)}{5 (a \cosh (x)+a)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2672
Rule 3767
Rubi steps
\begin{align*} \int \frac{\text{csch}^4(x)}{a+a \cosh (x)} \, dx &=\frac{\text{csch}^3(x)}{5 (a+a \cosh (x))}+\frac{4 \int \text{csch}^4(x) \, dx}{5 a}\\ &=\frac{\text{csch}^3(x)}{5 (a+a \cosh (x))}+\frac{(4 i) \operatorname{Subst}\left (\int \left (1+x^2\right ) \, dx,x,-i \coth (x)\right )}{5 a}\\ &=\frac{4 \coth (x)}{5 a}-\frac{4 \coth ^3(x)}{15 a}+\frac{\text{csch}^3(x)}{5 (a+a \cosh (x))}\\ \end{align*}
Mathematica [A] time = 0.0533196, size = 38, normalized size = 1.03 \[ \frac{(-6 \cosh (x)-2 \cosh (2 x)+2 \cosh (3 x)+\cosh (4 x)) \text{csch}^3(x)}{15 a (\cosh (x)+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.02, size = 45, normalized size = 1.2 \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]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.03411, size = 315, normalized size = 8.51 \begin{align*} \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 )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.75972, size = 809, normalized size = 21.86 \begin{align*} -\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 )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1316, size = 80, normalized size = 2.16 \begin{align*} \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}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]