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.13, antiderivative size = 40, normalized size of antiderivative = 1.00, 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 30
Rule 2606
Rule 2611
Rule 2835
Rule 3768
Rule 3770
Rule 3872
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.06, size = 32, normalized size = 0.80 \[ \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]
________________________________________________________________________________________
fricas [B] time = 0.41, size = 145, normalized size = 3.62 \[ \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} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.13, size = 94, normalized size = 2.35 \[ -\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 ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.20, size = 89, normalized size = 2.22 \[ \frac {i}{4 \tanh \left (\frac {x}{2}\right )+4 i}+\frac {1}{4 \left (\tanh \left (\frac {x}{2}\right )+i\right )^{2}}+\frac {\ln \left (\tanh \left (\frac {x}{2}\right )+i\right )}{8}+\frac {i}{\left (\tanh \left (\frac {x}{2}\right )-i\right )^{3}}-\frac {i}{2 \left (\tanh \left (\frac {x}{2}\right )-i\right )}-\frac {1}{2 \left (\tanh \left (\frac {x}{2}\right )-i\right )^{4}}+\frac {1}{\left (\tanh \left (\frac {x}{2}\right )-i\right )^{2}}-\frac {\ln \left (\tanh \left (\frac {x}{2}\right )-i\right )}{8} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.31, size = 92, normalized size = 2.30 \[ \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 ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.95, size = 122, normalized size = 3.05 \[ \frac {\ln \left (-\frac {1}{4}+\frac {{\mathrm {e}}^x\,1{}\mathrm {i}}{4}\right )}{8}-\frac {\ln \left (\frac {1}{4}+\frac {{\mathrm {e}}^x\,1{}\mathrm {i}}{4}\right )}{8}-\frac {1{}\mathrm {i}}{{\mathrm {e}}^{2\,x}\,3{}\mathrm {i}-{\mathrm {e}}^{3\,x}+3\,{\mathrm {e}}^x-\mathrm {i}}-\frac {1}{4\,\left ({\mathrm {e}}^{2\,x}-1+{\mathrm {e}}^x\,2{}\mathrm {i}\right )}-\frac {1}{2\,\left ({\mathrm {e}}^{4\,x}-6\,{\mathrm {e}}^{2\,x}+1-{\mathrm {e}}^{3\,x}\,4{}\mathrm {i}+{\mathrm {e}}^x\,4{}\mathrm {i}\right )}-\frac {1}{2\,\left (1-{\mathrm {e}}^{2\,x}+{\mathrm {e}}^x\,2{}\mathrm {i}\right )}-\frac {1{}\mathrm {i}}{4\,\left ({\mathrm {e}}^x+1{}\mathrm {i}\right )} \]
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 {\operatorname {sech}^{3}{\relax (x )}}{\operatorname {csch}{\relax (x )} + i}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________