\(\int \cosh (a+b x) \log (x) \, dx\) [198]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [B] (verification not implemented)
   Sympy [F]
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [F(-1)]

Optimal result

Integrand size = 9, antiderivative size = 35 \[ \int \cosh (a+b x) \log (x) \, dx=-\frac {\text {Chi}(b x) \sinh (a)}{b}+\frac {\log (x) \sinh (a+b x)}{b}-\frac {\cosh (a) \text {Shi}(b x)}{b} \]

[Out]

-cosh(a)*Shi(b*x)/b-Chi(b*x)*sinh(a)/b+ln(x)*sinh(b*x+a)/b

Rubi [A] (verified)

Time = 0.05 (sec) , antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.667, Rules used = {2717, 2634, 12, 3384, 3379, 3382} \[ \int \cosh (a+b x) \log (x) \, dx=-\frac {\sinh (a) \text {Chi}(b x)}{b}-\frac {\cosh (a) \text {Shi}(b x)}{b}+\frac {\log (x) \sinh (a+b x)}{b} \]

[In]

Int[Cosh[a + b*x]*Log[x],x]

[Out]

-((CoshIntegral[b*x]*Sinh[a])/b) + (Log[x]*Sinh[a + b*x])/b - (Cosh[a]*SinhIntegral[b*x])/b

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 2634

Int[Log[u_]*(v_), x_Symbol] :> With[{w = IntHide[v, x]}, Dist[Log[u], w, x] - Int[SimplifyIntegrand[w*(D[u, x]
/u), x], x] /; InverseFunctionFreeQ[w, x]] /; InverseFunctionFreeQ[u, x]

Rule 2717

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

Rule 3379

