Optimal. Leaf size=40 \[ -\frac{1}{4} \text{sech}^4(x)-\frac{1}{8} i \tan ^{-1}(\sinh (x))+\frac{1}{4} i \tanh (x) \text{sech}^3(x)-\frac{1}{8} i \tanh (x) \text{sech}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.130221, antiderivative size = 40, 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, 2835, 2606, 30, 2611, 3768, 3770} \[ -\frac{1}{4} \text{sech}^4(x)-\frac{1}{8} i \tan ^{-1}(\sinh (x))+\frac{1}{4} i \tanh (x) \text{sech}^3(x)-\frac{1}{8} i \tanh (x) \text{sech}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3872
Rule 2835
Rule 2606
Rule 30
Rule 2611
Rule 3768
Rule 3770
Rubi steps
\begin{align*} \int \frac{\text{sech}^3(x)}{i+\text{csch}(x)} \, dx &=i \int \frac{\text{sech}^2(x) \tanh (x)}{i-\sinh (x)} \, dx\\ &=-\left (i \int \text{sech}^3(x) \tanh ^2(x) \, dx\right )+\int \text{sech}^4(x) \tanh (x) \, dx\\ &=\frac{1}{4} i \text{sech}^3(x) \tanh (x)-\frac{1}{4} i \int \text{sech}^3(x) \, dx-\operatorname{Subst}\left (\int x^3 \, dx,x,\text{sech}(x)\right )\\ &=-\frac{1}{4} \text{sech}^4(x)-\frac{1}{8} i \text{sech}(x) \tanh (x)+\frac{1}{4} i \text{sech}^3(x) \tanh (x)-\frac{1}{8} i \int \text{sech}(x) \, dx\\ &=-\frac{1}{8} i \tan ^{-1}(\sinh (x))-\frac{\text{sech}^4(x)}{4}-\frac{1}{8} i \text{sech}(x) \tanh (x)+\frac{1}{4} i \text{sech}^3(x) \tanh (x)\\ \end{align*}
Mathematica [A] time = 0.0586016, size = 32, normalized size = 0.8 \[ \frac{1}{8} \left (-\frac{i}{\sinh (x)+i}+\frac{1}{(\sinh (x)-i)^2}-i \tan ^{-1}(\sinh (x))\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.043, size = 89, normalized size = 2.2 \begin{align*}{i \left ( \tanh \left ({\frac{x}{2}} \right ) -i \right ) ^{-3}}-{{\frac{i}{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) -i \right ) ^{-1}}-{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) -i \right ) ^{-4}}+ \left ( \tanh \left ({\frac{x}{2}} \right ) -i \right ) ^{-2}-{\frac{1}{8}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) -i \right ) }+{{\frac{i}{4}} \left ( \tanh \left ({\frac{x}{2}} \right ) +i \right ) ^{-1}}+{\frac{1}{4} \left ( \tanh \left ({\frac{x}{2}} \right ) +i \right ) ^{-2}}+{\frac{1}{8}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) +i \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.05542, size = 124, normalized size = 3.1 \begin{align*} \frac{8 \,{\left (i \, e^{\left (-x\right )} + 2 \, e^{\left (-2 \, x\right )} - 10 i \, e^{\left (-3 \, x\right )} - 2 \, e^{\left (-4 \, x\right )} + i \, e^{\left (-5 \, x\right )}\right )}}{64 i \, e^{\left (-x\right )} - 32 \, e^{\left (-2 \, x\right )} + 128 i \, e^{\left (-3 \, x\right )} + 32 \, e^{\left (-4 \, x\right )} + 64 i \, e^{\left (-5 \, x\right )} + 32 \, e^{\left (-6 \, x\right )} - 32} - \frac{1}{8} \, \log \left (e^{\left (-x\right )} + i\right ) + \frac{1}{8} \, \log \left (e^{\left (-x\right )} - i\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.69641, size = 431, normalized size = 10.78 \begin{align*} \frac{{\left (e^{\left (6 \, x\right )} - 2 i \, e^{\left (5 \, x\right )} + e^{\left (4 \, x\right )} - 4 i \, e^{\left (3 \, x\right )} - e^{\left (2 \, x\right )} - 2 i \, e^{x} - 1\right )} \log \left (e^{x} + i\right ) -{\left (e^{\left (6 \, x\right )} - 2 i \, e^{\left (5 \, x\right )} + e^{\left (4 \, x\right )} - 4 i \, e^{\left (3 \, x\right )} - e^{\left (2 \, x\right )} - 2 i \, e^{x} - 1\right )} \log \left (e^{x} - i\right ) - 2 i \, e^{\left (5 \, x\right )} - 4 \, e^{\left (4 \, x\right )} + 20 i \, e^{\left (3 \, x\right )} + 4 \, e^{\left (2 \, x\right )} - 2 i \, e^{x}}{8 \, e^{\left (6 \, x\right )} - 16 i \, e^{\left (5 \, x\right )} + 8 \, e^{\left (4 \, x\right )} - 32 i \, e^{\left (3 \, x\right )} - 8 \, e^{\left (2 \, x\right )} - 16 i \, e^{x} - 8} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{sech}^{3}{\left (x \right )}}{\operatorname{csch}{\left (x \right )} + i}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.16183, size = 127, normalized size = 3.18 \begin{align*} -\frac{-i \, e^{\left (-x\right )} + i \, e^{x} - 6}{16 \,{\left (-i \, e^{\left (-x\right )} + i \, e^{x} - 2\right )}} + \frac{3 \,{\left (e^{\left (-x\right )} - e^{x}\right )}^{2} + 12 i \, e^{\left (-x\right )} - 12 i \, e^{x} + 4}{32 \,{\left (e^{\left (-x\right )} - e^{x} + 2 i\right )}^{2}} + \frac{1}{16} \, \log \left (-e^{\left (-x\right )} + e^{x} + 2 i\right ) - \frac{1}{16} \, \log \left (-e^{\left (-x\right )} + e^{x} - 2 i\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]