Optimal. Leaf size=43 \[ -i x-\frac {3}{8} \tanh ^{-1}(\cosh (x))+\frac {1}{12} \coth ^3(x) (-3 \text {csch}(x)+4 i)+\frac {1}{8} \coth (x) (-3 \text {csch}(x)+8 i) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {3888, 3881, 3770} \[ -i x-\frac {3}{8} \tanh ^{-1}(\cosh (x))+\frac {1}{12} \coth ^3(x) (-3 \text {csch}(x)+4 i)+\frac {1}{8} \coth (x) (-3 \text {csch}(x)+8 i) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3770
Rule 3881
Rule 3888
Rubi steps
\begin {align*} \int \frac {\coth ^6(x)}{i+\text {csch}(x)} \, dx &=\int \coth ^4(x) (-i+\text {csch}(x)) \, dx\\ &=\frac {1}{12} \coth ^3(x) (4 i-3 \text {csch}(x))+\frac {1}{4} \int \coth ^2(x) (-4 i+3 \text {csch}(x)) \, dx\\ &=\frac {1}{12} \coth ^3(x) (4 i-3 \text {csch}(x))+\frac {1}{8} \coth (x) (8 i-3 \text {csch}(x))+\frac {1}{8} \int (-8 i+3 \text {csch}(x)) \, dx\\ &=-i x+\frac {1}{12} \coth ^3(x) (4 i-3 \text {csch}(x))+\frac {1}{8} \coth (x) (8 i-3 \text {csch}(x))+\frac {3}{8} \int \text {csch}(x) \, dx\\ &=-i x-\frac {3}{8} \tanh ^{-1}(\cosh (x))+\frac {1}{12} \coth ^3(x) (4 i-3 \text {csch}(x))+\frac {1}{8} \coth (x) (8 i-3 \text {csch}(x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.04, size = 129, normalized size = 3.00 \[ -i x+\frac {2}{3} i \tanh \left (\frac {x}{2}\right )+\frac {2}{3} i \coth \left (\frac {x}{2}\right )-\frac {1}{64} \text {csch}^4\left (\frac {x}{2}\right )-\frac {5}{32} \text {csch}^2\left (\frac {x}{2}\right )+\frac {1}{64} \text {sech}^4\left (\frac {x}{2}\right )-\frac {5}{32} \text {sech}^2\left (\frac {x}{2}\right )+\frac {3}{8} \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]
________________________________________________________________________________________
fricas [B] time = 0.57, size = 154, normalized size = 3.58 \[ \frac {-24 i \, x e^{\left (8 \, x\right )} + {\left (96 i \, x + 96 i\right )} e^{\left (6 \, x\right )} + {\left (-144 i \, x - 192 i\right )} e^{\left (4 \, x\right )} + {\left (96 i \, x + 160 i\right )} e^{\left (2 \, x\right )} - 9 \, {\left (e^{\left (8 \, x\right )} - 4 \, e^{\left (6 \, x\right )} + 6 \, e^{\left (4 \, x\right )} - 4 \, e^{\left (2 \, x\right )} + 1\right )} \log \left (e^{x} + 1\right ) + 9 \, {\left (e^{\left (8 \, x\right )} - 4 \, e^{\left (6 \, x\right )} + 6 \, e^{\left (4 \, x\right )} - 4 \, e^{\left (2 \, x\right )} + 1\right )} \log \left (e^{x} - 1\right ) - 24 i \, x - 30 \, e^{\left (7 \, x\right )} - 18 \, e^{\left (5 \, x\right )} - 18 \, e^{\left (3 \, x\right )} - 30 \, e^{x} - 64 i}{24 \, {\left (e^{\left (8 \, x\right )} - 4 \, e^{\left (6 \, x\right )} + 6 \, e^{\left (4 \, x\right )} - 4 \, e^{\left (2 \, x\right )} + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.13, size = 77, normalized size = 1.79 \[ -\frac {15 \, e^{\left (7 \, x\right )} - 48 i \, e^{\left (6 \, x\right )} + 9 \, e^{\left (5 \, x\right )} + 96 i \, e^{\left (4 \, x\right )} + 9 \, e^{\left (3 \, x\right )} - 80 i \, e^{\left (2 \, x\right )} + 15 \, e^{x} + 32 i}{12 \, {\left (i \, e^{\left (2 \, x\right )} - i\right )}^{4}} - i \, \log \left (-i \, e^{x}\right ) - \frac {3}{8} \, \log \left (e^{x} + 1\right ) + \frac {3}{8} \, \log \left ({\left | e^{x} - 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.25, size = 95, normalized size = 2.21 \[ \frac {5 i \tanh \left (\frac {x}{2}\right )}{8}+\frac {\left (\tanh ^{4}\left (\frac {x}{2}\right )\right )}{64}+\frac {i \left (\tanh ^{3}\left (\frac {x}{2}\right )\right )}{24}+\frac {\left (\tanh ^{2}\left (\frac {x}{2}\right )\right )}{8}+i \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )-i \ln \left (\tanh \left (\frac {x}{2}\right )+1\right )-\frac {1}{64 \tanh \left (\frac {x}{2}\right )^{4}}+\frac {5 i}{8 \tanh \left (\frac {x}{2}\right )}+\frac {i}{24 \tanh \left (\frac {x}{2}\right )^{3}}-\frac {1}{8 \tanh \left (\frac {x}{2}\right )^{2}}+\frac {3 \ln \left (\tanh \left (\frac {x}{2}\right )\right )}{8} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.31, size = 96, normalized size = 2.23 \[ -i \, x + \frac {15 \, e^{\left (-x\right )} + 80 i \, e^{\left (-2 \, x\right )} + 9 \, e^{\left (-3 \, x\right )} - 96 i \, e^{\left (-4 \, x\right )} + 9 \, e^{\left (-5 \, x\right )} + 48 i \, e^{\left (-6 \, x\right )} + 15 \, e^{\left (-7 \, x\right )} - 32 i}{12 \, {\left (4 \, e^{\left (-2 \, x\right )} - 6 \, e^{\left (-4 \, x\right )} + 4 \, e^{\left (-6 \, x\right )} - e^{\left (-8 \, x\right )} - 1\right )}} - \frac {3}{8} \, \log \left (e^{\left (-x\right )} + 1\right ) + \frac {3}{8} \, \log \left (e^{\left (-x\right )} - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.86, size = 106, normalized size = 2.47 \[ \frac {3\,\ln \left (\frac {3}{4}-\frac {3\,{\mathrm {e}}^x}{4}\right )}{8}-x\,1{}\mathrm {i}-\frac {3\,\ln \left (\frac {3\,{\mathrm {e}}^x}{4}+\frac {3}{4}\right )}{8}-\frac {5\,{\mathrm {e}}^x}{4\,\left ({\mathrm {e}}^{2\,x}-1\right )}-\frac {9\,{\mathrm {e}}^x}{2\,{\left ({\mathrm {e}}^{2\,x}-1\right )}^2}-\frac {6\,{\mathrm {e}}^x}{{\left ({\mathrm {e}}^{2\,x}-1\right )}^3}-\frac {4\,{\mathrm {e}}^x}{{\left ({\mathrm {e}}^{2\,x}-1\right )}^4}+\frac {4{}\mathrm {i}}{{\mathrm {e}}^{2\,x}-1}+\frac {4{}\mathrm {i}}{{\left ({\mathrm {e}}^{2\,x}-1\right )}^2}+\frac {8{}\mathrm {i}}{3\,{\left ({\mathrm {e}}^{2\,x}-1\right )}^3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\coth ^{6}{\relax (x )}}{\operatorname {csch}{\relax (x )} + i}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________