Sets, relations, and functions form the foundational concepts of mathematics. These concepts are not just theoretical; they have practical applications in computer science, physics, economics, and many other fields. This article provides a detailed explanation of these topics using simple language and examples to help you grasp them easily.
What is a Set?
A set is a collection of well-defined and distinct objects. These objects are called elements or members of the set. Sets are usually represented by capital letters such as A, B, or C.
Fill out the form for expert academic guidance
Notation of Sets
Sets are written in curly braces, {}, and the elements are separated by commas. For example:
A={1,2,3,4,5} represents a set of numbers.
B={apple,banana,cherry} represents a set of fruits.
Types of Sets
Empty Set (Null Set): A set with no elements. Example: ∅={}
Finite Set: A set with a limited number of elements. Example: A={1,2,3}
Infinite Set: A set with an infinite number of elements. Example: B={1,2,3,4,…}
Subset: If every element of set A is also an element of set B, then A is a subset of B. Example: A={1,2} is a subset of B={1,2,3}.
Universal Set: A set that contains all possible elements under consideration. Example: For all integers, the universal set can be U={…,−2,−1,0,1,2,…}.
Power Set: A set of all subsets of a given set. Example: If A={1,2}, then Power Set of A={∅,{1},{2},{1,2}}.
Set Operations
Union (∪): Combines all elements of two sets without repetition. Example: If A={1,2} and B={2,3}, then A∪B={1,2,3}.
Intersection (∩): Includes only the common elements of two sets. Example: A∩B={2}.
Difference (A−B): Contains elements of A that are not in B. Example: A−B={1}.
Complement: Contains all elements not in the given set. Example: If U={1,2,3,4} and A={1,2}, then A′={3,4}.
What is a Relation?
A relation is a way to describe a relationship between two sets. It is defined as a subset of the Cartesian product of two sets.
Unlock the full solution & master the concept
Get a detailed solution and exclusive access to our masterclass to ensure you never miss a concept
Cartesian Product
If A and B are two sets, the Cartesian product A×B is the set of all ordered pairs where the first element comes from A and the second from B.
Example:
Ready to Test Your Skills?
Check Your Performance Today with our Free Mock Tests used by Toppers!
A relation R from set A to set B is a subset of A×B.
Example:
create your own test
YOUR TOPIC, YOUR DIFFICULTY, YOUR PACE
start learning for free
If A={1,2} and B={3,4}, a relation R could be R={(1,3),(2,4)}.
Types of Relations
Empty Relation: No pair in the relation. Example: R=∅
Universal Relation: Includes all possible pairs in A×B.
Reflexive Relation: Every element is related to itself. Example: (a,a)∈R for all a∈A.
Symmetric Relation: If (a,b)∈R, then (b,a)∈R. Example: R={(1,2),(2,1)}.
Transitive Relation: If (a,b)∈R and (b,c)∈R, then (a,c)∈R. Example: R={(1,2),(2,3),(1,3)}.
Equivalence Relation: A relation that is reflexive, symmetric, and transitive.
What is a Function?
A function is a special type of relation where each element in the first set (domain) is related to exactly one element in the second set (codomain).
Definition of a Function
A function f from set A to set B is written as f:A→B. For every a∈A, there is exactly one b∈B such that f(a)=b.
Examples of Functions
If A={1,2,3} and B={4,5}, a function f could be f={(1,4),(2,4),(3,5)}.
Types of Functions
One-to-One (Injective): Every element in the domain maps to a unique element in the codomain. Example: f(x)=x+1.
Onto (Surjective): Every element in the codomain has at least one pre-image in the domain. Example: f(x)=x2 (for x∈R+).
Bijective (One-to-One and Onto): A function that is both injective and surjective. Example: f(x)=x (for x∈R).
Constant Function: Maps every element of the domain to the same element in the codomain. Example: f(x)=c, where c is constant.
Graph of a Function
The graph of a function represents the relationship between the domain and codomain. For example, the graph of y=x2 is a parabola.
Differences Between Relations and Functions
Aspect
Relation
Function
Definition
Any subset of A×B.
A relation where each element of A has exactly one image in B.
Mapping
Can have multiple mappings for one element.
Only one mapping for each element in A.
Example
R={(1,2),(1,3)}.
f={(1,2),(2,3)}.
Applications
Sets: Used in database management, Venn diagrams, and probability.
Relations: Used in graph theory and social networks.
Functions: Used in calculus, physics, and computer algorithms.
FAQs on Sets, Relations And Functions
What exactly is a set relation?
A relation between two sets is a collection of ordered pairs that each contains one object from the other set. If object x belongs to the first set and object y belongs to the second set, the objects are said to be related if the ordered pair (x,y) is in the relation.
What is the fundamental relationship between sets?
Sets are well-defined collections that are entirely defined by their elements. As a result, two sets are equal if and only if they have the same elements. The fundamental relationship in set theory is that of element hood, also known as membership.