Optimal. Leaf size=18 \[ -\cosh ^2(x)+\frac {\cosh ^4(x)}{4}+\log (\cosh (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 18, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.429, Rules used = {2670, 272, 45}
\begin {gather*} \frac {\cosh ^4(x)}{4}-\cosh ^2(x)+\log (\cosh (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 272
Rule 2670
Rubi steps
\begin {align*} \int \sinh ^4(x) \tanh (x) \, dx &=\text {Subst}\left (\int \frac {\left (1-x^2\right )^2}{x} \, dx,x,\cosh (x)\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \frac {(1-x)^2}{x} \, dx,x,\cosh ^2(x)\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (-2+\frac {1}{x}+x\right ) \, dx,x,\cosh ^2(x)\right )\\ &=-\cosh ^2(x)+\frac {\cosh ^4(x)}{4}+\log (\cosh (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 18, normalized size = 1.00 \begin {gather*} -\cosh ^2(x)+\frac {\cosh ^4(x)}{4}+\log (\cosh (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 17, normalized size = 0.94
method | result | size |
default | \(\frac {\left (\sinh ^{4}\left (x \right )\right )}{4}-\frac {\left (\sinh ^{2}\left (x \right )\right )}{2}+\ln \left (\cosh \left (x \right )\right )\) | \(17\) |
risch | \(-x +\frac {{\mathrm e}^{4 x}}{64}-\frac {3 \,{\mathrm e}^{2 x}}{16}-\frac {3 \,{\mathrm e}^{-2 x}}{16}+\frac {{\mathrm e}^{-4 x}}{64}+\ln \left (1+{\mathrm e}^{2 x}\right )\) | \(36\) |
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. 35 vs.
\(2 (16) = 32\).
time = 4.06, size = 35, normalized size = 1.94 \begin {gather*} -\frac {1}{64} \, {\left (12 \, e^{\left (-2 \, x\right )} - 1\right )} e^{\left (4 \, x\right )} + x - \frac {3}{16} \, e^{\left (-2 \, x\right )} + \frac {1}{64} \, e^{\left (-4 \, x\right )} + \log \left (e^{\left (-2 \, x\right )} + 1\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. 257 vs.
\(2 (16) = 32\).
time = 1.21, size = 257, normalized size = 14.28 \begin {gather*} \frac {\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} - 3\right )} \sinh \left (x\right )^{6} - 12 \, \cosh \left (x\right )^{6} + 8 \, {\left (7 \, \cosh \left (x\right )^{3} - 9 \, \cosh \left (x\right )\right )} \sinh \left (x\right )^{5} - 64 \, x \cosh \left (x\right )^{4} + 2 \, {\left (35 \, \cosh \left (x\right )^{4} - 90 \, \cosh \left (x\right )^{2} - 32 \, x\right )} \sinh \left (x\right )^{4} + 8 \, {\left (7 \, \cosh \left (x\right )^{5} - 30 \, \cosh \left (x\right )^{3} - 32 \, x \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 4 \, {\left (7 \, \cosh \left (x\right )^{6} - 45 \, \cosh \left (x\right )^{4} - 96 \, x \cosh \left (x\right )^{2} - 3\right )} \sinh \left (x\right )^{2} - 12 \, \cosh \left (x\right )^{2} + 64 \, {\left (\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right )^{3} \sinh \left (x\right ) + 6 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{2} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4}\right )} \log \left (\frac {2 \, \cosh \left (x\right )}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) + 8 \, {\left (\cosh \left (x\right )^{7} - 9 \, \cosh \left (x\right )^{5} - 32 \, x \cosh \left (x\right )^{3} - 3 \, \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1}{64 \, {\left (\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right )^{3} \sinh \left (x\right ) + 6 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{2} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\tanh ^{5}{\left (x \right )}}{\operatorname {sech}^{4}{\left (x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 43 vs.
\(2 (16) = 32\).
time = 0.77, size = 43, normalized size = 2.39 \begin {gather*} \frac {1}{64} \, {\left (48 \, e^{\left (4 \, x\right )} - 12 \, e^{\left (2 \, x\right )} + 1\right )} e^{\left (-4 \, x\right )} - x + \frac {1}{64} \, e^{\left (4 \, x\right )} - \frac {3}{16} \, e^{\left (2 \, x\right )} + \log \left (e^{\left (2 \, x\right )} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.36, size = 35, normalized size = 1.94 \begin {gather*} \ln \left ({\mathrm {e}}^{2\,x}+1\right )-x-\frac {3\,{\mathrm {e}}^{-2\,x}}{16}-\frac {3\,{\mathrm {e}}^{2\,x}}{16}+\frac {{\mathrm {e}}^{-4\,x}}{64}+\frac {{\mathrm {e}}^{4\,x}}{64} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________