The question is $:$
Let $(X,d)$ be a metric space.Let $A,B \subseteq X$.Then prove that $\partial (A \cup B)= \partial(A) \cup \partial(B)$ if $\bar {A} \cap \bar {B} = \phi$ , where $\partial (A)$ and $\bar A$ respectively denote the boundary of $A$ and closure of $A$ in $(X,d)$.
My attempt $:$
Let $A^{o}$ denote the interior of $A$.Then we know that $\partial(A) = \bar A \setminus A^{o}$. Now,$\partial (A \cup B) = \overline {A \cup B} \setminus (A \cup B)^{o} = (\bar A \cup \bar B) \setminus (A \cup B)^{o} = (\bar A \setminus (A \cup B)^{o}) \cup (\bar B \setminus (A \cup B)^{o}) \subseteq (\bar A \setminus A^{o}) \cup (\bar B \setminus B^{o}) = \partial(A) \cup \partial(B)$.
But I fail to prove the other part of the inequality using the given condition. Please help me in proving it.
Thank you in advance.