Given the bounded functions $f, g: X \rightarrow \mathbb{R}$, I understant that $\sup (f+g) \leq \sup f + \sup g$. However I can't think of an example where $\sup (f+g) < \sup f + \sup g$, strictly.
(In case the notation is not clear, $\sup f = \sup \{f(x): x \in X\}$ and $\sup f+g = \sup \{f(x)+g(x): x \in X\}$.)
The textbook I'm using cites $f, g: [0, 1] \rightarrow \mathbb{R}$, $f(x)=x$, $g(x)=-x$ as such a case, but from what I understood $\sup f+g = \sup [-1,1]= 1$ and $\sup f + \sup g = \sup [0,1] + \sup [-1,0] = 1+0 = 1$.
To be clear, I would like an explanation of an example where the strictly inequality holds or what I'm missing in the textbook example.
Let consider as another example $f(x)=\cos x$ and $g(x)=\sin x$ with
$$\sup (f+g) =\sqrt 2< \sup f + \sup g=2$$