Optimal. Leaf size=15 \[ \coth (x)+\log (1-\tanh (x))-\log (\tanh (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 15, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {4342, 44} \[ \coth (x)+\log (1-\tanh (x))-\log (\tanh (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 44
Rule 4342
Rubi steps
\begin {align*} \int \frac {\text {sech}^2(x)}{-\tanh ^2(x)+\tanh ^3(x)} \, dx &=\operatorname {Subst}\left (\int \frac {1}{(-1+x) x^2} \, dx,x,\tanh (x)\right )\\ &=\operatorname {Subst}\left (\int \left (\frac {1}{-1+x}-\frac {1}{x^2}-\frac {1}{x}\right ) \, dx,x,\tanh (x)\right )\\ &=\coth (x)+\log (1-\tanh (x))-\log (\tanh (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 11, normalized size = 0.73 \[ -x+\coth (x)-\log (\sinh (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.42, size = 53, normalized size = 3.53 \[ -\frac {{\left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} - 1\right )} \log \left (\frac {2 \, \sinh \relax (x)}{\cosh \relax (x) - \sinh \relax (x)}\right ) - 2}{\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} - 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.12, size = 26, normalized size = 1.73 \[ \frac {e^{\left (2 \, x\right )} + 1}{e^{\left (2 \, x\right )} - 1} - \log \left ({\left | e^{\left (2 \, x\right )} - 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.24, size = 32, normalized size = 2.13 \[ \frac {\tanh \left (\frac {x}{2}\right )}{2}+2 \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )+\frac {1}{2 \tanh \left (\frac {x}{2}\right )}-\ln \left (\tanh \left (\frac {x}{2}\right )\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.30, size = 32, normalized size = 2.13 \[ -2 \, x - \frac {2}{e^{\left (-2 \, x\right )} - 1} - \log \left (e^{\left (-x\right )} + 1\right ) - \log \left (e^{\left (-x\right )} - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.66, size = 20, normalized size = 1.33 \[ \frac {2}{{\mathrm {e}}^{2\,x}-1}-\ln \left ({\mathrm {e}}^{2\,x}-1\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 )}}{\left (\tanh {\relax (x )} - 1\right ) \tanh ^{2}{\relax (x )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________