I am a relatively new Mathematics student who understands about complex numbers and how they work. I am currently trying to create a 3D computer graphics engine and I heard that quaternion algebra may be useful in various operations. As a result I am trying to learn it.
I understand that quaternions are like the extension of the complex number system to the 4th dimension (i.e. there are not only reals and imaginaries (2D), but there are also hyperimaginary (j) and hyperhyperimaginary (k) numbers.
I understand the fundamental rule of quaternions (i.e. that $i^2=j^2=k^2=ijk=-1$ and that the quaternion algebra is noncommutative). I have 2 questions:
a) Why is quaternion algebra noncommutative?
b) Is there anything particularly 'special' about j and k?
I am self-taught so try to keep answers as simple as possible.
It's not really meant to be a complete answer, but you ask why the quaternion algebra is non-commutative. Well, if it is commutative, it would not be very useful for 3D graphics. The reason we use quaternions is because rotations in 3D can be mapped to them and thus give a very efficient way of computing rotations. More efficient than with say matrices.
Now, take a book and hold it in your hands, flat in front of you. Perform a 90° turn of the book towards yourself, then a 90° turn to the left. Remember the orientation of the book w.r.t. yourself. Go back to your initial orientation and perform the two operations in the reverse order. Notice something? That's right, the end result is different. Rotations are non-commutative. Hence quaternions better be if they're going to be useful for rotational algebra.