I know this question has already been posted here $A$ subset $$ implies $f(A)$ subset $f()$. However, I would like to know if my approach is just as fine.
Let $f:X\rightarrow Y$ be a mapping from $X$ into $Y$. Show that if $A$ and $B$ are subsets of $X$, then
$$(A\subset B)\Rightarrow (f(A)\subset f(B))$$
MY ATTEMPT
Indeed, due to the hypothesis, which is equivalent to $A\cap B = A$, one has \begin{align*} f(A) & = \{y\in Y \mid\exists x\,(x\in A)\wedge(y = f(x))\} = \{y\in Y \mid\exists x\,(x\in A\cap B)\wedge(y = f(x))\} \\\\ & = \{y\in Y \mid\exists x\,(x\in A)\wedge(x\in B)\wedge(y = f(x))\}\\\\ & = \{y\in Y \mid\exists x\,(x\in A)\wedge(y = f(x))\}\cap\{y\in Y \mid \exists x\,(x\in B)\wedge(y = f(x))\}\\\\ & = f(A)\cap f(B) \subset f(B) \end{align*}
Am I on the right track? Any help is appreciated.
If y in f(A), then exists a in A with y = f(a).
Thus exists a in B with y = f(x); y in f(A).