3.237 \(\int \cosh (x) \coth (5 x) \, dx\)

Optimal. Leaf size=110 \[ \cosh (x)+\frac {1}{20} \left (1-\sqrt {5}\right ) \log \left (-4 \cosh (x)-\sqrt {5}+1\right )+\frac {1}{20} \left (1+\sqrt {5}\right ) \log \left (-4 \cosh (x)+\sqrt {5}+1\right )-\frac {1}{20} \left (1-\sqrt {5}\right ) \log \left (4 \cosh (x)-\sqrt {5}+1\right )-\frac {1}{20} \left (1+\sqrt {5}\right ) \log \left (4 \cosh (x)+\sqrt {5}+1\right )-\frac {1}{5} \tanh ^{-1}(\cosh (x)) \]

[Out]

-1/5*arctanh(cosh(x))+cosh(x)+1/20*ln(1-4*cosh(x)-5^(1/2))*(-5^(1/2)+1)-1/20*ln(1+4*cosh(x)-5^(1/2))*(-5^(1/2)
+1)+1/20*ln(1-4*cosh(x)+5^(1/2))*(5^(1/2)+1)-1/20*ln(1+4*cosh(x)+5^(1/2))*(5^(1/2)+1)

________________________________________________________________________________________

Rubi [A]  time = 0.18, antiderivative size = 110, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 4, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.571, Rules used = {2075, 207, 632, 31} \[ \cosh (x)+\frac {1}{20} \left (1-\sqrt {5}\right ) \log \left (-4 \cosh (x)-\sqrt {5}+1\right )+\frac {1}{20} \left (1+\sqrt {5}\right ) \log \left (-4 \cosh (x)+\sqrt {5}+1\right )-\frac {1}{20} \left (1-\sqrt {5}\right ) \log \left (4 \cosh (x)-\sqrt {5}+1\right )-\frac {1}{20} \left (1+\sqrt {5}\right ) \log \left (4 \cosh (x)+\sqrt {5}+1\right )-\frac {1}{5} \tanh ^{-1}(\cosh (x)) \]

Antiderivative was successfully verified.

[In]

Int[Cosh[x]*Coth[5*x],x]

[Out]

-ArcTanh[Cosh[x]]/5 + Cosh[x] + ((1 - Sqrt[5])*Log[1 - Sqrt[5] - 4*Cosh[x]])/20 + ((1 + Sqrt[5])*Log[1 + Sqrt[
5] - 4*Cosh[x]])/20 - ((1 - Sqrt[5])*Log[1 - Sqrt[5] + 4*Cosh[x]])/20 - ((1 + Sqrt[5])*Log[1 + Sqrt[5] + 4*Cos
h[x]])/20

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 207

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> -Simp[ArcTanh[(Rt[b, 2]*x)/Rt[-a, 2]]/(Rt[-a, 2]*Rt[b, 2]), x] /;
 FreeQ[{a, b}, x] && NegQ[a/b] && (LtQ[a, 0] || GtQ[b, 0])

Rule 632

