In abstract algebra, the center (or centre) of a groupG is the set Z(G) of all elements in G which commute with all the elements of G. Specifically,
Z(G) = {z ∈ G | gz = zg for all g ∈ G}
Note that Z(G) is a subgroup of G — if x and y are in Z(G), then for each g in G, (xy)g = x(yg) = x(gy) = (xg)y = (gx)y = g(xy) so xy is in Z(G) as well. A similar argument applies to inverses.