Integrand size = 13, antiderivative size = 26 \[ \int \frac {\cosh ^4(x)}{i+\sinh (x)} \, dx=-\frac {i x}{2}+\frac {\cosh ^3(x)}{3}-\frac {1}{2} i \cosh (x) \sinh (x) \]
[Out]
Time = 0.03 (sec) , antiderivative size = 26, 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 = {2761, 2715, 8} \[ \int \frac {\cosh ^4(x)}{i+\sinh (x)} \, dx=-\frac {i x}{2}+\frac {\cosh ^3(x)}{3}-\frac {1}{2} i \sinh (x) \cosh (x) \]
[In]
[Out]
Rule 8
Rule 2715
Rule 2761
Rubi steps \begin{align*} \text {integral}& = \frac {\cosh ^3(x)}{3}-i \int \cosh ^2(x) \, dx \\ & = \frac {\cosh ^3(x)}{3}-\frac {1}{2} i \cosh (x) \sinh (x)-\frac {1}{2} i \int 1 \, dx \\ & = -\frac {i x}{2}+\frac {\cosh ^3(x)}{3}-\frac {1}{2} i \cosh (x) \sinh (x) \\ \end{align*}
Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(93\) vs. \(2(26)=52\).
Time = 0.13 (sec) , antiderivative size = 93, normalized size of antiderivative = 3.58 \[ \int \frac {\cosh ^4(x)}{i+\sinh (x)} \, dx=\frac {\cosh ^5(x) \left (2 i+\frac {6 i \arcsin \left (\frac {\sqrt {1-i \sinh (x)}}{\sqrt {2}}\right ) \sqrt {1-i \sinh (x)}}{\sqrt {1+i \sinh (x)}}+5 \sinh (x)-i \sinh ^2(x)+2 \sinh ^3(x)\right )}{6 (-i+\sinh (x))^2 (i+\sinh (x))^3} \]
[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 (18 ) = 36\).
Time = 210.70 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.62
method | result | size |
risch | \(-\frac {i x}{2}+\frac {{\mathrm e}^{3 x}}{24}-\frac {i {\mathrm e}^{2 x}}{8}+\frac {{\mathrm e}^{x}}{8}+\frac {{\mathrm e}^{-x}}{8}+\frac {i {\mathrm e}^{-2 x}}{8}+\frac {{\mathrm e}^{-3 x}}{24}\) | \(42\) |
default | \(-\frac {i \ln \left (\tanh \left (\frac {x}{2}\right )+1\right )}{2}+\frac {\frac {1}{2}-\frac {i}{2}}{\tanh \left (\frac {x}{2}\right )+1}+\frac {-\frac {1}{2}+\frac {i}{2}}{\left (\tanh \left (\frac {x}{2}\right )+1\right )^{2}}+\frac {1}{3 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{3}}+\frac {i \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )}{2}+\frac {-\frac {1}{2}-\frac {i}{2}}{\left (\tanh \left (\frac {x}{2}\right )-1\right )^{2}}+\frac {-\frac {1}{2}-\frac {i}{2}}{\tanh \left (\frac {x}{2}\right )-1}-\frac {1}{3 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{3}}\) | \(90\) |
[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 (16) = 32\).
Time = 0.29 (sec) , antiderivative size = 41, normalized size of antiderivative = 1.58 \[ \int \frac {\cosh ^4(x)}{i+\sinh (x)} \, dx=\frac {1}{24} \, {\left (-12 i \, x e^{\left (3 \, x\right )} + e^{\left (6 \, x\right )} - 3 i \, e^{\left (5 \, x\right )} + 3 \, e^{\left (4 \, x\right )} + 3 \, e^{\left (2 \, x\right )} + 3 i \, e^{x} + 1\right )} e^{\left (-3 \, x\right )} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 48 vs. \(2 (20) = 40\).
Time = 0.08 (sec) , antiderivative size = 48, normalized size of antiderivative = 1.85 \[ \int \frac {\cosh ^4(x)}{i+\sinh (x)} \, dx=- \frac {i x}{2} + \frac {e^{3 x}}{24} - \frac {i e^{2 x}}{8} + \frac {e^{x}}{8} + \frac {e^{- x}}{8} + \frac {i e^{- 2 x}}{8} + \frac {e^{- 3 x}}{24} \]
[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 (16) = 32\).
Time = 0.20 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.62 \[ \int \frac {\cosh ^4(x)}{i+\sinh (x)} \, dx=-\frac {1}{24} \, {\left (3 i \, e^{\left (-x\right )} - 3 \, e^{\left (-2 \, x\right )} - 1\right )} e^{\left (3 \, x\right )} - \frac {1}{2} i \, x + \frac {1}{8} \, e^{\left (-x\right )} + \frac {1}{8} i \, e^{\left (-2 \, x\right )} + \frac {1}{24} \, e^{\left (-3 \, x\right )} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 38 vs. \(2 (16) = 32\).
Time = 0.27 (sec) , antiderivative size = 38, normalized size of antiderivative = 1.46 \[ \int \frac {\cosh ^4(x)}{i+\sinh (x)} \, dx=\frac {1}{24} \, {\left (3 \, e^{\left (2 \, x\right )} + 3 i \, e^{x} + 1\right )} e^{\left (-3 \, x\right )} - \frac {1}{2} i \, x + \frac {1}{24} \, e^{\left (3 \, x\right )} - \frac {1}{8} i \, e^{\left (2 \, x\right )} + \frac {1}{8} \, e^{x} \]
[In]
[Out]
Time = 0.13 (sec) , antiderivative size = 41, normalized size of antiderivative = 1.58 \[ \int \frac {\cosh ^4(x)}{i+\sinh (x)} \, dx=\frac {{\mathrm {e}}^{-x}}{8}+\frac {{\mathrm {e}}^{-3\,x}}{24}+\frac {{\mathrm {e}}^{3\,x}}{24}+\frac {{\mathrm {e}}^x}{8}-\frac {x\,1{}\mathrm {i}}{2}+\frac {{\mathrm {e}}^{-2\,x}\,1{}\mathrm {i}}{8}-\frac {{\mathrm {e}}^{2\,x}\,1{}\mathrm {i}}{8} \]
[In]
[Out]