Relation and function
Relation and function
Relation
In mathematics, a relation is a way to associate or connect
elements from one set to elements of another set. It
describes a relationship between elements of two sets and
is often expressed as a set of ordered pairs.
Definition:
R={(1,4),(2,5),(3,4)}
In this case:
● 1 is related to 4,
● 2 is related to 5,
● 3 is related to 4.
Function
In mathematics, a function is a special type of relation that
assigns exactly one output to each input. In other words, a
function maps each element from one set (called the
domain) to exactly one element in another set (called the
codomain).
Formal Definition:
f:A→B
Consider the function f(x)= x^2, where the domain is the set
of real numbers R and the codomain is also R.
● f(2)= 2^2 = 4
● f(−3)=(-3)^2 = 9
● f(0)= 0^2 =0