Show that the given differential equation is homogeneous and then solve it.
y′=x+yx
Given, y′=dydx=x+yx ....(i)
Here, the given differential equation is homogeneous.
So, put y=vx⇒dydx=v+xdvdx
On putting values of dydx and y in Eq.(i), we get
∴v+xdvdx=x+vxx⇒v+xdvdx=1+v⇒dvdx=1x⇒dv=dxx
On integrating both sides, we get
∫dv=∫1xdx⇒v=log|x|+C⇒yx=log|x|+C [∵v=y/x]
⇒y=xlog|x|+Cx.
This is the required solution of the given differential equation.