Optimal. Leaf size=11 \[ \tanh (x)-\frac{\tanh ^2(x)}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.032956, antiderivative size = 11, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.091, Rules used = {3487} \[ \tanh (x)-\frac{\tanh ^2(x)}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3487
Rubi steps
\begin{align*} \int \frac{\text{sech}^4(x)}{1+\tanh (x)} \, dx &=\operatorname{Subst}(\int (1-x) \, dx,x,\tanh (x))\\ &=\tanh (x)-\frac{\tanh ^2(x)}{2}\\ \end{align*}
Mathematica [A] time = 0.0236339, size = 11, normalized size = 1. \[ \tanh (x)+\frac{\text{sech}^2(x)}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.025, size = 34, normalized size = 3.1 \begin{align*} -2\,{\frac{- \left ( \tanh \left ( x/2 \right ) \right ) ^{3}+ \left ( \tanh \left ( x/2 \right ) \right ) ^{2}-\tanh \left ( x/2 \right ) }{ \left ( \left ( \tanh \left ( x/2 \right ) \right ) ^{2}+1 \right ) ^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.1833, size = 50, normalized size = 4.55 \begin{align*} \frac{4 \, e^{\left (-2 \, x\right )}}{2 \, e^{\left (-2 \, x\right )} + e^{\left (-4 \, x\right )} + 1} + \frac{2}{2 \, e^{\left (-2 \, x\right )} + e^{\left (-4 \, x\right )} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.02179, size = 181, normalized size = 16.45 \begin{align*} -\frac{2}{\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} + 2 \,{\left (3 \, \cosh \left (x\right )^{2} + 1\right )} \sinh \left (x\right )^{2} + 2 \, \cosh \left (x\right )^{2} + 4 \,{\left (\cosh \left (x\right )^{3} + \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1} \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 \frac{\operatorname{sech}^{4}{\left (x \right )}}{\tanh{\left (x \right )} + 1}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.2545, size = 14, normalized size = 1.27 \begin{align*} -\frac{2}{{\left (e^{\left (2 \, x\right )} + 1\right )}^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]