Optimal. Leaf size=4 \[ x+\tanh (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 4, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 1, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {206} \[ x+\tanh (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rubi steps
\begin {align*} \int \text {sech}^2(x) \left (1+\frac {1}{1-\tanh ^2(x)}\right ) \, dx &=\operatorname {Subst}\left (\int \left (1+\frac {1}{1-x^2}\right ) \, dx,x,\tanh (x)\right )\\ &=\tanh (x)+\operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\tanh (x)\right )\\ &=x+\tanh (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 4, normalized size = 1.00 \[ x+\tanh (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.42, size = 14, normalized size = 3.50 \[ \frac {{\left (x - 1\right )} \cosh \relax (x) + \sinh \relax (x)}{\cosh \relax (x)} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.13, size = 12, normalized size = 3.00 \[ x - \frac {2}{e^{\left (2 \, x\right )} + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.17, size = 34, normalized size = 8.50 \[ -\ln \left (\tanh \left (\frac {x}{2}\right )-1\right )+\ln \left (\tanh \left (\frac {x}{2}\right )+1\right )+\frac {2 \tanh \left (\frac {x}{2}\right )}{\tanh ^{2}\left (\frac {x}{2}\right )+1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.30, size = 12, normalized size = 3.00 \[ x + \frac {2}{e^{\left (-2 \, x\right )} + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.72, size = 12, normalized size = 3.00 \[ x-\frac {2}{{\mathrm {e}}^{2\,x}+1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.81, size = 29, normalized size = 7.25 \[ - \frac {x \operatorname {sech}^{2}{\relax (x )}}{\tanh ^{2}{\relax (x )} - 1} - \frac {\tanh {\relax (x )} \operatorname {sech}^{2}{\relax (x )}}{\tanh ^{2}{\relax (x )} - 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________