S3-SA5-0011
What is a Relation?
Grade Level:
Class 9
AI/ML, Data Science, Physics, Economics, Cryptography, Computer Science, Engineering
Definition
What is it?
A relation is simply a connection or link between two sets of objects or numbers. It tells us how elements from one set are paired with elements from another set, based on a specific rule or condition.
Simple Example
Quick Example
Imagine a cricket match. We have a set of players (Rohit, Virat, Bumrah) and a set of runs scored (50, 100, 0). A relation could be 'Player scored runs'. So, (Rohit, 50), (Virat, 100), (Bumrah, 0) shows a relation where each player is linked to their score.
Worked Example
Step-by-Step
Let Set A be students in a class: {Ananya, Rohan, Priya} and Set B be their favorite subjects: {Maths, Science, English}.
We want to find a relation 'student likes subject'.
Step 1: List the elements of Set A: Ananya, Rohan, Priya.
---Step 2: List the elements of Set B: Maths, Science, English.
---Step 3: Pair students with their favorite subjects based on the relation. Let's say Ananya likes Maths, Rohan likes Science, and Priya likes English.
---Step 4: Write these pairs as ordered pairs (student, subject).
---Step 5: The relation R = {(Ananya, Maths), (Rohan, Science), (Priya, English)}.
---Step 6: This set of ordered pairs defines the relation 'student likes subject'.
Why It Matters
Understanding relations is super important in fields like Data Science and AI, where we find connections between different pieces of information. For example, knowing how customer purchases are related helps e-commerce apps suggest products. Even in physics, relations describe how things like force and acceleration are linked, helping scientists build rockets and predict weather.
Common Mistakes
MISTAKE: Thinking a relation must connect every element from both sets. | CORRECTION: A relation only connects elements that satisfy the given rule. Not all elements from the first set need to be related to an element in the second, and vice-versa.
MISTAKE: Confusing the order in an ordered pair, e.g., (x, y) is the same as (y, x). | CORRECTION: The order matters! (Student, Subject) is different from (Subject, Student). Always follow the specified order for the relation.
MISTAKE: Believing a relation can only have one-to-one connections. | CORRECTION: An element from the first set can be related to multiple elements in the second set, and vice versa. For example, one student might like two subjects.
Practice Questions
Try It Yourself
QUESTION: Let Set P = {Mumbai, Delhi, Kolkata} and Set C = {Maharashtra, West Bengal, Delhi}. Define a relation R as 'City is the capital of State'. Write the relation as a set of ordered pairs. | ANSWER: R = {(Mumbai, Maharashtra), (Kolkata, West Bengal)}
QUESTION: Let A = {1, 2, 3} and B = {2, 4, 6}. If a relation R from A to B is defined as 'x is a factor of y' (where x is from A and y is from B), list all the ordered pairs in R. | ANSWER: R = {(1, 2), (1, 4), (1, 6), (2, 2), (2, 4), (2, 6), (3, 6)}
QUESTION: Set M = {Mango, Apple, Banana} and Set N = {Yellow, Red, Green}. Define a relation R as 'Fruit has color'. List all possible ordered pairs if Mango is Yellow, Apple is Red and Green, and Banana is Yellow. | ANSWER: R = {(Mango, Yellow), (Apple, Red), (Apple, Green), (Banana, Yellow)}
MCQ
Quick Quiz
If Set X = {A, B} and Set Y = {1, 2}, which of the following is NOT a valid relation from X to Y?
{(A, 1), (B, 2)}
{(A, 2)}
{(1, A)}
{(A, 1), (A, 2), (B, 1), (B, 2)}
The Correct Answer Is:
C
A relation from X to Y means the first element of each pair must come from X and the second from Y. Option C has (1, A) where 1 is from Y and A is from X, which is incorrect for a relation from X to Y.
Real World Connection
In the Real World
Think about your favorite e-commerce app like Flipkart or Amazon. When you search for 'mobile phones', the app shows you related accessories like 'earphones' or 'chargers'. This uses relations: 'product is related to accessory'. Similarly, when you use Google Maps, it finds relations between 'starting point' and 'destination' to suggest the best route.
Key Vocabulary
Key Terms
SET: A collection of distinct objects or numbers | ORDERED PAIR: A pair of elements where the order matters, usually written as (x, y) | DOMAIN: The set of all first elements in the ordered pairs of a relation | RANGE: The set of all second elements in the ordered pairs of a relation
What's Next
What to Learn Next
Great job understanding relations! Next, you should explore 'Functions'. A function is a special type of relation where each input from the first set has exactly one output in the second set. This will help you see how different mathematical ideas build on each other!


