Optimal. Leaf size=38 \[ \frac{i x}{8}+\frac{\cosh ^3(x)}{3}-\frac{1}{4} i \sinh (x) \cosh ^3(x)+\frac{1}{8} i \sinh (x) \cosh (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.128245, antiderivative size = 38, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.538, Rules used = {3872, 2839, 2565, 30, 2568, 2635, 8} \[ \frac{i x}{8}+\frac{\cosh ^3(x)}{3}-\frac{1}{4} i \sinh (x) \cosh ^3(x)+\frac{1}{8} i \sinh (x) \cosh (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3872
Rule 2839
Rule 2565
Rule 30
Rule 2568
Rule 2635
Rule 8
Rubi steps
\begin{align*} \int \frac{\cosh ^4(x)}{i+\text{csch}(x)} \, dx &=i \int \frac{\cosh ^4(x) \sinh (x)}{i-\sinh (x)} \, dx\\ &=-\left (i \int \cosh ^2(x) \sinh ^2(x) \, dx\right )+\int \cosh ^2(x) \sinh (x) \, dx\\ &=-\frac{1}{4} i \cosh ^3(x) \sinh (x)+\frac{1}{4} i \int \cosh ^2(x) \, dx+\operatorname{Subst}\left (\int x^2 \, dx,x,\cosh (x)\right )\\ &=\frac{\cosh ^3(x)}{3}+\frac{1}{8} i \cosh (x) \sinh (x)-\frac{1}{4} i \cosh ^3(x) \sinh (x)+\frac{1}{8} i \int 1 \, dx\\ &=\frac{i x}{8}+\frac{\cosh ^3(x)}{3}+\frac{1}{8} i \cosh (x) \sinh (x)-\frac{1}{4} i \cosh ^3(x) \sinh (x)\\ \end{align*}
Mathematica [A] time = 0.0328512, size = 32, normalized size = 0.84 \[ \frac{i x}{8}-\frac{1}{32} i \sinh (4 x)+\frac{\cosh (x)}{4}+\frac{1}{12} \cosh (3 x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.039, size = 170, normalized size = 4.5 \begin{align*}{\frac{i}{8}}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) -{\frac{i}{8}}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) +{\frac{1}{3} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-3}}-{{\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 ) ^{-1}}+{{\frac{3\,i}{8}} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-2}}-{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-2}}-{{\frac{3\,i}{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{i}{4}} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-4}}-{\frac{1}{3} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-3}}-{{\frac{i}{8}} \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}{8}} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}-{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}}-{{\frac{i}{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 [A] time = 1.03984, size = 57, normalized size = 1.5 \begin{align*} \frac{1}{192} \,{\left (8 \, e^{\left (-x\right )} + 24 \, e^{\left (-3 \, x\right )} - 3 i\right )} e^{\left (4 \, x\right )} + \frac{1}{8} i \, x + \frac{1}{8} \, e^{\left (-x\right )} + \frac{1}{24} \, e^{\left (-3 \, x\right )} + \frac{1}{64} i \, e^{\left (-4 \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.85841, size = 134, normalized size = 3.53 \begin{align*} \frac{1}{192} \,{\left (24 i \, x e^{\left (4 \, x\right )} - 3 i \, e^{\left (8 \, x\right )} + 8 \, e^{\left (7 \, x\right )} + 24 \, e^{\left (5 \, x\right )} + 24 \, e^{\left (3 \, x\right )} + 8 \, e^{x} + 3 i\right )} e^{\left (-4 \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1809, size = 51, normalized size = 1.34 \begin{align*} \frac{1}{192} \,{\left (24 \, e^{\left (3 \, x\right )} + 8 \, e^{x} + 3 i\right )} e^{\left (-4 \, x\right )} + \frac{1}{8} i \, x - \frac{1}{64} i \, e^{\left (4 \, x\right )} + \frac{1}{24} \, e^{\left (3 \, x\right )} + \frac{1}{8} \, e^{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]