Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm confused with something once again in my notes. The question is,

$R$ on $\mathbb R$, $R = \{ (x, y): y = \sqrt{x} \}$ is not a function

how is the graph $y = \sqrt{x}$ not a function?

$ y = \sqrt{x} $

$ x = y^2 $

Dom of $R = \{ x \in \mathbb R : x \ge 0 \} $

This is what the graph should be accordingly to the condition above

enter image description here

Then i got another question that says

R on $\mathbb R$, $ R = \{ (x, y): x = y^2 \} $ is a function

which isn't it the same as the above?

Can anyone kindly explain?

share|cite|improve this question
2  
$$\Bbb R_{\ge 0} \to \Bbb R \\ x\mapsto \sqrt{x}$$ is a function. – Bye_World 3 hours ago
    
Of course it is a function on domain $[0,inf)$ It is even a one-to-one function! – imranfat 3 hours ago
    
It's a function on the domain $[0, \infty)$ – KaliMa 3 hours ago
    
But according to the notes it says that {(x, y): y = √x} is not a function – Teo Chuen Wei Bryan 3 hours ago
1  
@TeoChuenWeiBryan The key part is where it says "on $\Bbb R$". Notice all of us said it's a function on $[0,\infty) = \Bbb R_{\ge 0}$. – Bye_World 3 hours ago
up vote 6 down vote accepted

The question you include seems to be asking:

Is $\{(x,y):y=\sqrt{x}\}$ a function $\mathbb R\rightarrow \mathbb R$?

You are correct both in that $\{(x,y):y=\sqrt{x}\}$ is a function and that the domain of this function is $\{x\in \mathbb R:x\geq 0\}$. However, the answer is therefore "No" because the domain of the function is not $\mathbb R$, as would be required of a function $\mathbb R\rightarrow\mathbb R$.

If you are given the domain, then when you apply the vertical line test, you require that, for each $x$ in the domain there is exactly one $y$ such that $(x,y)$ is in the function. Here, the function fails, for instance taking $x=-1$ where no pairs $(-1,y)$ are included in the given relation.


For the second question, note that $x=y^2$ has two solutions for $y$ for positive $x$, which are $\sqrt{y}$ and $-\sqrt{y}$. Thus, if you choose any positive $x$, you can relatively easily find that two pairs are included of the form $(x,y)$, so it fails the vertical line test. Try plotting the set of pairs like you did with the square root function.

share|cite|improve this answer
1  
This makes sense, however if the graph provided by the OP was the same graph the OP had to do on a test, then this is a TERRIBLE worded question, if the answer would have been "no function" – imranfat 3 hours ago
    
I do get why it is not a function because it fails to satisfy the condition as a real number as x is only more than or equals to 0 which does not include the negative number. However, as for x = y square, the domain does not include all the values in a real number too. Unfortunately, that is counted as a function which is like some sort of a contradiction. – Teo Chuen Wei Bryan 3 hours ago
    
@TeoChuenWeiBryan I added something to the second part of your question. The second thing is definitely not a function - it both has places where a vertical line intersects the graph twice and where it intersects the graph zero times, either of which disqualifies it from being a function with domain $\mathbb R$. – Milo Brandt 3 hours ago

A relation being considered a function has as much to do with the domain and codomain as it does the relationship itself.

A visual interpretation of the definition of a function, $f$, with domain $X$ and codomain $Y$ is as a directed graph with a vertex representing each point in the domain on the left, a vertex representing each point in the codomain on the right, and a directed edge between a point on the left to a point on the right if they are related.


For example, with domain $\{a,b,c\}$ and codomain $\{\text{apple},\text{banana},\text{cherry}\}$ and relation a letter is related to a word if the letter begins that word.

We have the image:

enter image description here

To be a function: EVERY vertex from the domain must have exactly one arrow leaving it going to the codomain. There cannot be zero arrows and there cannot be more than one arrow.

The above example satisfies what it means to be a function then.


If we change the example somewhat, and have domain $\{a,b,c,d\}$, codomain $\{\text{apple, banana, cherry}\}$ and the same relation (a letter is related to a word if the letter begins that word)

enter image description here

This is no longer a function because the letter $d$ in the domain does not have an arrow leaving it. It fails to be "everywhere defined"


If we change it in a different way, suppose that the domain is $\{a,b,c\}$ and the codomain is $\{\text{apple, banana, blueberry, cherry}\}$ with the same relation: a letter is related to a word iff the letter begins that word. We have:

enter image description here

This fails to be a function because there is more than one arrow leaving $b$. It fails to be "well defined."


Notice that in the above example, the relation did not change at all. The only things that changed were the domain and the codomain. In the same way, the examples in your question will either be or not be functions depending upon what the domain and codomain are. The domain and codomain are only what they tell you they are, an image of the graph by itself will not tell you what they intend the domain or codomain to be. Even though the image only pictures non-negative numbers, the problem statement implies that the domain is in fact $\Bbb R$.

If the domain is all real numbers and the codomain is a subset of the reals (possibly all reals), then it fails to "have an arrow leaving every vertex", it won't be everywhere defined, because there are numbers such as $-10$ for which no real number squared will equal. Alternatively worded, $\sqrt{-10}$ is non-real. (same issue as when I added the letter $d$ to the domain)

If the domain is non-negative real numbers and the codomain is all real numbers, then for the relation $\{(x,y)~:~x=y^2\}$ it is not a function because "some vertices have more than one arrow leaving them", it is not well defined, because there are numbers like $4$ which have multiple outputs. $4=(-2)^2$ and also $4=2^2$ so both $(4,2)$ and $(4,-2)$ are included in the relation. (same issue as when I added the word blueberry to the codomain)

If the domain was non-negative real numbers and the codomain is non-negative real numbers, then it will indeed be a function in both problems. If the domain was non-negative real numbers and the codomain is all real numbers, only the first will be a function since $\sqrt{x}$ only outputs non-negative numbers there will be only one arrow leaving each.

share|cite|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.