Relations and Functions in A and B Sets: Understanding the Differences

In summary, A function is a relation in which every element in the domain is paired with exactly one element in the range. For the given set {<m,s>, <b,m>, <f,m>, <a,b>}, s is in the domain but not paired with anything in the range, making it not a function. The empty set is also not a function from A to B, but it is a function from {} to S where S is any set.
  • #1
luizgguidi
8
0
Can anyone help me with this?
Thank you very much

Given set A={m,b,f,a,s} and B={m,b,s}

a) Is {<m,s>, <b,m>, <f,m>, <a,b>} a function? Is it a relation or function from A to B, A to A, B to A, B to B or none of the above?
b) Is { } a function? Is it a relation or function from A to B, A to A, B to A, B to B or none of the above?

Please note that { } stands for the empty set
 
Physics news on Phys.org
  • #2
What is the definition of a function, say, from X to Y?
 
  • #3
I assumed that a function is a relation in which every element in the domain yields exactly one element.
 
  • #4
You assumed or that is what your textbook said?
 
  • #5
Textbook said!
 
  • #6
luizgguidi said:
I assumed that a function is a relation in which every element in the domain yields exactly one element.
Good! Now, is that the case for {<m,s>, <b,m>, <f,m>, <a,b>}? (Which elements are in the domain which in the range?)
 
  • #7
I would say yes, but not sure because s is not paired with any member. Does that make it not a function? Definition says that every element should be. I had a different answer from a book so just want to check I understood it right.
Also, what about {} ?

Thanks
 
  • #8
Well, more formally, a relation from X to Y is any subset of X × Y, and a function f from X to Y is a subset of X × Y such that for each x in X, there is some y in Y such that <x, y> is in f, and if <x, y> and <x, y'> are in f then y = y'.

For a), apply the definition above. s is in A, but there's no y in B such that <s, y> is in the set given, so it's not a function.

For b), {} is a function, but not from A to B. However, it is a function from {} to S where S is any set at all; it's a subset of {} × S and the other conditions for a function are vacuously true. However, it is a relation between any two sets, since the empty set is a subset of any set.

Note: if f is a function from X to Y, it's easy to see that X is the set of all first entries in f, so you should be able to use this as a test.
 
  • #9
luizgguidi said:
I would say yes, but not sure because s is not paired with any member. Does that make it not a function? Definition says that every element should be. I had a different answer from a book so just want to check I understood it right.
Also, what about {} ?

Thanks

Absolutely not! You seem to be completely misunderstanding the definition of "function". The definition of function says that every member of the domain must be paired with at most one member of the range. For example {(x,y)| y= x2} is a function even though no x is paired with a negative number. It is also true that two different values of x give the same y value so a member of the range is paired with two different members of the domain. But it is still true that no member of the domain is paired with two different members of the range and so it is a function.

{(x, y)| x= y2} is not a function because it contains the pairs (4, 2) and (4, -2): one member of the domain, 4, is paired with two different members of the domain. Now, look at "first" and "second" members of each pair ("domain" and "range" respectively). Does your set of pairs contain two pair in which the first members are different but the second the same? If so it is not a function.
 
  • #10
Halls, you just really confused me there; what are you trying to say?

In a function, each member of the domain must be paired with exactly one member of the codomain such that the member of the domain is the first entry of the pair. In his case, s is in the domain, but it's not paired with anything in the range (there's no pair of the form <s, ·> in the given set). That proves that it's not a function.
 
  • #11
I thought it simpler to note that there are two members of the domain paired with s.
 
  • #12
Where are there two members of the domain paired with s?
 

FAQ: Relations and Functions in A and B Sets: Understanding the Differences

What is the difference between a relation and a function?

A relation is a set of ordered pairs, where the first element is related to the second element. A function is a special type of relation where each input has exactly one unique output.

How can I tell if a relation is a function?

A relation is a function if each input has exactly one output. This can be determined by using the vertical line test, where a vertical line is drawn through the graph of the relation and it should only intersect the graph at one point for each input.

What is the domain and range of a relation?

The domain of a relation is the set of all possible inputs, while the range is the set of all possible outputs.

Can a relation have more than one output for a single input?

Yes, a relation can have more than one output for a single input. This would mean that the relation is not a function.

How are relations and functions used in real life?

Relations and functions are used in many areas of science and everyday life. In physics, they are used to model the relationship between variables such as distance and time. In economics, they are used to represent supply and demand curves. In computer science, they are used to create algorithms and solve problems. In everyday life, they can be used to calculate the cost of a shopping trip or determine the best route to a destination.

Similar threads

Back
Top