Given any family $\{X_{\alpha}\}_{\alpha \in A}$ of topological spaces, show that the disjoint union space $\bigsqcup_{\alpha \in A} X_\alpha$ is their coproduct in the category Top
My attemtped proof: Fix $\alpha \in A$. The disjoint union space comes together with a continuous inclusion map $i_{\alpha} : X_{\alpha} \to \bigsqcup_{\alpha \in A}X_{\alpha}$. Let $W$ be any topological space and let $f_{\alpha} : X_{\alpha} \to W$ be any continuous map.
We need to show that there exists a unique continuous map $f: \bigsqcup_{\alpha \in A}X_{\alpha} \to W$ such that $f \circ i_{\alpha} = f_{\alpha}$. To that end define $f : \bigsqcup_{\alpha \in A}X_{\alpha} \to W$ by $$f(x, \alpha) = f_{\alpha}(x).$$By the characteristic property of the disjoint union space, $f$ is continuous if and only if its restriction to each $(X_{\alpha})^* = i_{\alpha}[X_{\alpha}]$ is continuous. So it suffices to show that such a restriction is continuous to show continuity of $f$.
With that in mind consider the restriction $f|_{(X_{\alpha})^*} : (X_{\alpha})^* \to W$ and define $\pi_{\alpha} : i_{\alpha}[X_{\alpha}] \to X_{\alpha}$ by $\pi(x, \alpha) = x$. Note that $\pi_{\alpha}$ is continuous and we have $$f|_{(X_{\alpha})^*} = f_{\alpha} \circ \pi_{\alpha}$$ and since $f_\alpha $ and $\pi_\alpha$ are continuous we have that $f|_{(X_{\alpha})^*}$ is continuous. Since $\alpha$ was fixed arbitrarily this holds for all $\alpha \in A$. Hence by the characteristic property we conclude that $f$ is continuous.
Now I have to show that the map $f$ is unique. However I'm not sure how to proceed with that. How can I prove that $f$ is unique? Also is what I've written above correct?
You'd need to check with your lecturer, but I'm a bit dubious about your phrasing "By the characteristic property of the disjoint union space." However you go about stating that characteristic property, it's awfully close to just saying "The characteristic property of the disjoint union is that it's the coproduct." It depends on what other information you have available, but even then for myself I'd prefer to prove continuity of $f$ by checking the pre-image of each open set.
As for uniqueness, that's easy. The only function $f$ such that $f \circ i_{\alpha} = f_{\alpha}$ has to be given on each element $(x, \alpha)$ by $f(x, \alpha)=f(i_{\alpha}(x)) = f_{\alpha}(x)$ so is unique. In hindsight, I'd put that at the start of your proof as the way of identifying $f$ as the function you had to pick.