In earlier posts, I described how complex numbers can be used to rotate, scale, and translate the plane, how Clifford algebras can be used to rotate, scale, and translate the plane, and why I resorted to an awkward trick for the Clifford algebra rotations of the plane. In this post, I am going to explain what the quaternions are and describe how they can be used to represent a rotation in three-dimensional space.
What are the quaternions
Okay, remember how we got the complex numbers? We needed something that was the square root of negative one.
Now, imagine that you are Sir William Rowan Hamilton. The year is 1843. It is springtime. You know how to use the complex numbers to represent points in the plane. And, you know that when you do that, you can use complex numbers to rotate, scale, and translate the points. That’s all well and good, but you don’t live in a two-dimensional world. How are you going to do the same sort of thing with three-dimensional space? How are you going to multiply triples
?
You spend months on this. If only you could say, How about I let there be another number that is different from (and from ) that has the same property that its square is negative one?
You fight with this for months. You try to represent a point with coordinates as . But, nothing you come up with makes any sense.
Your kids are harassing you, Daddy, did you figure out how to multiply triples yet?
You have to answer them every morning with a polite, No, not yet.
Then, you’re walking along the Royal Canal in Dublin. It’s mid-October already. My, how the year has flown by. Bam, it hits you. If you add a third number like and which is equal to , everything works out. You get so excited, that you carve your equations into a stone bridge over the canal: