Define $f : X \to Y$. Prove $f[ \bigcup_{i}A_i] = \bigcup_{i} f[A_i]$ for a family $\{A_i\}$ of subsets of $X$.
My Attempted Proof.
We first show $f\left[ \bigcup_{i}A_i\right] \subset \bigcup_{i} f\left[A_i \right]$. Pick $x \in \bigcup_{i}A_i$, we show $f(x) \in \bigcup_{i} f\left[A_i \right]$. Since $x \in \bigcup_{i}A_i$, we have $x \in A_i$ for some $i$, hence we have $f(x) \in f[A_i]$ for this $i$, and thus $f(x) \in \bigcup_{i} f[A_i]$. Therefore it follows that $f\left[ \bigcup_{i}A_i\right] \subset \bigcup_{i} f\left[A_i \right]$.
Conversely we show $f\left[ \bigcup_{i}A_i\right] \supset \bigcup_{i} f\left[A_i \right]$. Fix $i$, take $x \in A_i$, then $f(x) \in f[A_i]$ and $f(x) \in \bigcup_{i} f[A_i]$. Since $x \in A_i$ for some $i$, we have $x \in \bigcup_{i} A_i$ certainly and hence $f(x) \in f\left[\bigcup_{i} A_i\right]$, and thus it follows that $f\left[ \bigcup_{i}A_i\right] \supset \bigcup_{i} f\left[A_i \right]$. $\ \ \ \square$
Is my proof correct? If so any comments on my proof writing and how to make my arguments clearer to the reader are greatly appreciated.