I'm studying algebraic geometry and I tried to understand th concept of Transcendental degree of a polynomial like the following.
Wiki
The field of rational functions in $n$ variables $K(x_1, \ldots, x_n)$ (i.e., the field of fractions of the polynomial ring $K[x_1, \ldots, x_n]$) is a purely transcendental extension with transcendence degree $n$ over $K$; we can, for example, take $\{ x_1, \ldots, x_n \}$ as a transcendence base.
I tried to come up with some examples and my professor wrote on the blackboard the following examples which I couldn't quite get;
For example, consider the polynomial $ f(x, y) = x^2 + y^2 - 1 $. This polynomial involves two variables, $ x $ and $ y $, which are algebraically independent over the real numbers. The transcendence degree of the field extension $ \mathbb{R}(x, y)/\mathbb{R} $ is 2, because $ x $ and $ y $ are algebraically independent and there are no polynomial relations between them over $ \mathbb{R} $.
In contrast, if you have a polynomial like $ g(x) = x^2 - 2 $, the transcendence degree of the field extension $ \mathbb{R}(x)/\mathbb{R} $ is 1, because although $ x $ is algebraically independent over $ \mathbb{R} $, it is algebraic over $ \mathbb{R} $ (since it satisfies the polynomial equation $ x^2 - 2 = 0 $).
Are the above examples correct? I thought $f(x, y)$ in the first example can have solutions for $x^2 + y^2 = 1$ in $\mathbb{R}$.