Lets take the given differential equation
xlog(x)dydx+y=2log(x)
Convert it into dydx+Py=Q form, where P and Q are functions of x.
⇒dydx+1xlog(x)y=2log(x)xlog(x)
⇒dydx+1xlog(x)y=2x
Compare it with standard form, we get,
P=1xlog(x) and Q=2x
Integrating factor is given as
I.F.=e∫P dx
Now,
∫P dx=1xlog(x) dx
Put log(x)=t
⇒dxx=dt
⇒∫P dx=dtt=logt=log(log(x))
∴I.F.=elog(log(x))
⇒I.F.=log(x)