Optimal. Leaf size=3 \[ \text {ArcTan}(\tanh (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 3, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3756, 209}
\begin {gather*} \text {ArcTan}(\tanh (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 3756
Rubi steps
\begin {align*} \int \frac {\text {sech}^2(x)}{1+\tanh ^2(x)} \, dx &=\text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\tanh (x)\right )\\ &=\tan ^{-1}(\tanh (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 3, normalized size = 1.00 \begin {gather*} \text {ArcTan}(\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. \(71\) vs.
\(2(3)=6\).
time = 1.19, size = 72, normalized size = 24.00
method | result | size |
risch | \(\frac {i \ln \left ({\mathrm e}^{2 x}+i\right )}{2}-\frac {i \ln \left ({\mathrm e}^{2 x}-i\right )}{2}\) | \(24\) |
default | \(-\frac {\left (2+\sqrt {2}\right ) \sqrt {2}\, \arctan \left (\frac {2 \tanh \left (\frac {x}{2}\right )}{2+2 \sqrt {2}}\right )}{2+2 \sqrt {2}}-\frac {\left (-2+\sqrt {2}\right ) \sqrt {2}\, \arctan \left (\frac {2 \tanh \left (\frac {x}{2}\right )}{-2+2 \sqrt {2}}\right )}{-2+2 \sqrt {2}}\) | \(72\) |
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. 35 vs.
\(2 (3) = 6\).
time = 0.49, size = 35, normalized size = 11.67 \begin {gather*} \arctan \left (\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} + 2 \, e^{\left (-x\right )}\right )}\right ) - \arctan \left (-\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} - 2 \, e^{\left (-x\right )}\right )}\right ) \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. 19 vs.
\(2 (3) = 6\).
time = 0.34, size = 19, normalized size = 6.33 \begin {gather*} -\arctan \left (-\frac {\cosh \left (x\right ) + \sinh \left (x\right )}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) \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}^{2}{\left (x \right )}}{\tanh ^{2}{\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 = 5, normalized size = 1.67 \begin {gather*} \arctan \left (e^{\left (2 \, x\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.07, size = 5, normalized size = 1.67 \begin {gather*} \mathrm {atan}\left ({\mathrm {e}}^{2\,x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________