Let $i_1:X\rightarrow Y_1$, $i_2:X\rightarrow Y_2$ be compactifications of a space $X$. Show that:
If $Y_1\geq Y_2$, then there exists only one map $g:Y_1\rightarrow Y_2$ satisfying $i_2=gi_1$; moreover, $g$ is onto.
$Y_1\geq Y_2$ and $Y_2\geq Y_1$ if and only if the map $g:Y_1\rightarrow Y_2$ is a homeomorphism.
Here's what I know: $Y_1\geq Y_2$ means that $g$ exists as defined above, and $Y_2\geq Y_1$ means there exists a continuous function $h$ such that $i_1=hi_2$. I assume that in the question, $g^{-1}=h$.
Assume there exist two functions, $g_1$ and $g_2$ such that $i_2=g_1i_1$ and $i_2=g_2i_1$. Somehow I have to use compactification to make a contradiction.
By definition, $g$ and $g^{-1}$ are continuous. So it remains to be shown that $g$ is a bijection. Without an explicit definition of $g$, I don't know how to show this.
If $g\circ i_1=i_2$ and $g^\star\circ i_1=i_2$, then $g=g^\star$ because $g$ and $g^\star$ are continuous, their restrictions to $i_1(X)$ are identical and $i_1(X)$ is a dense subset of $Y_1$.
If there is a continuous map $h\colon Y_2\longrightarrow Y_1$ such that $h\circ i_2=i_1$, then $h\circ g\circ i_1=i_1$. And, of course, $\operatorname{id}_{Y_1}\circ i_1=i_1$. So, by the same reason as above, $h\circ g=\operatorname{id}_{Y_1}$. For the same reason, $g\circ h=\operatorname{id}_{Y_2}$. Therefore, $g$ is a homeomorphism.