I have a relation $f$ defined as
$$ f=\{(x, y) \mid y=\sqrt{x} \;\text { and }\; y, x \in \Bbb R\} $$
Now this relation is a function. But how? A function is a relation whose every element in domain have only one image in codomain. Now if I have $4$. Then \begin{align} \sqrt{4}=\pm 2 \end{align}
So I have two ordered pairs whose second element is square root of first element: \begin{align} (4,2) \quad \text { and } \quad(4,-2) \end{align}
Now you can observe that 4 has two images. Therefore relation $f$ must not be a function. But it is! How this is possible?