3.1039 \(\int x \cosh (2 x) \text {sech}(x) \, dx\)

Optimal. Leaf size=43 \[ i \text {Li}_2\left (-i e^x\right )-i \text {Li}_2\left (i e^x\right )-2 x \tan ^{-1}\left (e^x\right )+2 x \sinh (x)-2 \cosh (x) \]

[Out]

-2*x*arctan(exp(x))-2*cosh(x)+I*polylog(2,-I*exp(x))-I*polylog(2,I*exp(x))+2*x*sinh(x)

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 7, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.875, Rules used = {5473, 3296, 2638, 5449, 4180, 2279, 2391} \[ i \text {PolyLog}\left (2,-i e^x\right )-i \text {PolyLog}\left (2,i e^x\right )-2 x \tan ^{-1}\left (e^x\right )+2 x \sinh (x)-2 \cosh (x) \]

Antiderivative was successfully verified.

[In]

Int[x*Cosh[2*x]*Sech[x],x]

[Out]

-2*x*ArcTan[E^x] - 2*Cosh[x] + I*PolyLog[2, (-I)*E^x] - I*PolyLog[2, I*E^x] + 2*x*Sinh[x]

Rule 2279

Int[Log[(a_) + (b_.)*((F_)^((e_.)*((c_.) + (d_.)*(x_))))^(n_.)], x_Symbol] :> Dist[1/(d*e*n*Log[F]), Subst[Int
[Log[a + b*x]/x, x], x, (F^(e*(c + d*x)))^n], x] /; FreeQ[{F, a, b, c, d, e, n}, x] && GtQ[a, 0]

