Definition:First Integral of System of Differential Equations

Definition
Let $S$ be a system of differential equations.

Let $g$ be a curve, which is a solution of $S$.

Let $f$ be a function of $g$ and its derivatives.

Suppose, $f$ is a constant for some $g$.

Then $f$ is the first integral of $S$.