Integrand size = 11, antiderivative size = 24 \[ \int \frac {\text {sech}(x)}{i+\sinh (x)} \, dx=-\frac {1}{2} i \arctan (\sinh (x))-\frac {i}{2 (i+\sinh (x))} \]
[Out]
Time = 0.02 (sec) , antiderivative size = 24, 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.273, Rules used = {2746, 46, 209} \[ \int \frac {\text {sech}(x)}{i+\sinh (x)} \, dx=-\frac {1}{2} i \arctan (\sinh (x))-\frac {i}{2 (\sinh (x)+i)} \]
[In]
[Out]
Rule 46
Rule 209
Rule 2746
Rubi steps \begin{align*} \text {integral}& = -\text {Subst}\left (\int \frac {1}{(i-x) (i+x)^2} \, dx,x,\sinh (x)\right ) \\ & = -\text {Subst}\left (\int \left (-\frac {i}{2 (i+x)^2}+\frac {i}{2 \left (1+x^2\right )}\right ) \, dx,x,\sinh (x)\right ) \\ & = -\frac {i}{2 (i+\sinh (x))}-\frac {1}{2} i \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sinh (x)\right ) \\ & = -\frac {1}{2} i \arctan (\sinh (x))-\frac {i}{2 (i+\sinh (x))} \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.75 \[ \int \frac {\text {sech}(x)}{i+\sinh (x)} \, dx=-\frac {1}{2} i \left (\arctan (\sinh (x))+\frac {1}{i+\sinh (x)}\right ) \]
[In]
[Out]
Time = 8.52 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.25
method | result | size |
risch | \(-\frac {i {\mathrm e}^{x}}{\left ({\mathrm e}^{x}+i\right )^{2}}-\frac {\ln \left ({\mathrm e}^{x}-i\right )}{2}+\frac {\ln \left ({\mathrm e}^{x}+i\right )}{2}\) | \(30\) |
default | \(\frac {i}{\tanh \left (\frac {x}{2}\right )+i}+\frac {1}{\left (\tanh \left (\frac {x}{2}\right )+i\right )^{2}}+\frac {\ln \left (\tanh \left (\frac {x}{2}\right )+i\right )}{2}-\frac {\ln \left (-i+\tanh \left (\frac {x}{2}\right )\right )}{2}\) | \(43\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 52 vs. \(2 (14) = 28\).
Time = 0.32 (sec) , antiderivative size = 52, normalized size of antiderivative = 2.17 \[ \int \frac {\text {sech}(x)}{i+\sinh (x)} \, dx=\frac {{\left (e^{\left (2 \, x\right )} + 2 i \, e^{x} - 1\right )} \log \left (e^{x} + i\right ) - {\left (e^{\left (2 \, x\right )} + 2 i \, e^{x} - 1\right )} \log \left (e^{x} - i\right ) - 2 i \, e^{x}}{2 \, {\left (e^{\left (2 \, x\right )} + 2 i \, e^{x} - 1\right )}} \]
[In]
[Out]
\[ \int \frac {\text {sech}(x)}{i+\sinh (x)} \, dx=\int \frac {\operatorname {sech}{\left (x \right )}}{\sinh {\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. 41 vs. \(2 (14) = 28\).
Time = 0.19 (sec) , antiderivative size = 41, normalized size of antiderivative = 1.71 \[ \int \frac {\text {sech}(x)}{i+\sinh (x)} \, dx=\frac {2 i \, e^{\left (-x\right )}}{-4 i \, e^{\left (-x\right )} + 2 \, e^{\left (-2 \, x\right )} - 2} - \frac {1}{2} \, \log \left (e^{\left (-x\right )} + i\right ) + \frac {1}{2} \, \log \left (e^{\left (-x\right )} - i\right ) \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 51 vs. \(2 (14) = 28\).
Time = 0.27 (sec) , antiderivative size = 51, normalized size of antiderivative = 2.12 \[ \int \frac {\text {sech}(x)}{i+\sinh (x)} \, dx=-\frac {e^{\left (-x\right )} - e^{x} - 6 i}{4 \, {\left (e^{\left (-x\right )} - e^{x} - 2 i\right )}} + \frac {1}{4} \, \log \left (-e^{\left (-x\right )} + e^{x} + 2 i\right ) - \frac {1}{4} \, \log \left (-e^{\left (-x\right )} + e^{x} - 2 i\right ) \]
[In]
[Out]
Time = 0.21 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.92 \[ \int \frac {\text {sech}(x)}{i+\sinh (x)} \, dx=\frac {\ln \left (-1+{\mathrm {e}}^x\,1{}\mathrm {i}\right )}{2}-\frac {\ln \left (1+{\mathrm {e}}^x\,1{}\mathrm {i}\right )}{2}-\frac {1}{{\mathrm {e}}^{2\,x}-1+{\mathrm {e}}^x\,2{}\mathrm {i}}-\frac {1{}\mathrm {i}}{{\mathrm {e}}^x+1{}\mathrm {i}} \]
[In]
[Out]