I was asked to find the general solution to these ODEs.
$$\frac{dy}{dx}=\frac{(-8x+3y-31)}{(-3x+y-11)}$$ I tried by rearranging to the form $M(x,y)+N(x,y)\frac{dy}{dx}=0$ and let $y=vx$, but what I got was $$(v^2x-6vx-11v+8x+31)dx+x(-3x+vx-11)dv=0$$ and I could not separate $x$ and $v$ for integration.
$$\frac{dy}{dx}=\frac{y}{x}+\frac{9}{2}xexp(-\frac{2y}{x})+\frac{9}{2}xexp(\frac{2y}{x})$$ I have totally no idea which method to be used in Question 2.
May I know if I'm on the wrong track, and how should I solve them? Thanks.
Your equation is $\dfrac{dy}{dx}=\dfrac{(-8x+3y-31)}{(-3x+y-11)}=-\dfrac{8x-3y+31}{-3x+y-11}$ which is an exact differential equation.
The differential form associated to it is $\omega=(8x-3y+31)dx+(-3x+y-11)dy$ and its domain is $\mathbb R$ which is simply connected hence we have the relation $\text{exact}\iff\text{closed}$.
Let's call the fisrt coefficient of the form $A(x,y)$ and the second coefficient $B(x,y)$, then $$\dfrac{\partial}{\partial_y}A(x,y)=-3=\dfrac{\partial}{\partial_x}B(x,y)\implies\omega\text{ is closed and exact}.$$ The only thing we have to do now is calculating the potential $U(x,y)$ of the form: $$\int A(x,y)dx=4x^2-3xy+31x+g(y)$$ $$\dfrac{d}{dy}(4x^2-3xy+31x+g(y))=-3x+g'(y)=-3x+y-11\implies g(y)=\dfrac{y^2}{2}-11y+c$$ $$U(x,y)=4x^2-3xy+31x+\dfrac{y^2}{2}-11y+c, c\in\mathbb R.$$ You can now write the solution explicitly or you could study the implicit function defined by the relation $U(x,y)=0$.