\(\int (\cos (x) \log (x)+\frac {\sin (x)}{x}) \, dx\) [160]

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

Optimal result

Integrand size = 12, antiderivative size = 5 \[ \int \left (\cos (x) \log (x)+\frac {\sin (x)}{x}\right ) \, dx=\log (x) \sin (x) \]

[Out]

ln(x)*sin(x)

Rubi [A] (verified)

Time = 0.02 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2717, 2634, 3380} \[ \int \left (\cos (x) \log (x)+\frac {\sin (x)}{x}\right ) \, dx=\log (x) \sin (x) \]

[In]

Int[Cos[x]*Log[x] + Sin[x]/x,x]

[Out]

Log[x]*Sin[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 3380

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

Rubi steps \begin{align*} \text {integral}& = \int \cos (x) \log (x) \, dx+\int \frac {\sin (x)}{x} \, dx \\ & = \log (x) \sin (x)+\text {Si}(x)-\int \frac {\sin (x)}{x} \, dx \\ & = \log (x) \sin (x) \\ \end{align*}

Mathematica [A] (verified)

Time = 0.03 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \left (\cos (x) \log (x)+\frac {\sin (x)}{x}\right ) \, dx=\log (x) \sin (x) \]

[In]

Integrate[Cos[x]*Log[x] + Sin[x]/x,x]

[Out]

Log[x]*Sin[x]

Maple [A] (verified)

Time = 1.46 (sec) , antiderivative size = 6, normalized size of antiderivative = 1.20

method result size
risch \(\ln \left (x \right ) \sin \left (x \right )\) \(6\)
parallelrisch \(\ln \left (x \right ) \sin \left (x \right )\) \(6\)
norman \(\frac {2 \ln \left (x \right ) \tan \left (\frac {x}{2}\right )}{1+\tan ^{2}\left (\frac {x}{2}\right )}\) \(19\)

[In]

int(cos(x)*ln(x)+sin(x)/x,x,method=_RETURNVERBOSE)

[Out]

ln(x)*sin(x)

Fricas [A] (verification not implemented)

none

Time = 0.31 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \left (\cos (x) \log (x)+\frac {\sin (x)}{x}\right ) \, dx=\log \left (x\right ) \sin \left (x\right ) \]

[In]

integrate(cos(x)*log(x)+sin(x)/x,x, algorithm="fricas")

[Out]

log(x)*sin(x)

Sympy [A] (verification not implemented)

Time = 3.92 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \left (\cos (x) \log (x)+\frac {\sin (x)}{x}\right ) \, dx=\log {\left (x \right )} \sin {\left (x \right )} \]

[In]

integrate(cos(x)*ln(x)+sin(x)/x,x)

[Out]

log(x)*sin(x)

Maxima [A] (verification not implemented)

none

Time = 0.25 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \left (\cos (x) \log (x)+\frac {\sin (x)}{x}\right ) \, dx=\log \left (x\right ) \sin \left (x\right ) \]

[In]

integrate(cos(x)*log(x)+sin(x)/x,x, algorithm="maxima")

[Out]

log(x)*sin(x)

Giac [A] (verification not implemented)

none

Time = 0.38 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \left (\cos (x) \log (x)+\frac {\sin (x)}{x}\right ) \, dx=\log \left (x\right ) \sin \left (x\right ) \]

[In]

integrate(cos(x)*log(x)+sin(x)/x,x, algorithm="giac")

[Out]

log(x)*sin(x)

Mupad [B] (verification not implemented)

Time = 1.50 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \left (\cos (x) \log (x)+\frac {\sin (x)}{x}\right ) \, dx=\ln \left (x\right )\,\sin \left (x\right ) \]

[In]

int(cos(x)*log(x) + sin(x)/x,x)

[Out]

log(x)*sin(x)