Int[((d_.) + (e_.)*(x_))/((a_) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Dist[
(c*d - e*(b/2 - q/2))/q, Int[1/(b/2 - q/2 + c*x), x], x] - Dist[(c*d - e*(b/2 + q/2))/q, Int[1/(b/2 + q/2 + c*
x), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[2*c*d - b*e, 0] && NeQ[b^2 - 4*a*c, 0] && NiceSqrtQ[b^2 - 4*a*
c]

Rule 2075

Int[(P_)^(p_)*(Qm_), x_Symbol] :> With[{PP = Factor[P]}, Int[ExpandIntegrand[PP^p*Qm, x], x] /; QuadraticProdu
ctQ[PP, x]] /; PolyQ[Qm, x] && PolyQ[P, x] && ILtQ[p, 0]

Rubi steps

\begin {align*} \int \cosh (x) \coth (5 x) \, dx &=-\operatorname {Subst}\left (\int \frac {x^2 \left (5-20 x^2+16 x^4\right )}{1-13 x^2+28 x^4-16 x^6} \, dx,x,\cosh (x)\right )\\ &=-\operatorname {Subst}\left (\int \left (-1-\frac {1}{5 \left (-1+x^2\right )}-\frac {2 (1+x)}{5 \left (-1-2 x+4 x^2\right )}+\frac {2 (-1+x)}{5 \left (-1+2 x+4 x^2\right )}\right ) \, dx,x,\cosh (x)\right )\\ &=\cosh (x)+\frac {1}{5} \operatorname {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\cosh (x)\right )+\frac {2}{5} \operatorname {Subst}\left (\int \frac {1+x}{-1-2 x+4 x^2} \, dx,x,\cosh (x)\right )-\frac {2}{5} \operatorname {Subst}\left (\int \frac {-1+x}{-1+2 x+4 x^2} \, dx,x,\cosh (x)\right )\\ &=-\frac {1}{5} \tanh ^{-1}(\cosh (x))+\cosh (x)-\frac {1}{5} \left (1-\sqrt {5}\right ) \operatorname {Subst}\left (\int \frac {1}{1-\sqrt {5}+4 x} \, dx,x,\cosh (x)\right )+\frac {1}{5} \left (1-\sqrt {5}\right ) \operatorname {Subst}\left (\int \frac {1}{-1+\sqrt {5}+4 x} \, dx,x,\cosh (x)\right )+\frac {1}{5} \left (1+\sqrt {5}\right ) \operatorname {Subst}\left (\int \frac {1}{-1-\sqrt {5}+4 x} \, dx,x,\cosh (x)\right )-\frac {1}{5} \left (1+\sqrt {5}\right ) \operatorname {Subst}\left (\int \frac {1}{1+\sqrt {5}+4 x} \, dx,x,\cosh (x)\right )\\ &=-\frac {1}{5} \tanh ^{-1}(\cosh (x))+\cosh (x)+\frac {1}{20} \left (1-\sqrt {5}\right ) \log \left (1-\sqrt {5}-4 \cosh (x)\right )+\frac {1}{20} \left (1+\sqrt {5}\right ) \log \left (1+\sqrt {5}-4 \cosh (x)\right )-\frac {1}{20} \left (1-\sqrt {5}\right ) \log \left (1-\sqrt {5}+4 \cosh (x)\right )-\frac {1}{20} \left (1+\sqrt {5}\right ) \log \left (1+\sqrt {5}+4 \cosh (x)\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.12, size = 133, normalized size = 1.21 \[ \frac {1}{100} \left (100 \cosh (x)+20 \log \left (\sinh \left (\frac {x}{2}\right )\right )-20 \log \left (\cosh \left (\frac {x}{2}\right )\right )+\sqrt {5} \left (\sqrt {5}-5\right ) \log \left (-4 \cosh (x)-\sqrt {5}+1\right )+\sqrt {5} \left (5+\sqrt {5}\right ) \log \left (-4 \cosh (x)+\sqrt {5}+1\right )-\sqrt {5} \left (\sqrt {5}-5\right ) \log \left (4 \cosh (x)-\sqrt {5}+1\right )-\sqrt {5} \left (5+\sqrt {5}\right ) \log \left (4 \cosh (x)+\sqrt {5}+1\right )\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[Cosh[x]*Coth[5*x],x]

[Out]

(100*Cosh[x] - 20*Log[Cosh[x/2]] + Sqrt[5]*(-5 + Sqrt[5])*Log[1 - Sqrt[5] - 4*Cosh[x]] + Sqrt[5]*(5 + Sqrt[5])
*Log[1 + Sqrt[5] - 4*Cosh[x]] - Sqrt[5]*(-5 + Sqrt[5])*Log[1 - Sqrt[5] + 4*Cosh[x]] - Sqrt[5]*(5 + Sqrt[5])*Lo
g[1 + Sqrt[5] + 4*Cosh[x]] + 20*Log[Sinh[x/2]])/100

________________________________________________________________________________________

fricas [B]  time = 0.44, size = 272, normalized size = 2.47 \[ \frac {10 \, \cosh \relax (x)^{2} + {\left (\sqrt {5} \cosh \relax (x) + \sqrt {5} \sinh \relax (x)\right )} \log \left (-\frac {4 \, {\left (\sqrt {5} - 1\right )} \cosh \relax (x) - 4 \, \cosh \relax (x)^{2} - 4 \, \sinh \relax (x)^{2} + \sqrt {5} - 7}{2 \, \cosh \relax (x)^{2} + 2 \, \sinh \relax (x)^{2} + 2 \, \cosh \relax (x) + 1}\right ) + {\left (\sqrt {5} \cosh \relax (x) + \sqrt {5} \sinh \relax (x)\right )} \log \left (-\frac {4 \, {\left (\sqrt {5} + 1\right )} \cosh \relax (x) - 4 \, \cosh \relax (x)^{2} - 4 \, \sinh \relax (x)^{2} - \sqrt {5} - 7}{2 \, \cosh \relax (x)^{2} + 2 \, \sinh \relax (x)^{2} - 2 \, \cosh \relax (x) + 1}\right ) - {\left (\cosh \relax (x) + \sinh \relax (x)\right )} \log \left (\frac {2 \, \cosh \relax (x)^{2} + 2 \, \sinh \relax (x)^{2} + 2 \, \cosh \relax (x) + 1}{\cosh \relax (x)^{2} - 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2}}\right ) + {\left (\cosh \relax (x) + \sinh \relax (x)\right )} \log \left (\frac {2 \, \cosh \relax (x)^{2} + 2 \, \sinh \relax (x)^{2} - 2 \, \cosh \relax (x) + 1}{\cosh \relax (x)^{2} - 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2}}\right ) - 4 \, {\left (\cosh \relax (x) + \sinh \relax (x)\right )} \log \left (\cosh \relax (x) + \sinh \relax (x) + 1\right ) + 4 \, {\left (\cosh \relax (x) + \sinh \relax (x)\right )} \log \left (\cosh \relax (x) + \sinh \relax (x) - 1\right ) + 20 \, \cosh \relax (x) \sinh \relax (x) + 10 \, \sinh \relax (x)^{2} + 10}{20 \, {\left (\cosh \relax (x) + \sinh \relax (x)\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(x)*coth(5*x),x, algorithm="fricas")

[Out]

1/20*(10*cosh(x)^2 + (sqrt(5)*cosh(x) + sqrt(5)*sinh(x))*log(-(4*(sqrt(5) - 1)*cosh(x) - 4*cosh(x)^2 - 4*sinh(
x)^2 + sqrt(5) - 7)/(2*cosh(x)^2 + 2*sinh(x)^2 + 2*cosh(x) + 1)) + (sqrt(5)*cosh(x) + sqrt(5)*sinh(x))*log(-(4
*(sqrt(5) + 1)*cosh(x) - 4*cosh(x)^2 - 4*sinh(x)^2 - sqrt(5) - 7)/(2*cosh(x)^2 + 2*sinh(x)^2 - 2*cosh(x) + 1))
 - (cosh(x) + sinh(x))*log((2*cosh(x)^2 + 2*sinh(x)^2 + 2*cosh(x) + 1)/(cosh(x)^2 - 2*cosh(x)*sinh(x) + sinh(x
)^2)) + (cosh(x) + sinh(x))*log((2*cosh(x)^2 + 2*sinh(x)^2 - 2*cosh(x) + 1)/(cosh(x)^2 - 2*cosh(x)*sinh(x) + s
inh(x)^2)) - 4*(cosh(x) + sinh(x))*log(cosh(x) + sinh(x) + 1) + 4*(cosh(x) + sinh(x))*log(cosh(x) + sinh(x) -
1) + 20*cosh(x)*sinh(x) + 10*sinh(x)^2 + 10)/(cosh(x) + sinh(x))

________________________________________________________________________________________

giac [A]  time = 0.16, size = 157, normalized size = 1.43 \[ \frac {1}{20} \, \sqrt {5} \log \left (-\frac {\sqrt {5} - 2 \, e^{\left (-x\right )} - 2 \, e^{x} + 1}{\sqrt {5} + 2 \, e^{\left (-x\right )} + 2 \, e^{x} - 1}\right ) + \frac {1}{20} \, \sqrt {5} \log \left (-\frac {\sqrt {5} - 2 \, e^{\left (-x\right )} - 2 \, e^{x} - 1}{\sqrt {5} + 2 \, e^{\left (-x\right )} + 2 \, e^{x} + 1}\right ) + \frac {1}{2} \, e^{\left (-x\right )} + \frac {1}{2} \, e^{x} - \frac {1}{20} \, \log \left ({\left (e^{\left (-x\right )} + e^{x}\right )}^{2} + e^{\left (-x\right )} + e^{x} - 1\right ) + \frac {1}{20} \, \log \left ({\left (e^{\left (-x\right )} + e^{x}\right )}^{2} - e^{\left (-x\right )} - e^{x} - 1\right ) - \frac {1}{10} \, \log \left (e^{\left (-x\right )} + e^{x} + 2\right ) + \frac {1}{10} \, \log \left (e^{\left (-x\right )} + e^{x} - 2\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(x)*coth(5*x),x, algorithm="giac")

[Out]

1/20*sqrt(5)*log(-(sqrt(5) - 2*e^(-x) - 2*e^x + 1)/(sqrt(5) + 2*e^(-x) + 2*e^x - 1)) + 1/20*sqrt(5)*log(-(sqrt
(5) - 2*e^(-x) - 2*e^x - 1)/(sqrt(5) + 2*e^(-x) + 2*e^x + 1)) + 1/2*e^(-x) + 1/2*e^x - 1/20*log((e^(-x) + e^x)
^2 + e^(-x) + e^x - 1) + 1/20*log((e^(-x) + e^x)^2 - e^(-x) - e^x - 1) - 1/10*log(e^(-x) + e^x + 2) + 1/10*log
(e^(-x) + e^x - 2)

________________________________________________________________________________________

maple [B]  time = 0.28, size = 190, normalized size = 1.73 \[ \frac {{\mathrm e}^{x}}{2}+\frac {{\mathrm e}^{-x}}{2}+\frac {\ln \left ({\mathrm e}^{x}-1\right )}{5}-\frac {\ln \left ({\mathrm e}^{x}+1\right )}{5}-\frac {\ln \left ({\mathrm e}^{2 x}+\left (\frac {1}{2}-\frac {\sqrt {5}}{2}\right ) {\mathrm e}^{x}+1\right )}{20}+\frac {\ln \left ({\mathrm e}^{2 x}+\left (\frac {1}{2}-\frac {\sqrt {5}}{2}\right ) {\mathrm e}^{x}+1\right ) \sqrt {5}}{20}-\frac {\ln \left ({\mathrm e}^{2 x}+\left (\frac {1}{2}+\frac {\sqrt {5}}{2}\right ) {\mathrm e}^{x}+1\right )}{20}-\frac {\ln \left ({\mathrm e}^{2 x}+\left (\frac {1}{2}+\frac {\sqrt {5}}{2}\right ) {\mathrm e}^{x}+1\right ) \sqrt {5}}{20}+\frac {\ln \left ({\mathrm e}^{2 x}+\left (-\frac {1}{2}-\frac {\sqrt {5}}{2}\right ) {\mathrm e}^{x}+1\right )}{20}+\frac {\ln \left ({\mathrm e}^{2 x}+\left (-\frac {1}{2}-\frac {\sqrt {5}}{2}\right ) {\mathrm e}^{x}+1\right ) \sqrt {5}}{20}+\frac {\ln \left ({\mathrm e}^{2 x}+\left (\frac {\sqrt {5}}{2}-\frac {1}{2}\right ) {\mathrm e}^{x}+1\right )}{20}-\frac {\ln \left ({\mathrm e}^{2 x}+\left (\frac {\sqrt {5}}{2}-\frac {1}{2}\right ) {\mathrm e}^{x}+1\right ) \sqrt {5}}{20} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cosh(x)*coth(5*x),x)

[Out]

1/2*exp(x)+1/2*exp(-x)+1/5*ln(exp(x)-1)-1/5*ln(exp(x)+1)-1/20*ln(exp(2*x)+(1/2-1/2*5^(1/2))*exp(x)+1)+1/20*ln(
exp(2*x)+(1/2-1/2*5^(1/2))*exp(x)+1)*5^(1/2)-1/20*ln(exp(2*x)+(1/2+1/2*5^(1/2))*exp(x)+1)-1/20*ln(exp(2*x)+(1/
2+1/2*5^(1/2))*exp(x)+1)*5^(1/2)+1/20*ln(exp(2*x)+(-1/2-1/2*5^(1/2))*exp(x)+1)+1/20*ln(exp(2*x)+(-1/2-1/2*5^(1
/2))*exp(x)+1)*5^(1/2)+1/20*ln(exp(2*x)+(1/2*5^(1/2)-1/2)*exp(x)+1)-1/20*ln(exp(2*x)+(1/2*5^(1/2)-1/2)*exp(x)+
1)*5^(1/2)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(x)*coth(5*x),x, algorithm="maxima")

[Out]

1/2*(e^(2*x) + 1)*e^(-x) - 1/5*integrate((e^(3*x) + e^(2*x) + e^x + 1)*e^x/(e^(4*x) + e^(3*x) + e^(2*x) + e^x
+ 1), x) + 1/5*integrate((e^(3*x) - e^(2*x) + e^x - 1)*e^x/(e^(4*x) - e^(3*x) + e^(2*x) - e^x + 1), x) + 3/10*
integrate(e^(3*x)/(e^(4*x) + e^(3*x) + e^(2*x) + e^x + 1), x) + 3/10*integrate(e^(3*x)/(e^(4*x) - e^(3*x) + e^
(2*x) - e^x + 1), x) + 1/10*integrate(e^(2*x)/(e^(4*x) + e^(3*x) + e^(2*x) + e^x + 1), x) - 1/10*integrate(e^(
2*x)/(e^(4*x) - e^(3*x) + e^(2*x) - e^x + 1), x) - 1/10*integrate(e^x/(e^(4*x) + e^(3*x) + e^(2*x) + e^x + 1),
 x) - 1/10*integrate(e^x/(e^(4*x) - e^(3*x) + e^(2*x) - e^x + 1), x) - 1/5*log(e^x + 1) + 1/5*log(e^x - 1)

________________________________________________________________________________________

mupad [B]  time = 0.10, size = 143, normalized size = 1.30 \[ \frac {\ln \left (10-10\,{\mathrm {e}}^x\right )}{5}-\frac {\ln \left (-10\,{\mathrm {e}}^x-10\right )}{5}+\frac {{\mathrm {e}}^{-x}}{2}+\frac {{\mathrm {e}}^x}{2}-\ln \left (-{\mathrm {e}}^{2\,x}-10\,{\mathrm {e}}^x\,\left (\frac {\sqrt {5}}{20}-\frac {1}{20}\right )-1\right )\,\left (\frac {\sqrt {5}}{20}-\frac {1}{20}\right )+\ln \left (10\,{\mathrm {e}}^x\,\left (\frac {\sqrt {5}}{20}-\frac {1}{20}\right )-{\mathrm {e}}^{2\,x}-1\right )\,\left (\frac {\sqrt {5}}{20}-\frac {1}{20}\right )-\ln \left (-{\mathrm {e}}^{2\,x}-10\,{\mathrm {e}}^x\,\left (\frac {\sqrt {5}}{20}+\frac {1}{20}\right )-1\right )\,\left (\frac {\sqrt {5}}{20}+\frac {1}{20}\right )+\ln \left (10\,{\mathrm {e}}^x\,\left (\frac {\sqrt {5}}{20}+\frac {1}{20}\right )-{\mathrm {e}}^{2\,x}-1\right )\,\left (\frac {\sqrt {5}}{20}+\frac {1}{20}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(coth(5*x)*cosh(x),x)

[Out]

log(10 - 10*exp(x))/5 - log(- 10*exp(x) - 10)/5 + exp(-x)/2 + exp(x)/2 - log(- exp(2*x) - 10*exp(x)*(5^(1/2)/2
0 - 1/20) - 1)*(5^(1/2)/20 - 1/20) + log(10*exp(x)*(5^(1/2)/20 - 1/20) - exp(2*x) - 1)*(5^(1/2)/20 - 1/20) - l
og(- exp(2*x) - 10*exp(x)*(5^(1/2)/20 + 1/20) - 1)*(5^(1/2)/20 + 1/20) + log(10*exp(x)*(5^(1/2)/20 + 1/20) - e
xp(2*x) - 1)*(5^(1/2)/20 + 1/20)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(x)*coth(5*x),x)

[Out]

Integral(cosh(x)*coth(5*x), x)

________________________________________________________________________________________