Let $X,Y$ both be topological spaces, $A\subseteq X$ and $f:A\rightarrow Y$ a continuous function. Take the disjoint union of $X$ and $Y$, $X\cup Y$, and then identify each $a \in A \subseteq X$ with $f(a) \in Y$ and take the quotient topology on the space and denote this space by $X \cup_f Y$. Show that the composition of the inclusion map with the quotient map, $$Y\rightarrow X \cup Y\rightarrow X\cup_f Y$$ is an embedding.
This was an exam question. I am wondering what the space $X \cup_f Y$ looks like and what is the quotient map from $X\cup Y\rightarrow X\cup_f Y$. I have looked at other Topology textbooks, we're using Munkres' topology second edition, and I've seen that quotient spaces are created from equivalence classes. What I am most familiar with in terms of quotient spaces is if we have a map $p:X\rightarrow Y$ which is surjective, and $X$ is a topological space, then we can endow $Y$ with the topology where $$ U \text{ is open in $Y$ if and only if } p^{-1}(U) \text{ is open in $X$,}$$ and we would call $p$ a quotient map and $Y$ would be called the quotient space. Feel free to correct me on terminology. That is what I am most familiar with, a quotient map, not too much creating a quotient space via an equivalence relation. Could someone quantify the equivalence relation which gives rise to $X\cup_f Y$ and what set the equivalence relation is on and what is the map $$X\cup Y\rightarrow X\cup_f Y$$ which we call the quotient map? I am guessing it (hopefully) won't be difficult to show that the map is an embedding once I know what the space $X\cup_f Y$ exactly is and then what is the map $X\cup Y\rightarrow X\cup_f Y$. Let me know if more details are needed.