Optimal. Leaf size=19 \[ -\frac{1}{3} \text{sech}^3(x)-\frac{1}{3} i \tanh ^3(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.111021, antiderivative size = 19, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.385, Rules used = {3872, 2839, 2606, 30, 2607} \[ -\frac{1}{3} \text{sech}^3(x)-\frac{1}{3} i \tanh ^3(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3872
Rule 2839
Rule 2606
Rule 30
Rule 2607
Rubi steps
\begin{align*} \int \frac{\text{sech}^2(x)}{i+\text{csch}(x)} \, dx &=i \int \frac{\text{sech}(x) \tanh (x)}{i-\sinh (x)} \, dx\\ &=-\left (i \int \text{sech}^2(x) \tanh ^2(x) \, dx\right )+\int \text{sech}^3(x) \tanh (x) \, dx\\ &=-\operatorname{Subst}\left (\int x^2 \, dx,x,\text{sech}(x)\right )+\operatorname{Subst}\left (\int x^2 \, dx,x,i \tanh (x)\right )\\ &=-\frac{1}{3} \text{sech}^3(x)-\frac{1}{3} i \tanh ^3(x)\\ \end{align*}
Mathematica [B] time = 0.0531439, size = 64, normalized size = 3.37 \[ \frac{-2 i \sinh (x)+\cosh (x)+\cosh (2 x)+i \sinh (x) \cosh (x)-3}{6 \left (\cosh \left (\frac{x}{2}\right )-i \sinh \left (\frac{x}{2}\right )\right ) \left (\cosh \left (\frac{x}{2}\right )+i \sinh \left (\frac{x}{2}\right )\right )^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.036, size = 49, normalized size = 2.6 \begin{align*}{{\frac{i}{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) -i \right ) ^{-1}}-{{\frac{2\,i}{3}} \left ( \tanh \left ({\frac{x}{2}} \right ) -i \right ) ^{-3}}- \left ( \tanh \left ({\frac{x}{2}} \right ) -i \right ) ^{-2}-{{\frac{i}{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) +i \right ) ^{-1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.02708, size = 109, normalized size = 5.74 \begin{align*} \frac{8 \, e^{\left (-x\right )}}{12 i \, e^{\left (-x\right )} + 12 i \, e^{\left (-3 \, x\right )} + 6 \, e^{\left (-4 \, x\right )} - 6} - \frac{12 i \, e^{\left (-2 \, x\right )}}{12 i \, e^{\left (-x\right )} + 12 i \, e^{\left (-3 \, x\right )} + 6 \, e^{\left (-4 \, x\right )} - 6} + \frac{4 i}{12 i \, e^{\left (-x\right )} + 12 i \, e^{\left (-3 \, x\right )} + 6 \, e^{\left (-4 \, x\right )} - 6} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.49085, size = 93, normalized size = 4.89 \begin{align*} \frac{6 i \, e^{\left (2 \, x\right )} + 4 \, e^{x} - 2 i}{3 \, e^{\left (4 \, x\right )} - 6 i \, e^{\left (3 \, x\right )} - 6 i \, e^{x} - 3} \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}^{2}{\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 [A] time = 1.20023, size = 36, normalized size = 1.89 \begin{align*} -\frac{i}{2 \,{\left (i \, e^{x} - 1\right )}} + \frac{3 \, e^{\left (2 \, x\right )} - 1}{6 \,{\left (e^{x} - i\right )}^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]