The given differential equation is
xlogxdxdy+y=x2logx
Dividing every term by xlogx to make the coefficient of
dxdy unity,
dxdy+xlogx1y=x22
Linear Differential Equation
Comparing with
dxdy+Py=Q,
we have
P=xlogx1,Q=x22
Integrating Factor
∫Pdx=∫xlogx1dx=∫logx(1/x)dx=log(logx)
I.F.=e∫Pdx=elog(logx)=logx
General Solution
y(I.F.)=∫Q(I.F.)dx+c
⇒ylogx=∫x22logxdx+c
=2∫(logx)x−2dx+c
Applying Integration by Parts
Let
I=logx,II=x−2
∫(logx)x−2dx=logx⋅−1x−1−∫x1⋅−1x−1dx
=−xlogx+∫x−2dx
=−xlogx−x1
Substituting Back
ylogx=2(−xlogx−x1)+c
⇒ylogx=−x2(1+logx)+c
ylogx=−x2(1+logx)+c
which is the required general solution.