3.198 \(\int \cosh (a+b x) \log (x) \, dx\)

Optimal. Leaf size=35 \[ -\frac {\sinh (a) \text {Chi}(b x)}{b}-\frac {\cosh (a) \text {Shi}(b x)}{b}+\frac {\log (x) \sinh (a+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]  time = 0.07, antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 6, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.667, Rules used = {2637, 2554, 12, 3303, 3298, 3301} \[ -\frac {\sinh (a) \text {Chi}(b x)}{b}-\frac {\cosh (a) \text {Shi}(b x)}{b}+\frac {\log (x) \sinh (a+b x)}{b} \]

Antiderivative was successfully verified.

[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 2554

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 2637

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

Rule 3298

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 3301

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 3303

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*} \int \cosh (a+b x) \log (x) \, dx &=\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]  time = 0.04, size = 30, normalized size = 0.86 \[ -\frac {\sinh (a) \text {Chi}(b x)+\cosh (a) \text {Shi}(b x)-\log (x) \sinh (a+b x)}{b} \]

Antiderivative was successfully verified.

[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)

________________________________________________________________________________________

fricas [B]  time = 0.45, size = 134, normalized size = 3.83 \[ -\frac {{\left ({\rm Ei}\left (b x\right ) - {\rm Ei}\left (-b x\right )\right )} \cosh \left (b x + a\right ) \cosh \relax (a) - \log \relax (x) \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 \relax (a) - {\left (\cosh \left (b x + a\right )^{2} - 1\right )} \log \relax (x) + {\left ({\left ({\rm Ei}\left (b x\right ) - {\rm Ei}\left (-b x\right )\right )} \cosh \relax (a) - 2 \, \cosh \left (b x + a\right ) \log \relax (x) + {\left ({\rm Ei}\left (b x\right ) + {\rm Ei}\left (-b x\right )\right )} \sinh \relax (a)\right )} \sinh \left (b x + a\right )}{2 \, {\left (b \cosh \left (b x + a\right ) + b \sinh \left (b x + a\right )\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[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))

________________________________________________________________________________________

giac [A]  time = 0.17, size = 54, normalized size = 1.54 \[ \frac {1}{2} \, {\left (\frac {e^{\left (b x + a\right )}}{b} - \frac {e^{\left (-b x - a\right )}}{b}\right )} \log \relax (x) + \frac {{\rm Ei}\left (-b x\right ) e^{\left (-a\right )} - {\rm Ei}\left (b x\right ) e^{a}}{2 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[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

________________________________________________________________________________________

maple [A]  time = 0.94, size = 58, normalized size = 1.66 \[ -\frac {\Ei \left (1, b x \right ) {\mathrm e}^{-a}}{2 b}+\frac {\Ei \left (1, -b x \right ) {\mathrm e}^{a}}{2 b}+\left (-\frac {{\mathrm e}^{-b x -a}}{2 b}+\frac {{\mathrm e}^{b x +a}}{2 b}\right ) \ln \relax (x ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 1.23, size = 37, normalized size = 1.06 \[ \frac {\log \relax (x) \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} \]

Verification of antiderivative is not currently implemented for this CAS.

[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

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.03 \[ \int \mathrm {cosh}\left (a+b\,x\right )\,\ln \relax (x) \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \log {\relax (x )} \cosh {\left (a + b x \right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________