Optimal. Leaf size=41 \[ 16 x-8 \coth (x)-2 (1+\coth (x))^2-\frac {2}{3} (1+\coth (x))^3-\frac {1}{4} (1+\coth (x))^4+16 \log (\sinh (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {3559, 3558,
3556} \begin {gather*} 16 x-\frac {1}{4} (\coth (x)+1)^4-\frac {2}{3} (\coth (x)+1)^3-2 (\coth (x)+1)^2-8 \coth (x)+16 \log (\sinh (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3556
Rule 3558
Rule 3559
Rubi steps
\begin {align*} \int (1+\coth (x))^5 \, dx &=-\frac {1}{4} (1+\coth (x))^4+2 \int (1+\coth (x))^4 \, dx\\ &=-\frac {2}{3} (1+\coth (x))^3-\frac {1}{4} (1+\coth (x))^4+4 \int (1+\coth (x))^3 \, dx\\ &=-2 (1+\coth (x))^2-\frac {2}{3} (1+\coth (x))^3-\frac {1}{4} (1+\coth (x))^4+8 \int (1+\coth (x))^2 \, dx\\ &=16 x-8 \coth (x)-2 (1+\coth (x))^2-\frac {2}{3} (1+\coth (x))^3-\frac {1}{4} (1+\coth (x))^4+16 \int \coth (x) \, dx\\ &=16 x-8 \coth (x)-2 (1+\coth (x))^2-\frac {2}{3} (1+\coth (x))^3-\frac {1}{4} (1+\coth (x))^4+16 \log (\sinh (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.17, size = 94, normalized size = 2.29 \begin {gather*} \frac {(1+\coth (x))^5 \sinh (x) \left (-3 \cosh ^4(x)-20 \cosh ^3(x) \, _2F_1\left (-\frac {3}{2},1;-\frac {1}{2};\tanh ^2(x)\right ) \sinh (x)-66 \cosh ^2(x) \sinh ^2(x)-120 \cosh (x) \, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};\tanh ^2(x)\right ) \sinh ^3(x)+12 (x+16 \log (\cosh (x))+16 \log (\tanh (x))) \sinh ^4(x)\right )}{12 (\cosh (x)+\sinh (x))^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.20, size = 31, normalized size = 0.76
method | result | size |
derivativedivides | \(-\frac {\left (\coth ^{4}\left (x \right )\right )}{4}-\frac {5 \left (\coth ^{3}\left (x \right )\right )}{3}-\frac {11 \left (\coth ^{2}\left (x \right )\right )}{2}-15 \coth \left (x \right )-16 \ln \left (\coth \left (x \right )-1\right )\) | \(31\) |
default | \(-\frac {\left (\coth ^{4}\left (x \right )\right )}{4}-\frac {5 \left (\coth ^{3}\left (x \right )\right )}{3}-\frac {11 \left (\coth ^{2}\left (x \right )\right )}{2}-15 \coth \left (x \right )-16 \ln \left (\coth \left (x \right )-1\right )\) | \(31\) |
risch | \(-\frac {4 \left (48 \,{\mathrm e}^{6 x}-108 \,{\mathrm e}^{4 x}+88 \,{\mathrm e}^{2 x}-25\right )}{3 \left ({\mathrm e}^{2 x}-1\right )^{4}}+16 \ln \left ({\mathrm e}^{2 x}-1\right )\) | \(41\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 140 vs.
\(2 (37) = 74\).
time = 0.28, size = 140, normalized size = 3.41 \begin {gather*} 27 \, x - \frac {20 \, {\left (3 \, e^{\left (-2 \, x\right )} - 3 \, e^{\left (-4 \, x\right )} - 2\right )}}{3 \, {\left (3 \, e^{\left (-2 \, x\right )} - 3 \, e^{\left (-4 \, x\right )} + e^{\left (-6 \, x\right )} - 1\right )}} + \frac {4 \, {\left (e^{\left (-2 \, x\right )} - e^{\left (-4 \, x\right )} + e^{\left (-6 \, x\right )}\right )}}{4 \, e^{\left (-2 \, x\right )} - 6 \, e^{\left (-4 \, x\right )} + 4 \, e^{\left (-6 \, x\right )} - e^{\left (-8 \, x\right )} - 1} + \frac {20 \, e^{\left (-2 \, x\right )}}{2 \, e^{\left (-2 \, x\right )} - e^{\left (-4 \, x\right )} - 1} + \frac {20}{e^{\left (-2 \, x\right )} - 1} + 11 \, \log \left (e^{\left (-x\right )} + 1\right ) + 11 \, \log \left (e^{\left (-x\right )} - 1\right ) + 5 \, \log \left (\sinh \left (x\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 448 vs.
\(2 (37) = 74\).
time = 0.34, size = 448, normalized size = 10.93 \begin {gather*} -\frac {4 \, {\left (48 \, \cosh \left (x\right )^{6} + 288 \, \cosh \left (x\right ) \sinh \left (x\right )^{5} + 48 \, \sinh \left (x\right )^{6} + 36 \, {\left (20 \, \cosh \left (x\right )^{2} - 3\right )} \sinh \left (x\right )^{4} - 108 \, \cosh \left (x\right )^{4} + 48 \, {\left (20 \, \cosh \left (x\right )^{3} - 9 \, \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 8 \, {\left (90 \, \cosh \left (x\right )^{4} - 81 \, \cosh \left (x\right )^{2} + 11\right )} \sinh \left (x\right )^{2} + 88 \, \cosh \left (x\right )^{2} - 12 \, {\left (\cosh \left (x\right )^{8} + 8 \, \cosh \left (x\right ) \sinh \left (x\right )^{7} + \sinh \left (x\right )^{8} + 4 \, {\left (7 \, \cosh \left (x\right )^{2} - 1\right )} \sinh \left (x\right )^{6} - 4 \, \cosh \left (x\right )^{6} + 8 \, {\left (7 \, \cosh \left (x\right )^{3} - 3 \, \cosh \left (x\right )\right )} \sinh \left (x\right )^{5} + 2 \, {\left (35 \, \cosh \left (x\right )^{4} - 30 \, \cosh \left (x\right )^{2} + 3\right )} \sinh \left (x\right )^{4} + 6 \, \cosh \left (x\right )^{4} + 8 \, {\left (7 \, \cosh \left (x\right )^{5} - 10 \, \cosh \left (x\right )^{3} + 3 \, \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 4 \, {\left (7 \, \cosh \left (x\right )^{6} - 15 \, \cosh \left (x\right )^{4} + 9 \, \cosh \left (x\right )^{2} - 1\right )} \sinh \left (x\right )^{2} - 4 \, \cosh \left (x\right )^{2} + 8 \, {\left (\cosh \left (x\right )^{7} - 3 \, \cosh \left (x\right )^{5} + 3 \, \cosh \left (x\right )^{3} - \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1\right )} \log \left (\frac {2 \, \sinh \left (x\right )}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) + 16 \, {\left (18 \, \cosh \left (x\right )^{5} - 27 \, \cosh \left (x\right )^{3} + 11 \, \cosh \left (x\right )\right )} \sinh \left (x\right ) - 25\right )}}{3 \, {\left (\cosh \left (x\right )^{8} + 8 \, \cosh \left (x\right ) \sinh \left (x\right )^{7} + \sinh \left (x\right )^{8} + 4 \, {\left (7 \, \cosh \left (x\right )^{2} - 1\right )} \sinh \left (x\right )^{6} - 4 \, \cosh \left (x\right )^{6} + 8 \, {\left (7 \, \cosh \left (x\right )^{3} - 3 \, \cosh \left (x\right )\right )} \sinh \left (x\right )^{5} + 2 \, {\left (35 \, \cosh \left (x\right )^{4} - 30 \, \cosh \left (x\right )^{2} + 3\right )} \sinh \left (x\right )^{4} + 6 \, \cosh \left (x\right )^{4} + 8 \, {\left (7 \, \cosh \left (x\right )^{5} - 10 \, \cosh \left (x\right )^{3} + 3 \, \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 4 \, {\left (7 \, \cosh \left (x\right )^{6} - 15 \, \cosh \left (x\right )^{4} + 9 \, \cosh \left (x\right )^{2} - 1\right )} \sinh \left (x\right )^{2} - 4 \, \cosh \left (x\right )^{2} + 8 \, {\left (\cosh \left (x\right )^{7} - 3 \, \cosh \left (x\right )^{5} + 3 \, \cosh \left (x\right )^{3} - \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.89, size = 48, normalized size = 1.17 \begin {gather*} 32 x - 16 \log {\left (\tanh {\left (x \right )} + 1 \right )} + 16 \log {\left (\tanh {\left (x \right )} \right )} - \frac {15}{\tanh {\left (x \right )}} - \frac {11}{2 \tanh ^{2}{\left (x \right )}} - \frac {5}{3 \tanh ^{3}{\left (x \right )}} - \frac {1}{4 \tanh ^{4}{\left (x \right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 41, normalized size = 1.00 \begin {gather*} -\frac {4 \, {\left (48 \, e^{\left (6 \, x\right )} - 108 \, e^{\left (4 \, x\right )} + 88 \, e^{\left (2 \, x\right )} - 25\right )}}{3 \, {\left (e^{\left (2 \, x\right )} - 1\right )}^{4}} + 16 \, \log \left ({\left | e^{\left (2 \, x\right )} - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.13, size = 88, normalized size = 2.15 \begin {gather*} 16\,\ln \left ({\mathrm {e}}^{2\,x}-1\right )-\frac {64}{3\,\left (3\,{\mathrm {e}}^{2\,x}-3\,{\mathrm {e}}^{4\,x}+{\mathrm {e}}^{6\,x}-1\right )}-\frac {48}{{\mathrm {e}}^{4\,x}-2\,{\mathrm {e}}^{2\,x}+1}-\frac {4}{6\,{\mathrm {e}}^{4\,x}-4\,{\mathrm {e}}^{2\,x}-4\,{\mathrm {e}}^{6\,x}+{\mathrm {e}}^{8\,x}+1}-\frac {64}{{\mathrm {e}}^{2\,x}-1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________