This is a homogeneous equation. That is, M and N are both homogeneous functions of the same degree. Hence, the substitution you mentioned will render the equation separable. You have y = vx. Then dy = v dx + x dv. Substitute in and simplify. What do you get?