Optimal. Leaf size=49 \[ \frac {4 \tanh ^3(x)}{21}-\frac {4 \tanh (x)}{7}-\frac {\text {sech}^3(x)}{7 (\sinh (x)+i)}-\frac {i \text {sech}^3(x)}{7 (\sinh (x)+i)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2672, 3767} \[ \frac {4 \tanh ^3(x)}{21}-\frac {4 \tanh (x)}{7}-\frac {\text {sech}^3(x)}{7 (\sinh (x)+i)}-\frac {i \text {sech}^3(x)}{7 (\sinh (x)+i)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2672
Rule 3767
Rubi steps
\begin {align*} \int \frac {\text {sech}^4(x)}{(i+\sinh (x))^2} \, dx &=-\frac {i \text {sech}^3(x)}{7 (i+\sinh (x))^2}-\frac {5}{7} i \int \frac {\text {sech}^4(x)}{i+\sinh (x)} \, dx\\ &=-\frac {i \text {sech}^3(x)}{7 (i+\sinh (x))^2}-\frac {\text {sech}^3(x)}{7 (i+\sinh (x))}-\frac {4}{7} \int \text {sech}^4(x) \, dx\\ &=-\frac {i \text {sech}^3(x)}{7 (i+\sinh (x))^2}-\frac {\text {sech}^3(x)}{7 (i+\sinh (x))}-\frac {4}{7} i \operatorname {Subst}\left (\int \left (1+x^2\right ) \, dx,x,-i \tanh (x)\right )\\ &=-\frac {i \text {sech}^3(x)}{7 (i+\sinh (x))^2}-\frac {\text {sech}^3(x)}{7 (i+\sinh (x))}-\frac {4 \tanh (x)}{7}+\frac {4 \tanh ^3(x)}{21}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 47, normalized size = 0.96 \[ -\frac {\text {sech}^3(x) (-14 \sinh (x)-3 \sinh (3 x)+\sinh (5 x)+8 i \cosh (2 x)+4 i \cosh (4 x))}{42 (\sinh (x)+i)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.59, size = 82, normalized size = 1.67 \[ -\frac {224 \, e^{\left (4 \, x\right )} + 128 i \, e^{\left (3 \, x\right )} + 48 \, e^{\left (2 \, x\right )} + 64 i \, e^{x} - 16}{21 \, e^{\left (10 \, x\right )} + 84 i \, e^{\left (9 \, x\right )} - 63 \, e^{\left (8 \, x\right )} + 168 i \, e^{\left (7 \, x\right )} - 294 \, e^{\left (6 \, x\right )} - 294 \, e^{\left (4 \, x\right )} - 168 i \, e^{\left (3 \, x\right )} - 63 \, e^{\left (2 \, x\right )} - 84 i \, e^{x} + 21} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.23, size = 65, normalized size = 1.33 \[ -\frac {6 i \, e^{\left (2 \, x\right )} + 15 \, e^{x} - 7 i}{24 \, {\left (e^{x} - i\right )}^{3}} - \frac {-42 i \, e^{\left (6 \, x\right )} + 315 \, e^{\left (5 \, x\right )} + 1015 i \, e^{\left (4 \, x\right )} - 1750 \, e^{\left (3 \, x\right )} - 1344 i \, e^{\left (2 \, x\right )} + 511 \, e^{x} + 79 i}{168 \, {\left (e^{x} + i\right )}^{7}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.09, size = 116, normalized size = 2.37 \[ \frac {2 i}{\left (\tanh \left (\frac {x}{2}\right )+i\right )^{6}}-\frac {5 i}{\left (\tanh \left (\frac {x}{2}\right )+i\right )^{4}}+\frac {23 i}{8 \left (\tanh \left (\frac {x}{2}\right )+i\right )^{2}}+\frac {4}{7 \left (\tanh \left (\frac {x}{2}\right )+i\right )^{7}}-\frac {4}{\left (\tanh \left (\frac {x}{2}\right )+i\right )^{5}}+\frac {55}{12 \left (\tanh \left (\frac {x}{2}\right )+i\right )^{3}}-\frac {13}{8 \left (\tanh \left (\frac {x}{2}\right )+i\right )}-\frac {i}{8 \left (\tanh \left (\frac {x}{2}\right )-i\right )^{2}}+\frac {1}{12 \left (\tanh \left (\frac {x}{2}\right )-i\right )^{3}}-\frac {3}{8 \left (\tanh \left (\frac {x}{2}\right )-i\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.34, size = 317, normalized size = 6.47 \[ -\frac {64 i \, e^{\left (-x\right )}}{84 i \, e^{\left (-x\right )} - 63 \, e^{\left (-2 \, x\right )} + 168 i \, e^{\left (-3 \, x\right )} - 294 \, e^{\left (-4 \, x\right )} - 294 \, e^{\left (-6 \, x\right )} - 168 i \, e^{\left (-7 \, x\right )} - 63 \, e^{\left (-8 \, x\right )} - 84 i \, e^{\left (-9 \, x\right )} + 21 \, e^{\left (-10 \, x\right )} + 21} + \frac {48 \, e^{\left (-2 \, x\right )}}{84 i \, e^{\left (-x\right )} - 63 \, e^{\left (-2 \, x\right )} + 168 i \, e^{\left (-3 \, x\right )} - 294 \, e^{\left (-4 \, x\right )} - 294 \, e^{\left (-6 \, x\right )} - 168 i \, e^{\left (-7 \, x\right )} - 63 \, e^{\left (-8 \, x\right )} - 84 i \, e^{\left (-9 \, x\right )} + 21 \, e^{\left (-10 \, x\right )} + 21} - \frac {128 i \, e^{\left (-3 \, x\right )}}{84 i \, e^{\left (-x\right )} - 63 \, e^{\left (-2 \, x\right )} + 168 i \, e^{\left (-3 \, x\right )} - 294 \, e^{\left (-4 \, x\right )} - 294 \, e^{\left (-6 \, x\right )} - 168 i \, e^{\left (-7 \, x\right )} - 63 \, e^{\left (-8 \, x\right )} - 84 i \, e^{\left (-9 \, x\right )} + 21 \, e^{\left (-10 \, x\right )} + 21} + \frac {224 \, e^{\left (-4 \, x\right )}}{84 i \, e^{\left (-x\right )} - 63 \, e^{\left (-2 \, x\right )} + 168 i \, e^{\left (-3 \, x\right )} - 294 \, e^{\left (-4 \, x\right )} - 294 \, e^{\left (-6 \, x\right )} - 168 i \, e^{\left (-7 \, x\right )} - 63 \, e^{\left (-8 \, x\right )} - 84 i \, e^{\left (-9 \, x\right )} + 21 \, e^{\left (-10 \, x\right )} + 21} - \frac {16}{84 i \, e^{\left (-x\right )} - 63 \, e^{\left (-2 \, x\right )} + 168 i \, e^{\left (-3 \, x\right )} - 294 \, e^{\left (-4 \, x\right )} - 294 \, e^{\left (-6 \, x\right )} - 168 i \, e^{\left (-7 \, x\right )} - 63 \, e^{\left (-8 \, x\right )} - 84 i \, e^{\left (-9 \, x\right )} + 21 \, e^{\left (-10 \, x\right )} + 21} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.53, size = 139, normalized size = 2.84 \[ \frac {\left (4\,{\mathrm {e}}^{3\,x}-4\,{\mathrm {e}}^x\right )\,\left (\frac {16\,{\mathrm {e}}^{2\,x}}{7}+\frac {32\,{\mathrm {e}}^{4\,x}}{3}-\frac {16}{21}\right )\,1{}\mathrm {i}}{{\left ({\mathrm {e}}^{2\,x}+1\right )}^7}-\frac {\left ({\mathrm {e}}^{4\,x}-6\,{\mathrm {e}}^{2\,x}+1\right )\,\left (\frac {16\,{\mathrm {e}}^{2\,x}}{7}+\frac {32\,{\mathrm {e}}^{4\,x}}{3}-\frac {16}{21}\right )}{{\left ({\mathrm {e}}^{2\,x}+1\right )}^7}-\frac {\left (4\,{\mathrm {e}}^{3\,x}-4\,{\mathrm {e}}^x\right )\,\left (\frac {128\,{\mathrm {e}}^{3\,x}}{21}+\frac {64\,{\mathrm {e}}^x}{21}\right )}{{\left ({\mathrm {e}}^{2\,x}+1\right )}^7}-\frac {\left (\frac {128\,{\mathrm {e}}^{3\,x}}{21}+\frac {64\,{\mathrm {e}}^x}{21}\right )\,\left ({\mathrm {e}}^{4\,x}-6\,{\mathrm {e}}^{2\,x}+1\right )\,1{}\mathrm {i}}{{\left ({\mathrm {e}}^{2\,x}+1\right )}^7} \]
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 )}}{\left (\sinh {\relax (x )} + i\right )^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________