Let $X$ be an irreducible quasiprojective variety. We define the dimension of $X$ to be the transcendence degree of $k(X)$ over $k.$
I'm trying to show that if $U \subset X$ is a nonempty open subset, then dim $U =$ dim $X.$
The results I've seen use the fact that $U$ is dense, and so its closure is the whole space: https://math.stackexchange.com/a/1790691/833271, or they just state the result without explaining it: pg. 33, Example 11.2 of http://math.uchicago.edu/~amathew/AGnotes.pdf
My question is how the fact that $U$ is dense relates back to transcendence degree, because I'm not seeing the immediate connection.