The given differential equation is:
xlogxdxdy+y=x2logx
Dividing both sides by xlogx (assuming x>0, x=1), we obtain:
dxdy+xlogxy=x22
This is a linear differential equation of the form dxdy+P(x)y=Q(x) with P(x)=xlogx1 and Q(x)=x22.
The integrating factor (I.F.) is:
I.F.=e∫P(x)dx=e∫xlogx1dx
Substituting u=logx, du=x1dx, we get:
∫xlogx1dx=∫u1du=log∣u∣=log∣logx∣
Hence, I.F.=elog∣logx∣=∣logx∣. Taking the positive value, I.F.=logx.
The solution of a linear differential equation is given by:
y⋅(I.F.)=∫Q(x)⋅(I.F.)dx+C
Substituting the values:
ylogx=∫x22⋅logxdx+C
We evaluate ∫x22logxdx using integration by parts.
Let I=∫x2logxdx. Set u=logx, dv=x−2dx. Then du=x1dx, v=−x−1.
I=uv−∫vdu=−xlogx−∫(−x1)x1dx=−xlogx+∫x21dx=−xlogx−x1
Thus,
∫x22logxdx=2(−xlogx−x1)=−x2(logx+1)
Therefore, the general solution is:
ylogx=−x2(logx+1)+C
or equivalently,
ylogx+x2(logx+1)=C