I have some difficulties with a task in algebra. I guess it's trivial and really easy but I can't figure out how to solve it.
I have a set $G$ and a binary operation on it, let it be $\circ$. I have that the operation is associative and that the equations $a\circ x = b$ and $x\circ a = b$ have unique solutions. I have to prove that $(G, \circ)$ is a group.
I already have that the operation is binary and associative, so I have to prove that there is unique identity element and unique inverse element and it will come from the equations, but how exactly?
Hint First, note that from uniqueness of solutions it follows that the operation is cancellative: $ac=bc$ (as well as $ca=cb$) implies $a=b$.
The equation $ax = a$ has a solution $e$. Multiplying the identity $ae=a$ on the right by $a$ and then cancelling $a$ on the left we get $ea=a$, i.e. $e$ is an unity for $a$. Multiplying and cancelling by other element $b$ we prove that $e$ is an unity for all $G$. Next, from the equations $ax = e$ and $xa = e$ we obtain inverse elements...