First-order invariants of the oscillator

Let us start with the hamiltonian operator