Is the union of two nowhere dense sets nowhere dense?

Let A be a nowhere dense set. Then $(\overline{A})^o=\emptyset$. This is equivalent to saying that $(\overline{A})^c$ is dense in X. Let A and B be two nowhere dense sets. Let $S=A \cup B$. To show S is nowhere dense we will show that $(\overline{S})^c$ is dense in X, that is $(\overline{S})^c$ meets every non-empty open set. Let G be a non-empty open set. Now as $A , B$ are nowhere dense, $G\cap(\overline{A})^c\neq\emptyset$ and $G\cap(\overline{B})^c\neq\emptyset$. Also $(\overline{A})^c$,$(\overline{B})^c$ are open. Hence $G\cap(\overline{A})^c\cap(\overline{B})^c\neq\emptyset$, since $G\cap(\overline{A})^c$ is non-empty open and $(\overline{B})^c$ is dense in X. Thus $G\cap(\overline{A}\cup\overline{B})^c\neq\emptyset$, which implies $G\cap(\overline{S})^c\neq\emptyset$. Hence $(\overline{S})^c$ is dense in X. Equivalently S is nowhere dense.


Put another (equivalent) way, a set $A$ is nowhere dense iff for every non-empty open set $U$ there is a non-empty open set $V$ such that $V\subseteq U$ and $A\cap V=\emptyset$. (I leave it to you to prove the equivalence.) That version should make your task much simpler.

Added: It's worth noting that an easy inductive argument shows that any finite union of nowhere dense sets is again nowhere dense. However, we cannot in general extend this result to a countable union of nowhere dense sets. For example, the rationals are dense in the reals, but are readily a countable union of nowhere dense sets


Let $G = int [cl( A \cup B)]$ where $A$ and $B$ are nowhere dense sets $\implies G \subseteq cl(A \cup B) = cl(A) \cup cl(B) \implies G \cap (cl(B))^c \subseteq [cl(A) \cup cl(B)] \cap [cl(B)]^c = cl(A) \cap [cl(B)]^c \subseteq cl(A) \implies int [G \cap (cl(B))^c]\subseteq int [cl(A)] \implies G \cap (cl(B))^c \subseteq \emptyset$ since $A$ is nowhere dense and $G \cap (cl(B))^c$ is open $\implies G \subseteq cl(B) \implies G \subseteq int [cl(B)]$ since $G$ is open $\implies G = \emptyset$ since $B$ is nowhere dense $\implies A \cup B$ is nowhere dense.