Composition of relations
Let R:A→B and S:B→C are 2 relations. Composition can
be defined when ran(R)=preran(S).
Say ran(R)=preran(S)=D. Composition of the 2 relations is
written as:
S∘R={(a,c)∣(a,b)∈R,(b,c)∈S,b∈D}
Identity relation
From the properties of the inverse relation, R∘R−1,R−1∘R are
both defined always. This relation is called the identity relation and denoted
by I.
Composition of functions
Let f:A→B and g:B→C be 2 functions where f is
onto.
g∘f={(x,z)∣(x,y)∈f,(y,z)∈g,y∈B}=g(f(x))
The notation g∘f can be written as g(f(x)).