TITLE: What is the difference between $f(f^{-1}(U))$ and $f^{-1}(f(U))$?
QUESTION [7 upvotes]: What is the difference between $f(f^{-1}(U))$ and $f^{-1}(f(U))$.
Now i Think if $f$ is onto then $f(f^{-1}(U)) = U $ while $f^{-1}(f(U))=U$ no matter what.
why don't I have a clear picture in my mind?

REPLY [3 votes]: I'm going to answer in less formal language, in case that is useful.
Let $f$ be a function from $X$ to $Y$.
If $U$ is a subset of $X$, then $f(U)$, the "image of $U$ in $Y$," is all the elements in $Y$ to which elements of $U$ get sent.  Then $f^{-1}(f(U))$ is everybody in $X$ that gets sent to any of those elements. Notice that this includes everybody in $U$, but it can be bigger. For example, let $X$ be a sphere floating above $Y$ which is a plane, and let $f$ be the projection of points straight down to the plane. Let $U$ be the bottom (southern) hemisphere of the sphere, including the equator. Then $f(U)$ is the image of all these points in the plane: it is the disc sitting below the sphere. Every point on the southern hemisphere projects down to one point in the disc and every point in the disc lies below some point in the southern hemisphere. But now $f^{-1}(f(U))$ is everybody in the sphere that gets projected down to the disc, and this is the whole sphere $X$! So $f^{-1}(f(U))$ is bigger than $U$.
(A good problem to think about: can you think of a condition on $f$ would rule out $f^{-1}(f(U))$ being any bigger than $U$?)
Notice that to apply $f$ to $U$ to get this whole process going, $U$ had to be inside $X$.
If $U$ is a subset of $Y$, on the other hand, $f(U)$ doesn't necessarily mean anything, because $f$ acts on elements of $X$ not $Y$. But $f^{-1}(U)$ is the set of elements of $X$ that get sent to elements of $U$. Then, $f(f^{-1}(U))$ is the set of elements in $Y$ to which they all get sent. This time, notice that $f(f^{-1}(U))$ is inside $U$, but it can be smaller. In the example above, suppose $U$ is a very large region of the plane $Y$ that includes the "shadow" of the sphere. Then $f^{-1}(U)$ is the set of all points of the sphere $X$ that get sent by $f$ to within this region. This is the whole sphere since I chose $U$ to include the sphere's whole shadow. Then $f(f^{-1}(U))$ is the image of all these points back in the plane. This is now only the shadow of the sphere, so it is much smaller than $U$.
(Good problem: can you think of a condition on $f$ that would rule out $f(f^{-1}(U))$ being any smaller than $U$?)