Optimal. Leaf size=38 \[ -\frac{3 i x}{8}+\frac{\cosh ^5(x)}{5}-\frac{1}{4} i \sinh (x) \cosh ^3(x)-\frac{3}{8} i \sinh (x) \cosh (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.047439, antiderivative size = 38, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {2682, 2635, 8} \[ -\frac{3 i x}{8}+\frac{\cosh ^5(x)}{5}-\frac{1}{4} i \sinh (x) \cosh ^3(x)-\frac{3}{8} i \sinh (x) \cosh (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2682
Rule 2635
Rule 8
Rubi steps
\begin{align*} \int \frac{\cosh ^6(x)}{i+\sinh (x)} \, dx &=\frac{\cosh ^5(x)}{5}-i \int \cosh ^4(x) \, dx\\ &=\frac{\cosh ^5(x)}{5}-\frac{1}{4} i \cosh ^3(x) \sinh (x)-\frac{3}{4} i \int \cosh ^2(x) \, dx\\ &=\frac{\cosh ^5(x)}{5}-\frac{3}{8} i \cosh (x) \sinh (x)-\frac{1}{4} i \cosh ^3(x) \sinh (x)-\frac{3}{8} i \int 1 \, dx\\ &=-\frac{3 i x}{8}+\frac{\cosh ^5(x)}{5}-\frac{3}{8} i \cosh (x) \sinh (x)-\frac{1}{4} i \cosh ^3(x) \sinh (x)\\ \end{align*}
Mathematica [B] time = 0.240143, size = 131, normalized size = 3.45 \[ -\frac{i \cosh ^7(x) \left (8 \sinh ^5(x)-2 i \sinh ^4(x)+26 \sinh ^3(x)-9 i \sinh ^2(x)+33 \sinh (x)+\frac{30 i \sqrt{1-i \sinh (x)} \sin ^{-1}\left (\frac{\sqrt{1-i \sinh (x)}}{\sqrt{2}}\right )}{\sqrt{1+i \sinh (x)}}+8 i\right )}{40 \left (\cosh \left (\frac{x}{2}\right )-i \sinh \left (\frac{x}{2}\right )\right )^8 \left (\cosh \left (\frac{x}{2}\right )+i \sinh \left (\frac{x}{2}\right )\right )^6} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.052, size = 210, normalized size = 5.5 \begin{align*} -{\frac{3\,i}{8}}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) -{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-4}}-{{\frac{i}{4}} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-4}}+{\frac{3}{4} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-3}}+{\frac{3\,i}{8}}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) +{\frac{3}{8} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}-{{\frac{7\,i}{8}} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-2}}-{\frac{5}{8} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-2}}-{{\frac{5\,i}{8}} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}+{\frac{1}{5} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-5}}-{{\frac{i}{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-3}}-{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-4}}+{{\frac{7\,i}{8}} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-2}}-{\frac{3}{8} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}}+{{\frac{i}{4}} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-4}}-{\frac{5}{8} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-2}}-{{\frac{i}{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-3}}-{\frac{3}{4} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-3}}-{{\frac{5\,i}{8}} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}}-{\frac{1}{5} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.30051, size = 89, normalized size = 2.34 \begin{align*} -\frac{1}{320} \,{\left (5 i \, e^{\left (-x\right )} - 10 \, e^{\left (-2 \, x\right )} + 40 i \, e^{\left (-3 \, x\right )} - 20 \, e^{\left (-4 \, x\right )} - 2\right )} e^{\left (5 \, x\right )} - \frac{3}{8} i \, x + \frac{1}{16} \, e^{\left (-x\right )} + \frac{1}{8} i \, e^{\left (-2 \, x\right )} + \frac{1}{32} \, e^{\left (-3 \, x\right )} + \frac{1}{64} i \, e^{\left (-4 \, x\right )} + \frac{1}{160} \, e^{\left (-5 \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.75102, size = 213, normalized size = 5.61 \begin{align*} \frac{1}{320} \,{\left (-120 i \, x e^{\left (5 \, x\right )} + 2 \, e^{\left (10 \, x\right )} - 5 i \, e^{\left (9 \, x\right )} + 10 \, e^{\left (8 \, x\right )} - 40 i \, e^{\left (7 \, x\right )} + 20 \, e^{\left (6 \, x\right )} + 20 \, e^{\left (4 \, x\right )} + 40 i \, e^{\left (3 \, x\right )} + 10 \, e^{\left (2 \, x\right )} + 5 i \, e^{x} + 2\right )} e^{\left (-5 \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.481323, size = 82, normalized size = 2.16 \begin{align*} - \frac{3 i x}{8} + \frac{e^{5 x}}{160} - \frac{i e^{4 x}}{64} + \frac{e^{3 x}}{32} - \frac{i e^{2 x}}{8} + \frac{e^{x}}{16} + \frac{e^{- x}}{16} + \frac{i e^{- 2 x}}{8} + \frac{e^{- 3 x}}{32} + \frac{i e^{- 4 x}}{64} + \frac{e^{- 5 x}}{160} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.29176, size = 84, normalized size = 2.21 \begin{align*} \frac{1}{320} \,{\left (20 \, e^{\left (4 \, x\right )} + 40 i \, e^{\left (3 \, x\right )} + 10 \, e^{\left (2 \, x\right )} + 5 i \, e^{x} + 2\right )} e^{\left (-5 \, x\right )} - \frac{3}{8} i \, x + \frac{1}{160} \, e^{\left (5 \, x\right )} - \frac{1}{64} i \, e^{\left (4 \, x\right )} + \frac{1}{32} \, e^{\left (3 \, x\right )} - \frac{1}{8} i \, e^{\left (2 \, x\right )} + \frac{1}{16} \, e^{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]