Need to show {x | f(x) ≤ g(x)} closed if f,g continuous.

I'm sure this is pretty elementary but I am intellectually needy.

I need to show that with both continuous and with in the order topology, the set is closed.

My work so far: I am trying to show that the complement is open. If we denote the given set by , then the complement is . For a particular satisfying we have one of two cases:

(1) is the immediate successor of . In this case, let be defined by , and let be defined by .

(2) There exists some satisfying ; in this case, define as , and define as for some such .

In *both *of these cases, are open sets (since has the order topology), and since are continuous, we have that and are both open in .

That's the work that I've done so far, with some coaching from a professor. Now what I would like to do is create a collection of sets , and then claim that since is open for each ( is open and is continuous), we can take the union and claim it to be open in . This is where my reasoning gets a little blurry, though. Is this union really the same as ? It seems in a certain sense that it is, since each produces the set of inputs such that the outputs of are greater than the outputs of **for that particular ** . But in another sense it seems obvious that this does NOT compose the set in question, since if we allow to range over all possible values then the union will include a great many values for which in general it is not true that . ALSO, and perhaps more vexingly, the current argument does not make use of the continuity of .

Can anyone help with this? Thanks!

-Steve