Optimal. Leaf size=15 \[ -\coth (x)-\log (\tanh (x))+\log (1+\tanh (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 15, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {3597, 46}
\begin {gather*} -\coth (x)-\log (\tanh (x))+\log (\tanh (x)+1) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 3597
Rubi steps
\begin {align*} \int \frac {\text {csch}^2(x)}{1+\tanh (x)} \, dx &=\text {Subst}\left (\int \frac {1}{x^2 (1+x)} \, dx,x,\tanh (x)\right )\\ &=\text {Subst}\left (\int \left (\frac {1}{x^2}-\frac {1}{x}+\frac {1}{1+x}\right ) \, dx,x,\tanh (x)\right )\\ &=-\coth (x)-\log (\tanh (x))+\log (1+\tanh (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 11, normalized size = 0.73 \begin {gather*} x-\coth (x)-\log (\sinh (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(31\) vs.
\(2(15)=30\).
time = 0.50, size = 32, normalized size = 2.13
method | result | size |
risch | \(2 x -\frac {2}{{\mathrm e}^{2 x}-1}-\ln \left ({\mathrm e}^{2 x}-1\right )\) | \(24\) |
default | \(-\frac {\tanh \left (\frac {x}{2}\right )}{2}-\frac {1}{2 \tanh \left (\frac {x}{2}\right )}-\ln \left (\tanh \left (\frac {x}{2}\right )\right )+2 \ln \left (\tanh \left (\frac {x}{2}\right )+1\right )\) | \(32\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 29, normalized size = 1.93 \begin {gather*} \frac {2}{e^{\left (-2 \, x\right )} - 1} - \log \left (e^{\left (-x\right )} + 1\right ) - \log \left (e^{\left (-x\right )} - 1\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. 77 vs.
\(2 (15) = 30\).
time = 0.37, size = 77, normalized size = 5.13 \begin {gather*} \frac {2 \, x \cosh \left (x\right )^{2} + 4 \, x \cosh \left (x\right ) \sinh \left (x\right ) + 2 \, x \sinh \left (x\right )^{2} - {\left (\cosh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2} - 1\right )} \log \left (\frac {2 \, \sinh \left (x\right )}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) - 2 \, x - 2}{\cosh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2} - 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 {csch}^{2}{\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 = 29, normalized size = 1.93 \begin {gather*} 2 \, x + \frac {e^{\left (2 \, x\right )} - 3}{e^{\left (2 \, x\right )} - 1} - \log \left ({\left | e^{\left (2 \, x\right )} - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.08, size = 23, normalized size = 1.53 \begin {gather*} 2\,x-\ln \left ({\mathrm {e}}^{2\,x}-1\right )-\frac {2}{{\mathrm {e}}^{2\,x}-1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________