[step:Identify the degree-$d$ monomials inside the homogeneous component]
Let
\begin{align*}
A_d := \{(a_1,\ldots,a_n) \in (\mathbb{N} \cup \{0\})^n : a_1+\cdots+a_n=d\}.
\end{align*}
For each $a=(a_1,\ldots,a_n) \in A_d$, define the monomial
\begin{align*}
x^a := x_1^{a_1}\cdots x_n^{a_n} \in k[x_1,\ldots,x_n].
\end{align*}
By definition, each $x^a$ with $a \in A_d$ is homogeneous of degree $d$, so
\begin{align*}
\operatorname{span}_k\{x^a : a \in A_d\} \subseteq k[x_1,\ldots,x_n]_d.
\end{align*}
Conversely, let $f \in k[x_1,\ldots,x_n]_d$. Since every polynomial in $k[x_1,\ldots,x_n]$ has a unique finite monomial expansion, there are unique coefficients $c_b \in k$, indexed by finitely many exponent vectors $b=(b_1,\ldots,b_n) \in (\mathbb{N} \cup \{0\})^n$, such that
\begin{align*}
f = \sum_b c_b x_1^{b_1}\cdots x_n^{b_n}.
\end{align*}
Because $f$ is homogeneous of degree $d$, every monomial appearing with nonzero coefficient has total degree $d$. Hence $c_b=0$ whenever $b_1+\cdots+b_n \ne d$, and therefore
\begin{align*}
f \in \operatorname{span}_k\{x^a : a \in A_d\}.
\end{align*}
Thus
\begin{align*}
k[x_1,\ldots,x_n]_d = \operatorname{span}_k\{x^a : a \in A_d\}.
\end{align*}
[/step]