Optimal. Leaf size=11 \[ \frac {\tanh (x)}{1+\tanh ^2(x)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 11, normalized size of antiderivative = 1.00, 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 = {391}
\begin {gather*} \frac {\tanh (x)}{\tanh ^2(x)+1} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 391
Rubi steps
\begin {align*} \int \frac {1}{\left (\cosh ^2(x)+\sinh ^2(x)\right )^2} \, dx &=\text {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.00, size = 8, normalized size = 0.73 \begin {gather*} \frac {1}{2} \tanh (2 x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(35\) vs.
\(2(11)=22\).
time = 1.11, size = 36, normalized size = 3.27
method | result | size |
risch | \(-\frac {1}{1+{\mathrm e}^{4 x}}\) | \(11\) |
default | \(-\frac {2 \left (-\left (\tanh ^{3}\left (\frac {x}{2}\right )\right )-\tanh \left (\frac {x}{2}\right )\right )}{\tanh ^{4}\left (\frac {x}{2}\right )+6 \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )+1}\) | \(36\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 8, normalized size = 0.73 \begin {gather*} \frac {1}{e^{\left (-4 \, x\right )} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 40 vs.
\(2 (11) = 22\).
time = 0.37, size = 40, normalized size = 3.64 \begin {gather*} -\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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 48 vs.
\(2 (8) = 16\).
time = 0.67, size = 48, normalized size = 4.36 \begin {gather*} \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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 10, normalized size = 0.91 \begin {gather*} -\frac {1}{e^{\left (4 \, x\right )} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.55, size = 10, normalized size = 0.91 \begin {gather*} -\frac {1}{{\mathrm {e}}^{4\,x}+1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________