[guided]The homomorphism $\alpha:k[Y]\to k[X]$ tells us where every regular function on $Y$ should pull back to on $X$. To recover a map of varieties, it is enough to recover the coordinate functions of that map. Let $\bar y_j\in k[Y]$ be the class of the $j$th coordinate function on $\mathbb A_k^m$, and define
\begin{align*}
f_j:=\alpha(\bar y_j)\in k[X]
\end{align*}
for each $j\in\{1,\dots,m\}$. Since $X$ is an affine variety over the algebraically closed field $k$, [citetheorem:9419] applies to $X$. Hence elements of $k[X]$ are precisely regular functions on $X$, so each $f_j$ is a regular function $f_j:X\to k$.
These functions define a candidate map to [affine space](/page/Affine%20Space):
\begin{align*}
\varphi_\alpha:X\to \mathbb A_k^m
\end{align*}
by
\begin{align*}
\varphi_\alpha(p)=(f_1(p),\dots,f_m(p)).
\end{align*}
The only point that needs checking is that the image actually lands in $Y$, not merely in the ambient affine space $\mathbb A_k^m$. By definition, $Y=V(I(Y))$, so a point $q\in\mathbb A_k^m$ lies in $Y$ exactly when every polynomial in $I(Y)$ vanishes at $q$.
Take an arbitrary polynomial $H\in I(Y)$. In the [quotient ring](/page/Quotient%20Ring) $k[Y]=k[y_1,\dots,y_m]/I(Y)$, the class of $H$ is zero, which is the same as saying
\begin{align*}
H(\bar y_1,\dots,\bar y_m)=0.
\end{align*}
Applying the $k$-algebra homomorphism $\alpha$ preserves polynomial expressions in the generators, so
\begin{align*}
H(\alpha(\bar y_1),\dots,\alpha(\bar y_m))=0
\end{align*}
in $k[X]$. By the definition of the functions $f_j$, this is
\begin{align*}
H(f_1,\dots,f_m)=0
\end{align*}
in $k[X]$. Evaluating this regular function at an arbitrary point $p\in X$ gives
\begin{align*}
H(f_1(p),\dots,f_m(p))=0.
\end{align*}
Thus every polynomial in $I(Y)$ vanishes at $\varphi_\alpha(p)$, so $\varphi_\alpha(p)\in Y$. Since the coordinate functions of $\varphi_\alpha$ are regular, $\varphi_\alpha:X\to Y$ is a regular map.[/guided]