The commutator[𝑎,𝑏] of two group members 𝑎,𝑏∈𝐺 is a way of describing how far two elements are from commuting with each other.
For any 𝑎,𝑏∈𝐺 the commutator is defined as #m/def/group
[𝑎,𝑏]=𝑎𝑏𝑎−1𝑏−1
Thus 𝑎 and 𝑏 commute iff [𝑎,𝑏]=𝑒.
The commutators of all elements forms a normal subgroup called the Commutator subgroup.