Optimal. Leaf size=110 \[ -\frac {1}{5} \tanh ^{-1}(\cosh (x))+\cosh (x)+\frac {1}{20} \left (1-\sqrt {5}\right ) \log \left (1-\sqrt {5}-4 \cosh (x)\right )+\frac {1}{20} \left (1+\sqrt {5}\right ) \log \left (1+\sqrt {5}-4 \cosh (x)\right )-\frac {1}{20} \left (1-\sqrt {5}\right ) \log \left (1-\sqrt {5}+4 \cosh (x)\right )-\frac {1}{20} \left (1+\sqrt {5}\right ) \log \left (1+\sqrt {5}+4 \cosh (x)\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.13, antiderivative size = 110, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 4, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.571, Rules used = {2100, 213, 646,
31} \begin {gather*} \cosh (x)+\frac {1}{20} \left (1-\sqrt {5}\right ) \log \left (-4 \cosh (x)-\sqrt {5}+1\right )+\frac {1}{20} \left (1+\sqrt {5}\right ) \log \left (-4 \cosh (x)+\sqrt {5}+1\right )-\frac {1}{20} \left (1-\sqrt {5}\right ) \log \left (4 \cosh (x)-\sqrt {5}+1\right )-\frac {1}{20} \left (1+\sqrt {5}\right ) \log \left (4 \cosh (x)+\sqrt {5}+1\right )-\frac {1}{5} \tanh ^{-1}(\cosh (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 213
Rule 646
Rule 2100
Rubi steps
\begin {align*} \int \cosh (x) \coth (5 x) \, dx &=-\text {Subst}\left (\int \frac {x^2 \left (5-20 x^2+16 x^4\right )}{1-13 x^2+28 x^4-16 x^6} \, dx,x,\cosh (x)\right )\\ &=-\text {Subst}\left (\int \left (-1-\frac {1}{5 \left (-1+x^2\right )}-\frac {2 (1+x)}{5 \left (-1-2 x+4 x^2\right )}+\frac {2 (-1+x)}{5 \left (-1+2 x+4 x^2\right )}\right ) \, dx,x,\cosh (x)\right )\\ &=\cosh (x)+\frac {1}{5} \text {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\cosh (x)\right )+\frac {2}{5} \text {Subst}\left (\int \frac {1+x}{-1-2 x+4 x^2} \, dx,x,\cosh (x)\right )-\frac {2}{5} \text {Subst}\left (\int \frac {-1+x}{-1+2 x+4 x^2} \, dx,x,\cosh (x)\right )\\ &=-\frac {1}{5} \tanh ^{-1}(\cosh (x))+\cosh (x)-\frac {1}{5} \left (1-\sqrt {5}\right ) \text {Subst}\left (\int \frac {1}{1-\sqrt {5}+4 x} \, dx,x,\cosh (x)\right )+\frac {1}{5} \left (1-\sqrt {5}\right ) \text {Subst}\left (\int \frac {1}{-1+\sqrt {5}+4 x} \, dx,x,\cosh (x)\right )+\frac {1}{5} \left (1+\sqrt {5}\right ) \text {Subst}\left (\int \frac {1}{-1-\sqrt {5}+4 x} \, dx,x,\cosh (x)\right )-\frac {1}{5} \left (1+\sqrt {5}\right ) \text {Subst}\left (\int \frac {1}{1+\sqrt {5}+4 x} \, dx,x,\cosh (x)\right )\\ &=-\frac {1}{5} \tanh ^{-1}(\cosh (x))+\cosh (x)+\frac {1}{20} \left (1-\sqrt {5}\right ) \log \left (1-\sqrt {5}-4 \cosh (x)\right )+\frac {1}{20} \left (1+\sqrt {5}\right ) \log \left (1+\sqrt {5}-4 \cosh (x)\right )-\frac {1}{20} \left (1-\sqrt {5}\right ) \log \left (1-\sqrt {5}+4 \cosh (x)\right )-\frac {1}{20} \left (1+\sqrt {5}\right ) \log \left (1+\sqrt {5}+4 \cosh (x)\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 133, normalized size = 1.21 \begin {gather*} \frac {1}{100} \left (100 \cosh (x)-20 \log \left (\cosh \left (\frac {x}{2}\right )\right )+\sqrt {5} \left (-5+\sqrt {5}\right ) \log \left (1-\sqrt {5}-4 \cosh (x)\right )+\sqrt {5} \left (5+\sqrt {5}\right ) \log \left (1+\sqrt {5}-4 \cosh (x)\right )-\sqrt {5} \left (-5+\sqrt {5}\right ) \log \left (1-\sqrt {5}+4 \cosh (x)\right )-\sqrt {5} \left (5+\sqrt {5}\right ) \log \left (1+\sqrt {5}+4 \cosh (x)\right )+20 \log \left (\sinh \left (\frac {x}{2}\right )\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(189\) vs.
\(2(84)=168\).
time = 0.97, size = 190, normalized size = 1.73
method | result | size |
risch | \(\frac {{\mathrm e}^{x}}{2}+\frac {{\mathrm e}^{-x}}{2}+\frac {\ln \left ({\mathrm e}^{x}-1\right )}{5}-\frac {\ln \left ({\mathrm e}^{x}+1\right )}{5}+\frac {\ln \left ({\mathrm e}^{2 x}+\left (-\frac {1}{2}-\frac {\sqrt {5}}{2}\right ) {\mathrm e}^{x}+1\right )}{20}+\frac {\ln \left ({\mathrm e}^{2 x}+\left (-\frac {1}{2}-\frac {\sqrt {5}}{2}\right ) {\mathrm e}^{x}+1\right ) \sqrt {5}}{20}+\frac {\ln \left ({\mathrm e}^{2 x}+\left (\frac {\sqrt {5}}{2}-\frac {1}{2}\right ) {\mathrm e}^{x}+1\right )}{20}-\frac {\ln \left ({\mathrm e}^{2 x}+\left (\frac {\sqrt {5}}{2}-\frac {1}{2}\right ) {\mathrm e}^{x}+1\right ) \sqrt {5}}{20}-\frac {\ln \left ({\mathrm e}^{2 x}+\left (\frac {1}{2}-\frac {\sqrt {5}}{2}\right ) {\mathrm e}^{x}+1\right )}{20}+\frac {\ln \left ({\mathrm e}^{2 x}+\left (\frac {1}{2}-\frac {\sqrt {5}}{2}\right ) {\mathrm e}^{x}+1\right ) \sqrt {5}}{20}-\frac {\ln \left ({\mathrm e}^{2 x}+\left (\frac {1}{2}+\frac {\sqrt {5}}{2}\right ) {\mathrm e}^{x}+1\right )}{20}-\frac {\ln \left ({\mathrm e}^{2 x}+\left (\frac {1}{2}+\frac {\sqrt {5}}{2}\right ) {\mathrm e}^{x}+1\right ) \sqrt {5}}{20}\) | \(190\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \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. 272 vs.
\(2 (80) = 160\).
time = 0.45, size = 272, normalized size = 2.47 \begin {gather*} \frac {10 \, \cosh \left (x\right )^{2} + {\left (\sqrt {5} \cosh \left (x\right ) + \sqrt {5} \sinh \left (x\right )\right )} \log \left (-\frac {4 \, {\left (\sqrt {5} - 1\right )} \cosh \left (x\right ) - 4 \, \cosh \left (x\right )^{2} - 4 \, \sinh \left (x\right )^{2} + \sqrt {5} - 7}{2 \, \cosh \left (x\right )^{2} + 2 \, \sinh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) + 1}\right ) + {\left (\sqrt {5} \cosh \left (x\right ) + \sqrt {5} \sinh \left (x\right )\right )} \log \left (-\frac {4 \, {\left (\sqrt {5} + 1\right )} \cosh \left (x\right ) - 4 \, \cosh \left (x\right )^{2} - 4 \, \sinh \left (x\right )^{2} - \sqrt {5} - 7}{2 \, \cosh \left (x\right )^{2} + 2 \, \sinh \left (x\right )^{2} - 2 \, \cosh \left (x\right ) + 1}\right ) - {\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} \log \left (\frac {2 \, \cosh \left (x\right )^{2} + 2 \, \sinh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) + 1}{\cosh \left (x\right )^{2} - 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2}}\right ) + {\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} \log \left (\frac {2 \, \cosh \left (x\right )^{2} + 2 \, \sinh \left (x\right )^{2} - 2 \, \cosh \left (x\right ) + 1}{\cosh \left (x\right )^{2} - 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2}}\right ) - 4 \, {\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) + 4 \, {\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) - 1\right ) + 20 \, \cosh \left (x\right ) \sinh \left (x\right ) + 10 \, \sinh \left (x\right )^{2} + 10}{20 \, {\left (\cosh \left (x\right ) + \sinh \left (x\right )\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 \cosh {\left (x \right )} \coth {\left (5 x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 157, normalized size = 1.43 \begin {gather*} \frac {1}{20} \, \sqrt {5} \log \left (-\frac {\sqrt {5} - 2 \, e^{\left (-x\right )} - 2 \, e^{x} + 1}{\sqrt {5} + 2 \, e^{\left (-x\right )} + 2 \, e^{x} - 1}\right ) + \frac {1}{20} \, \sqrt {5} \log \left (-\frac {\sqrt {5} - 2 \, e^{\left (-x\right )} - 2 \, e^{x} - 1}{\sqrt {5} + 2 \, e^{\left (-x\right )} + 2 \, e^{x} + 1}\right ) + \frac {1}{2} \, e^{\left (-x\right )} + \frac {1}{2} \, e^{x} - \frac {1}{20} \, \log \left ({\left (e^{\left (-x\right )} + e^{x}\right )}^{2} + e^{\left (-x\right )} + e^{x} - 1\right ) + \frac {1}{20} \, \log \left ({\left (e^{\left (-x\right )} + e^{x}\right )}^{2} - e^{\left (-x\right )} - e^{x} - 1\right ) - \frac {1}{10} \, \log \left (e^{\left (-x\right )} + e^{x} + 2\right ) + \frac {1}{10} \, \log \left (e^{\left (-x\right )} + e^{x} - 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.10, size = 143, normalized size = 1.30 \begin {gather*} \frac {\ln \left (10-10\,{\mathrm {e}}^x\right )}{5}-\frac {\ln \left (-10\,{\mathrm {e}}^x-10\right )}{5}+\frac {{\mathrm {e}}^{-x}}{2}+\frac {{\mathrm {e}}^x}{2}-\ln \left (-{\mathrm {e}}^{2\,x}-10\,{\mathrm {e}}^x\,\left (\frac {\sqrt {5}}{20}-\frac {1}{20}\right )-1\right )\,\left (\frac {\sqrt {5}}{20}-\frac {1}{20}\right )+\ln \left (10\,{\mathrm {e}}^x\,\left (\frac {\sqrt {5}}{20}-\frac {1}{20}\right )-{\mathrm {e}}^{2\,x}-1\right )\,\left (\frac {\sqrt {5}}{20}-\frac {1}{20}\right )-\ln \left (-{\mathrm {e}}^{2\,x}-10\,{\mathrm {e}}^x\,\left (\frac {\sqrt {5}}{20}+\frac {1}{20}\right )-1\right )\,\left (\frac {\sqrt {5}}{20}+\frac {1}{20}\right )+\ln \left (10\,{\mathrm {e}}^x\,\left (\frac {\sqrt {5}}{20}+\frac {1}{20}\right )-{\mathrm {e}}^{2\,x}-1\right )\,\left (\frac {\sqrt {5}}{20}+\frac {1}{20}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________