My textbook gives the following definition of a quaternion group: $Q = \{\pm 1, \pm i, \pm j, \pm k\}$, where multiplication is defined by: \begin{align*} 1*x &= x & (-1)*x &= -x & (-1)*(-x)&=x \end{align*} for $x = 1,i,j,k$ (NOTE: x does not include -1,-i,-j,-k). Moreover, \begin{align*} i^2= j^2= k^2 = -1, \end{align*} and \begin{align*} ij&=k & jk&=i & ki&=j, \\ ji&=-k & kj&=-i & ki&=-j. \end{align*}
The question it then poses is: prove that this is a group. i.e. prove associativity, that 1 is the unit element, and that every element has an inverse.
I am stuck at trying to prove even the simple statement that $1*-1=-1$. I have no idea how to prove it, after having fruitlessly shuffled formulas for an hour. Am I missing something?
Hint:
first prove associativity, than, from your rules, for $x=1$ you have $-1*(1)=-1$ and: $$ 1*(-1)=1*(-1*(1))=(1*(-1))*1=(-1)*1=-1 $$