Integrand size = 13, antiderivative size = 22 \[ \int \frac {\sinh ^2(x)}{i+\sinh (x)} \, dx=-i x+\cosh (x)+\frac {i \cosh (x)}{i+\sinh (x)} \]
[Out]
Time = 0.04 (sec) , antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {2825, 2814, 2727} \[ \int \frac {\sinh ^2(x)}{i+\sinh (x)} \, dx=-i x+\cosh (x)+\frac {i \cosh (x)}{\sinh (x)+i} \]
[In]
[Out]
Rule 2727
Rule 2814
Rule 2825
Rubi steps \begin{align*} \text {integral}& = \cosh (x)-i \int \frac {\sinh (x)}{i+\sinh (x)} \, dx \\ & = -i x+\cosh (x)-\int \frac {1}{i+\sinh (x)} \, dx \\ & = -i x+\cosh (x)+\frac {i \cosh (x)}{i+\sinh (x)} \\ \end{align*}
Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(79\) vs. \(2(22)=44\).
Time = 0.09 (sec) , antiderivative size = 79, normalized size of antiderivative = 3.59 \[ \int \frac {\sinh ^2(x)}{i+\sinh (x)} \, dx=\frac {\cosh (x) \left (2 i+\frac {2 i \arcsin \left (\frac {\sqrt {1-i \sinh (x)}}{\sqrt {2}}\right )}{\sqrt {\cosh ^2(x)}}+\sinh (x)+\frac {2 \arcsin \left (\frac {\sqrt {1-i \sinh (x)}}{\sqrt {2}}\right ) \sinh (x)}{\sqrt {\cosh ^2(x)}}\right )}{i+\sinh (x)} \]
[In]
[Out]
Time = 1.78 (sec) , antiderivative size = 25, normalized size of antiderivative = 1.14
method | result | size |
risch | \(-i x +\frac {{\mathrm e}^{x}}{2}+\frac {{\mathrm e}^{-x}}{2}+\frac {2}{{\mathrm e}^{x}+i}\) | \(25\) |
parallelrisch | \(\frac {\cosh \left (2 x \right )+i \sinh \left (2 x \right )+\left (6 i+2 x \right ) \sinh \left (x \right )-2 i \cosh \left (x \right ) x +2 i x -1}{2 i \sinh \left (x \right )+2 \cosh \left (x \right )-2}\) | \(47\) |
default | \(\frac {2 i}{\tanh \left (\frac {x}{2}\right )+i}+i \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )-\frac {1}{\tanh \left (\frac {x}{2}\right )-1}-i \ln \left (\tanh \left (\frac {x}{2}\right )+1\right )+\frac {1}{\tanh \left (\frac {x}{2}\right )+1}\) | \(52\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 37 vs. \(2 (16) = 32\).
Time = 0.25 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.68 \[ \int \frac {\sinh ^2(x)}{i+\sinh (x)} \, dx=\frac {{\left (-2 i \, x + i\right )} e^{\left (2 \, x\right )} + {\left (2 \, x + 5\right )} e^{x} + e^{\left (3 \, x\right )} + i}{2 \, {\left (e^{\left (2 \, x\right )} + i \, e^{x}\right )}} \]
[In]
[Out]
Time = 0.06 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.91 \[ \int \frac {\sinh ^2(x)}{i+\sinh (x)} \, dx=- i x + \frac {e^{x}}{2} + \frac {e^{- x}}{2} + \frac {2}{e^{x} + i} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 33 vs. \(2 (16) = 32\).
Time = 0.19 (sec) , antiderivative size = 33, normalized size of antiderivative = 1.50 \[ \int \frac {\sinh ^2(x)}{i+\sinh (x)} \, dx=-i \, x + \frac {5 \, e^{\left (-x\right )} - i}{2 \, {\left (-i \, e^{\left (-x\right )} + e^{\left (-2 \, x\right )}\right )}} + \frac {1}{2} \, e^{\left (-x\right )} \]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 26, normalized size of antiderivative = 1.18 \[ \int \frac {\sinh ^2(x)}{i+\sinh (x)} \, dx=-i \, x + \frac {{\left (5 \, e^{x} + i\right )} e^{\left (-x\right )}}{2 \, {\left (e^{x} + i\right )}} + \frac {1}{2} \, e^{x} \]
[In]
[Out]
Time = 1.14 (sec) , antiderivative size = 24, normalized size of antiderivative = 1.09 \[ \int \frac {\sinh ^2(x)}{i+\sinh (x)} \, dx=\frac {{\mathrm {e}}^{-x}}{2}-x\,1{}\mathrm {i}+\frac {{\mathrm {e}}^x}{2}+\frac {2}{{\mathrm {e}}^x+1{}\mathrm {i}} \]
[In]
[Out]