Rule 2391

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> -Simp[PolyLog[2, -(c*e*x^n)]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 2638

Int[sin[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Cos[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 3296

Int[((c_.) + (d_.)*(x_))^(m_.)*sin[(e_.) + (f_.)*(x_)], x_Symbol] :> -Simp[((c + d*x)^m*Cos[e + f*x])/f, x] +
Dist[(d*m)/f, Int[(c + d*x)^(m - 1)*Cos[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && GtQ[m, 0]

Rule 4180

Int[csc[(e_.) + Pi*(k_.) + (Complex[0, fz_])*(f_.)*(x_)]*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[(-2*(c
+ d*x)^m*ArcTanh[E^(-(I*e) + f*fz*x)/E^(I*k*Pi)])/(f*fz*I), x] + (-Dist[(d*m)/(f*fz*I), Int[(c + d*x)^(m - 1)*
Log[1 - E^(-(I*e) + f*fz*x)/E^(I*k*Pi)], x], x] + Dist[(d*m)/(f*fz*I), Int[(c + d*x)^(m - 1)*Log[1 + E^(-(I*e)
 + f*fz*x)/E^(I*k*Pi)], x], x]) /; FreeQ[{c, d, e, f, fz}, x] && IntegerQ[2*k] && IGtQ[m, 0]

Rule 5449

Int[((c_.) + (d_.)*(x_))^(m_.)*Sinh[(a_.) + (b_.)*(x_)]^(n_.)*Tanh[(a_.) + (b_.)*(x_)]^(p_.), x_Symbol] :> Int
[(c + d*x)^m*Sinh[a + b*x]^n*Tanh[a + b*x]^(p - 2), x] - Int[(c + d*x)^m*Sinh[a + b*x]^(n - 2)*Tanh[a + b*x]^p
, x] /; FreeQ[{a, b, c, d, m}, x] && IGtQ[n, 0] && IGtQ[p, 0]

Rule 5473

Int[((e_.) + (f_.)*(x_))^(m_.)*(F_)[(a_.) + (b_.)*(x_)]^(p_.)*(G_)[(c_.) + (d_.)*(x_)]^(q_.), x_Symbol] :> Int
[ExpandTrigExpand[(e + f*x)^m*G[c + d*x]^q, F, c + d*x, p, b/d, x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && M
emberQ[{Sinh, Cosh}, F] && MemberQ[{Sech, Csch}, G] && IGtQ[p, 0] && IGtQ[q, 0] && EqQ[b*c - a*d, 0] && IGtQ[b
/d, 1]

Rubi steps

\begin {align*} \int x \cosh (2 x) \text {sech}(x) \, dx &=\int (x \cosh (x)+x \sinh (x) \tanh (x)) \, dx\\ &=\int x \cosh (x) \, dx+\int x \sinh (x) \tanh (x) \, dx\\ &=x \sinh (x)+\int x \cosh (x) \, dx-\int x \text {sech}(x) \, dx-\int \sinh (x) \, dx\\ &=-2 x \tan ^{-1}\left (e^x\right )-\cosh (x)+2 x \sinh (x)+i \int \log \left (1-i e^x\right ) \, dx-i \int \log \left (1+i e^x\right ) \, dx-\int \sinh (x) \, dx\\ &=-2 x \tan ^{-1}\left (e^x\right )-2 \cosh (x)+2 x \sinh (x)+i \operatorname {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^x\right )-i \operatorname {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^x\right )\\ &=-2 x \tan ^{-1}\left (e^x\right )-2 \cosh (x)+i \text {Li}_2\left (-i e^x\right )-i \text {Li}_2\left (i e^x\right )+2 x \sinh (x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 71, normalized size = 1.65 \[ i \left (\text {Li}_2\left (-i e^{-x}\right )-\text {Li}_2\left (i e^{-x}\right )\right )+i x \left (\log \left (1-i e^{-x}\right )-\log \left (1+i e^{-x}\right )\right )+2 x \sinh (x)-2 \cosh (x) \]

Antiderivative was successfully verified.

[In]

Integrate[x*Cosh[2*x]*Sech[x],x]

[Out]

-2*Cosh[x] + I*x*(Log[1 - I/E^x] - Log[1 + I/E^x]) + I*(PolyLog[2, (-I)/E^x] - PolyLog[2, I/E^x]) + 2*x*Sinh[x
]

________________________________________________________________________________________

fricas [B]  time = 0.44, size = 124, normalized size = 2.88 \[ \frac {{\left (x - 1\right )} \cosh \relax (x)^{2} + 2 \, {\left (x - 1\right )} \cosh \relax (x) \sinh \relax (x) + {\left (x - 1\right )} \sinh \relax (x)^{2} + {\left (-i \, \cosh \relax (x) - i \, \sinh \relax (x)\right )} {\rm Li}_2\left (i \, \cosh \relax (x) + i \, \sinh \relax (x)\right ) + {\left (i \, \cosh \relax (x) + i \, \sinh \relax (x)\right )} {\rm Li}_2\left (-i \, \cosh \relax (x) - i \, \sinh \relax (x)\right ) + {\left (i \, x \cosh \relax (x) + i \, x \sinh \relax (x)\right )} \log \left (i \, \cosh \relax (x) + i \, \sinh \relax (x) + 1\right ) + {\left (-i \, x \cosh \relax (x) - i \, x \sinh \relax (x)\right )} \log \left (-i \, \cosh \relax (x) - i \, \sinh \relax (x) + 1\right ) - x - 1}{\cosh \relax (x) + \sinh \relax (x)} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*cosh(2*x)*sech(x),x, algorithm="fricas")

[Out]

((x - 1)*cosh(x)^2 + 2*(x - 1)*cosh(x)*sinh(x) + (x - 1)*sinh(x)^2 + (-I*cosh(x) - I*sinh(x))*dilog(I*cosh(x)
+ I*sinh(x)) + (I*cosh(x) + I*sinh(x))*dilog(-I*cosh(x) - I*sinh(x)) + (I*x*cosh(x) + I*x*sinh(x))*log(I*cosh(
x) + I*sinh(x) + 1) + (-I*x*cosh(x) - I*x*sinh(x))*log(-I*cosh(x) - I*sinh(x) + 1) - x - 1)/(cosh(x) + sinh(x)
)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int x \cosh \left (2 \, x\right ) \operatorname {sech}\relax (x)\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*cosh(2*x)*sech(x),x, algorithm="giac")

[Out]

integrate(x*cosh(2*x)*sech(x), x)

________________________________________________________________________________________

maple [A]  time = 0.25, size = 68, normalized size = 1.58 \[ 2 \left (-\frac {1}{2}+\frac {x}{2}\right ) {\mathrm e}^{x}+2 \left (-\frac {1}{2}-\frac {x}{2}\right ) {\mathrm e}^{-x}+i x \ln \left (1+i {\mathrm e}^{x}\right )-i x \ln \left (1-i {\mathrm e}^{x}\right )+i \dilog \left (1+i {\mathrm e}^{x}\right )-i \dilog \left (1-i {\mathrm e}^{x}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*cosh(2*x)*sech(x),x)

[Out]

2*(-1/2+1/2*x)*exp(x)+2*(-1/2-1/2*x)*exp(-x)+I*x*ln(1+I*exp(x))-I*x*ln(1-I*exp(x))+I*dilog(1+I*exp(x))-I*dilog
(1-I*exp(x))

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ -{\left (x + 1\right )} e^{\left (-x\right )} + {\left (x - 1\right )} e^{x} - 2 \, \int \frac {x e^{x}}{e^{\left (2 \, x\right )} + 1}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*cosh(2*x)*sech(x),x, algorithm="maxima")

[Out]

-(x + 1)*e^(-x) + (x - 1)*e^x - 2*integrate(x*e^x/(e^(2*x) + 1), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {x\,\mathrm {cosh}\left (2\,x\right )}{\mathrm {cosh}\relax (x)} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x*cosh(2*x))/cosh(x),x)

[Out]

int((x*cosh(2*x))/cosh(x), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int x \cosh {\left (2 x \right )} \operatorname {sech}{\relax (x )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*cosh(2*x)*sech(x),x)

[Out]

Integral(x*cosh(2*x)*sech(x), x)

________________________________________________________________________________________