Integrand size = 13, antiderivative size = 11 \[ \int \frac {\coth ^2(x)}{i+\text {csch}(x)} \, dx=-i x-\text {arctanh}(\cosh (x)) \]
[Out]
Time = 0.03 (sec) , antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3973, 3855} \[ \int \frac {\coth ^2(x)}{i+\text {csch}(x)} \, dx=-\text {arctanh}(\cosh (x))-i x \]
[In]
[Out]
Rule 3855
Rule 3973
Rubi steps \begin{align*} \text {integral}& = \int (-i+\text {csch}(x)) \, dx \\ & = -i x+\int \text {csch}(x) \, dx \\ & = -i x-\text {arctanh}(\cosh (x)) \\ \end{align*}
Time = 0.07 (sec) , antiderivative size = 22, normalized size of antiderivative = 2.00 \[ \int \frac {\coth ^2(x)}{i+\text {csch}(x)} \, dx=-i x-\log \left (\cosh \left (\frac {x}{2}\right )\right )+\log \left (\sinh \left (\frac {x}{2}\right )\right ) \]
[In]
[Out]
Time = 1.62 (sec) , antiderivative size = 18, normalized size of antiderivative = 1.64
method | result | size |
risch | \(-i x +\ln \left ({\mathrm e}^{x}-1\right )-\ln \left ({\mathrm e}^{x}+1\right )\) | \(18\) |
default | \(\ln \left (\tanh \left (\frac {x}{2}\right )\right )-i \ln \left (\tanh \left (\frac {x}{2}\right )+1\right )+i \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )\) | \(27\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.45 \[ \int \frac {\coth ^2(x)}{i+\text {csch}(x)} \, dx=-i \, x - \log \left (e^{x} + 1\right ) + \log \left (e^{x} - 1\right ) \]
[In]
[Out]
\[ \int \frac {\coth ^2(x)}{i+\text {csch}(x)} \, dx=\int \frac {\coth ^{2}{\left (x \right )}}{\operatorname {csch}{\left (x \right )} + i}\, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 20 vs. \(2 (9) = 18\).
Time = 0.19 (sec) , antiderivative size = 20, normalized size of antiderivative = 1.82 \[ \int \frac {\coth ^2(x)}{i+\text {csch}(x)} \, dx=-i \, x - \log \left (e^{\left (-x\right )} + 1\right ) + \log \left (e^{\left (-x\right )} - 1\right ) \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.55 \[ \int \frac {\coth ^2(x)}{i+\text {csch}(x)} \, dx=-i \, x - \log \left (e^{x} + 1\right ) + \log \left ({\left | e^{x} - 1 \right |}\right ) \]
[In]
[Out]
Time = 0.16 (sec) , antiderivative size = 21, normalized size of antiderivative = 1.91 \[ \int \frac {\coth ^2(x)}{i+\text {csch}(x)} \, dx=\ln \left (2-2\,{\mathrm {e}}^x\right )-\ln \left (-2\,{\mathrm {e}}^x-2\right )-x\,1{}\mathrm {i} \]
[In]
[Out]