Given differential equation: xdxdy+y=y2lnx
Dividing the given equation by x , we get
dxdy+xy=xy2lnx
Observe that the above differential equation is Bernoulli's differential equation.
It can be reduced to Linear Differential equation dividing the equation by y2 and then take the substitution y1=z⇒y21dxdy=−dxdz
Then the given differential equation becomes
y21dxdy+y1x1=xlnx
⇒−dxdz+xz=xlnx⇒dxdz−xz=−xlnx
The above is a first order linear differential equation of the form
dxdz+p(x)z=g(x) , where p(x)=−x1 and g(x)=−xlnx
General solution to the differential equation is
z (Integrating Factor)=∫ (Integrating Factor)(g(x)dx+C , where
Integrating Factor =e∫p(x)dx
Using the above, we have
Integrating Factor = =e∫(−x1)dx=e−lnx=eln(x1)=x1
General solution is
z(x1)=∫(x1)(−xlnx)dx+C=−∫x2lnxdx+C
Take the substitution lnx=u⇒x1dx=du and x1=e−u
Then, we get
xz=−∫(ue−u)du+C=−[−ue−u−e−u]+C (Using integration by parts)
That is we get
xz=[ue−u+e−u]+C=xlnx+x1+C (u=lnx)
That is we get
xy1=xlnx+x1+C(z=y1)
Therefore, general solution to the given differential equation is
ylnx+y+C=1
Comments