Let $X$ be a nonempty set and let $f:X \to \Bbb R$ be such that $f[X]:=\{f(x): x \in X \}$ is a bounded subset of $\Bbb R$.
Prove that for any $a \in \Bbb R$:
$$ \sup \{a+f(x):x \in X\} = a+ \sup(f[X]). $$
My attempt so far:
$\sup \{a+f(x):x \in X\} = a + \sup f[X]$
$\sup \{ a+f(x):x \in X\} = a + \sup \{f(x):x \in X\}$
But now I'm confused? What is the sup of $\{f(x):x \in X\}$? How do I complete the proof? My prof doesn't do any examples so this is super difficult so if you could explain how you did it that'd be amazing.
The idea is to work with the definition: the suppremum is the smallest upper bound.
$a+\sup f(X)$ is an upper bound for $\sup \{a+f(x):x\in X\}$. This should be obvious, since $a+f(x) \leq a+\sup f(X)$.
$a+\sup f(X)$ is the smallest upper bound. Well, from the definition of $\sup f(X)$, for every $\varepsilon>0$ there exists $x_\varepsilon \in X$ such that $f(x_\varepsilon)>\sup f(X)-\varepsilon$. Now you just add $a$ to each one of the sides: $$ a+f(x_\varepsilon)>(a+\sup f(X))-\varepsilon$$ This shows that indeed $a+\sup f(X)$ is the smallest upper bound for $\{a+f(x):x \in X\}$.