Optimal. Leaf size=33 \[ \frac{\sinh ^4(x)}{4}-\frac{1}{3} i \sinh ^3(x)+\frac{\sinh ^2(x)}{2}-i \sinh (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0391253, antiderivative size = 33, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {2667, 43} \[ \frac{\sinh ^4(x)}{4}-\frac{1}{3} i \sinh ^3(x)+\frac{\sinh ^2(x)}{2}-i \sinh (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2667
Rule 43
Rubi steps
\begin{align*} \int \frac{\cosh ^5(x)}{i+\sinh (x)} \, dx &=\operatorname{Subst}\left (\int (i-x)^2 (i+x) \, dx,x,\sinh (x)\right )\\ &=\operatorname{Subst}\left (\int \left (-i+x-i x^2+x^3\right ) \, dx,x,\sinh (x)\right )\\ &=-i \sinh (x)+\frac{\sinh ^2(x)}{2}-\frac{1}{3} i \sinh ^3(x)+\frac{\sinh ^4(x)}{4}\\ \end{align*}
Mathematica [A] time = 0.0200937, size = 28, normalized size = 0.85 \[ \frac{1}{12} \sinh (x) \left (3 \sinh ^3(x)-4 i \sinh ^2(x)+6 \sinh (x)-12 i\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.043, size = 94, normalized size = 2.9 \begin{align*}{{\frac{5}{8}}-{\frac{i}{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-2}}-{{\frac{1}{2}}-{\frac{i}{3}} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-3}}-{{\frac{3}{8}}-i \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}+{\frac{1}{4} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-4}}+{{\frac{5}{8}}+{\frac{i}{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-2}}+{{\frac{1}{2}}+{\frac{i}{3}} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-3}}+{{\frac{3}{8}}+i \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}}+{\frac{1}{4} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.11092, size = 69, normalized size = 2.09 \begin{align*} -\frac{1}{192} \,{\left (8 i \, e^{\left (-x\right )} - 12 \, e^{\left (-2 \, x\right )} + 72 i \, e^{\left (-3 \, x\right )} - 3\right )} e^{\left (4 \, x\right )} + \frac{3}{8} i \, e^{\left (-x\right )} + \frac{1}{16} \, e^{\left (-2 \, x\right )} + \frac{1}{24} i \, e^{\left (-3 \, x\right )} + \frac{1}{64} \, e^{\left (-4 \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.80942, size = 151, normalized size = 4.58 \begin{align*} \frac{1}{192} \,{\left (3 \, e^{\left (8 \, x\right )} - 8 i \, e^{\left (7 \, x\right )} + 12 \, e^{\left (6 \, x\right )} - 72 i \, e^{\left (5 \, x\right )} + 72 i \, e^{\left (3 \, x\right )} + 12 \, e^{\left (2 \, x\right )} + 8 i \, e^{x} + 3\right )} e^{\left (-4 \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.370981, size = 63, normalized size = 1.91 \begin{align*} \frac{e^{4 x}}{64} - \frac{i e^{3 x}}{24} + \frac{e^{2 x}}{16} - \frac{3 i e^{x}}{8} + \frac{3 i e^{- x}}{8} + \frac{e^{- 2 x}}{16} + \frac{i e^{- 3 x}}{24} + \frac{e^{- 4 x}}{64} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.2244, size = 63, normalized size = 1.91 \begin{align*} -\frac{1}{192} \,{\left (-72 i \, e^{\left (3 \, x\right )} - 12 \, e^{\left (2 \, x\right )} - 8 i \, e^{x} - 3\right )} e^{\left (-4 \, x\right )} + \frac{1}{64} \, e^{\left (4 \, x\right )} - \frac{1}{24} i \, e^{\left (3 \, x\right )} + \frac{1}{16} \, e^{\left (2 \, x\right )} - \frac{3}{8} i \, e^{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]