Let f, g, be real-valued functions defined on a nonempty set X satisfying Range f and Range g are bounded subsets of $\mathbb{R}$. Prove the following...
A) If $f(x) \leq g(x)$ for all $ x \in X $ then $sup\left \{ f(x): x \in X \right \}\leq sup\left \{ g(x): x \in X \right \}$
This is what I have for my proof...
Let $f(x) \leq g(x)$ for all $ x \in X $
Since g is a bounded set then by definition of bounded g has an upper bound so that $f(x) \leq g(x) \leq sup g(x)$
Thus f is bounded above by sup g so $supf(x) \leq supg(x)$ for all $x \in X$
Therefore, $sup\left \{ f(x): x \in X \right \}\leq sup\left \{ g(x): x \in X \right \}$
This is what I have thought to do to prove this, but is this even correct? If there are mistakes within my proof could someone explain/show what should be written.