Optimal. Leaf size=41 \[ \frac {\tanh (a+b x)}{b}-\frac {2 \tanh ^3(a+b x)}{3 b}+\frac {\tanh ^5(a+b x)}{5 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {3852}
\begin {gather*} \frac {\tanh ^5(a+b x)}{5 b}-\frac {2 \tanh ^3(a+b x)}{3 b}+\frac {\tanh (a+b x)}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3852
Rubi steps
\begin {align*} \int \text {sech}^6(a+b x) \, dx &=\frac {i \text {Subst}\left (\int \left (1+2 x^2+x^4\right ) \, dx,x,-i \tanh (a+b x)\right )}{b}\\ &=\frac {\tanh (a+b x)}{b}-\frac {2 \tanh ^3(a+b x)}{3 b}+\frac {\tanh ^5(a+b x)}{5 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 41, normalized size = 1.00 \begin {gather*} \frac {\tanh (a+b x)}{b}-\frac {2 \tanh ^3(a+b x)}{3 b}+\frac {\tanh ^5(a+b x)}{5 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.13, size = 43, normalized size = 1.05
method | result | size |
risch | \(-\frac {16 \left (10 \,{\mathrm e}^{4 b x +4 a}+5 \,{\mathrm e}^{2 b x +2 a}+1\right )}{15 b \left ({\mathrm e}^{2 b x +2 a}+1\right )^{5}}\) | \(43\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 205 vs.
\(2 (37) = 74\).
time = 0.26, size = 205, normalized size = 5.00 \begin {gather*} \frac {16 \, e^{\left (-2 \, b x - 2 \, a\right )}}{3 \, b {\left (5 \, e^{\left (-2 \, b x - 2 \, a\right )} + 10 \, e^{\left (-4 \, b x - 4 \, a\right )} + 10 \, e^{\left (-6 \, b x - 6 \, a\right )} + 5 \, e^{\left (-8 \, b x - 8 \, a\right )} + e^{\left (-10 \, b x - 10 \, a\right )} + 1\right )}} + \frac {32 \, e^{\left (-4 \, b x - 4 \, a\right )}}{3 \, b {\left (5 \, e^{\left (-2 \, b x - 2 \, a\right )} + 10 \, e^{\left (-4 \, b x - 4 \, a\right )} + 10 \, e^{\left (-6 \, b x - 6 \, a\right )} + 5 \, e^{\left (-8 \, b x - 8 \, a\right )} + e^{\left (-10 \, b x - 10 \, a\right )} + 1\right )}} + \frac {16}{15 \, b {\left (5 \, e^{\left (-2 \, b x - 2 \, a\right )} + 10 \, e^{\left (-4 \, b x - 4 \, a\right )} + 10 \, e^{\left (-6 \, b x - 6 \, a\right )} + 5 \, e^{\left (-8 \, b x - 8 \, a\right )} + e^{\left (-10 \, b x - 10 \, a\right )} + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 344 vs.
\(2 (37) = 74\).
time = 0.34, size = 344, normalized size = 8.39 \begin {gather*} -\frac {16 \, {\left (11 \, \cosh \left (b x + a\right )^{2} + 18 \, \cosh \left (b x + a\right ) \sinh \left (b x + a\right ) + 11 \, \sinh \left (b x + a\right )^{2} + 5\right )}}{15 \, {\left (b \cosh \left (b x + a\right )^{8} + 8 \, b \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{7} + b \sinh \left (b x + a\right )^{8} + 5 \, b \cosh \left (b x + a\right )^{6} + {\left (28 \, b \cosh \left (b x + a\right )^{2} + 5 \, b\right )} \sinh \left (b x + a\right )^{6} + 2 \, {\left (28 \, b \cosh \left (b x + a\right )^{3} + 15 \, b \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right )^{5} + 10 \, b \cosh \left (b x + a\right )^{4} + 5 \, {\left (14 \, b \cosh \left (b x + a\right )^{4} + 15 \, b \cosh \left (b x + a\right )^{2} + 2 \, b\right )} \sinh \left (b x + a\right )^{4} + 4 \, {\left (14 \, b \cosh \left (b x + a\right )^{5} + 25 \, b \cosh \left (b x + a\right )^{3} + 10 \, b \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right )^{3} + 11 \, b \cosh \left (b x + a\right )^{2} + {\left (28 \, b \cosh \left (b x + a\right )^{6} + 75 \, b \cosh \left (b x + a\right )^{4} + 60 \, b \cosh \left (b x + a\right )^{2} + 11 \, b\right )} \sinh \left (b x + a\right )^{2} + 2 \, {\left (4 \, b \cosh \left (b x + a\right )^{7} + 15 \, b \cosh \left (b x + a\right )^{5} + 20 \, b \cosh \left (b x + a\right )^{3} + 9 \, b \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right ) + 5 \, b\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \operatorname {sech}^{6}{\left (a + b x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.39, size = 42, normalized size = 1.02 \begin {gather*} -\frac {16 \, {\left (10 \, e^{\left (4 \, b x + 4 \, a\right )} + 5 \, e^{\left (2 \, b x + 2 \, a\right )} + 1\right )}}{15 \, b {\left (e^{\left (2 \, b x + 2 \, a\right )} + 1\right )}^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.35, size = 42, normalized size = 1.02 \begin {gather*} -\frac {16\,\left (5\,{\mathrm {e}}^{2\,a+2\,b\,x}+10\,{\mathrm {e}}^{4\,a+4\,b\,x}+1\right )}{15\,b\,{\left ({\mathrm {e}}^{2\,a+2\,b\,x}+1\right )}^5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________