eg: the βequalβ relation is reflexive, as every number is equal to itself
tips: is x βthe relationβ to x correct
Symmetric:
order of elements in the pair donβt matter
(x,y)βR, then (y,x)βR
eg. the βis sibling of relation is symmetricβ as if x is sibling of y, then y is also sibling of x
Transitive: (suy ra)
if x related to y, y related to z, then x is also related to z
if (x,y)βR, and (y,z)βR, then (x,z)βR
Def 3 (Functions) βββ
a function f:SβT is a mapping from set S to elements in set T, to which each element in 1 set (domain set) is mapped to exactly 1 element in another set (codomain set)
f:SβT
f: function
S: domain
T: codomain
f is a relation between S and T. For each s in S there is a unique element t in T so that (s,t)βR
image / range of f is set of all values f can produce
note:
image: set of output that the function actually produce for a particular input
range: set of output that the function could produced, eh
Def 4 (Injection / One-to-one)
a function f:SβT is βinjectiveβ if for every tβT, there exists AT MOST one sβS such that f(s)=t
one output is mapped to AT MOST one input
prove:
assume f(x1β)=f(x2β) for x1β,x2β in S
show that this implies x1β=x2β
Def 5 (Surjection / Onto) βββ
a function f:SβT is βsurjectiveβ (onto) if the image of f equals its range, or for each tβT, there is AT LEAST one sβS such that f(s)=t
prove:
let f(s) = t β s = β¦
as tβT, if sβSβ surjective
Def 6 (Bijection / One to one correspondence)
a function f:SβT is βbijectiveβ if it is injective and surjective
every element of the codomain corresponds to exactly one element of the domain
Function Composition & Inverse
Def 7 (Composition)
for f:AβB and g:BβC
gβf=g(f(x))
fβg=f(g(x))
gβfξ =fβg, if well defined
Inverse relation
Rβ1 of R:AβB is the relation from B to A defined by (bRβ1a)IFF(aRb)
change the position & reverse arrow sign: AβB into BβA
Def 9: identity function
identity function is a function returning the same output as its input
idAβ:AβA - a function maps set A to itself
eg
A is set of real numbers
xβA, id(x)=x; for eg x=5, then id(5)=5
prove
for every x in domain f, f(x)=x
Def 10: left / right inverse
fβg=idβ f is left inverse of g, g is right inverse of f
Def 10: two-sided inverse
f is both left and right inverse of g β f and g are two sided inverses of each other
Def 12:
f from A to B is total when f(x) exists for all xβA