I consider the following system $$ \begin{cases} x'=-x^2 + 3 x - 2 x y=:f(x,y)\\ y'=y^2 - 2 y + x y:=g(x,y) \end{cases} $$
It has a fixed point at $(1,1)$ and the linearization there has a centre, so, in general, the nonlinear system may have either centre or spiral. The trajectories 'contained' in the triangle formed by other fixed points: $(0,0)$, $(3,0)$ and $(0,2)$ (it can be shown rigorously). Numerics also show that indeed this is a nonlinear centre:
f[x_, y_] := -x^2 + 3 x - 2 x y;
g[x_, y_] := y^2 - 2 y + x y;
{xsol, ysol} = NDSolveValue[{x'[t] == f[x[t], y[t]], y'[t] == g[x[t], y[t]], x[0] == 0.5, y[0] == 0.5}, {x, y}, {t, 0, 100}];
{xsol1, ysol1} = NDSolveValue[{x'[t] == f[x[t], y[t]], y'[t] == g[x[t],y[t]], x[0] == 0.8, y[0] == 0.8}, {x, y}, {t, 0, 100}];
ParametricPlot[{{xsol[t], ysol[t]}, {xsol1[t], ysol1[t]}}, {t, 0, 100}, PlotRange -> {0, 2.2}]
I'm looking for an explicit form of these cycled curves. A standard way is to find it at the form $H(x,y)=C=\mathrm{const}$. Then $H(x(t),y(t))=\mathrm{const}$ implies
$$ \frac{\partial H(x,y)}{\partial x} f(x,y)+\frac{\partial H(x,y)}{\partial y}g(x,y)=0. $$
The question is how 'to ask' Mathematica (try to) find such function $H$ in certain form? (It seems that the latter equation can't be handle using DSolve...)


