Optimal. Leaf size=16 \[ \frac{x}{2}+\frac{1}{2 (\tanh (x)+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0198789, antiderivative size = 16, normalized size of antiderivative = 1., 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 = {3526, 8} \[ \frac{x}{2}+\frac{1}{2 (\tanh (x)+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3526
Rule 8
Rubi steps
\begin{align*} \int \frac{\tanh (x)}{1+\tanh (x)} \, dx &=\frac{1}{2 (1+\tanh (x))}+\frac{\int 1 \, dx}{2}\\ &=\frac{x}{2}+\frac{1}{2 (1+\tanh (x))}\\ \end{align*}
Mathematica [A] time = 0.0260664, size = 18, normalized size = 1.12 \[ \frac{1}{4} (2 x-\sinh (2 x)+\cosh (2 x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.016, size = 24, normalized size = 1.5 \begin{align*}{\frac{1}{2+2\,\tanh \left ( x \right ) }}+{\frac{\ln \left ( 1+\tanh \left ( x \right ) \right ) }{4}}-{\frac{\ln \left ( \tanh \left ( x \right ) -1 \right ) }{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.26689, size = 14, normalized size = 0.88 \begin{align*} \frac{1}{2} \, x + \frac{1}{4} \, e^{\left (-2 \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.21052, size = 88, normalized size = 5.5 \begin{align*} \frac{{\left (2 \, x + 1\right )} \cosh \left (x\right ) +{\left (2 \, x - 1\right )} \sinh \left (x\right )}{4 \,{\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 [B] time = 0.387998, size = 27, normalized size = 1.69 \begin{align*} \frac{x \tanh{\left (x \right )}}{2 \tanh{\left (x \right )} + 2} + \frac{x}{2 \tanh{\left (x \right )} + 2} + \frac{1}{2 \tanh{\left (x \right )} + 2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20642, size = 14, normalized size = 0.88 \begin{align*} \frac{1}{2} \, x + \frac{1}{4} \, e^{\left (-2 \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]