Optimal. Leaf size=17 \[ \frac {\tanh ^6(x)}{6}-\frac {\tanh ^8(x)}{8} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4120, 2607, 14} \[ \frac {\tanh ^6(x)}{6}-\frac {\tanh ^8(x)}{8} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2607
Rule 4120
Rubi steps
\begin {align*} \int \text {sech}^4(x) \left (-1+\text {sech}^2(x)\right )^2 \tanh (x) \, dx &=\int \text {sech}^4(x) \tanh ^5(x) \, dx\\ &=-\operatorname {Subst}\left (\int x^5 \left (1+x^2\right ) \, dx,x,i \tanh (x)\right )\\ &=-\operatorname {Subst}\left (\int \left (x^5+x^7\right ) \, dx,x,i \tanh (x)\right )\\ &=\frac {\tanh ^6(x)}{6}-\frac {\tanh ^8(x)}{8}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 25, normalized size = 1.47 \[ -\frac {1}{8} \text {sech}^8(x)+\frac {\text {sech}^6(x)}{3}-\frac {\text {sech}^4(x)}{4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.42, size = 340, normalized size = 20.00 \[ -\frac {4 \, {\left (3 \, \cosh \relax (x)^{6} + 18 \, \cosh \relax (x) \sinh \relax (x)^{5} + 3 \, \sinh \relax (x)^{6} + {\left (45 \, \cosh \relax (x)^{2} - 4\right )} \sinh \relax (x)^{4} - 4 \, \cosh \relax (x)^{4} + 4 \, {\left (15 \, \cosh \relax (x)^{3} - 4 \, \cosh \relax (x)\right )} \sinh \relax (x)^{3} + {\left (45 \, \cosh \relax (x)^{4} - 24 \, \cosh \relax (x)^{2} + 13\right )} \sinh \relax (x)^{2} + 13 \, \cosh \relax (x)^{2} + 2 \, {\left (9 \, \cosh \relax (x)^{5} - 8 \, \cosh \relax (x)^{3} + 7 \, \cosh \relax (x)\right )} \sinh \relax (x) - 4\right )}}{3 \, {\left (\cosh \relax (x)^{10} + 10 \, \cosh \relax (x) \sinh \relax (x)^{9} + \sinh \relax (x)^{10} + {\left (45 \, \cosh \relax (x)^{2} + 8\right )} \sinh \relax (x)^{8} + 8 \, \cosh \relax (x)^{8} + 8 \, {\left (15 \, \cosh \relax (x)^{3} + 8 \, \cosh \relax (x)\right )} \sinh \relax (x)^{7} + {\left (210 \, \cosh \relax (x)^{4} + 224 \, \cosh \relax (x)^{2} + 29\right )} \sinh \relax (x)^{6} + 29 \, \cosh \relax (x)^{6} + 2 \, {\left (126 \, \cosh \relax (x)^{5} + 224 \, \cosh \relax (x)^{3} + 81 \, \cosh \relax (x)\right )} \sinh \relax (x)^{5} + {\left (210 \, \cosh \relax (x)^{6} + 560 \, \cosh \relax (x)^{4} + 435 \, \cosh \relax (x)^{2} + 64\right )} \sinh \relax (x)^{4} + 64 \, \cosh \relax (x)^{4} + 4 \, {\left (30 \, \cosh \relax (x)^{7} + 112 \, \cosh \relax (x)^{5} + 135 \, \cosh \relax (x)^{3} + 48 \, \cosh \relax (x)\right )} \sinh \relax (x)^{3} + {\left (45 \, \cosh \relax (x)^{8} + 224 \, \cosh \relax (x)^{6} + 435 \, \cosh \relax (x)^{4} + 384 \, \cosh \relax (x)^{2} + 98\right )} \sinh \relax (x)^{2} + 98 \, \cosh \relax (x)^{2} + 2 \, {\left (5 \, \cosh \relax (x)^{9} + 32 \, \cosh \relax (x)^{7} + 81 \, \cosh \relax (x)^{5} + 96 \, \cosh \relax (x)^{3} + 42 \, \cosh \relax (x)\right )} \sinh \relax (x) + 56\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.12, size = 41, normalized size = 2.41 \[ -\frac {4 \, {\left (3 \, e^{\left (12 \, x\right )} - 4 \, e^{\left (10 \, x\right )} + 10 \, e^{\left (8 \, x\right )} - 4 \, e^{\left (6 \, x\right )} + 3 \, e^{\left (4 \, x\right )}\right )}}{3 \, {\left (e^{\left (2 \, x\right )} + 1\right )}^{8}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.09, size = 20, normalized size = 1.18 \[ -\frac {\mathrm {sech}\relax (x )^{8}}{8}+\frac {\mathrm {sech}\relax (x )^{6}}{3}-\frac {\mathrm {sech}\relax (x )^{4}}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.30, size = 34, normalized size = 2.00 \[ -\frac {4}{{\left (e^{\left (-x\right )} + e^{x}\right )}^{4}} + \frac {64}{3 \, {\left (e^{\left (-x\right )} + e^{x}\right )}^{6}} - \frac {32}{{\left (e^{\left (-x\right )} + e^{x}\right )}^{8}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.76, size = 375, normalized size = 22.06 \[ \frac {{\mathrm {e}}^{2\,x}-5\,{\mathrm {e}}^{4\,x}+10\,{\mathrm {e}}^{6\,x}-10\,{\mathrm {e}}^{8\,x}+5\,{\mathrm {e}}^{10\,x}-{\mathrm {e}}^{12\,x}}{8\,{\mathrm {e}}^{2\,x}+28\,{\mathrm {e}}^{4\,x}+56\,{\mathrm {e}}^{6\,x}+70\,{\mathrm {e}}^{8\,x}+56\,{\mathrm {e}}^{10\,x}+28\,{\mathrm {e}}^{12\,x}+8\,{\mathrm {e}}^{14\,x}+{\mathrm {e}}^{16\,x}+1}-\frac {\frac {20\,{\mathrm {e}}^{4\,x}}{7}-\frac {10\,{\mathrm {e}}^{2\,x}}{7}-\frac {50\,{\mathrm {e}}^{6\,x}}{21}+\frac {5\,{\mathrm {e}}^{8\,x}}{7}+\frac {5}{21}}{6\,{\mathrm {e}}^{2\,x}+15\,{\mathrm {e}}^{4\,x}+20\,{\mathrm {e}}^{6\,x}+15\,{\mathrm {e}}^{8\,x}+6\,{\mathrm {e}}^{10\,x}+{\mathrm {e}}^{12\,x}+1}-\frac {\frac {8\,{\mathrm {e}}^{2\,x}}{7}-\frac {10\,{\mathrm {e}}^{4\,x}}{7}+\frac {4\,{\mathrm {e}}^{6\,x}}{7}-\frac {2}{7}}{5\,{\mathrm {e}}^{2\,x}+10\,{\mathrm {e}}^{4\,x}+10\,{\mathrm {e}}^{6\,x}+5\,{\mathrm {e}}^{8\,x}+{\mathrm {e}}^{10\,x}+1}-\frac {\frac {10\,{\mathrm {e}}^{2\,x}}{7}-\frac {30\,{\mathrm {e}}^{4\,x}}{7}+\frac {40\,{\mathrm {e}}^{6\,x}}{7}-\frac {25\,{\mathrm {e}}^{8\,x}}{7}+\frac {6\,{\mathrm {e}}^{10\,x}}{7}-\frac {1}{7}}{7\,{\mathrm {e}}^{2\,x}+21\,{\mathrm {e}}^{4\,x}+35\,{\mathrm {e}}^{6\,x}+35\,{\mathrm {e}}^{8\,x}+21\,{\mathrm {e}}^{10\,x}+7\,{\mathrm {e}}^{12\,x}+{\mathrm {e}}^{14\,x}+1}-\frac {\frac {2\,{\mathrm {e}}^{2\,x}}{7}-\frac {5}{21}}{3\,{\mathrm {e}}^{2\,x}+3\,{\mathrm {e}}^{4\,x}+{\mathrm {e}}^{6\,x}+1}-\frac {1}{7\,\left (2\,{\mathrm {e}}^{2\,x}+{\mathrm {e}}^{4\,x}+1\right )}-\frac {\frac {3\,{\mathrm {e}}^{4\,x}}{7}-\frac {5\,{\mathrm {e}}^{2\,x}}{7}+\frac {2}{7}}{4\,{\mathrm {e}}^{2\,x}+6\,{\mathrm {e}}^{4\,x}+4\,{\mathrm {e}}^{6\,x}+{\mathrm {e}}^{8\,x}+1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 6.58, size = 19, normalized size = 1.12 \[ - \frac {\operatorname {sech}^{8}{\relax (x )}}{8} + \frac {\operatorname {sech}^{6}{\relax (x )}}{3} - \frac {\operatorname {sech}^{4}{\relax (x )}}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________