Optimal. Leaf size=36 \[ -\frac{3 x}{2}-2 i \cosh (x)-\frac{\sinh ^2(x) \cosh (x)}{\sinh (x)+i}+\frac{3}{2} \sinh (x) \cosh (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0463383, antiderivative size = 36, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {2767, 2734} \[ -\frac{3 x}{2}-2 i \cosh (x)-\frac{\sinh ^2(x) \cosh (x)}{\sinh (x)+i}+\frac{3}{2} \sinh (x) \cosh (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2767
Rule 2734
Rubi steps
\begin{align*} \int \frac{\sinh ^3(x)}{i+\sinh (x)} \, dx &=-\frac{\cosh (x) \sinh ^2(x)}{i+\sinh (x)}+\int \sinh (x) (-2 i+3 \sinh (x)) \, dx\\ &=-\frac{3 x}{2}-2 i \cosh (x)+\frac{3}{2} \cosh (x) \sinh (x)-\frac{\cosh (x) \sinh ^2(x)}{i+\sinh (x)}\\ \end{align*}
Mathematica [A] time = 0.10594, size = 41, normalized size = 1.14 \[ \frac{1}{2} \cosh (x) \left (-\frac{3 \sinh ^{-1}(\sinh (x))}{\sqrt{\cosh ^2(x)}}+\frac{\sinh ^2(x)-i \sinh (x)+4}{\sinh (x)+i}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.034, size = 93, normalized size = 2.6 \begin{align*}{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}-{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}}+{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 ) }+2\, \left ( \tanh \left ( x/2 \right ) +i \right ) ^{-1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.16406, size = 61, normalized size = 1.69 \begin{align*} -\frac{3}{2} \, x - \frac{3 \, e^{\left (-x\right )} + 20 i \, e^{\left (-2 \, x\right )} + i}{8 \,{\left (-i \, e^{\left (-2 \, x\right )} + e^{\left (-3 \, x\right )}\right )}} - \frac{1}{2} 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 = 2.03575, size = 153, normalized size = 4.25 \begin{align*} -\frac{4 \,{\left (3 \, x - 1\right )} e^{\left (3 \, x\right )} -{\left (-12 i \, x - 20 i\right )} e^{\left (2 \, x\right )} - e^{\left (5 \, x\right )} + 3 i \, e^{\left (4 \, x\right )} - 3 \, e^{x} + i}{8 \,{\left (e^{\left (3 \, x\right )} + i \, e^{\left (2 \, x\right )}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.310202, size = 41, normalized size = 1.14 \begin{align*} - \frac{3 x}{2} + \frac{e^{2 x}}{8} - \frac{i e^{x}}{2} - \frac{i e^{- x}}{2} - \frac{e^{- 2 x}}{8} - \frac{2 i}{e^{x} + i} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.39074, size = 51, normalized size = 1.42 \begin{align*} -\frac{3}{2} \, x - \frac{{\left (20 i \, e^{\left (2 \, x\right )} - 3 \, e^{x} + i\right )} e^{\left (-2 \, x\right )}}{8 \,{\left (e^{x} + i\right )}} + \frac{1}{8} \, e^{\left (2 \, x\right )} - \frac{1}{2} i \, e^{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]