Optimal. Leaf size=10 \[ \cosh (x)-\frac {1}{2} \tanh ^{-1}(\cosh (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 10, 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 = {12, 388, 206} \[ \cosh (x)-\frac {1}{2} \tanh ^{-1}(\cosh (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 206
Rule 388
Rubi steps
\begin {align*} \int \cosh (x) \coth (2 x) \, dx &=-\operatorname {Subst}\left (\int \frac {-1+2 x^2}{2 \left (1-x^2\right )} \, dx,x,\cosh (x)\right )\\ &=-\left (\frac {1}{2} \operatorname {Subst}\left (\int \frac {-1+2 x^2}{1-x^2} \, dx,x,\cosh (x)\right )\right )\\ &=\cosh (x)-\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\cosh (x)\right )\\ &=-\frac {1}{2} \tanh ^{-1}(\cosh (x))+\cosh (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 14, normalized size = 1.40 \[ \cosh (x)+\frac {1}{2} \log \left (\tanh \left (\frac {x}{2}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.41, size = 52, normalized size = 5.20 \[ \frac {\cosh \relax (x)^{2} - {\left (\cosh \relax (x) + \sinh \relax (x)\right )} \log \left (\cosh \relax (x) + \sinh \relax (x) + 1\right ) + {\left (\cosh \relax (x) + \sinh \relax (x)\right )} \log \left (\cosh \relax (x) + \sinh \relax (x) - 1\right ) + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} + 1}{2 \, {\left (\cosh \relax (x) + \sinh \relax (x)\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.11, size = 26, normalized size = 2.60 \[ \frac {1}{2} \, e^{\left (-x\right )} + \frac {1}{2} \, e^{x} - \frac {1}{2} \, \log \left (e^{x} + 1\right ) + \frac {1}{2} \, \log \left ({\left | e^{x} - 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.15, size = 9, normalized size = 0.90 \[ \cosh \relax (x )-\arctanh \left ({\mathrm e}^{x}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.36, size = 29, normalized size = 2.90 \[ \frac {1}{2} \, e^{\left (-x\right )} + \frac {1}{2} \, e^{x} - \frac {1}{2} \, \log \left (e^{\left (-x\right )} + 1\right ) + \frac {1}{2} \, \log \left (e^{\left (-x\right )} - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.41, size = 29, normalized size = 2.90 \[ \frac {\ln \left (1-{\mathrm {e}}^x\right )}{2}-\frac {\ln \left (-{\mathrm {e}}^x-1\right )}{2}+\frac {{\mathrm {e}}^{-x}}{2}+\frac {{\mathrm {e}}^x}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \cosh {\relax (x )} \coth {\left (2 x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________