Optimal. Leaf size=11 \[ \tanh (x)-\frac {\tanh ^2(x)}{2} \]
[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 = {3568}
\begin {gather*} \tanh (x)-\frac {\tanh ^2(x)}{2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3568
Rubi steps
\begin {align*} \int \frac {\text {sech}^4(x)}{1+\tanh (x)} \, dx &=\text {Subst}(\int (1-x) \, dx,x,\tanh (x))\\ &=\tanh (x)-\frac {\tanh ^2(x)}{2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 11, normalized size = 1.00 \begin {gather*} \frac {\text {sech}^2(x)}{2}+\tanh (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(33\) vs.
\(2(9)=18\).
time = 0.55, size = 34, normalized size = 3.09
method | result | size |
risch | \(-\frac {2}{\left (1+{\mathrm e}^{2 x}\right )^{2}}\) | \(11\) |
default | \(-\frac {2 \left (-\left (\tanh ^{3}\left (\frac {x}{2}\right )\right )+\tanh ^{2}\left (\frac {x}{2}\right )-\tanh \left (\frac {x}{2}\right )\right )}{\left (\tanh ^{2}\left (\frac {x}{2}\right )+1\right )^{2}}\) | \(34\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 37 vs.
\(2 (9) = 18\).
time = 0.26, size = 37, normalized size = 3.36 \begin {gather*} \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 {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. 53 vs.
\(2 (9) = 18\).
time = 0.37, size = 53, normalized size = 4.82 \begin {gather*} -\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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {sech}^{4}{\left (x \right )}}{\tanh {\left (x \right )} + 1}\, dx \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 {2}{{\left (e^{\left (2 \, x\right )} + 1\right )}^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.04, size = 16, normalized size = 1.45 \begin {gather*} -\frac {2}{2\,{\mathrm {e}}^{2\,x}+{\mathrm {e}}^{4\,x}+1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________