This post is inspired by the book "Term Rewriting & All That" by Franz Baader and Tobias Nipkow.
Let us have a set $G$ together with a binary operation $*$. We will use multiplicative notation throughout meaning $ab = a * b$. Let $x, y, z \in G$. If $\langle G , * \rangle$ has the following properties:
1. $(x y)z = x (y z)$
2. $ex = x$
3. $x^{-1} x = e$
for some fixed $e \in G$, then we say that $\langle G, * \rangle$ is a group. In class, we needed to show that $xe = x$ and $xx^{-1} = e$. However, these can be derived by the prior properties.