Optimal. Leaf size=37 \[ -\frac {3}{2} i \tanh ^{-1}(\cosh (x))-2 \coth (x)+\frac {3}{2} i \coth (x) \text {csch}(x)+\frac {\coth (x) \text {csch}(x)}{i+\sinh (x)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.462, Rules used = {2847, 2827,
3853, 3855, 3852, 8} \begin {gather*} -2 \coth (x)-\frac {3}{2} i \tanh ^{-1}(\cosh (x))+\frac {3}{2} i \coth (x) \text {csch}(x)+\frac {\coth (x) \text {csch}(x)}{\sinh (x)+i} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2827
Rule 2847
Rule 3852
Rule 3853
Rule 3855
Rubi steps
\begin {align*} \int \frac {\text {csch}^3(x)}{i+\sinh (x)} \, dx &=\frac {\coth (x) \text {csch}(x)}{i+\sinh (x)}+\int \text {csch}^3(x) (-3 i+2 \sinh (x)) \, dx\\ &=\frac {\coth (x) \text {csch}(x)}{i+\sinh (x)}-3 i \int \text {csch}^3(x) \, dx+2 \int \text {csch}^2(x) \, dx\\ &=\frac {3}{2} i \coth (x) \text {csch}(x)+\frac {\coth (x) \text {csch}(x)}{i+\sinh (x)}+\frac {3}{2} i \int \text {csch}(x) \, dx-2 i \text {Subst}(\int 1 \, dx,x,-i \coth (x))\\ &=-\frac {3}{2} i \tanh ^{-1}(\cosh (x))-2 \coth (x)+\frac {3}{2} i \coth (x) \text {csch}(x)+\frac {\coth (x) \text {csch}(x)}{i+\sinh (x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.14, size = 49, normalized size = 1.32 \begin {gather*} \frac {1}{2} i \left (4 i+3 \text {csch}(x)-3 \tanh ^{-1}\left (\sqrt {\cosh ^2(x)}\right ) \sqrt {\cosh ^2(x)} \text {csch}(x)+2 i \text {csch}^2(x)+\text {csch}^3(x)\right ) \tanh (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.58, size = 53, normalized size = 1.43
method | result | size |
default | \(-\frac {\tanh \left (\frac {x}{2}\right )}{2}-\frac {i \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )}{8}-\frac {2}{\tanh \left (\frac {x}{2}\right )+i}+\frac {i}{8 \tanh \left (\frac {x}{2}\right )^{2}}+\frac {3 i \ln \left (\tanh \left (\frac {x}{2}\right )\right )}{2}-\frac {1}{2 \tanh \left (\frac {x}{2}\right )}\) | \(53\) |
risch | \(\frac {i \left (3 \,{\mathrm e}^{4 x}-5 \,{\mathrm e}^{2 x}+3 i {\mathrm e}^{3 x}+4-i {\mathrm e}^{x}\right )}{\left ({\mathrm e}^{2 x}-1\right )^{2} \left ({\mathrm e}^{x}+i\right )}+\frac {3 i \ln \left ({\mathrm e}^{x}-1\right )}{2}-\frac {3 i \ln \left ({\mathrm e}^{x}+1\right )}{2}\) | \(62\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 75 vs. \(2 (27) = 54\).
time = 0.27, size = 75, normalized size = 2.03 \begin {gather*} -\frac {e^{\left (-x\right )} + 5 i \, e^{\left (-2 \, x\right )} - 3 \, e^{\left (-3 \, x\right )} - 3 i \, e^{\left (-4 \, x\right )} - 4 i}{e^{\left (-x\right )} + 2 i \, e^{\left (-2 \, x\right )} - 2 \, e^{\left (-3 \, x\right )} - i \, e^{\left (-4 \, x\right )} + e^{\left (-5 \, x\right )} - i} - \frac {3}{2} i \, \log \left (e^{\left (-x\right )} + 1\right ) + \frac {3}{2} i \, \log \left (e^{\left (-x\right )} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 126 vs. \(2 (27) = 54\).
time = 0.44, size = 126, normalized size = 3.41 \begin {gather*} -\frac {3 \, {\left (i \, e^{\left (5 \, x\right )} - e^{\left (4 \, x\right )} - 2 i \, e^{\left (3 \, x\right )} + 2 \, e^{\left (2 \, x\right )} + i \, e^{x} - 1\right )} \log \left (e^{x} + 1\right ) + 3 \, {\left (-i \, e^{\left (5 \, x\right )} + e^{\left (4 \, x\right )} + 2 i \, e^{\left (3 \, x\right )} - 2 \, e^{\left (2 \, x\right )} - i \, e^{x} + 1\right )} \log \left (e^{x} - 1\right ) - 6 i \, e^{\left (4 \, x\right )} + 6 \, e^{\left (3 \, x\right )} + 10 i \, e^{\left (2 \, x\right )} - 2 \, e^{x} - 8 i}{2 \, {\left (e^{\left (5 \, x\right )} + i \, e^{\left (4 \, x\right )} - 2 \, e^{\left (3 \, x\right )} - 2 i \, e^{\left (2 \, x\right )} + e^{x} + i\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {csch}^{3}{\left (x \right )}}{\sinh {\left (x \right )} + i}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 51, normalized size = 1.38 \begin {gather*} \frac {i \, e^{\left (3 \, x\right )} - 2 \, e^{\left (2 \, x\right )} + i \, e^{x} + 2}{{\left (e^{\left (2 \, x\right )} - 1\right )}^{2}} + \frac {2 i}{e^{x} + i} - \frac {3}{2} i \, \log \left (e^{x} + 1\right ) + \frac {3}{2} i \, \log \left ({\left | e^{x} - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.66, size = 70, normalized size = 1.89 \begin {gather*} -\frac {\ln \left (-{\mathrm {e}}^x\,3{}\mathrm {i}-3{}\mathrm {i}\right )\,3{}\mathrm {i}}{2}+\frac {\ln \left (-{\mathrm {e}}^x\,3{}\mathrm {i}+3{}\mathrm {i}\right )\,3{}\mathrm {i}}{2}+\frac {2{}\mathrm {i}}{{\mathrm {e}}^x+1{}\mathrm {i}}+\frac {{\mathrm {e}}^x\,2{}\mathrm {i}}{{\mathrm {e}}^{4\,x}-2\,{\mathrm {e}}^{2\,x}+1}+\frac {-2+{\mathrm {e}}^x\,1{}\mathrm {i}}{{\mathrm {e}}^{2\,x}-1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________