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.
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
, , or .Sets are written in curly braces,
, and the elements are separated by commas. For example: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.
If
and are two sets, the Cartesian product is the set of all ordered pairs where the first element comes from and the second from .Example:
If
.
A relation
from set to set is a subset of .Example:
If
and , a relation could be .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).
A function
from set to set is written as . For every , there is exactly one such that .The graph of a function represents the relationship between the domain and codomain. For example, the graph of
is a parabola.Aspect | Relation | Function |
Definition | Any subset of | .A relation where each element of | has exactly one image in .
Mapping | Can have multiple mappings for one element. | Only one mapping for each element in | .
Example | . | . |
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.
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.