----
> [!definition] Definition. ([[center of a group]])
> The center of a [[group]] $G$, denoted $Z(G)$ is the set of elements $z$ in $G$ that commute with every element of $G$. It is a [[subgroup]] of $G$.
> [!justification]
> We need to show that $Z(G) \leq G$. $Z(G)=G$ for $|G|<3$ ([[classification of small groups|groups of order less than 6 are abelian]]), so assume $|G|\geq 3$. Let $e$ denote the identity element of $G$. Since $ea=a=ae$ for all $a \in G$, we have $e \in Z(G)$. Next, suppose $b,c \in Z(G)$, so that for all $a \in G$ we have $ab=ba$ and $ac=ca$. Then the computation $\begin{align}
a(bc)= & (ab)c \\
= & (ba)c \\
= & b(ac) \\
= & b(ca) \\
= & (bc)a
\end{align}$
shows $Z(G)$ is closed under $G