Recently I come across this definition of function. "A function F is a set of ordered pairs $( x , y)$, no two of which have the same first member. That is, if $(x, y) \in F$ and $(x, z) \in F$, then $y = z$."
It made me confused because as far as i understood that it suggests we can't have one to many function like $\sqrt{x}$. But why this is so?
A function $f\colon X \to Y$ can be thought of as a subset $F \subseteq X \times Y$ such that
For every $x \in X$ there is a $y \in Y$ such that $(x, y) \in F$.
If $(x, y), (x, y') \in F$ then $y = y'$.
If you have a function $f\colon X \to Y$ then it corresponds to the ordered pairs $F = \{(x, f(x)) \mid x \in X\}$. Conversely if you have a set of pairs $F \subseteq X \times Y$ with the above properties then the associated function $f\colon X \to Y$ is defined by letting $f(x)$ be the unique element of $Y$ such that $(x, f(x)) \in F$.
It is indeed true that this means functions cannot be one to many. In set theory this is part of the definition of a function. A function $f\colon X \to Y$ is an assignment, to every $x \in X$, of a unique element $f(x) \in Y$.