[step:Verify that the maximum formula defines a metric on the product]
Let $I := \{1,\dots,n\}$. Since $n \geq 1$, the set $I$ is finite and nonempty, so the maximum in the definition of $d$ is taken over a finite nonempty set of [real numbers](/page/Real%20Numbers).
For all $x=(x_1,\dots,x_n) \in X$ and $y=(y_1,\dots,y_n) \in X$, each number $d_i(x_i,y_i)$ is nonnegative because $d_i$ is a metric. Hence
\begin{align*}
d(x,y)=\max_{i \in I} d_i(x_i,y_i) \geq 0.
\end{align*}
If $x=y$, then $x_i=y_i$ for every $i \in I$, so $d_i(x_i,y_i)=0$ for every $i \in I$, and therefore $d(x,y)=0$. Conversely, suppose $d(x,y)=0$. For every $i \in I$,
\begin{align*}
0 \leq d_i(x_i,y_i) \leq \max_{j \in I} d_j(x_j,y_j)=0.
\end{align*}
Thus $d_i(x_i,y_i)=0$ for every $i \in I$. Since each $d_i$ is a metric, this implies $x_i=y_i$ for every $i \in I$, and hence $x=y$.
For symmetry, let $x=(x_1,\dots,x_n) \in X$ and $y=(y_1,\dots,y_n) \in X$. Since each $d_i$ is symmetric,
\begin{align*}
d(x,y)=\max_{i \in I} d_i(x_i,y_i)=\max_{i \in I} d_i(y_i,x_i)=d(y,x).
\end{align*}
For the triangle inequality, let $x=(x_1,\dots,x_n)$, $y=(y_1,\dots,y_n)$, and $z=(z_1,\dots,z_n)$ be elements of $X$. For each $i \in I$, the triangle inequality for $d_i$ gives
\begin{align*}
d_i(x_i,z_i) \leq d_i(x_i,y_i)+d_i(y_i,z_i).
\end{align*}
By the definition of $d$, we also have
\begin{align*}
d_i(x_i,y_i) \leq d(x,y)
\end{align*}
and
\begin{align*}
d_i(y_i,z_i) \leq d(y,z).
\end{align*}
Therefore, for every $i \in I$,
\begin{align*}
d_i(x_i,z_i) \leq d(x,y)+d(y,z).
\end{align*}
Taking the maximum over $i \in I$ gives
\begin{align*}
d(x,z)=\max_{i \in I} d_i(x_i,z_i) \leq d(x,y)+d(y,z).
\end{align*}
Thus $d$ is a metric on $X$.
[/step]