Optimal. Leaf size=26 \[ -\coth (x)+i \tanh ^{-1}(\cosh (x))-\frac{i \coth (x)}{\text{csch}(x)+i} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0836923, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.308, Rules used = {3790, 3789, 3770, 3794} \[ -\coth (x)+i \tanh ^{-1}(\cosh (x))-\frac{i \coth (x)}{\text{csch}(x)+i} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3790
Rule 3789
Rule 3770
Rule 3794
Rubi steps
\begin{align*} \int \frac{\text{csch}^3(x)}{i+\text{csch}(x)} \, dx &=-\coth (x)-i \int \frac{\text{csch}^2(x)}{i+\text{csch}(x)} \, dx\\ &=-\coth (x)-i \int \text{csch}(x) \, dx-\int \frac{\text{csch}(x)}{i+\text{csch}(x)} \, dx\\ &=i \tanh ^{-1}(\cosh (x))-\coth (x)-\frac{i \coth (x)}{i+\text{csch}(x)}\\ \end{align*}
Mathematica [B] time = 0.108823, size = 70, normalized size = 2.69 \[ -\frac{1}{2} \tanh \left (\frac{x}{2}\right )-\frac{1}{2} \coth \left (\frac{x}{2}\right )-i \log \left (\sinh \left (\frac{x}{2}\right )\right )+i \log \left (\cosh \left (\frac{x}{2}\right )\right )-\frac{2 \sinh \left (\frac{x}{2}\right )}{\cosh \left (\frac{x}{2}\right )+i \sinh \left (\frac{x}{2}\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.018, size = 35, normalized size = 1.4 \begin{align*} -{\frac{1}{2}\tanh \left ({\frac{x}{2}} \right ) }-2\, \left ( \tanh \left ( x/2 \right ) -i \right ) ^{-1}-{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{-1}}-i\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.02521, size = 74, normalized size = 2.85 \begin{align*} -\frac{8 \,{\left (e^{\left (-x\right )} - i \, e^{\left (-2 \, x\right )} + 2 i\right )}}{4 \, e^{\left (-x\right )} - 4 i \, e^{\left (-2 \, x\right )} - 4 \, e^{\left (-3 \, x\right )} + 4 i} + i \, \log \left (e^{\left (-x\right )} + 1\right ) - i \, \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 = 1.64018, size = 216, normalized size = 8.31 \begin{align*} \frac{{\left (i \, e^{\left (3 \, x\right )} + e^{\left (2 \, x\right )} - i \, e^{x} - 1\right )} \log \left (e^{x} + 1\right ) +{\left (-i \, e^{\left (3 \, x\right )} - e^{\left (2 \, x\right )} + i \, e^{x} + 1\right )} \log \left (e^{x} - 1\right ) - 2 i \, e^{\left (2 \, x\right )} - 2 \, e^{x} + 4 i}{e^{\left (3 \, x\right )} - i \, e^{\left (2 \, x\right )} - e^{x} + i} \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 )}}{\operatorname{csch}{\left (x \right )} + i}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.21046, size = 62, normalized size = 2.38 \begin{align*} \frac{2 \,{\left (e^{\left (2 \, x\right )} - i \, e^{x} - 2\right )}}{i \, e^{\left (3 \, x\right )} + e^{\left (2 \, x\right )} - i \, e^{x} - 1} + i \, \log \left (e^{x} + 1\right ) - i \, \log \left ({\left | e^{x} - 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]