Integrand size = 11, antiderivative size = 26 \[ \int \frac {\tanh (x)}{i+\sinh (x)} \, dx=\frac {1}{2} \arctan (\sinh (x))+\frac {1}{2} i \text {sech}^2(x)-\frac {1}{2} \text {sech}(x) \tanh (x) \]
[Out]
Time = 0.04 (sec) , antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.455, Rules used = {2785, 2686, 30, 2691, 3855} \[ \int \frac {\tanh (x)}{i+\sinh (x)} \, dx=\frac {1}{2} \arctan (\sinh (x))+\frac {1}{2} i \text {sech}^2(x)-\frac {1}{2} \tanh (x) \text {sech}(x) \]
[In]
[Out]
Rule 30
Rule 2686
Rule 2691
Rule 2785
Rule 3855
Rubi steps \begin{align*} \text {integral}& = -\left (i \int \text {sech}^2(x) \tanh (x) \, dx\right )+\int \text {sech}(x) \tanh ^2(x) \, dx \\ & = -\frac {1}{2} \text {sech}(x) \tanh (x)+i \text {Subst}(\int x \, dx,x,\text {sech}(x))+\frac {1}{2} \int \text {sech}(x) \, dx \\ & = \frac {1}{2} \arctan (\sinh (x))+\frac {1}{2} i \text {sech}^2(x)-\frac {1}{2} \text {sech}(x) \tanh (x) \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.77 \[ \int \frac {\tanh (x)}{i+\sinh (x)} \, dx=\frac {1}{2} \arctan (\sinh (x))-\frac {1}{2 (i+\sinh (x))} \]
[In]
[Out]
Time = 4.03 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.19
method | result | size |
risch | \(-\frac {{\mathrm e}^{x}}{\left ({\mathrm e}^{x}+i\right )^{2}}+\frac {i \ln \left ({\mathrm e}^{x}+i\right )}{2}-\frac {i \ln \left ({\mathrm e}^{x}-i\right )}{2}\) | \(31\) |
default | \(-\frac {i \ln \left (-i+\tanh \left (\frac {x}{2}\right )\right )}{2}-\frac {i}{\left (\tanh \left (\frac {x}{2}\right )+i\right )^{2}}+\frac {i \ln \left (\tanh \left (\frac {x}{2}\right )+i\right )}{2}+\frac {1}{\tanh \left (\frac {x}{2}\right )+i}\) | \(45\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 55 vs. \(2 (18) = 36\).
Time = 0.29 (sec) , antiderivative size = 55, normalized size of antiderivative = 2.12 \[ \int \frac {\tanh (x)}{i+\sinh (x)} \, dx=\frac {{\left (i \, e^{\left (2 \, x\right )} - 2 \, e^{x} - i\right )} \log \left (e^{x} + i\right ) + {\left (-i \, e^{\left (2 \, x\right )} + 2 \, e^{x} + i\right )} \log \left (e^{x} - i\right ) - 2 \, e^{x}}{2 \, {\left (e^{\left (2 \, x\right )} + 2 i \, e^{x} - 1\right )}} \]
[In]
[Out]
Time = 0.07 (sec) , antiderivative size = 32, normalized size of antiderivative = 1.23 \[ \int \frac {\tanh (x)}{i+\sinh (x)} \, dx=\operatorname {RootSum} {\left (4 z^{2} + 1, \left ( i \mapsto i \log {\left (2 i + e^{x} \right )} \right )\right )} - \frac {e^{x}}{e^{2 x} + 2 i e^{x} - 1} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 42 vs. \(2 (18) = 36\).
Time = 0.23 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.62 \[ \int \frac {\tanh (x)}{i+\sinh (x)} \, dx=\frac {e^{\left (-x\right )}}{-2 i \, e^{\left (-x\right )} + e^{\left (-2 \, x\right )} - 1} + \frac {1}{2} i \, \log \left (i \, e^{\left (-x\right )} + 1\right ) - \frac {1}{2} i \, \log \left (i \, e^{\left (-x\right )} - 1\right ) \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 53 vs. \(2 (18) = 36\).
Time = 0.27 (sec) , antiderivative size = 53, normalized size of antiderivative = 2.04 \[ \int \frac {\tanh (x)}{i+\sinh (x)} \, dx=\frac {-i \, e^{\left (-x\right )} + i \, e^{x} + 2}{4 \, {\left (e^{\left (-x\right )} - e^{x} - 2 i\right )}} + \frac {1}{4} i \, \log \left (-e^{\left (-x\right )} + e^{x} + 2 i\right ) - \frac {1}{4} i \, \log \left (-e^{\left (-x\right )} + e^{x} - 2 i\right ) \]
[In]
[Out]
Time = 0.18 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.12 \[ \int \frac {\tanh (x)}{i+\sinh (x)} \, dx=\mathrm {atan}\left ({\mathrm {e}}^x\right )+\frac {1{}\mathrm {i}}{{\mathrm {e}}^{2\,x}-1+{\mathrm {e}}^x\,2{}\mathrm {i}}-\frac {1}{{\mathrm {e}}^x+1{}\mathrm {i}} \]
[In]
[Out]