Composition

Composition of Relations

Let R:A→BR:A\rightarrow{B} and S:B→CS:B\rightarrow{C} are 2 relations. Composition can be defined when ran(R)=preran(S)\text{ran}(R)=\text{preran}(S).

Say ran(R)=preran(S)=D\text{ran}(R)=\text{preran}(S)=D. Composition of the 2 relations is written as:

S∘R={ (a,c) ∣ (a,b)∈R, (b,c)∈S, b∈D }S\circ{R}=\set{(a,c)\,|\,(a,b)\in{R},\,(b,c)\in{S},\,b\in{D}}

Identity Relation

From the properties of the inverse relation, R∘R−1,R−1∘RR\circ R^{-1}, R^{-1}\circ R are both defined always. This relation is called the identity relation and denoted by II.

Composition of Functions

Let f:A→Bf:A\rightarrow{B} and g:B→Cg:B\rightarrow{C} be 2 functions where ff is onto.

g∘f={ (x,z) ∣ (x,y)∈f, (y,z)∈g, y∈B }=g(f(x))g\circ{f}=\set{(x,z)\,|\,(x,y)\in{f},\,(y,z)\in{g},\,y\in{B}}=g(f(x))

The notation g∘fg\circ f can be written as g(f(x))g(f(x)).

Written by September 29, 2026 1 min read
Was this helpful?