I am stuck with this problem. $$O(f) = \bigcup_{g \in O(f)} O(g)$$ I have tried to prove it with the assumption that $g \in O(f) \rightarrow f \in O(f)$, which I already have proved, but I am not sure how to continue.
Has someone maybe an idea?
Thanks!
-- This is one of the assumptions I tried:
$$\text{Say } x \in O(g))$$ $$\rightarrow x \leq c_1 \cdot g(n)$$ $$\text{Because } g \in O(f) \text{ then:}$$ $$g \leq c_2 \cdot f(n)$$ $$\rightarrow x \leq c_1 \cdot g(n) \leq c_1 \cdot c_2 \cdot f(n)$$ $$\rightarrow x \in O(f)$$