Optimal. Leaf size=36 \[ \frac{\text{sech}^{n+2}(a+b x)}{b (n+2)}-\frac{\text{sech}^n(a+b x)}{b n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0485654, antiderivative size = 36, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {2622, 14} \[ \frac{\text{sech}^{n+2}(a+b x)}{b (n+2)}-\frac{\text{sech}^n(a+b x)}{b n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2622
Rule 14
Rubi steps
\begin{align*} \int \text{sech}^{3+n}(a+b x) \sinh ^3(a+b x) \, dx &=\frac{\operatorname{Subst}\left (\int x^{-1+n} \left (-1+x^2\right ) \, dx,x,\text{sech}(a+b x)\right )}{b}\\ &=\frac{\operatorname{Subst}\left (\int \left (-x^{-1+n}+x^{1+n}\right ) \, dx,x,\text{sech}(a+b x)\right )}{b}\\ &=-\frac{\text{sech}^n(a+b x)}{b n}+\frac{\text{sech}^{2+n}(a+b x)}{b (2+n)}\\ \end{align*}
Mathematica [A] time = 0.122265, size = 32, normalized size = 0.89 \[ \frac{\text{sech}^n(a+b x) \left (\frac{\text{sech}^2(a+b x)}{n+2}-\frac{1}{n}\right )}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.134, size = 275, normalized size = 7.6 \begin{align*} -{\frac{n{{\rm e}^{4\,bx+4\,a}}+2\,{{\rm e}^{4\,bx+4\,a}}-2\,n{{\rm e}^{2\,bx+2\,a}}+4\,{{\rm e}^{2\,bx+2\,a}}+n+2}{ \left ( n+2 \right ) bn \left ( 1+{{\rm e}^{2\,bx+2\,a}} \right ) ^{2}}{{\rm e}^{-{\frac{n}{2} \left ( i\pi \, \left ({\it csgn} \left ({\frac{i{{\rm e}^{bx+a}}}{1+{{\rm e}^{2\,bx+2\,a}}}} \right ) \right ) ^{3}-i\pi \, \left ({\it csgn} \left ({\frac{i{{\rm e}^{bx+a}}}{1+{{\rm e}^{2\,bx+2\,a}}}} \right ) \right ) ^{2}{\it csgn} \left ( i{{\rm e}^{bx+a}} \right ) -i\pi \, \left ({\it csgn} \left ({\frac{i{{\rm e}^{bx+a}}}{1+{{\rm e}^{2\,bx+2\,a}}}} \right ) \right ) ^{2}{\it csgn} \left ({\frac{i}{1+{{\rm e}^{2\,bx+2\,a}}}} \right ) +i\pi \,{\it csgn} \left ({\frac{i{{\rm e}^{bx+a}}}{1+{{\rm e}^{2\,bx+2\,a}}}} \right ){\it csgn} \left ( i{{\rm e}^{bx+a}} \right ){\it csgn} \left ({\frac{i}{1+{{\rm e}^{2\,bx+2\,a}}}} \right ) -2\,\ln \left ({{\rm e}^{bx+a}} \right ) +2\,\ln \left ( 1+{{\rm e}^{2\,bx+2\,a}} \right ) -2\,\ln \left ( 2 \right ) \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 2.01708, size = 466, normalized size = 12.94 \begin{align*} -\frac{2^{n} n e^{\left (-{\left (b x + a\right )} n - n \log \left (e^{\left (-2 \, b x - 2 \, a\right )} + 1\right )\right )}}{{\left (n^{2} + 2 \,{\left (n^{2} + 2 \, n\right )} e^{\left (-2 \, b x - 2 \, a\right )} +{\left (n^{2} + 2 \, n\right )} e^{\left (-4 \, b x - 4 \, a\right )} + 2 \, n\right )} b} + \frac{{\left (2^{n + 1} n - 2^{n + 2}\right )} e^{\left (-{\left (b x + a\right )} n - 2 \, b x - n \log \left (e^{\left (-2 \, b x - 2 \, a\right )} + 1\right ) - 2 \, a\right )}}{{\left (n^{2} + 2 \,{\left (n^{2} + 2 \, n\right )} e^{\left (-2 \, b x - 2 \, a\right )} +{\left (n^{2} + 2 \, n\right )} e^{\left (-4 \, b x - 4 \, a\right )} + 2 \, n\right )} b} - \frac{{\left (2^{n} n + 2^{n + 1}\right )} e^{\left (-{\left (b x + a\right )} n - 4 \, b x - n \log \left (e^{\left (-2 \, b x - 2 \, a\right )} + 1\right ) - 4 \, a\right )}}{{\left (n^{2} + 2 \,{\left (n^{2} + 2 \, n\right )} e^{\left (-2 \, b x - 2 \, a\right )} +{\left (n^{2} + 2 \, n\right )} e^{\left (-4 \, b x - 4 \, a\right )} + 2 \, n\right )} b} - \frac{2^{n + 1} e^{\left (-{\left (b x + a\right )} n - n \log \left (e^{\left (-2 \, b x - 2 \, a\right )} + 1\right )\right )}}{{\left (n^{2} + 2 \,{\left (n^{2} + 2 \, n\right )} e^{\left (-2 \, b x - 2 \, a\right )} +{\left (n^{2} + 2 \, n\right )} e^{\left (-4 \, b x - 4 \, a\right )} + 2 \, n\right )} b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.85963, size = 605, normalized size = 16.81 \begin{align*} -\frac{{\left ({\left (n + 2\right )} \cosh \left (b x + a\right )^{2} +{\left (n + 2\right )} \sinh \left (b x + a\right )^{2} - n + 2\right )} \cosh \left (n \log \left (\frac{2 \,{\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right )}}{\cosh \left (b x + a\right )^{2} + 2 \, \cosh \left (b x + a\right ) \sinh \left (b x + a\right ) + \sinh \left (b x + a\right )^{2} + 1}\right )\right ) +{\left ({\left (n + 2\right )} \cosh \left (b x + a\right )^{2} +{\left (n + 2\right )} \sinh \left (b x + a\right )^{2} - n + 2\right )} \sinh \left (n \log \left (\frac{2 \,{\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right )}}{\cosh \left (b x + a\right )^{2} + 2 \, \cosh \left (b x + a\right ) \sinh \left (b x + a\right ) + \sinh \left (b x + a\right )^{2} + 1}\right )\right )}{b n^{2} +{\left (b n^{2} + 2 \, b n\right )} \cosh \left (b x + a\right )^{2} +{\left (b n^{2} + 2 \, b n\right )} \sinh \left (b x + a\right )^{2} + 2 \, b n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \operatorname{sech}\left (b x + a\right )^{n} \tanh \left (b x + a\right )^{3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]