I am self studying discrete mathematics using the book Discrete Mathematics with Applications (Epp, 4e international version) and I have been stuck trying to figure out the answer to the below question (pg. 22, question 11)
Define a relation $P$ from $\mathbb{R^+}$ to $\mathbb{R}$ as follows: For all real numbers $x$ and $y$ with $x > 0$, $(x,y) \in P$ means that $x = y^2$
Is $P$ a function?
I reasoned that $P$ is a function as it satisfies the properties of a function:
- For every element $x$ in $\mathbb{R^+}$ there is an element $y$ in $\mathbb{R}$
- No two distinct ordered pairs in $P$ have the same first element because, the domain $\mathbb{R^+}$ which means that $x$ is always positive, so y = $\sqrt x$ would also be a positive real number.
However, the solution provided for the problem states: $P$ is not a function because, for example, $(4, 2) \in P$ and $(4, -2) \in P$ but $2 \ne -2$
I can't work out why it would not be function given that $P$ explicitly means $x = y^2$, so using the example provided, $(4, -2) \not\in P$ because $\sqrt 4 \ne -2$.
Can anyone give a hint that might help me to get unstuck or should I re-read this chapter as I've missed something fundamental?