Integrand size = 13, antiderivative size = 42 \[ \int \frac {\text {csch}^2(x)}{(i+\sinh (x))^2} \, dx=2 i \text {arctanh}(\cosh (x))+\frac {10 \coth (x)}{3}+\frac {\coth (x)}{3 (i+\sinh (x))^2}-\frac {2 i \coth (x)}{i+\sinh (x)} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.462, Rules used = {2845, 3057, 2827, 3852, 8, 3855} \[ \int \frac {\text {csch}^2(x)}{(i+\sinh (x))^2} \, dx=2 i \text {arctanh}(\cosh (x))+\frac {10 \coth (x)}{3}-\frac {2 i \coth (x)}{\sinh (x)+i}+\frac {\coth (x)}{3 (\sinh (x)+i)^2} \]
[In]
[Out]
Rule 8
Rule 2827
Rule 2845
Rule 3057
Rule 3852
Rule 3855
Rubi steps \begin{align*} \text {integral}& = \frac {\coth (x)}{3 (i+\sinh (x))^2}-\frac {1}{3} \int \frac {\text {csch}^2(x) (4 i-2 \sinh (x))}{i+\sinh (x)} \, dx \\ & = \frac {\coth (x)}{3 (i+\sinh (x))^2}-\frac {2 i \coth (x)}{i+\sinh (x)}+\frac {1}{3} \int \text {csch}^2(x) (-10-6 i \sinh (x)) \, dx \\ & = \frac {\coth (x)}{3 (i+\sinh (x))^2}-\frac {2 i \coth (x)}{i+\sinh (x)}-2 i \int \text {csch}(x) \, dx-\frac {10}{3} \int \text {csch}^2(x) \, dx \\ & = 2 i \text {arctanh}(\cosh (x))+\frac {\coth (x)}{3 (i+\sinh (x))^2}-\frac {2 i \coth (x)}{i+\sinh (x)}+\frac {10}{3} i \text {Subst}(\int 1 \, dx,x,-i \coth (x)) \\ & = 2 i \text {arctanh}(\cosh (x))+\frac {10 \coth (x)}{3}+\frac {\coth (x)}{3 (i+\sinh (x))^2}-\frac {2 i \coth (x)}{i+\sinh (x)} \\ \end{align*}
Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(88\) vs. \(2(42)=84\).
Time = 1.27 (sec) , antiderivative size = 88, normalized size of antiderivative = 2.10 \[ \int \frac {\text {csch}^2(x)}{(i+\sinh (x))^2} \, dx=\frac {1}{6} \left (3 \coth \left (\frac {x}{2}\right )+12 i \log \left (\cosh \left (\frac {x}{2}\right )\right )-12 i \log \left (\sinh \left (\frac {x}{2}\right )\right )+\frac {2}{i+\sinh (x)}-\frac {4 \sinh \left (\frac {x}{2}\right ) (8 i+7 \sinh (x))}{\left (i \cosh \left (\frac {x}{2}\right )+\sinh \left (\frac {x}{2}\right )\right )^3}+3 \tanh \left (\frac {x}{2}\right )\right ) \]
[In]
[Out]
Time = 3.17 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.38
method | result | size |
default | \(\frac {\tanh \left (\frac {x}{2}\right )}{2}-\frac {2 i}{\left (\tanh \left (\frac {x}{2}\right )+i\right )^{2}}-\frac {4}{3 \left (\tanh \left (\frac {x}{2}\right )+i\right )^{3}}+\frac {6}{\tanh \left (\frac {x}{2}\right )+i}-2 i \ln \left (\tanh \left (\frac {x}{2}\right )\right )+\frac {1}{2 \tanh \left (\frac {x}{2}\right )}\) | \(58\) |
risch | \(-\frac {4 i \left (9 i {\mathrm e}^{3 x}+3 \,{\mathrm e}^{4 x}-12 i {\mathrm e}^{x}-11 \,{\mathrm e}^{2 x}+5\right )}{3 \left ({\mathrm e}^{2 x}-1\right ) \left ({\mathrm e}^{x}+i\right )^{3}}+2 i \ln \left ({\mathrm e}^{x}+1\right )-2 i \ln \left ({\mathrm e}^{x}-1\right )\) | \(62\) |
parallelrisch | \(\frac {\left (-12 i \tanh \left (\frac {x}{2}\right )^{3}+36 \tanh \left (\frac {x}{2}\right )^{2}+36 i \tanh \left (\frac {x}{2}\right )-12\right ) \ln \left (\tanh \left (\frac {x}{2}\right )\right )+19 i \tanh \left (\frac {x}{2}\right )^{3}+3 \tanh \left (\frac {x}{2}\right )^{4}-3 i \coth \left (\frac {x}{2}\right )+36 i \tanh \left (\frac {x}{2}\right )-31}{6 \tanh \left (\frac {x}{2}\right )^{3}+18 i \tanh \left (\frac {x}{2}\right )^{2}-18 \tanh \left (\frac {x}{2}\right )-6 i}\) | \(95\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 130 vs. \(2 (30) = 60\).
Time = 0.25 (sec) , antiderivative size = 130, normalized size of antiderivative = 3.10 \[ \int \frac {\text {csch}^2(x)}{(i+\sinh (x))^2} \, dx=-\frac {2 \, {\left (3 \, {\left (-i \, e^{\left (5 \, x\right )} + 3 \, e^{\left (4 \, x\right )} + 4 i \, e^{\left (3 \, x\right )} - 4 \, e^{\left (2 \, x\right )} - 3 i \, e^{x} + 1\right )} \log \left (e^{x} + 1\right ) + 3 \, {\left (i \, e^{\left (5 \, x\right )} - 3 \, e^{\left (4 \, x\right )} - 4 i \, e^{\left (3 \, x\right )} + 4 \, e^{\left (2 \, x\right )} + 3 i \, e^{x} - 1\right )} \log \left (e^{x} - 1\right ) + 6 i \, e^{\left (4 \, x\right )} - 18 \, e^{\left (3 \, x\right )} - 22 i \, e^{\left (2 \, x\right )} + 24 \, e^{x} + 10 i\right )}}{3 \, {\left (e^{\left (5 \, x\right )} + 3 i \, e^{\left (4 \, x\right )} - 4 \, e^{\left (3 \, x\right )} - 4 i \, e^{\left (2 \, x\right )} + 3 \, e^{x} + i\right )}} \]
[In]
[Out]
\[ \int \frac {\text {csch}^2(x)}{(i+\sinh (x))^2} \, dx=\int \frac {\operatorname {csch}^{2}{\left (x \right )}}{\left (\sinh {\left (x \right )} + i\right )^{2}}\, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 79 vs. \(2 (30) = 60\).
Time = 0.19 (sec) , antiderivative size = 79, normalized size of antiderivative = 1.88 \[ \int \frac {\text {csch}^2(x)}{(i+\sinh (x))^2} \, dx=\frac {4 \, {\left (12 \, e^{\left (-x\right )} + 11 i \, e^{\left (-2 \, x\right )} - 9 \, e^{\left (-3 \, x\right )} - 3 i \, e^{\left (-4 \, x\right )} - 5 i\right )}}{3 \, {\left (3 \, e^{\left (-x\right )} + 4 i \, e^{\left (-2 \, x\right )} - 4 \, e^{\left (-3 \, x\right )} - 3 i \, e^{\left (-4 \, x\right )} + e^{\left (-5 \, x\right )} - i\right )}} + 2 i \, \log \left (e^{\left (-x\right )} + 1\right ) - 2 i \, \log \left (e^{\left (-x\right )} - 1\right ) \]
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.10 \[ \int \frac {\text {csch}^2(x)}{(i+\sinh (x))^2} \, dx=\frac {2}{e^{\left (2 \, x\right )} - 1} - \frac {2 \, {\left (6 i \, e^{\left (2 \, x\right )} - 15 \, e^{x} - 7 i\right )}}{3 \, {\left (e^{x} + i\right )}^{3}} + 2 i \, \log \left (e^{x} + 1\right ) - 2 i \, \log \left ({\left | e^{x} - 1 \right |}\right ) \]
[In]
[Out]
Time = 1.48 (sec) , antiderivative size = 85, normalized size of antiderivative = 2.02 \[ \int \frac {\text {csch}^2(x)}{(i+\sinh (x))^2} \, dx=\frac {2}{{\mathrm {e}}^{2\,x}-1+{\mathrm {e}}^x\,2{}\mathrm {i}}+\frac {2}{{\mathrm {e}}^{2\,x}-1}-\ln \left ({\mathrm {e}}^x\,4{}\mathrm {i}-4{}\mathrm {i}\right )\,2{}\mathrm {i}+\ln \left ({\mathrm {e}}^x\,4{}\mathrm {i}+4{}\mathrm {i}\right )\,2{}\mathrm {i}-\frac {4{}\mathrm {i}}{{\mathrm {e}}^x+1{}\mathrm {i}}-\frac {4{}\mathrm {i}}{3\,\left ({\mathrm {e}}^{2\,x}\,3{}\mathrm {i}+{\mathrm {e}}^{3\,x}-3\,{\mathrm {e}}^x-\mathrm {i}\right )} \]
[In]
[Out]