Optimal. Leaf size=11 \[ \frac{\tanh (x)}{\tanh ^2(x)+1} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0249508, 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 = {383} \[ \frac{\tanh (x)}{\tanh ^2(x)+1} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 383
Rubi steps
\begin{align*} \int \frac{1}{\left (\cosh ^2(x)+\sinh ^2(x)\right )^2} \, dx &=\operatorname{Subst}\left (\int \frac{1-x^2}{\left (1+x^2\right )^2} \, dx,x,\tanh (x)\right )\\ &=\frac{\tanh (x)}{1+\tanh ^2(x)}\\ \end{align*}
Mathematica [A] time = 0.0027112, size = 8, normalized size = 0.73 \[ \frac{1}{2} \tanh (2 x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.023, size = 36, normalized size = 3.3 \begin{align*} -2\,{\frac{- \left ( \tanh \left ( x/2 \right ) \right ) ^{3}-\tanh \left ( x/2 \right ) }{ \left ( \tanh \left ( x/2 \right ) \right ) ^{4}+6\, \left ( \tanh \left ( x/2 \right ) \right ) ^{2}+1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.10095, size = 11, normalized size = 1. \begin{align*} \frac{1}{e^{\left (-4 \, x\right )} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.19323, size = 135, normalized size = 12.27 \begin{align*} -\frac{1}{\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right )^{3} \sinh \left (x\right ) + 6 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{2} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 5.28396, size = 48, normalized size = 4.36 \begin{align*} \frac{2 \tanh ^{3}{\left (\frac{x}{2} \right )}}{\tanh ^{4}{\left (\frac{x}{2} \right )} + 6 \tanh ^{2}{\left (\frac{x}{2} \right )} + 1} + \frac{2 \tanh{\left (\frac{x}{2} \right )}}{\tanh ^{4}{\left (\frac{x}{2} \right )} + 6 \tanh ^{2}{\left (\frac{x}{2} \right )} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09845, size = 14, normalized size = 1.27 \begin{align*} -\frac{1}{e^{\left (4 \, x\right )} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]