Let $X_1,X_2$ be two topological space, assume we have open subset $U_1\subset X_1, U_2\subset X_2$ identified together via isomorphism $\phi:U_1\to U_2$. therefore $X_1,X_2$ gluing together to $X= X_1\cup_{\phi}X_2$
Assume the closed point set are $C_i = \{p\in X_i\mid \bar{\{p\}} = \{p\}\}$ for $i = 1,2$ .
I want to prove the set of closed point in $X$ is indeed the $C_1\cup C_2$ via the identification $\phi$.
To be more precise we have $j_i:X_i \to X$ is a topological embedding of this two pieces , I want to show the set of closed points in $X$, denotes it $C = j_1(C_1)\cup j_2(C_2)$.
my attempt: first show $ C\subset j_1(C_1)\cup j_2(C_2) $ i.e. needs to show closed point in $X_i$ are also closed point in $X$, denote the closure of a set $S$ in the topolgoical space $Y$ as $\text{cl}_Y(S)$. Therefore $p\in C_i$ iff $\text{cl}_{X_i}(p) = p$ in the mean time:
$$\text{cl}_X(p)\cap X_i = \text{cl}_{X_i}(p) = p$$ and $$\text{cl}_X(p) = \text{cl}_{X}(p)\cap(X_1\cup X_2) = \text{cl}_{X_1}(p)\cup \text{cl}_{X_2}(p)$$
therefore if $\text{cl}_X(p) = p$ then $\text{cl}_{X_1}(p) = p$ or $\text{cl}_{X_2}(p) = p$
I'm not sure how to prove the other direction?