Optimal. Leaf size=19 \[ \frac {2 \sinh (x)}{3}-\frac {\cosh (x)}{3 (\tanh (x)+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {3502, 2637} \[ \frac {2 \sinh (x)}{3}-\frac {\cosh (x)}{3 (\tanh (x)+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2637
Rule 3502
Rubi steps
\begin {align*} \int \frac {\cosh (x)}{1+\tanh (x)} \, dx &=-\frac {\cosh (x)}{3 (1+\tanh (x))}+\frac {2}{3} \int \cosh (x) \, dx\\ &=\frac {2 \sinh (x)}{3}-\frac {\cosh (x)}{3 (1+\tanh (x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 23, normalized size = 1.21 \[ \frac {1}{12} (9 \sinh (x)+\sinh (3 x)-3 \cosh (x)-\cosh (3 x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 25, normalized size = 1.32 \[ \frac {\cosh \relax (x)^{2} + 4 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} - 3}{6 \, {\left (\cosh \relax (x) + \sinh \relax (x)\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 19, normalized size = 1.00 \[ -\frac {1}{12} \, {\left (6 \, e^{\left (2 \, x\right )} + 1\right )} e^{\left (-3 \, x\right )} + \frac {1}{4} \, e^{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.09, size = 40, normalized size = 2.11 \[ -\frac {1}{2 \left (\tanh \left (\frac {x}{2}\right )-1\right )}-\frac {2}{3 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{3}}+\frac {1}{\left (\tanh \left (\frac {x}{2}\right )+1\right )^{2}}-\frac {3}{2 \left (\tanh \left (\frac {x}{2}\right )+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.31, size = 17, normalized size = 0.89 \[ -\frac {1}{2} \, e^{\left (-x\right )} - \frac {1}{12} \, e^{\left (-3 \, x\right )} + \frac {1}{4} \, e^{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.05, size = 17, normalized size = 0.89 \[ \frac {{\mathrm {e}}^x}{4}-\frac {{\mathrm {e}}^{-3\,x}}{12}-\frac {{\mathrm {e}}^{-x}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.37, size = 48, normalized size = 2.53 \[ \frac {2 \sinh {\relax (x )} \tanh {\relax (x )}}{3 \tanh {\relax (x )} + 3} + \frac {\sinh {\relax (x )}}{3 \tanh {\relax (x )} + 3} + \frac {\cosh {\relax (x )} \tanh {\relax (x )}}{3 \tanh {\relax (x )} + 3} - \frac {\cosh {\relax (x )}}{3 \tanh {\relax (x )} + 3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________