[step:Carry out the inductive step by identifying $R[x_1, \ldots, x_{k+1}]$ with $R[x_1, \ldots, x_k][x_{k+1}]$]
Let $k \geq 1$ and suppose, as the inductive hypothesis, that $R[x_1, \ldots, x_k]$ is a UFD. The polynomial ring in $k + 1$ indeterminates satisfies the canonical ring isomorphism
\begin{align*}
R[x_1, \ldots, x_{k+1}] \cong R[x_1, \ldots, x_k][x_{k+1}],
\end{align*}
which identifies a polynomial in $x_1, \ldots, x_{k+1}$ with a polynomial in $x_{k+1}$ whose coefficients lie in $R[x_1, \ldots, x_k]$. Since $R[x_1, \ldots, x_k]$ is a UFD by the inductive hypothesis, we apply [Gauss's Theorem — Polynomial Rings over UFDs are UFDs](/theorems/3245) to the UFD $S := R[x_1, \ldots, x_k]$ and conclude that $S[x_{k+1}] = R[x_1, \ldots, x_{k+1}]$ is a UFD.[/step]