Optimal. Leaf size=26 \[ \frac{1}{3} i \coth ^3(x)-\frac{1}{2} \tanh ^{-1}(\cosh (x))-\frac{1}{2} \coth (x) \text{csch}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0779558, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.385, Rules used = {2706, 2607, 30, 2611, 3770} \[ \frac{1}{3} i \coth ^3(x)-\frac{1}{2} \tanh ^{-1}(\cosh (x))-\frac{1}{2} \coth (x) \text{csch}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2706
Rule 2607
Rule 30
Rule 2611
Rule 3770
Rubi steps
\begin{align*} \int \frac{\coth ^4(x)}{i+\sinh (x)} \, dx &=-\left (i \int \coth ^2(x) \text{csch}^2(x) \, dx\right )+\int \coth ^2(x) \text{csch}(x) \, dx\\ &=-\frac{1}{2} \coth (x) \text{csch}(x)+\frac{1}{2} \int \text{csch}(x) \, dx-\operatorname{Subst}\left (\int x^2 \, dx,x,i \coth (x)\right )\\ &=-\frac{1}{2} \tanh ^{-1}(\cosh (x))+\frac{1}{3} i \coth ^3(x)-\frac{1}{2} \coth (x) \text{csch}(x)\\ \end{align*}
Mathematica [B] time = 0.0366139, size = 100, normalized size = 3.85 \[ \frac{1}{6} i \tanh \left (\frac{x}{2}\right )+\frac{1}{6} i \coth \left (\frac{x}{2}\right )-\frac{1}{8} \text{csch}^2\left (\frac{x}{2}\right )-\frac{1}{8} \text{sech}^2\left (\frac{x}{2}\right )+\frac{1}{2} \log \left (\tanh \left (\frac{x}{2}\right )\right )+\frac{1}{24} i \coth \left (\frac{x}{2}\right ) \text{csch}^2\left (\frac{x}{2}\right )-\frac{1}{24} i \tanh \left (\frac{x}{2}\right ) \text{sech}^2\left (\frac{x}{2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.046, size = 59, normalized size = 2.3 \begin{align*}{\frac{i}{8}}\tanh \left ({\frac{x}{2}} \right ) +{\frac{i}{24}} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{3}+{\frac{1}{8} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}}-{\frac{1}{8} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{-2}}+{{\frac{i}{8}} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{-1}}+{{\frac{i}{24}} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{-3}}+{\frac{1}{2}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.05202, size = 82, normalized size = 3.15 \begin{align*} \frac{3 \, e^{\left (-x\right )} - 6 i \, e^{\left (-4 \, x\right )} - 3 \, e^{\left (-5 \, x\right )} - 2 i}{3 \,{\left (3 \, e^{\left (-2 \, x\right )} - 3 \, e^{\left (-4 \, x\right )} + e^{\left (-6 \, x\right )} - 1\right )}} - \frac{1}{2} \, \log \left (e^{\left (-x\right )} + 1\right ) + \frac{1}{2} \, \log \left (e^{\left (-x\right )} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.01305, size = 263, normalized size = 10.12 \begin{align*} -\frac{3 \,{\left (e^{\left (6 \, x\right )} - 3 \, e^{\left (4 \, x\right )} + 3 \, e^{\left (2 \, x\right )} - 1\right )} \log \left (e^{x} + 1\right ) - 3 \,{\left (e^{\left (6 \, x\right )} - 3 \, e^{\left (4 \, x\right )} + 3 \, e^{\left (2 \, x\right )} - 1\right )} \log \left (e^{x} - 1\right ) + 6 \, e^{\left (5 \, x\right )} - 12 i \, e^{\left (4 \, x\right )} - 6 \, e^{x} - 4 i}{6 \,{\left (e^{\left (6 \, x\right )} - 3 \, e^{\left (4 \, x\right )} + 3 \, e^{\left (2 \, x\right )} - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.478784, size = 58, normalized size = 2.23 \begin{align*} \frac{- e^{5 x} + 2 i e^{4 x} + e^{x} + \frac{2 i}{3}}{e^{6 x} - 3 e^{4 x} + 3 e^{2 x} - 1} + \frac{\log{\left (e^{x} - 1 \right )}}{2} - \frac{\log{\left (e^{x} + 1 \right )}}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.15295, size = 59, normalized size = 2.27 \begin{align*} -\frac{3 \, e^{\left (5 \, x\right )} - 6 i \, e^{\left (4 \, x\right )} - 3 \, e^{x} - 2 i}{3 \,{\left (e^{\left (2 \, x\right )} - 1\right )}^{3}} - \frac{1}{2} \, \log \left (e^{x} + 1\right ) + \frac{1}{2} \, \log \left ({\left | e^{x} - 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]