Two questions on topology and continous functions I have two questions:
1.) I have been thinking a while about the fact, that in general the union of closed sets will not be closed, but I could not find a counterexample, does anybody of you have one available?
2.) The other one is, that I thought that one could possibly say that a function f is continuous iff we have $f(\overline{M})=\overline{f(M)}$(In the second part this should mean the closure of $f(M)$). Is this true?

A function $f:X \to Y$ between topological spaces sends closed sets to closed sets (what I call $f$ is closed) iff 
$$ \forall A \subset X:  \overline{f[A]} \subset f[\overline{A}]$$
If $f$ is closed and $A \subset X$, then $\overline{A}$ is closed, so $f[\overline{A}]$ is also closed. As $A \subset \overline{A}$, $f[A] \subset f[\overline{A}]$ and so also $\overline{f[A]} \subset \overline{f[\overline{A}]} = f[\overline{A}]$ as the latter set is closed.
On the other hand, if $f$ satisfies the closure property, and $C \subset X$ is closed, then $$ f[C] \subset \overline{f[C]} \subset f[\overline{C}] = f[C]$$ 
as $C$ is closed. It follows that $f[C]$ equals its closure, hence is closed. So $f$ is a closed map.
Sort of dually: $f$ is continuous iff
$$\forall A \subset X : f[\overline{A}] \subset \overline{f[A]}$$
So the other inclusion then holds.
If $f$ is continuous, and $A \subset X$, $$A \subset f^{-1}[f[A]] \subset f^{-1}[\overline{f[A]}]$$
and the latter set is closed by continuity of $f$ (inverse images of closed sets are closed).
So as it contains $A$, it also contains $\overline{A}$, which is the smallest closed set containing $A$. So 
$$ \overline{A} \subset f^{-1}[\overline{f[A]}]$$
which implies $f[\overline{A}] \subset \overline{f[A]}$. On the other hand, if $f$ satisfies the second closure property, let $C \subset Y$ be closed. Then taking $A = f^{-1}[C]$ then 
$$f[\overline{f^{-1}[C]}] \subset \overline{f[f^{-1}[C]]} \subset \overline{C} = C$$
This implies (by definition of $f^{-1}$) that $\overline{f^{-1}[C]} \subset f^{-1}[C]$ which means that $f^{-1}[C]$ is closed. So $f$ is continuous, as inverse images of closed sets are closed.
So the equality $\overline{f[A]} = f[\overline{A}]$ for all subsets $A$ of $X$ is exactly saying that $f$ is both closed and continuous. 
