reenmachine said:
My first question is probably due to english being my second language , but when they say ''a bears Relation to b'' , what does bears truly mean? I checked the definition and it says ''to hold up , support'' or ''to carry from one place to another , transport''.
I'd say that it means "being in relationship to". Let me start by giving two examples.
An example of a relationship is "being friends with". We can denote this relationship by F. Then we can say things like "micromass is friends with Fredrik" (hopefully) and we denote this by micromass R Fredrik.
A more serious and mathematical example would be the < relation. This is a relation between numbers (let's restrict ourselves to the numbers 1, 2 and 3 for notational issues). So we have things like 1<3 and 2<3.
This is what you should intuitively understand by a relation. However, this is not very mathematical. What exactly
is a relation?? Modern mathematics has as philosophy that everything defined must be a set. So a relationship must be defined as a set somehow.
We do this by saying that a relation is a certain subset of ##A\times B##.
For example, consider ##A=\{1,2,3\}## and ##B=\{1,2,3\}##. Then we can perfectly define a relation by ##R=\{(1,2),(1,3),(2,3)\}##.
What does this mean?? If an element ##(a,b)\in R##, then that means that ##aRb## or in other words, it means that ##a## is in an ##R##-relation with ##b##.
In our example, we have that ##1R2##, ##1R3## and ##2R3##. So we see that our relation is exactly the < relation!
Another example of a relation on the same sets ##A## and ##B## would be ##\{(1,1), (2,2), (3,3)\}##. This relation would be the equality.
It may look weird that a relation is defined a certain subset of a cartesian product. But this is
only done to make things mathematically rigorous and to fit relations in the current mathematical framework of set theory. The intuition should be the relations such as <, = or "being friends with".
Let's assume for a minute that marriage can only happen between a man and a woman. Now we have another relation: "is married to". In that case, we can work with the following sets: take ##A## the set of all men in the world, take ##B## the set of all women in the world. Then we got a married-relationship ##R## that is a subset of ##A\times B## and this is a good example of a case where ##A\neq B##! Now, if ##(a,b)\in R##, then that means that ##a## and ##b## are married. For example ##(\text{Barack Obama}, \text{Michelle Obama})\in R##.
A more mathematical example is the following. Take a set ##A##, and take the powerset ##\mathcal{P}(A)##. Then we can define relations ##R\subseteq A\times \mathcal{P}(A)##. For example, the relation "is an element of" is such a relation.
Concretely, take ##A=\{1,2\}##, then the relation "is element of" can be seen as ##\{(1,\{1\}),(1,\{1,2\})\}\subseteq A\times \mathcal{P}(A)##.
In <a,b> , are a and b elements or componants?
We have that ##a## and ##b## are components of the ordered pair ##(a,b)##.
I thought an ordered pair as a whole could be an element but not the individual components of the ordered pair.
Not sure what you mean. Take ##(1,2)##, then ##1## and ##2## are components of ##(1,2)##. An ordered pair can be an element of a set, for example ##(1,2)\in \{(1,2)\}##. The components of an ordered pair can also be elements of some set, for example ##1\in \{1\}##. However, the components of an ordered pair are generally not elements of the ordered pair.
Also , how can a relation be a set?
By definition of a relation. We define a relation as a certain set.
Very important:
EVERYTHING in mathematics is a set. So everything that you encounter in mathematics has been or should be defined as a set. This is one of the philosophies of mathematics. There are other kinds of mathematics where not everything is a set, but those are rarely used.
So now R would be a subset of a cartesian product of 2 sets? Previously , they mentionned that an ordered pair was the element of R , but then R would be the subset of a cartesian product of 2 sets Maybe I should know what a relation do in general but for the moment I'm clueless.Also , why binary relation if a subset? I understand these are very basic and vague question but this is where my brain is at the moment.
Formally: given sets ##A## and ##B##, then every subset of ##A\times B## is called a relation from ##A## to ##B##. This is just a definition. Some of the relations from ##A## to ##B## are useful, most are not useful.
For example, let ##A=B=\{1,2,3,65\}##, then ##R=\{(1,65),(65,3)\}## is a relation from ##A## to ##B## because it is a subset of ##A\times B##. However, it is not a very useful relation.
A useful relation would be ##\{(1,1), (2,2), (3,3), (65,65)\}## which just formalizes the equality.
Whether a relation is useful or not depends on circumstances of course. I'm sure we can invent some circumstances in which the previous relation ##R## is useful.
Here I'm not sure which question to ask , I guess a refreshing on what a domain is would be useful.
Those are questions about functions. Let's not touch that yet until you know relations well. Domain and codomain are things that make sense with relations however.
For example, let ##R## be a relation from ##A## to ##B##. The only thing that this means is that ##R\subseteq A\times B##. Elements of ##R## have the form ##(a,b)##. The set of all ##a## that occur is called the domain, the set of all ##b## that occur is called the codomain.
For example, consider ##A=B=\{1,2,3\}##. Take the relation <, that means: ##\{(1,2),(1,3),(2,3)\}##. What is the domain?? Well, exactly the elements occurring in the first components. So we have that the domain is equal to ##\{1,2\}##. The element ##3## is not in the domain because ##(3,x)## is not an element of the relation for any ##x##.
Similarly, the range is ##\{2,3\}##, they are all the elements occurring in the second components.
Let's take our marriage relation. So ##A## is the set of all the men, ##B## is the set of all the women. Then the domain of the relation consists of all the married men, the range consists of all the married women. For example, Barack Obama is in the domain of the relation. The pope is not in the domain of the relation.
Then we also have the codomain. Let ##R## be a relation from ##A## to ##B## (thus: ##R\subseteq A\times B##). Then ##B## is defined as the codomain.
The set ##A## has no special name, because we will see that in the case of functions that the domain of a relation will always coincide with ##A##. This is obviously not true for all relations, but often we are only interested in functions.