This was taken out of Tao's book on Measure theory:
Let $f : \mathbb{R}^d \rightarrow [0, + \infty]$ be an unsigned measurable function. Show that the region $ \{ (x,t) \in \mathbb{R}^d \times \mathbb{R} : 0 \leq t \leq f(x) \}$ is a measurable set of $\mathbb{R}^{d+1}$
My attempt:
We know that the set $\{ x \in \mathbb{R}^d : t < f(x) \}$ is measurable (by definition)
Therefore $\bigcup_{t \in \mathbb{Q}} \{ x \in \mathbb{R}^d : t < f(x) \} \times \{t\}$ is measurable as it is the countable union of measurable sets.
This set is equal to $ \{ (x,t) \in \mathbb{R}^d \times \mathbb{Q} : 0 \leq t \leq f(x) \}$.
I was trying to find a density argument to conclude the desired result, but I am stuck, and this led me to think that this approach is fruitless. Any help?