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 (\cosh (x)+1)-\frac{1}{6} \log (2 \cosh (x)+1) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.063326, antiderivative size = 45, normalized size of antiderivative = 1., 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 = {1279, 1161, 616, 31} \[ \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) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1279
Rule 1161
Rule 616
Rule 31
Rubi steps
\begin{align*} \int \cosh (x) \coth (3 x) \, dx &=-\operatorname{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} \operatorname{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} \operatorname{Subst}\left (\int \frac{1}{-\frac{1}{2}-\frac{x}{2}+x^2} \, dx,x,\cosh (x)\right )+\frac{1}{4} \operatorname{Subst}\left (\int \frac{1}{-\frac{1}{2}+\frac{x}{2}+x^2} \, dx,x,\cosh (x)\right )\\ &=\cosh (x)+\frac{1}{6} \operatorname{Subst}\left (\int \frac{1}{-1+x} \, dx,x,\cosh (x)\right )+\frac{1}{6} \operatorname{Subst}\left (\int \frac{1}{-\frac{1}{2}+x} \, dx,x,\cosh (x)\right )-\frac{1}{6} \operatorname{Subst}\left (\int \frac{1}{\frac{1}{2}+x} \, dx,x,\cosh (x)\right )-\frac{1}{6} \operatorname{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.017799, size = 47, normalized size = 1.04 \[ \cosh (x)+\frac{1}{3} \log \left (\sinh \left (\frac{x}{2}\right )\right )-\frac{1}{3} \log \left (\cosh \left (\frac{x}{2}\right )\right )+\frac{1}{6} \log (1-2 \cosh (x))-\frac{1}{6} \log (2 \cosh (x)+1) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.053, size = 50, normalized size = 1.1 \begin{align*}{\frac{{{\rm e}^{x}}}{2}}+{\frac{{{\rm e}^{-x}}}{2}}+{\frac{\ln \left ({{\rm e}^{x}}-1 \right ) }{3}}-{\frac{\ln \left ({{\rm e}^{x}}+1 \right ) }{3}}-{\frac{\ln \left ({{\rm e}^{2\,x}}+{{\rm e}^{x}}+1 \right ) }{6}}+{\frac{\ln \left ({{\rm e}^{2\,x}}-{{\rm e}^{x}}+1 \right ) }{6}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.69428, size = 77, normalized size = 1.71 \begin{align*} \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{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.15193, size = 412, normalized size = 9.16 \begin{align*} \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{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \cosh{\left (x \right )} \coth{\left (3 x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.17656, size = 74, normalized size = 1.64 \begin{align*} \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{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]