Optimal. Leaf size=30 \[ -\frac{3 x}{2}-\frac{3}{2} i \cosh (x)+\frac{\cosh ^3(x)}{2 (\sinh (x)+i)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0675867, antiderivative size = 30, 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 = {2679, 2682, 8} \[ -\frac{3 x}{2}-\frac{3}{2} i \cosh (x)+\frac{\cosh ^3(x)}{2 (\sinh (x)+i)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2679
Rule 2682
Rule 8
Rubi steps
\begin{align*} \int \frac{\cosh ^4(x)}{(i+\sinh (x))^2} \, dx &=\frac{\cosh ^3(x)}{2 (i+\sinh (x))}-\frac{3}{2} i \int \frac{\cosh ^2(x)}{i+\sinh (x)} \, dx\\ &=-\frac{3}{2} i \cosh (x)+\frac{\cosh ^3(x)}{2 (i+\sinh (x))}-\frac{3 \int 1 \, dx}{2}\\ &=-\frac{3 x}{2}-\frac{3}{2} i \cosh (x)+\frac{\cosh ^3(x)}{2 (i+\sinh (x))}\\ \end{align*}
Mathematica [A] time = 0.0718262, size = 46, normalized size = 1.53 \[ \frac{1}{2} (\sinh (x)-4 i) \cosh (x)-3 i \sqrt{\cosh ^2(x)} \text{sech}(x) \sin ^{-1}\left (\frac{\sqrt{1-i \sinh (x)}}{\sqrt{2}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.042, size = 82, normalized size = 2.7 \begin{align*}{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}-{2\,i \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}-{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-2}}-{\frac{3}{2}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) }+{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}}+{2\,i \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}}+{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-2}}+{\frac{3}{2}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.12467, size = 41, normalized size = 1.37 \begin{align*} -\frac{1}{8} \,{\left (8 i \, e^{\left (-x\right )} - 1\right )} e^{\left (2 \, x\right )} - \frac{3}{2} \, x - i \, e^{\left (-x\right )} - \frac{1}{8} \, e^{\left (-2 \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.83379, size = 92, normalized size = 3.07 \begin{align*} -\frac{1}{8} \,{\left (12 \, x e^{\left (2 \, x\right )} - e^{\left (4 \, x\right )} + 8 i \, e^{\left (3 \, x\right )} + 8 i \, e^{x} + 1\right )} e^{\left (-2 \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.264454, size = 29, normalized size = 0.97 \begin{align*} - \frac{3 x}{2} + \frac{e^{2 x}}{8} - i e^{x} - i e^{- x} - \frac{e^{- 2 x}}{8} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.31306, size = 35, normalized size = 1.17 \begin{align*} -\frac{1}{8} \,{\left (8 i \, e^{x} + 1\right )} e^{\left (-2 \, x\right )} - \frac{3}{2} \, x + \frac{1}{8} \, e^{\left (2 \, x\right )} - i \, e^{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]