Group of Order Prime Squared is Abelian

Theorem
A group whose order is the square of a prime is abelian.

Proof
Let $G$ be a group of order $p^2$, where $p$ is prime.

Let $\map Z G$ be the center of $G$.

By Center of Group is Subgroup, $\map Z G$ is a subgroup of $G$.

By Lagrange's Theorem:
 * $\order {\map Z G} \divides \order G$

It follows that $\order {\map Z G} = 1, p$ or $p^2$.

By Center of Group of Prime Power Order is Non-Trivial:
 * $\order {\map Z G} \ne 1$

Suppose $\order {\map Z G} = p$.

Then:

So $G / \map Z G$ is non-trivial, and of prime order.

From Prime Group is Cyclic, $G / \map Z G$ is a cyclic group.

But by Quotient of Group by Center Cyclic implies Abelian, that cannot be the case.

Therefore $\order {\map Z G} = p^2$ and therefore $\map Z G = G$.

Therefore $G$ is abelian.