Optimal. Leaf size=5 \[ \tan ^{-1}(\tanh (x)+1) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 5, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {4342, 617, 204} \[ \tan ^{-1}(\tanh (x)+1) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 617
Rule 4342
Rubi steps
\begin {align*} \int \frac {\text {sech}^2(x)}{2+2 \tanh (x)+\tanh ^2(x)} \, dx &=\operatorname {Subst}\left (\int \frac {1}{2+2 x+x^2} \, dx,x,\tanh (x)\right )\\ &=-\operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\tanh (x)\right )\\ &=\tan ^{-1}(1+\tanh (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 0.04, size = 0, normalized size = 0.00 \[ \int \frac {\text {sech}^2(x)}{2+2 \tanh (x)+\tanh ^2(x)} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.43, size = 23, normalized size = 4.60 \[ -\arctan \left (-\frac {3 \, \cosh \relax (x) + 2 \, \sinh \relax (x)}{\cosh \relax (x) - \sinh \relax (x)}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.12, size = 9, normalized size = 1.80 \[ \arctan \left (\frac {5}{2} \, e^{\left (2 \, x\right )} + \frac {1}{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.24, size = 42, normalized size = 8.40 \[ \frac {i \ln \left (\tanh ^{2}\left (\frac {x}{2}\right )+\left (1-i\right ) \tanh \left (\frac {x}{2}\right )+1\right )}{2}-\frac {i \ln \left (\tanh ^{2}\left (\frac {x}{2}\right )+\left (1+i\right ) \tanh \left (\frac {x}{2}\right )+1\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\operatorname {sech}\relax (x)^{2}}{\tanh \relax (x)^{2} + 2 \, \tanh \relax (x) + 2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.66, size = 9, normalized size = 1.80 \[ \mathrm {atan}\left (\frac {5\,{\mathrm {e}}^{2\,x}}{2}+\frac {1}{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\operatorname {sech}^{2}{\relax (x )}}{\tanh ^{2}{\relax (x )} + 2 \tanh {\relax (x )} + 2}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________