The quaternion group Q8Q_8 is the

Q8={1,1,i,i,j,j,k,k},Q_8=\{1,-1,i,-i,j,-j,k,-k\},

whose multiplication is determined by

i2=j2=k2=ijk=1.i^2=j^2=k^2=ijk=-1.
Multiplication rules

Thus ij=kij=k, jk=ijk=i, and ki=jki=j, while reversing the order of any two of i,j,ki,j,k changes the sign.

Properties

The element 1-1 is central, every element other than 11 and 1-1 has order 44, and Q8Q_8 is nonabelian. The displayed rules give a closed associative multiplication; equivalently, Q8Q_8 is the subgroup generated by ii and jj inside the units of the Hamilton of quaternions.