Optimal. Leaf size=45 \[ \cosh (x)+\frac {1}{6} \log (1-2 \cosh (x))+\frac {1}{6} \log (1-\cosh (x))-\frac {1}{6} \log (1+\cosh (x))-\frac {1}{6} \log (1+2 \cosh (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 4, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.571, Rules used = {1293, 1175, 630,
31} \begin {gather*} \cosh (x)+\frac {1}{6} \log (1-2 \cosh (x))+\frac {1}{6} \log (1-\cosh (x))-\frac {1}{6} \log (\cosh (x)+1)-\frac {1}{6} \log (2 \cosh (x)+1) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 630
Rule 1175
Rule 1293
Rubi steps
\begin {align*} \int \cosh (x) \coth (3 x) \, dx &=-\text {Subst}\left (\int \frac {x^2 \left (3-4 x^2\right )}{1-5 x^2+4 x^4} \, dx,x,\cosh (x)\right )\\ &=\cosh (x)+\frac {1}{4} \text {Subst}\left (\int \frac {-4+8 x^2}{1-5 x^2+4 x^4} \, dx,x,\cosh (x)\right )\\ &=\cosh (x)+\frac {1}{4} \text {Subst}\left (\int \frac {1}{-\frac {1}{2}-\frac {x}{2}+x^2} \, dx,x,\cosh (x)\right )+\frac {1}{4} \text {Subst}\left (\int \frac {1}{-\frac {1}{2}+\frac {x}{2}+x^2} \, dx,x,\cosh (x)\right )\\ &=\cosh (x)+\frac {1}{6} \text {Subst}\left (\int \frac {1}{-1+x} \, dx,x,\cosh (x)\right )+\frac {1}{6} \text {Subst}\left (\int \frac {1}{-\frac {1}{2}+x} \, dx,x,\cosh (x)\right )-\frac {1}{6} \text {Subst}\left (\int \frac {1}{\frac {1}{2}+x} \, dx,x,\cosh (x)\right )-\frac {1}{6} \text {Subst}\left (\int \frac {1}{1+x} \, dx,x,\cosh (x)\right )\\ &=\cosh (x)+\frac {1}{6} \log (1-2 \cosh (x))+\frac {1}{6} \log (1-\cosh (x))-\frac {1}{6} \log (1+\cosh (x))-\frac {1}{6} \log (1+2 \cosh (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 47, normalized size = 1.04 \begin {gather*} \cosh (x)-\frac {1}{3} \log \left (\cosh \left (\frac {x}{2}\right )\right )+\frac {1}{6} \log (1-2 \cosh (x))-\frac {1}{6} \log (1+2 \cosh (x))+\frac {1}{3} \log \left (\sinh \left (\frac {x}{2}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.95, size = 50, normalized size = 1.11
method | result | size |
risch | \(\frac {{\mathrm e}^{x}}{2}+\frac {{\mathrm e}^{-x}}{2}+\frac {\ln \left ({\mathrm e}^{x}-1\right )}{3}-\frac {\ln \left ({\mathrm e}^{x}+1\right )}{3}-\frac {\ln \left (1+{\mathrm e}^{x}+{\mathrm e}^{2 x}\right )}{6}+\frac {\ln \left (1-{\mathrm e}^{x}+{\mathrm e}^{2 x}\right )}{6}\) | \(50\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.47, size = 57, normalized size = 1.27 \begin {gather*} \frac {1}{2} \, e^{\left (-x\right )} + \frac {1}{2} \, e^{x} - \frac {1}{6} \, \log \left (e^{\left (-x\right )} + e^{\left (-2 \, x\right )} + 1\right ) - \frac {1}{3} \, \log \left (e^{\left (-x\right )} + 1\right ) + \frac {1}{3} \, \log \left (e^{\left (-x\right )} - 1\right ) + \frac {1}{6} \, \log \left (-e^{\left (-x\right )} + 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. 104 vs.
\(2 (37) = 74\).
time = 0.37, size = 104, normalized size = 2.31 \begin {gather*} \frac {3 \, \cosh \left (x\right )^{2} - {\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} \log \left (\frac {2 \, \cosh \left (x\right ) + 1}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) + {\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} \log \left (\frac {2 \, \cosh \left (x\right ) - 1}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) - 2 \, {\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) + 2 \, {\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) - 1\right ) + 6 \, \cosh \left (x\right ) \sinh \left (x\right ) + 3 \, \sinh \left (x\right )^{2} + 3}{6 \, {\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 (3 x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.39, size = 55, normalized size = 1.22 \begin {gather*} \frac {1}{2} \, e^{\left (-x\right )} + \frac {1}{2} \, e^{x} - \frac {1}{6} \, \log \left (e^{\left (-x\right )} + e^{x} + 2\right ) - \frac {1}{6} \, \log \left (e^{\left (-x\right )} + e^{x} + 1\right ) + \frac {1}{6} \, \log \left (e^{\left (-x\right )} + e^{x} - 1\right ) + \frac {1}{6} \, \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.06, size = 57, normalized size = 1.27 \begin {gather*} \frac {\ln \left (6-6\,{\mathrm {e}}^x\right )}{3}-\frac {\ln \left (-6\,{\mathrm {e}}^x-6\right )}{3}+\frac {{\mathrm {e}}^{-x}}{2}+\frac {\ln \left ({\mathrm {e}}^x-{\mathrm {e}}^{2\,x}-1\right )}{6}-\frac {\ln \left (-{\mathrm {e}}^{2\,x}-{\mathrm {e}}^x-1\right )}{6}+\frac {{\mathrm {e}}^x}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________