Let $X=A\cup B$ and $A,B$ closed. Let $f: A\to Y$ and $g: B\to Y$ be continuous functions and $f(x)=g(x)$ for all $x\in A\cap B$. Show that $h: X\to Y$, $h(x)=\begin{cases} f(x), \text{if}\,\,x\in A \\ g(x), \text{if}\,\, x\in B\end{cases}$
is well-defined and continuous.
To show, that $h$ is a well-defined function, should be easy. We have to show, that $h$ is 'left-totally'. Hence for every $x\in X$ exists a $y\in Y$ with $h(x)=y$.
And 'right-unique'. Hence for every $x\in X$ and $y, y'\in Y$ with $h(x)=y$ and $h(x)=y'$ is $y=y'$.
It is immediatly clear, that $h$ is 'left-totally' since $X=A\cup B$ and the definition of $h(x)$.
Also it is immedialty clear, that $h$ is 'right-unique', because $f$ and $g$ are functions (which are 'right-unique'). You could seperate some cases. For example: If $x\in A\setminus B$ and $h(x)=y$ and $h(x)=y'$. Then is $h(x)=f(x)=y$ and $f(x)=y'$. But $f$ is 'right-unique' and therefor $y=y'$.
The same for $x\in B\setminus A$ and $x\in A\cap B$. Actually, I do not even know, why this is a task. Maybe just to refresh what is meant with 'well-defined', or is there something to think about here?
And $h$ is continuous, because it is continuous in every point.
Am I missing something here? What has this to do with $A, B$ beeing closed?
Thanks in advance.