Search the courses, subjects, tracks, games and features, or jump straight to a page.
Learn it your way
A short class with Sarah and her students. The other ways are under More.
Sign up free to listen. Transcripts are free to read.
Today we're going to discuss what a relation is. Can anyone tell me how you would define a relation in mathematics?
Isn't it about how two sets are connected?
Exactly! A relation is indeed a connection between two sets. To be more specific, a relation is a subset of the Cartesian product of those sets. Can anyone give me an example of what that looks like?
If we have countries and their capitals, like India and New Delhi?
Perfect! The pair (India, New Delhi) illustrates a relation where New Delhi is related to India. Remember, we denote this as 'aRb', where 'a' is from the first set and 'b' is from the second. It's a simple but powerful concept!
So, if we have another set of cities, we could relate those to countries too?
Absolutely! That’s the beauty of relations — they can show how elements from one set relate to elements of another, or the same set.
Let's summarize: a relation can be thought of as a bridge connecting elements from two sets. This will set the stage for all of our upcoming discussions.
Next, let's talk about the Cartesian product. Can anyone tell me what that is?
Isn't that when you pair every element from one set with every element from another set?
Exactly! The Cartesian product of two sets A and B, denoted as AxB, contains all possible ordered pairs (a,b). If set A has m elements and set B has n elements, how many pairs can we create?
m times n, right?
Correct! And any relation is simply a subset of this Cartesian product. What can be the implications of this structure for the number of relations we can create?
There can be 2^(mn) different relations because we're looking at the number of different subsets!
That’s right! So, remember, the number of ways to form relations is immense, depending on our underlying sets.
Now, let’s focus on binary relations specifically. Who can explain what a binary relation is?
It’s a relation that involves two sets, right?
Exactly! A binary relation from A to B is a specific subset of AxB. And why is the direction important?
Because it matters which set comes first; a relation from A to B is different from one from B to A.
That’s right! And we use notation aRb to show that 'a' is related to 'b'. Can anyone give me an example of a binary relation in our earlier country-city example?
Like (India, New Delhi) but not (New Delhi, India) because that's not valid!
Exactly! Remember, the order in relations is significant. Great job!
When sets collide, what do you find? A relation that's neat, perfectly aligned!
A traveler connects with cities they visit. Each city has a home country where it belongs, illustrating the relation between them.
Remember the phrase: 'R.A.C.' (Relation, AxB, Connect) to recall the basics of relations.
To recall 'Relation', 'Subset', 'Order', remember 'R.S.O.'
Term
What is the Cartesian Product?
Click to flip
Term
Define binary relation.
Click to flip
A subset of the Cartesian product of two sets, describing how elements from one set are connected to elements of another.
The set of all ordered pairs from two sets A and B, written as AxB.
A relation that involves exactly two sets, A and B.
A set that contains some or all elements of another set.
This section introduces relations, defining them as subsets of Cartesian products and discussing their properties.
Relations are subsets of Cartesian products of two sets, dictating how elements from one set are related to elements of another. This section covers the definition of binary relations and how to represent them, emphasizing their mathematical interpretations.
In this section, we delve into the concept of relations within the framework of discrete mathematics. A relation is defined mathematically as a subset of the Cartesian product of two sets. As an illustrative example, consider a table where countries are paired with their capitals. The elements of these two individual sets — countries and cities — can be linked through a relation. For instance, the relation might contain pairs like (India, New Delhi) or (Afghanistan, Kabul). This is a binary relation because it deals with two sets, A (countries) and B (cities).
We explore the significance of the Cartesian product, which is crucial to understanding how elements from two sets interact. The section explains how relations can also extend to more than two sets, resulting in n-ary relations. Exercises and examples will further clarify these concepts, which are pivotal for grasping more complex structures in mathematics, especially in fields like database theory and graph theory.