Currently i am studying quaternions.
I do understand that i, j and k are imaginary numbers. so $i^2 = j^2 =k^2 = -1$. But I could not understand this: $$\begin{matrix}ij=k,&ji=-k,\\jk=i,&kj=-i,\\ki=j,&ik=-j\end{matrix}$$
Why is this? There seems no explanation why that is true. I would like to understand why that is true instead of just assuming that that is true.
Could somebody provide me some help?

The defining properties relating $i, j $ and $k$ are $$ i^2 = -1 \\ j^2 = -1 \\ k^2 = -1 \\ ijk = -1. $$ From these you get for example that $$\begin{align} i(ijk) &= -i \Rightarrow \\ i^2jk &= -i \Rightarrow\\ jk &= i. \end{align} $$ Likewise you can derive the other identities.