3.104 \(\int \frac {\tanh ^5(x)}{a+a \text {sech}(x)} \, dx\)

Optimal. Leaf size=36 \[ -\frac {\text {sech}^3(x)}{3 a}+\frac {\text {sech}^2(x)}{2 a}+\frac {\text {sech}(x)}{a}+\frac {\log (\cosh (x))}{a} \]

[Out]

ln(cosh(x))/a+sech(x)/a+1/2*sech(x)^2/a-1/3*sech(x)^3/a

________________________________________________________________________________________

Rubi [A]  time = 0.06, antiderivative size = 36, 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 = {3879, 75} \[ -\frac {\text {sech}^3(x)}{3 a}+\frac {\text {sech}^2(x)}{2 a}+\frac {\text {sech}(x)}{a}+\frac {\log (\cosh (x))}{a} \]

Antiderivative was successfully verified.

[In]

Int[Tanh[x]^5/(a + a*Sech[x]),x]

[Out]

Log[Cosh[x]]/a + Sech[x]/a + Sech[x]^2/(2*a) - Sech[x]^3/(3*a)

Rule 75

Int[((d_.)*(x_))^(n_.)*((a_) + (b_.)*(x_))*((e_) + (f_.)*(x_))^(p_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*
x)*(d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, d, e, f, n}, x] && IGtQ[p, 0] && EqQ[b*e + a*f, 0] &&  !(ILtQ[n
 + p + 2, 0] && GtQ[n + 2*p, 0])

Rule 3879

Int[cot[(c_.) + (d_.)*(x_)]^(m_.)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n_.), x_Symbol] :> Dist[1/(a^(m - n
- 1)*b^n*d), Subst[Int[((a - b*x)^((m - 1)/2)*(a + b*x)^((m - 1)/2 + n))/x^(m + n), x], x, Sin[c + d*x]], x] /
; FreeQ[{a, b, c, d}, x] && IntegerQ[(m - 1)/2] && EqQ[a^2 - b^2, 0] && IntegerQ[n]

Rubi steps

\begin {align*} \int \frac {\tanh ^5(x)}{a+a \text {sech}(x)} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {(a-a x)^2 (a+a x)}{x^4} \, dx,x,\cosh (x)\right )}{a^4}\\ &=\frac {\operatorname {Subst}\left (\int \left (\frac {a^3}{x^4}-\frac {a^3}{x^3}-\frac {a^3}{x^2}+\frac {a^3}{x}\right ) \, dx,x,\cosh (x)\right )}{a^4}\\ &=\frac {\log (\cosh (x))}{a}+\frac {\text {sech}(x)}{a}+\frac {\text {sech}^2(x)}{2 a}-\frac {\text {sech}^3(x)}{3 a}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.07, size = 38, normalized size = 1.06 \[ \frac {\text {sech}^3(x) (6 \cosh (2 x)+3 \cosh (3 x) \log (\cosh (x))+\cosh (x) (9 \log (\cosh (x))+6)+2)}{12 a} \]

Antiderivative was successfully verified.

[In]

Integrate[Tanh[x]^5/(a + a*Sech[x]),x]

[Out]

((2 + 6*Cosh[2*x] + 3*Cosh[3*x]*Log[Cosh[x]] + Cosh[x]*(6 + 9*Log[Cosh[x]]))*Sech[x]^3)/(12*a)

________________________________________________________________________________________

