Im working through Bloch's Proofs and Fundamentals and exercise 4.3.11 is
Let $B$ be a set, let $A_i,\cdots,A_\kappa$ be sets for some $k\in\mathbb{N}$ be a subset for all $i\in\left\{1,\cdots,\kappa\right\}$ and let $f:B\rightarrow A_1\times\cdots\times A_\kappa$ be a function. Prove that \begin{align} f^{-1}\left(U_1\times\cdots\times U_\kappa\right)=\bigcap_{i=1}^\kappa \left(f_i\right)^{-1}\left(U_i\right), \end{align} where $f_i$ are the coordinate functions of $f$.
My (perhaps poor) attempt at a short proof:
proof Suppose $b=f^{-1}\left(U_1\times\cdots\times U_\kappa\right)$ for some $b\in B$. Then \begin{align}f\left(b\right)&=f\left(f^{-1}\left(U_1\times\cdots\times U_\kappa\right)\right)\\&=U_1\times\cdots\times U_\kappa\subseteq A_1\times\cdots\times A_\kappa.\end{align} Now suppose $b=\bigcap_{i=1}^\kappa\left(f_i\right)^{-1}\left(U_i\right)$ for some $b\in B$. Then \begin{align}f_i\left(b\right)&=f_i\left(\bigcap_{i=1}^\kappa\left(f_i\right)^{-1}\left(U_i\right)\right)\\&=\bigcap_{i=1}^\kappa f_i\left(\left(f_i\right)^{-1}\left(U_i\right)\right)\\&=\bigcap_{i=1}^\kappa U_i\\ &=?\end{align}
I'm not sure if I'm heading in the right direction or if it's wrong altogether. Constructive criticism and hints would be great.