We have,
y−xdydx=0
xdydx=y
dyy=dxx
On integrating both sides, we get
∫dyy=∫dxx
logy=logx+logC
logy=logxC
y=xC
Hence, this is the answer.