fricas [B]  time = 0.40, size = 437, normalized size = 12.14 \[ -\frac {3 \, x \cosh \relax (x)^{6} + 3 \, x \sinh \relax (x)^{6} + 6 \, {\left (3 \, x \cosh \relax (x) - 1\right )} \sinh \relax (x)^{5} + 3 \, {\left (3 \, x - 2\right )} \cosh \relax (x)^{4} - 6 \, \cosh \relax (x)^{5} + 3 \, {\left (15 \, x \cosh \relax (x)^{2} + 3 \, x - 10 \, \cosh \relax (x) - 2\right )} \sinh \relax (x)^{4} + 4 \, {\left (15 \, x \cosh \relax (x)^{3} + 3 \, {\left (3 \, x - 2\right )} \cosh \relax (x) - 15 \, \cosh \relax (x)^{2} - 1\right )} \sinh \relax (x)^{3} + 3 \, {\left (3 \, x - 2\right )} \cosh \relax (x)^{2} - 4 \, \cosh \relax (x)^{3} + 3 \, {\left (15 \, x \cosh \relax (x)^{4} + 6 \, {\left (3 \, x - 2\right )} \cosh \relax (x)^{2} - 20 \, \cosh \relax (x)^{3} + 3 \, x - 4 \, \cosh \relax (x) - 2\right )} \sinh \relax (x)^{2} - 3 \, {\left (\cosh \relax (x)^{6} + 6 \, \cosh \relax (x) \sinh \relax (x)^{5} + \sinh \relax (x)^{6} + 3 \, {\left (5 \, \cosh \relax (x)^{2} + 1\right )} \sinh \relax (x)^{4} + 3 \, \cosh \relax (x)^{4} + 4 \, {\left (5 \, \cosh \relax (x)^{3} + 3 \, \cosh \relax (x)\right )} \sinh \relax (x)^{3} + 3 \, {\left (5 \, \cosh \relax (x)^{4} + 6 \, \cosh \relax (x)^{2} + 1\right )} \sinh \relax (x)^{2} + 3 \, \cosh \relax (x)^{2} + 6 \, {\left (\cosh \relax (x)^{5} + 2 \, \cosh \relax (x)^{3} + \cosh \relax (x)\right )} \sinh \relax (x) + 1\right )} \log \left (\frac {2 \, \cosh \relax (x)}{\cosh \relax (x) - \sinh \relax (x)}\right ) + 6 \, {\left (3 \, x \cosh \relax (x)^{5} + 2 \, {\left (3 \, x - 2\right )} \cosh \relax (x)^{3} - 5 \, \cosh \relax (x)^{4} + {\left (3 \, x - 2\right )} \cosh \relax (x) - 2 \, \cosh \relax (x)^{2} - 1\right )} \sinh \relax (x) + 3 \, x - 6 \, \cosh \relax (x)}{3 \, {\left (a \cosh \relax (x)^{6} + 6 \, a \cosh \relax (x) \sinh \relax (x)^{5} + a \sinh \relax (x)^{6} + 3 \, a \cosh \relax (x)^{4} + 3 \, {\left (5 \, a \cosh \relax (x)^{2} + a\right )} \sinh \relax (x)^{4} + 4 \, {\left (5 \, a \cosh \relax (x)^{3} + 3 \, a \cosh \relax (x)\right )} \sinh \relax (x)^{3} + 3 \, a \cosh \relax (x)^{2} + 3 \, {\left (5 \, a \cosh \relax (x)^{4} + 6 \, a \cosh \relax (x)^{2} + a\right )} \sinh \relax (x)^{2} + 6 \, {\left (a \cosh \relax (x)^{5} + 2 \, a \cosh \relax (x)^{3} + a \cosh \relax (x)\right )} \sinh \relax (x) + a\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tanh(x)^5/(a+a*sech(x)),x, algorithm="fricas")

[Out]

-1/3*(3*x*cosh(x)^6 + 3*x*sinh(x)^6 + 6*(3*x*cosh(x) - 1)*sinh(x)^5 + 3*(3*x - 2)*cosh(x)^4 - 6*cosh(x)^5 + 3*
(15*x*cosh(x)^2 + 3*x - 10*cosh(x) - 2)*sinh(x)^4 + 4*(15*x*cosh(x)^3 + 3*(3*x - 2)*cosh(x) - 15*cosh(x)^2 - 1
)*sinh(x)^3 + 3*(3*x - 2)*cosh(x)^2 - 4*cosh(x)^3 + 3*(15*x*cosh(x)^4 + 6*(3*x - 2)*cosh(x)^2 - 20*cosh(x)^3 +
 3*x - 4*cosh(x) - 2)*sinh(x)^2 - 3*(cosh(x)^6 + 6*cosh(x)*sinh(x)^5 + sinh(x)^6 + 3*(5*cosh(x)^2 + 1)*sinh(x)
^4 + 3*cosh(x)^4 + 4*(5*cosh(x)^3 + 3*cosh(x))*sinh(x)^3 + 3*(5*cosh(x)^4 + 6*cosh(x)^2 + 1)*sinh(x)^2 + 3*cos
h(x)^2 + 6*(cosh(x)^5 + 2*cosh(x)^3 + cosh(x))*sinh(x) + 1)*log(2*cosh(x)/(cosh(x) - sinh(x))) + 6*(3*x*cosh(x
)^5 + 2*(3*x - 2)*cosh(x)^3 - 5*cosh(x)^4 + (3*x - 2)*cosh(x) - 2*cosh(x)^2 - 1)*sinh(x) + 3*x - 6*cosh(x))/(a
*cosh(x)^6 + 6*a*cosh(x)*sinh(x)^5 + a*sinh(x)^6 + 3*a*cosh(x)^4 + 3*(5*a*cosh(x)^2 + a)*sinh(x)^4 + 4*(5*a*co
sh(x)^3 + 3*a*cosh(x))*sinh(x)^3 + 3*a*cosh(x)^2 + 3*(5*a*cosh(x)^4 + 6*a*cosh(x)^2 + a)*sinh(x)^2 + 6*(a*cosh
(x)^5 + 2*a*cosh(x)^3 + a*cosh(x))*sinh(x) + a)

________________________________________________________________________________________

giac [A]  time = 0.12, size = 61, normalized size = 1.69 \[ \frac {\log \left (e^{\left (-x\right )} + e^{x}\right )}{a} - \frac {11 \, {\left (e^{\left (-x\right )} + e^{x}\right )}^{3} - 12 \, {\left (e^{\left (-x\right )} + e^{x}\right )}^{2} - 12 \, e^{\left (-x\right )} - 12 \, e^{x} + 16}{6 \, a {\left (e^{\left (-x\right )} + e^{x}\right )}^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tanh(x)^5/(a+a*sech(x)),x, algorithm="giac")

[Out]

log(e^(-x) + e^x)/a - 1/6*(11*(e^(-x) + e^x)^3 - 12*(e^(-x) + e^x)^2 - 12*e^(-x) - 12*e^x + 16)/(a*(e^(-x) + e
^x)^3)

________________________________________________________________________________________

maple [A]  time = 0.13, size = 34, normalized size = 0.94 \[ -\frac {\mathrm {sech}\relax (x )^{3}}{3 a}+\frac {\mathrm {sech}\relax (x )^{2}}{2 a}+\frac {\mathrm {sech}\relax (x )}{a}-\frac {\ln \left (\mathrm {sech}\relax (x )\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tanh(x)^5/(a+a*sech(x)),x)

[Out]

-1/3*sech(x)^3/a+1/2*sech(x)^2/a+sech(x)/a-1/a*ln(sech(x))

________________________________________________________________________________________

maxima [B]  time = 0.47, size = 74, normalized size = 2.06 \[ \frac {x}{a} + \frac {2 \, {\left (3 \, e^{\left (-x\right )} + 3 \, e^{\left (-2 \, x\right )} + 2 \, e^{\left (-3 \, x\right )} + 3 \, e^{\left (-4 \, x\right )} + 3 \, e^{\left (-5 \, x\right )}\right )}}{3 \, {\left (3 \, a e^{\left (-2 \, x\right )} + 3 \, a e^{\left (-4 \, x\right )} + a e^{\left (-6 \, x\right )} + a\right )}} + \frac {\log \left (e^{\left (-2 \, x\right )} + 1\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tanh(x)^5/(a+a*sech(x)),x, algorithm="maxima")

[Out]

x/a + 2/3*(3*e^(-x) + 3*e^(-2*x) + 2*e^(-3*x) + 3*e^(-4*x) + 3*e^(-5*x))/(3*a*e^(-2*x) + 3*a*e^(-4*x) + a*e^(-
6*x) + a) + log(e^(-2*x) + 1)/a

________________________________________________________________________________________

mupad [B]  time = 1.43, size = 96, normalized size = 2.67 \[ \frac {\ln \left ({\mathrm {e}}^{2\,x}+1\right )}{a}-\frac {\frac {2}{a}+\frac {8\,{\mathrm {e}}^x}{3\,a}}{2\,{\mathrm {e}}^{2\,x}+{\mathrm {e}}^{4\,x}+1}-\frac {x}{a}+\frac {\frac {2}{a}+\frac {2\,{\mathrm {e}}^x}{a}}{{\mathrm {e}}^{2\,x}+1}+\frac {8\,{\mathrm {e}}^x}{3\,a\,\left (3\,{\mathrm {e}}^{2\,x}+3\,{\mathrm {e}}^{4\,x}+{\mathrm {e}}^{6\,x}+1\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tanh(x)^5/(a + a/cosh(x)),x)

[Out]

log(exp(2*x) + 1)/a - (2/a + (8*exp(x))/(3*a))/(2*exp(2*x) + exp(4*x) + 1) - x/a + (2/a + (2*exp(x))/a)/(exp(2
*x) + 1) + (8*exp(x))/(3*a*(3*exp(2*x) + 3*exp(4*x) + exp(6*x) + 1))

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {\tanh ^{5}{\relax (x )}}{\operatorname {sech}{\relax (x )} + 1}\, dx}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tanh(x)**5/(a+a*sech(x)),x)

[Out]

Integral(tanh(x)**5/(sech(x) + 1), x)/a

________________________________________________________________________________________