Optimal. Leaf size=26 \[ -\frac{i x}{2}+\frac{\cosh ^3(x)}{3}-\frac{1}{2} i \sinh (x) \cosh (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0413358, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {2682, 2635, 8} \[ -\frac{i x}{2}+\frac{\cosh ^3(x)}{3}-\frac{1}{2} i \sinh (x) \cosh (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2682
Rule 2635
Rule 8
Rubi steps
\begin{align*} \int \frac{\cosh ^4(x)}{i+\sinh (x)} \, dx &=\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*}
Mathematica [B] time = 0.148906, size = 93, normalized size = 3.58 \[ \frac{\cosh ^5(x) \left (2 \sinh ^3(x)-i \sinh ^2(x)+5 \sinh (x)+\frac{6 i \sqrt{1-i \sinh (x)} \sin ^{-1}\left (\frac{\sqrt{1-i \sinh (x)}}{\sqrt{2}}\right )}{\sqrt{1+i \sinh (x)}}+2 i\right )}{6 (\sinh (x)-i)^2 (\sinh (x)+i)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.036, size = 126, normalized size = 4.9 \begin{align*} -{\frac{i}{2}}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) +{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}-{{\frac{i}{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}-{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-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}{2}}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) -{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-2}}-{{\frac{i}{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-2}}-{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}}-{{\frac{i}{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}}-{\frac{1}{3} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.24569, size = 57, normalized size = 2.19 \begin{align*} -\frac{1}{48} \,{\left (6 i \, e^{\left (-x\right )} - 6 \, e^{\left (-2 \, x\right )} - 2\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 )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.84849, size = 128, normalized size = 4.92 \begin{align*} \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 )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.280378, size = 48, normalized size = 1.85 \begin{align*} - \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} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.33892, size = 51, normalized size = 1.96 \begin{align*} \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} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]