To try to understand the derivations of quaternion multiplication rules, I was conducting rotation experiments to actually verify the meaning of these rules.
In practice, according to this source (Quaternions: why does ijk = -1 and ij=k and -ji=k), it is stated that:
A right angle rotation about the X-axis followed by an equal amount of rotation about the Y-axis corresponds to an overall effective rotation of 90 degrees about the Z-axis. So, ij = k. Similarly, you can physically verify the quaternion multiplication laws.
So, I took a point A = (1, 1, 1) and tried applying the composition of ij and separately k. Here's what I did:
- I rotated A around the X-axis by 90 degrees, resulting in $A' = (1, -1, 1)$.
- I rotated A' around the Y-axis by 90 degrees, resulting in $A'' = (1, -1, -1)$.
- Then, I separately rotated A around the Z-axis by 90 degrees, resulting in $A'_1 = (-1, 1, 1)$.
According to the relation ij = k, I should have obtained $A'' = A'_1$, but this didn't happen in my experiment. Perhaps there's something I'm missing, and I haven't fully grasped the theory behind quaternions. What am I doing wrong?