Integrand size = 13, antiderivative size = 40 \[ \int \frac {\text {sech}^3(x)}{i+\text {csch}(x)} \, dx=-\frac {1}{8} i \arctan (\sinh (x))-\frac {\text {sech}^4(x)}{4}-\frac {1}{8} i \text {sech}(x) \tanh (x)+\frac {1}{4} i \text {sech}^3(x) \tanh (x) \]
[Out]
Time = 0.09 (sec) , antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.538, Rules used = {3957, 2914, 2686, 30, 2691, 3853, 3855} \[ \int \frac {\text {sech}^3(x)}{i+\text {csch}(x)} \, dx=-\frac {1}{8} i \arctan (\sinh (x))-\frac {1}{4} \text {sech}^4(x)+\frac {1}{4} i \tanh (x) \text {sech}^3(x)-\frac {1}{8} i \tanh (x) \text {sech}(x) \]
[In]
[Out]
Rule 30
Rule 2686
Rule 2691
Rule 2914
Rule 3853
Rule 3855
Rule 3957
Rubi steps \begin{align*} \text {integral}& = i \int \frac {\text {sech}^2(x) \tanh (x)}{i-\sinh (x)} \, dx \\ & = -\left (i \int \text {sech}^3(x) \tanh ^2(x) \, dx\right )+\int \text {sech}^4(x) \tanh (x) \, dx \\ & = \frac {1}{4} i \text {sech}^3(x) \tanh (x)-\frac {1}{4} i \int \text {sech}^3(x) \, dx-\text {Subst}\left (\int x^3 \, dx,x,\text {sech}(x)\right ) \\ & = -\frac {1}{4} \text {sech}^4(x)-\frac {1}{8} i \text {sech}(x) \tanh (x)+\frac {1}{4} i \text {sech}^3(x) \tanh (x)-\frac {1}{8} i \int \text {sech}(x) \, dx \\ & = -\frac {1}{8} i \arctan (\sinh (x))-\frac {\text {sech}^4(x)}{4}-\frac {1}{8} i \text {sech}(x) \tanh (x)+\frac {1}{4} i \text {sech}^3(x) \tanh (x) \\ \end{align*}
Time = 0.04 (sec) , antiderivative size = 32, normalized size of antiderivative = 0.80 \[ \int \frac {\text {sech}^3(x)}{i+\text {csch}(x)} \, dx=\frac {1}{8} \left (-i \arctan (\sinh (x))+\frac {1}{(-i+\sinh (x))^2}-\frac {i}{i+\sinh (x)}\right ) \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 60 vs. \(2 (29 ) = 58\).
Time = 13.09 (sec) , antiderivative size = 61, normalized size of antiderivative = 1.52
method | result | size |
risch | \(-\frac {i {\mathrm e}^{x} \left (-2 i {\mathrm e}^{3 x}+{\mathrm e}^{4 x}+2 i {\mathrm e}^{x}-10 \,{\mathrm e}^{2 x}+1\right )}{4 \left ({\mathrm e}^{x}-i\right )^{4} \left ({\mathrm e}^{x}+i\right )^{2}}-\frac {\ln \left ({\mathrm e}^{x}-i\right )}{8}+\frac {\ln \left ({\mathrm e}^{x}+i\right )}{8}\) | \(61\) |
default | \(\frac {i}{\left (\tanh \left (\frac {x}{2}\right )-i\right )^{3}}-\frac {i}{2 \left (\tanh \left (\frac {x}{2}\right )-i\right )}-\frac {1}{2 \left (\tanh \left (\frac {x}{2}\right )-i\right )^{4}}+\frac {1}{\left (\tanh \left (\frac {x}{2}\right )-i\right )^{2}}-\frac {\ln \left (\tanh \left (\frac {x}{2}\right )-i\right )}{8}+\frac {i}{4 \tanh \left (\frac {x}{2}\right )+4 i}+\frac {1}{4 \left (\tanh \left (\frac {x}{2}\right )+i\right )^{2}}+\frac {\ln \left (\tanh \left (\frac {x}{2}\right )+i\right )}{8}\) | \(89\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 142 vs. \(2 (26) = 52\).
Time = 0.25 (sec) , antiderivative size = 142, normalized size of antiderivative = 3.55 \[ \int \frac {\text {sech}^3(x)}{i+\text {csch}(x)} \, dx=\frac {{\left (e^{\left (6 \, x\right )} - 2 i \, e^{\left (5 \, x\right )} + e^{\left (4 \, x\right )} - 4 i \, e^{\left (3 \, x\right )} - e^{\left (2 \, x\right )} - 2 i \, e^{x} - 1\right )} \log \left (e^{x} + i\right ) - {\left (e^{\left (6 \, x\right )} - 2 i \, e^{\left (5 \, x\right )} + e^{\left (4 \, x\right )} - 4 i \, e^{\left (3 \, x\right )} - e^{\left (2 \, x\right )} - 2 i \, e^{x} - 1\right )} \log \left (e^{x} - i\right ) - 2 i \, e^{\left (5 \, x\right )} - 4 \, e^{\left (4 \, x\right )} + 20 i \, e^{\left (3 \, x\right )} + 4 \, e^{\left (2 \, x\right )} - 2 i \, e^{x}}{8 \, {\left (e^{\left (6 \, x\right )} - 2 i \, e^{\left (5 \, x\right )} + e^{\left (4 \, x\right )} - 4 i \, e^{\left (3 \, x\right )} - e^{\left (2 \, x\right )} - 2 i \, e^{x} - 1\right )}} \]
[In]
[Out]
\[ \int \frac {\text {sech}^3(x)}{i+\text {csch}(x)} \, dx=\int \frac {\operatorname {sech}^{3}{\left (x \right )}}{\operatorname {csch}{\left (x \right )} + i}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {\text {sech}^3(x)}{i+\text {csch}(x)} \, dx=\text {Exception raised: RuntimeError} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 94 vs. \(2 (26) = 52\).
Time = 0.28 (sec) , antiderivative size = 94, normalized size of antiderivative = 2.35 \[ \int \frac {\text {sech}^3(x)}{i+\text {csch}(x)} \, dx=-\frac {-i \, e^{\left (-x\right )} + i \, e^{x} - 6}{16 \, {\left (-i \, e^{\left (-x\right )} + i \, e^{x} - 2\right )}} + \frac {3 \, {\left (e^{\left (-x\right )} - e^{x}\right )}^{2} + 12 i \, e^{\left (-x\right )} - 12 i \, e^{x} + 4}{32 \, {\left (e^{\left (-x\right )} - e^{x} + 2 i\right )}^{2}} + \frac {1}{16} \, \log \left (-e^{\left (-x\right )} + e^{x} + 2 i\right ) - \frac {1}{16} \, \log \left (-e^{\left (-x\right )} + e^{x} - 2 i\right ) \]
[In]
[Out]
Time = 2.65 (sec) , antiderivative size = 122, normalized size of antiderivative = 3.05 \[ \int \frac {\text {sech}^3(x)}{i+\text {csch}(x)} \, dx=\frac {\ln \left (-\frac {1}{4}+\frac {{\mathrm {e}}^x\,1{}\mathrm {i}}{4}\right )}{8}-\frac {\ln \left (\frac {1}{4}+\frac {{\mathrm {e}}^x\,1{}\mathrm {i}}{4}\right )}{8}-\frac {1{}\mathrm {i}}{{\mathrm {e}}^{2\,x}\,3{}\mathrm {i}-{\mathrm {e}}^{3\,x}+3\,{\mathrm {e}}^x-\mathrm {i}}-\frac {1}{4\,\left ({\mathrm {e}}^{2\,x}-1+{\mathrm {e}}^x\,2{}\mathrm {i}\right )}-\frac {1}{2\,\left ({\mathrm {e}}^{4\,x}-6\,{\mathrm {e}}^{2\,x}+1-{\mathrm {e}}^{3\,x}\,4{}\mathrm {i}+{\mathrm {e}}^x\,4{}\mathrm {i}\right )}-\frac {1}{2\,\left (1-{\mathrm {e}}^{2\,x}+{\mathrm {e}}^x\,2{}\mathrm {i}\right )}-\frac {1{}\mathrm {i}}{4\,\left ({\mathrm {e}}^x+1{}\mathrm {i}\right )} \]
[In]
[Out]