Optimal. Leaf size=37 \[ \frac {4}{15} i \tanh ^3(x)-\frac {4}{5} i \tanh (x)-\frac {i \text {sech}^3(x)}{5 (\sinh (x)+i)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2672, 3767} \[ \frac {4}{15} i \tanh ^3(x)-\frac {4}{5} i \tanh (x)-\frac {i \text {sech}^3(x)}{5 (\sinh (x)+i)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2672
Rule 3767
Rubi steps
\begin {align*} \int \frac {\text {sech}^4(x)}{i+\sinh (x)} \, dx &=-\frac {i \text {sech}^3(x)}{5 (i+\sinh (x))}-\frac {4}{5} i \int \text {sech}^4(x) \, dx\\ &=-\frac {i \text {sech}^3(x)}{5 (i+\sinh (x))}+\frac {4}{5} \operatorname {Subst}\left (\int \left (1+x^2\right ) \, dx,x,-i \tanh (x)\right )\\ &=-\frac {i \text {sech}^3(x)}{5 (i+\sinh (x))}-\frac {4}{5} i \tanh (x)+\frac {4}{15} i \tanh ^3(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.07, size = 35, normalized size = 0.95 \[ -\frac {1}{15} i \left (8 \tanh ^3(x)+\frac {3 \text {sech}^3(x)}{\sinh (x)+i}+12 \tanh (x) \text {sech}^2(x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.44, size = 64, normalized size = 1.73 \[ -\frac {96 \, e^{\left (3 \, x\right )} + 32 i \, e^{\left (2 \, x\right )} + 32 \, e^{x} + 16 i}{15 \, e^{\left (8 \, x\right )} + 30 i \, e^{\left (7 \, x\right )} + 30 \, e^{\left (6 \, x\right )} + 90 i \, e^{\left (5 \, x\right )} + 90 i \, e^{\left (3 \, x\right )} - 30 \, e^{\left (2 \, x\right )} + 30 i \, e^{x} - 15} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.19, size = 53, normalized size = 1.43 \[ \frac {9 \, e^{\left (2 \, x\right )} - 24 i \, e^{x} - 11}{24 \, {\left (e^{x} - i\right )}^{3}} - \frac {45 \, e^{\left (4 \, x\right )} + 240 i \, e^{\left (3 \, x\right )} - 490 \, e^{\left (2 \, x\right )} - 320 i \, e^{x} + 73}{120 \, {\left (e^{x} + i\right )}^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.06, size = 93, normalized size = 2.51 \[ -\frac {2 i}{5 \left (\tanh \left (\frac {x}{2}\right )+i\right )^{5}}+\frac {5 i}{3 \left (\tanh \left (\frac {x}{2}\right )+i\right )^{3}}-\frac {11 i}{8 \left (\tanh \left (\frac {x}{2}\right )+i\right )}+\frac {1}{\left (\tanh \left (\frac {x}{2}\right )+i\right )^{4}}-\frac {3}{2 \left (\tanh \left (\frac {x}{2}\right )+i\right )^{2}}+\frac {i}{6 \left (\tanh \left (\frac {x}{2}\right )-i\right )^{3}}-\frac {5 i}{8 \left (\tanh \left (\frac {x}{2}\right )-i\right )}+\frac {1}{4 \left (\tanh \left (\frac {x}{2}\right )-i\right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.31, size = 205, normalized size = 5.54 \[ -\frac {32 \, e^{\left (-x\right )}}{-30 i \, e^{\left (-x\right )} - 30 \, e^{\left (-2 \, x\right )} - 90 i \, e^{\left (-3 \, x\right )} - 90 i \, e^{\left (-5 \, x\right )} + 30 \, e^{\left (-6 \, x\right )} - 30 i \, e^{\left (-7 \, x\right )} + 15 \, e^{\left (-8 \, x\right )} - 15} + \frac {32 i \, e^{\left (-2 \, x\right )}}{-30 i \, e^{\left (-x\right )} - 30 \, e^{\left (-2 \, x\right )} - 90 i \, e^{\left (-3 \, x\right )} - 90 i \, e^{\left (-5 \, x\right )} + 30 \, e^{\left (-6 \, x\right )} - 30 i \, e^{\left (-7 \, x\right )} + 15 \, e^{\left (-8 \, x\right )} - 15} - \frac {96 \, e^{\left (-3 \, x\right )}}{-30 i \, e^{\left (-x\right )} - 30 \, e^{\left (-2 \, x\right )} - 90 i \, e^{\left (-3 \, x\right )} - 90 i \, e^{\left (-5 \, x\right )} + 30 \, e^{\left (-6 \, x\right )} - 30 i \, e^{\left (-7 \, x\right )} + 15 \, e^{\left (-8 \, x\right )} - 15} + \frac {16 i}{-30 i \, e^{\left (-x\right )} - 30 \, e^{\left (-2 \, x\right )} - 90 i \, e^{\left (-3 \, x\right )} - 90 i \, e^{\left (-5 \, x\right )} + 30 \, e^{\left (-6 \, x\right )} - 30 i \, e^{\left (-7 \, x\right )} + 15 \, e^{\left (-8 \, x\right )} - 15} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.01, size = 231, normalized size = 6.24 \[ -\frac {1}{6\,\left ({\mathrm {e}}^{2\,x}\,3{}\mathrm {i}-{\mathrm {e}}^{3\,x}+3\,{\mathrm {e}}^x-\mathrm {i}\right )}-\frac {\frac {3\,{\mathrm {e}}^x}{40}+\frac {1}{8}{}\mathrm {i}}{{\mathrm {e}}^{2\,x}-1+{\mathrm {e}}^x\,2{}\mathrm {i}}-\frac {\frac {3\,{\mathrm {e}}^{2\,x}}{40}-\frac {5}{24}+\frac {{\mathrm {e}}^x\,1{}\mathrm {i}}{4}}{{\mathrm {e}}^{2\,x}\,3{}\mathrm {i}+{\mathrm {e}}^{3\,x}-3\,{\mathrm {e}}^x-\mathrm {i}}+\frac {1{}\mathrm {i}}{4\,\left (1-{\mathrm {e}}^{2\,x}+{\mathrm {e}}^x\,2{}\mathrm {i}\right )}+\frac {3}{8\,\left ({\mathrm {e}}^x-\mathrm {i}\right )}-\frac {3}{40\,\left ({\mathrm {e}}^x+1{}\mathrm {i}\right )}-\frac {\frac {{\mathrm {e}}^{2\,x}\,3{}\mathrm {i}}{8}+\frac {3\,{\mathrm {e}}^{3\,x}}{40}-\frac {5\,{\mathrm {e}}^x}{8}-\frac {1}{8}{}\mathrm {i}}{{\mathrm {e}}^{4\,x}-6\,{\mathrm {e}}^{2\,x}+1+{\mathrm {e}}^{3\,x}\,4{}\mathrm {i}-{\mathrm {e}}^x\,4{}\mathrm {i}}-\frac {\frac {3\,{\mathrm {e}}^{4\,x}}{40}-\frac {5\,{\mathrm {e}}^{2\,x}}{4}+\frac {3}{40}+\frac {{\mathrm {e}}^{3\,x}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^x\,1{}\mathrm {i}}{2}}{{\mathrm {e}}^{5\,x}-10\,{\mathrm {e}}^{3\,x}+{\mathrm {e}}^{4\,x}\,5{}\mathrm {i}-{\mathrm {e}}^{2\,x}\,10{}\mathrm {i}+5\,{\mathrm {e}}^x+1{}\mathrm {i}} \]
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}^{4}{\relax (x )}}{\sinh {\relax (x )} + i}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________