Optimal. Leaf size=18 \[ \text{csch}(x)-\frac{1}{2} \tanh ^{-1}(\cosh (x))-\frac{1}{2} \coth (x) \text{csch}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.160599, antiderivative size = 18, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 7, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.636, Rules used = {3518, 3108, 3107, 2606, 8, 2611, 3770} \[ \text{csch}(x)-\frac{1}{2} \tanh ^{-1}(\cosh (x))-\frac{1}{2} \coth (x) \text{csch}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3518
Rule 3108
Rule 3107
Rule 2606
Rule 8
Rule 2611
Rule 3770
Rubi steps
\begin{align*} \int \frac{\text{csch}^3(x)}{1+\tanh (x)} \, dx &=\int \frac{\coth (x) \text{csch}^2(x)}{\cosh (x)+\sinh (x)} \, dx\\ &=i \int \coth (x) \text{csch}^2(x) (-i \cosh (x)+i \sinh (x)) \, dx\\ &=\int \left (-\coth (x) \text{csch}(x)+\coth ^2(x) \text{csch}(x)\right ) \, dx\\ &=-\int \coth (x) \text{csch}(x) \, dx+\int \coth ^2(x) \text{csch}(x) \, dx\\ &=-\frac{1}{2} \coth (x) \text{csch}(x)+i \operatorname{Subst}(\int 1 \, dx,x,-i \text{csch}(x))+\frac{1}{2} \int \text{csch}(x) \, dx\\ &=-\frac{1}{2} \tanh ^{-1}(\cosh (x))+\text{csch}(x)-\frac{1}{2} \coth (x) \text{csch}(x)\\ \end{align*}
Mathematica [A] time = 0.0787912, size = 20, normalized size = 1.11 \[ \frac{1}{2} \left (\log \left (\tanh \left (\frac{x}{2}\right )\right )-(\coth (x)-2) \text{csch}(x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.027, size = 39, normalized size = 2.2 \begin{align*}{\frac{1}{8} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}}-{\frac{1}{2}\tanh \left ({\frac{x}{2}} \right ) }-{\frac{1}{8} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{-2}}+{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{-1}}+{\frac{1}{2}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.11479, size = 65, normalized size = 3.61 \begin{align*} -\frac{e^{\left (-x\right )} - 3 \, e^{\left (-3 \, x\right )}}{2 \, e^{\left (-2 \, x\right )} - e^{\left (-4 \, x\right )} - 1} - \frac{1}{2} \, \log \left (e^{\left (-x\right )} + 1\right ) + \frac{1}{2} \, \log \left (e^{\left (-x\right )} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.64399, size = 733, normalized size = 40.72 \begin{align*} \frac{2 \, \cosh \left (x\right )^{3} + 6 \, \cosh \left (x\right ) \sinh \left (x\right )^{2} + 2 \, \sinh \left (x\right )^{3} -{\left (\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} + 2 \,{\left (3 \, \cosh \left (x\right )^{2} - 1\right )} \sinh \left (x\right )^{2} - 2 \, \cosh \left (x\right )^{2} + 4 \,{\left (\cosh \left (x\right )^{3} - \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) +{\left (\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} + 2 \,{\left (3 \, \cosh \left (x\right )^{2} - 1\right )} \sinh \left (x\right )^{2} - 2 \, \cosh \left (x\right )^{2} + 4 \,{\left (\cosh \left (x\right )^{3} - \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) - 1\right ) + 6 \,{\left (\cosh \left (x\right )^{2} - 1\right )} \sinh \left (x\right ) - 6 \, \cosh \left (x\right )}{2 \,{\left (\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} + 2 \,{\left (3 \, \cosh \left (x\right )^{2} - 1\right )} \sinh \left (x\right )^{2} - 2 \, \cosh \left (x\right )^{2} + 4 \,{\left (\cosh \left (x\right )^{3} - \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{csch}^{3}{\left (x \right )}}{\tanh{\left (x \right )} + 1}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.21324, size = 46, normalized size = 2.56 \begin{align*} \frac{e^{\left (3 \, x\right )} - 3 \, e^{x}}{{\left (e^{\left (2 \, x\right )} - 1\right )}^{2}} - \frac{1}{2} \, \log \left (e^{x} + 1\right ) + \frac{1}{2} \, \log \left ({\left | e^{x} - 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]