Integrand size = 13, antiderivative size = 36 \[ \int \frac {\tanh ^2(x)}{i+\text {csch}(x)} \, dx=-i x+\frac {1}{3} (3 i-2 \text {csch}(x)) \tanh (x)+\frac {1}{3} (i-\text {csch}(x)) \tanh ^3(x) \]
[Out]
Time = 0.05 (sec) , antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {3973, 3967, 8} \[ \int \frac {\tanh ^2(x)}{i+\text {csch}(x)} \, dx=-i x+\frac {1}{3} \tanh ^3(x) (-\text {csch}(x)+i)+\frac {1}{3} \tanh (x) (-2 \text {csch}(x)+3 i) \]
[In]
[Out]
Rule 8
Rule 3967
Rule 3973
Rubi steps \begin{align*} \text {integral}& = \int (-i+\text {csch}(x)) \tanh ^4(x) \, dx \\ & = \frac {1}{3} (i-\text {csch}(x)) \tanh ^3(x)-\frac {1}{3} \int (3 i-2 \text {csch}(x)) \tanh ^2(x) \, dx \\ & = \frac {1}{3} (3 i-2 \text {csch}(x)) \tanh (x)+\frac {1}{3} (i-\text {csch}(x)) \tanh ^3(x)+\frac {1}{3} \int -3 i \, dx \\ & = -i x+\frac {1}{3} (3 i-2 \text {csch}(x)) \tanh (x)+\frac {1}{3} (i-\text {csch}(x)) \tanh ^3(x) \\ \end{align*}
Time = 0.10 (sec) , antiderivative size = 71, normalized size of antiderivative = 1.97 \[ \int \frac {\tanh ^2(x)}{i+\text {csch}(x)} \, dx=\frac {-4 \cosh (2 x)+2 i \sinh (x)+(5 i+6 x) \cosh (x) (-i+\sinh (x))}{6 \left (\cosh \left (\frac {x}{2}\right )-i \sinh \left (\frac {x}{2}\right )\right ) \left (\cosh \left (\frac {x}{2}\right )+i \sinh \left (\frac {x}{2}\right )\right )^3} \]
[In]
[Out]
Time = 1.22 (sec) , antiderivative size = 35, normalized size of antiderivative = 0.97
method | result | size |
risch | \(-i x -\frac {2 \left (-4 i+5 \,{\mathrm e}^{x}+3 \,{\mathrm e}^{3 x}\right )}{3 \left ({\mathrm e}^{x}+i\right ) \left ({\mathrm e}^{x}-i\right )^{3}}\) | \(35\) |
default | \(\frac {3 i}{2 \left (\tanh \left (\frac {x}{2}\right )-i\right )}+\frac {2 i}{3 \left (\tanh \left (\frac {x}{2}\right )-i\right )^{3}}+\frac {1}{\left (\tanh \left (\frac {x}{2}\right )-i\right )^{2}}-i \ln \left (\tanh \left (\frac {x}{2}\right )+1\right )+\frac {i}{2 \tanh \left (\frac {x}{2}\right )+2 i}+i \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )\) | \(67\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 50 vs. \(2 (24) = 48\).
Time = 0.26 (sec) , antiderivative size = 50, normalized size of antiderivative = 1.39 \[ \int \frac {\tanh ^2(x)}{i+\text {csch}(x)} \, dx=\frac {-3 i \, x e^{\left (4 \, x\right )} - 6 \, {\left (x + 1\right )} e^{\left (3 \, x\right )} - 2 \, {\left (3 \, x + 5\right )} e^{x} + 3 i \, x + 8 i}{3 \, {\left (e^{\left (4 \, x\right )} - 2 i \, e^{\left (3 \, x\right )} - 2 i \, e^{x} - 1\right )}} \]
[In]
[Out]
\[ \int \frac {\tanh ^2(x)}{i+\text {csch}(x)} \, dx=\int \frac {\tanh ^{2}{\left (x \right )}}{\operatorname {csch}{\left (x \right )} + i}\, dx \]
[In]
[Out]
none
Time = 0.20 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.17 \[ \int \frac {\tanh ^2(x)}{i+\text {csch}(x)} \, dx=-i \, x - \frac {2 \, {\left (5 \, e^{\left (-x\right )} + 3 \, e^{\left (-3 \, x\right )} + 4 i\right )}}{6 i \, e^{\left (-x\right )} + 6 i \, e^{\left (-3 \, x\right )} + 3 \, e^{\left (-4 \, x\right )} - 3} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 34, normalized size of antiderivative = 0.94 \[ \int \frac {\tanh ^2(x)}{i+\text {csch}(x)} \, dx=-i \, x + \frac {i}{2 \, {\left (i \, e^{x} - 1\right )}} - \frac {15 \, e^{\left (2 \, x\right )} - 24 i \, e^{x} - 13}{6 \, {\left (e^{x} - i\right )}^{3}} \]
[In]
[Out]
Time = 2.37 (sec) , antiderivative size = 85, normalized size of antiderivative = 2.36 \[ \int \frac {\tanh ^2(x)}{i+\text {csch}(x)} \, dx=-x\,1{}\mathrm {i}+\frac {\frac {5\,{\mathrm {e}}^x}{6}-\frac {1}{2}{}\mathrm {i}}{1-{\mathrm {e}}^{2\,x}+{\mathrm {e}}^x\,2{}\mathrm {i}}-\frac {5}{6\,\left ({\mathrm {e}}^x-\mathrm {i}\right )}+\frac {1}{2\,\left ({\mathrm {e}}^x+1{}\mathrm {i}\right )}-\frac {\frac {5}{6}-\frac {5\,{\mathrm {e}}^{2\,x}}{6}+{\mathrm {e}}^x\,1{}\mathrm {i}}{{\mathrm {e}}^{2\,x}\,3{}\mathrm {i}-{\mathrm {e}}^{3\,x}+3\,{\mathrm {e}}^x-\mathrm {i}} \]
[In]
[Out]