In mathematics, especially group theory, the centralizer (also called commutant) of a subset S of a group G is the set of elements of G that commute with each element of S, and the normalizer of S is the set of elements of G that commute with S "as a whole". The centralizer and normalizer of S are subgroups of G, and can provide insight into the structure of G.