Int[sin[(e_.) + (Complex[0, fz_])*(f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[I*(SinhIntegral[c*f*(fz/
d) + f*fz*x]/d), x] /; FreeQ[{c, d, e, f, fz}, x] && EqQ[d*e - c*f*fz*I, 0]

Rule 3382

Int[sin[(e_.) + (Complex[0, fz_])*(f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[CoshIntegral[c*f*(fz/d)
+ f*fz*x]/d, x] /; FreeQ[{c, d, e, f, fz}, x] && EqQ[d*(e - Pi/2) - c*f*fz*I, 0]

Rule 3384

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

Rubi steps \begin{align*} \text {integral}& = \frac {\log (x) \sinh (a+b x)}{b}-\int \frac {\sinh (a+b x)}{b x} \, dx \\ & = \frac {\log (x) \sinh (a+b x)}{b}-\frac {\int \frac {\sinh (a+b x)}{x} \, dx}{b} \\ & = \frac {\log (x) \sinh (a+b x)}{b}-\frac {\cosh (a) \int \frac {\sinh (b x)}{x} \, dx}{b}-\frac {\sinh (a) \int \frac {\cosh (b x)}{x} \, dx}{b} \\ & = -\frac {\text {Chi}(b x) \sinh (a)}{b}+\frac {\log (x) \sinh (a+b x)}{b}-\frac {\cosh (a) \text {Shi}(b x)}{b} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.03 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.86 \[ \int \cosh (a+b x) \log (x) \, dx=-\frac {\text {Chi}(b x) \sinh (a)-\log (x) \sinh (a+b x)+\cosh (a) \text {Shi}(b x)}{b} \]

[In]

Integrate[Cosh[a + b*x]*Log[x],x]

[Out]

-((CoshIntegral[b*x]*Sinh[a] - Log[x]*Sinh[a + b*x] + Cosh[a]*SinhIntegral[b*x])/b)

Maple [A] (verified)

Time = 0.95 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.66

method result size
risch \(\frac {{\mathrm e}^{b x +a} \ln \left (x \right )}{2 b}-\frac {\ln \left (x \right ) {\mathrm e}^{-b x -a}}{2 b}+\frac {{\mathrm e}^{a} \operatorname {Ei}_{1}\left (-b x \right )}{2 b}-\frac {{\mathrm e}^{-a} \operatorname {Ei}_{1}\left (b x \right )}{2 b}\) \(58\)
meijerg \(-\frac {\cosh \left (a \right ) \sinh \left (b x \right )}{b}+\frac {\cosh \left (a \right ) \ln \left (x \right ) \sinh \left (b x \right )}{b}+\frac {\cosh \left (a \right ) b^{2} \left (\frac {9 \sinh \left (b x \right )}{b^{3}}-\frac {9 \,\operatorname {Shi}\left (b x \right )}{b^{3}}\right )}{9}-\frac {\sinh \left (a \right ) b \left (-\frac {2}{b^{2}}+\frac {2 \cosh \left (b x \right )}{b^{2}}\right )}{4}+\frac {\sinh \left (a \right ) b \ln \left (x \right ) \left (-\frac {2}{b^{2}}+\frac {2 \cosh \left (b x \right )}{b^{2}}\right )}{2}+\frac {\sinh \left (a \right ) b^{3} \left (-\frac {48}{b^{4}}+\frac {48 \cosh \left (b x \right )}{b^{4}}-\frac {96 \left (\operatorname {Chi}\left (b x \right )-\ln \left (b x \right )-\gamma \right )}{b^{4}}\right )}{96}\) \(134\)

[In]

int(cosh(b*x+a)*ln(x),x,method=_RETURNVERBOSE)

[Out]

1/2*exp(b*x+a)*ln(x)/b-1/2/b*ln(x)*exp(-b*x-a)+1/2/b*exp(a)*Ei(1,-b*x)-1/2/b*exp(-a)*Ei(1,b*x)

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 134 vs. \(2 (35) = 70\).

Time = 0.35 (sec) , antiderivative size = 134, normalized size of antiderivative = 3.83 \[ \int \cosh (a+b x) \log (x) \, dx=-\frac {{\left ({\rm Ei}\left (b x\right ) - {\rm Ei}\left (-b x\right )\right )} \cosh \left (b x + a\right ) \cosh \left (a\right ) - \log \left (x\right ) \sinh \left (b x + a\right )^{2} + {\left ({\rm Ei}\left (b x\right ) + {\rm Ei}\left (-b x\right )\right )} \cosh \left (b x + a\right ) \sinh \left (a\right ) - {\left (\cosh \left (b x + a\right )^{2} - 1\right )} \log \left (x\right ) + {\left ({\left ({\rm Ei}\left (b x\right ) - {\rm Ei}\left (-b x\right )\right )} \cosh \left (a\right ) - 2 \, \cosh \left (b x + a\right ) \log \left (x\right ) + {\left ({\rm Ei}\left (b x\right ) + {\rm Ei}\left (-b x\right )\right )} \sinh \left (a\right )\right )} \sinh \left (b x + a\right )}{2 \, {\left (b \cosh \left (b x + a\right ) + b \sinh \left (b x + a\right )\right )}} \]

[In]

integrate(cosh(b*x+a)*log(x),x, algorithm="fricas")

[Out]

-1/2*((Ei(b*x) - Ei(-b*x))*cosh(b*x + a)*cosh(a) - log(x)*sinh(b*x + a)^2 + (Ei(b*x) + Ei(-b*x))*cosh(b*x + a)
*sinh(a) - (cosh(b*x + a)^2 - 1)*log(x) + ((Ei(b*x) - Ei(-b*x))*cosh(a) - 2*cosh(b*x + a)*log(x) + (Ei(b*x) +
Ei(-b*x))*sinh(a))*sinh(b*x + a))/(b*cosh(b*x + a) + b*sinh(b*x + a))

Sympy [F]

\[ \int \cosh (a+b x) \log (x) \, dx=\int \log {\left (x \right )} \cosh {\left (a + b x \right )}\, dx \]

[In]

integrate(cosh(b*x+a)*ln(x),x)

[Out]

Integral(log(x)*cosh(a + b*x), x)

Maxima [A] (verification not implemented)

none

Time = 0.25 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.06 \[ \int \cosh (a+b x) \log (x) \, dx=\frac {\log \left (x\right ) \sinh \left (b x + a\right )}{b} + \frac {{\rm Ei}\left (-b x\right ) e^{\left (-a\right )} - {\rm Ei}\left (b x\right ) e^{a}}{2 \, b} \]

[In]

integrate(cosh(b*x+a)*log(x),x, algorithm="maxima")

[Out]

log(x)*sinh(b*x + a)/b + 1/2*(Ei(-b*x)*e^(-a) - Ei(b*x)*e^a)/b

Giac [A] (verification not implemented)

none

Time = 0.30 (sec) , antiderivative size = 54, normalized size of antiderivative = 1.54 \[ \int \cosh (a+b x) \log (x) \, dx=\frac {1}{2} \, {\left (\frac {e^{\left (b x + a\right )}}{b} - \frac {e^{\left (-b x - a\right )}}{b}\right )} \log \left (x\right ) + \frac {{\rm Ei}\left (-b x\right ) e^{\left (-a\right )} - {\rm Ei}\left (b x\right ) e^{a}}{2 \, b} \]

[In]

integrate(cosh(b*x+a)*log(x),x, algorithm="giac")

[Out]

1/2*(e^(b*x + a)/b - e^(-b*x - a)/b)*log(x) + 1/2*(Ei(-b*x)*e^(-a) - Ei(b*x)*e^a)/b

Mupad [F(-1)]

Timed out. \[ \int \cosh (a+b x) \log (x) \, dx=\int \mathrm {cosh}\left (a+b\,x\right )\,\ln \left (x\right ) \,d x \]

[In]

int(cosh(a + b*x)*log(x),x)

[Out]

int(cosh(a + b*x)*log(x), x)