Let X be a topological space and Y hausdorff and local compact.
Let $f:X \rightarrow Y$ be a continuous map such that $f^{-1}(K)$ is compact for all compact sets $K$.
Show that $f$ is a closed map.
I know that the statement would follow if X were a compact Set. This would follow if $f(X)$ were compact. I tried to show this, but it seems impossible.
The other way is to show it directly. So i take a closed subset of X, namely A. There is no other possibility than considering the image $f(A)\subseteq Y$. But how we should continue now? Should we consider the set $f(A)\cap K$ for some compact set K?
Iam thankful for every help!