Assume the problem $$ x'=x-2xy $$ $$ y'=2xy-y $$ to find the first integral, we solve
$$ \dfrac{dG}{dt}=\dfrac{\delta G}{\delta x}\dfrac{dx}{dt}+\dfrac{\delta G}{\delta y}\dfrac{dy}{dt} $$ How do we then find G? EDIT: According to the solution contributed below(thank u): $$ xye^(2(x-y))=c $$ it produces this graph: the solution curve
but that differs with the phase diagram: phase diagram with a specific trajectory
so what is the correlation between that solution and the phase plane and the G first integral(which to my understanding, has to follow the equation $$ \dfrac{dG}{dt}=\dfrac{\delta G}{\delta x}\dfrac{dx}{dt}+\dfrac{\delta G}{\delta y}\dfrac{dy}{dt} $$ )
Hint: You can eliminate $y$: $$y=\frac{x-x'}{2x}$$ and $$y'==\frac{(x'-x'')2x-(x-x')(2x')}{4x^2}$$ and you will get an equation only in $x,x'$ Plug this in the second equation.