Let A be a non empty bounded subset of the real numbers, let $B = A \cap [0,\infty)$ and $C = A \cap (-\infty,0]$. Assume both $B$ and $C$ are non empty. Let $D = \{a^2 : a \in A\}$
Find $\sup D$ in terms of $\sup B$ and $\inf C$ and justify.
So my reasoning is that it is $\sup D = \max ((\sup B)^2,(\inf C)^2)$ but I am not sure how to justify this formally!
\begin{align} \sup(D) &= \sup\{a^2: a \in A\}\\ &= \sup(\{a^2: a \in B\} \cup \{a^2 : a \in C\})\\ &= \max(\sup\{a^2: a \in B\}, \sup \{a^2: a \in C\})\\ &= \max((\sup B)^2, (\inf C)^2). \end{align}
Each step will need justification.
The first two equalities are by definition.
The last equality is due to elements of $B$ being nonnegative, and elements of $C$ being nonpositive. You may need to be more formal if you are being graded rigorously.
The third equality requires you to prove $\sup(E \cup F) = \max(\sup E ,\sup F)$.
Proving "$\ge$":
Proving "$\le$":
$~$