Let $E$,$E^{\prime}$ be metric spaces, $f: E \to E^{\prime}$ a function, and suppose that $S_1,S_2$ are closed subsets of $E$ such that $E = S_1 \cup S_2$. Show that if the restrictions of $f$ to $S_1$ and to $S_2$ are continuous then $f$ is continuous.
What is meant by restrictions? Is it stating that $f(S_1)$ is continuous and $f(S_2)$ is continuous so now show that the function is continuous for $E \to E^{\prime}$?
Thank you in advance! :)
For starters, $f(S_1)$ and $f(S_2)$ are sets, and sets are not continuous: functions are.
You have $f|_{S_1}:S_1\to E'$ given by $f|_{S_1}(x)\doteq f(x)$ and similarly for $S_2$.
I'll give you hints:
use that $f:E\to E'$ is continuous if and only if $f^{-1}(B)$ is closed in $E$ for each $B$ closed in $E'$.
given such $B$, try to relate $f^{-1}(B)$ with $(f|_{S_1})^{-1}(B)$ and $(f|_{S_2})^{-1}(B)$.
use that if $C$ is closed in $S_1$ and $S_1$ is closed in $E$, then $C$ is closed in $E$ (and similarly for $S_2$).