[step:Construct a rational map from a tuple satisfying the equations of $Y$]
Conversely, let
\begin{align*}
(\varphi_1,\dots,\varphi_m)\in k(X)^m
\end{align*}
satisfy
\begin{align*}
F(\varphi_1,\dots,\varphi_m)=0
\end{align*}
in $k(X)$ for every $F\in I(Y)$. By the definition of $k(X)$, for each $i\in\{1,\dots,m\}$ there exists a nonempty open subset $U_i\subset X$ on which $\varphi_i$ is represented by a regular function. Because $X$ is irreducible, the finite intersection
\begin{align*}
U:=U_1\cap\cdots\cap U_m
\end{align*}
is again a nonempty open subset of $X$.
On $U$, define
\begin{align*}
\psi_U:U\to \mathbb A_k^m
\end{align*}
by
\begin{align*}
\psi_U(p)=(\varphi_1(p),\dots,\varphi_m(p)).
\end{align*}
By the coordinate characterization of regular maps into affine space, since each coordinate function $\varphi_i|_U:U\to k$ is regular, the map $\psi_U$ is regular.
We claim that $\psi_U(U)\subset Y$. Let $p\in U$ and let $F\in I(Y)$. On $U$, the rational function $F(\varphi_1,\dots,\varphi_m)$ is represented by the regular function $g_F:U\to k$ defined by $g_F(q)=F(\psi_U(q))$. Since $F(\varphi_1,\dots,\varphi_m)=0$ in $k(X)$, the rational-function identity principle in [citetheorem:9427] gives a nonempty open subset $O\subset U$ on which $g_F$ agrees with the zero function.
We cannot apply the affine regular-function identity principle directly to $U$, because a nonempty open subset of an affine variety need not itself be affine. Instead, fix the point $p\in U$. Since [distinguished opens form a basis](/theorems/9424) for the Zariski topology by [citetheorem:9424], choose a distinguished open subset $W\subset X$ such that $p\in W\subset U$. The subset $W$ is affine by the regular-functions-on-distinguished-opens description in [citetheorem:9425], and $W$ is irreducible because it is a nonempty open subset of the irreducible variety $X$. The intersection $O\cap W$ is nonempty because $O$ and $W$ are nonempty open subsets of the irreducible space $U$. The regular function $g_F|_W:W\to k$ vanishes on $O\cap W$, so the regular-function part of [citetheorem:9427] applied to the irreducible affine variety $W$ gives $g_F|_W=0$. Since $p\in W$, this implies
\begin{align*}
F(\psi_U(p))=g_F(p)=0.
\end{align*}
This holds for every $F\in I(Y)$, so $\psi_U(p)\in V(I(Y))$, where $V(I(Y))$ denotes the common zero set of the ideal $I(Y)$ in $\mathbb A_k^m$. Since $Y$ is an affine algebraic subset and $I(Y)$ is its vanishing ideal over the [algebraically closed field](/page/Algebraically%20Closed%20Field) $k$, we have $V(I(Y))=Y$. Thus $\psi_U(U)\subset Y$.
Therefore $\psi_U$ factors as a regular map
\begin{align*}
\Phi_U:U\to Y,
\end{align*}
and this regular map represents a rational map $X\dashrightarrow Y$.
[/step]