Quaternions

Quaternions, H are a number system like real or complex numbers but with 4 dimensions. In particular, H is nothing but R4 together with a multiplication law. The identification of H and R4 is given by:
H={x0+x1i+x2j+x3k|x0,x1,x2,x3R}.
With the usual addition and scalar multiplication inherited from R4, H becomes a four dimensional  R vector space with canonical basis {1,i,j,k}. The quaternion multiplication is defined by:
(x0+x1i+x2j+x3k)(y0+y1i+y2j+y3k):=(x0y0x1y1x2y2x3y3)+(x0y1+x1y0+x2y3x3y2)i+(x0y2x1y3+x2y0+x3y1)j+(x0y3+x1y2x2y1+x3y0)k.

A more simple way to define the quaternion multiplication is to say that the multiplication with αR works as usually and that i,j,k satisfy the following  multiplication rules:

i2=j2=k2=1,ij=ji=k,jk=kj=i,ki=ik=j.

Re(H):=span{1} is called the real part of  H and Im(H):=span{i,j,k}  the imaginary part and there holds:  H=Re(H)Im(H). If we identify Re(H) with R and Im(H) with R3, we can write any xH as: x=α+v, for some  αR and vR3. This notation gives us a new expression of the quaternion multiplication using the scalar and cross product of R3:
pq=(α+v)(β+w)=αβv,w+αw+βv+v×w.

Due to the fact that the cross product is skew symmetric, we immediately see that the quaternion multiplication is not commutative, i.e. in general there holds pqqp.

Proposition: The quaternion multiplication is associative i.e. for p,q,rH there holds:
(pq)r=p(qr)

Proof: Let I:=(1001),X:=(i00i),Y:=(0110),Z:=(0ii0).

Now we can define a linear map F:HC2×2x0+x1i+x2j+x3kx0I+x1X+x2Y+x3Z
A straight forward calculation shows that I,X,Y,Z satisfy the following product rules with respect to the matrix multiplication:
I2=I,IX=XI=I,XY=YX=Z,IY=YI=Y,YZ=ZY=X,IZ=ZI=Z,ZX=XZ=Y.
Therfore, F is an algebra isomorphism onto its image. Due to the fact that the matrix multiplication is associative we obtain that the quaternion multiplication is associative too.

The conjugate of an quaternion number x=α+v is given by x¯=αv.

Proposition: For p,qH there holds : pq=q¯p¯.

Proof: pq=αβv,w+αw+βv+v×wpq=αβv,wαwβv+w×v=q¯p¯

H also inherits the euclidean norm from R4: |p|=(i=03pi2)12. Similar to the complex numbers we have |p|2=pp¯=p¯p. Additionally, there holds the following useful formula:

Proposition: For p,qH there holds: |pq|=|p||q|.

Proof:|pq|=((pq)(pq))12=(pqq¯p¯)12=(p|q|2p¯)12=(|p|2|q|2)12=|p||q|.

Note that for qH the inverse element with respect to the quaternion multiplication is given by
q1=q¯|q|2.
For quaternions with unit length this gives us immediately q1=q¯.
What makes quaternions so useful is the fact that one can describe rotation in R3 with them in a very elegant way. Therefore, we have to consider R3 as Im(H).

Theorem: Let aR3 with |a|=1 , αR and q=cos(α2)+sin(α2)a. Then for all yR3 we have:

(i)  qyq¯Im(H)=R3

(ii) The map F:R3R3, yqyq¯ is a rotation around a by the angle α.

Proof: (i) First note that a quaternion y is purely imaginary if and only if y¯=y. Thus we have to show qyq¯=qyq¯.
qyq¯=qy¯q¯=qyq¯.

(ii) F is a linear map and therefore completely determined by its action on a basis. We extend a to an positive oriented  orthonormal basis {a,b,c} of R3.
F(a)=qaq¯=(cos(α2)+sin(α2)a)a(cos(α2)sin(α2)a)=(cos(α2)+sin(α2)a)(cos(α2)a+sin(α2))=(cos2(α2)+sin2(α2))a+cos(α2)sin(α2)(1+a2)=a.

In the last step we used that a2=1. This gives us that  the a-axis is invariant under F. Now we consider the action of F on the plane orthogonal to a, i.e. the plane spanned by b and c. Since a,b=0 we have:
ab=a×b=b×a=ba.

Using this and the addition formulas for cosine and sine we get:
F(b)=(cos(α2)+sin(α2)a)b(cos(α2)sin(α2)a)=(cos(α2)+sin(α2)a)(cos(α2)+sin(α2)a)b=(cos(α)+sin(α)a)b=cos(α)b+sin(α)(a×b)=cos(α)b+sin(α)c

Analog we obtain F(c)=cos(α)bsin(α)b and the matrix representation of F with respect to the basis  {a,b,c} is given by:
F=(1000cos(α)sin(α)0sin(α)cos(α)).

Now it is easy to see that F describes a rotation around a by the angle α.

Corollary: For every qH{0} the map F:R3R3, yqyq1 is a rotation.

Proof: With q1=q¯|q|2 we get:
qyq1=q|q|y(q|q|)
Since q|q| has unit length there exists aR3 with |a|=1 and  αR  such that: q|q|=cos(α2)+sin(α2)a and we can apply the theorem.

Note that the quaternion multiplication corresponds to the concatenation of rotations. Let p,qH with |p|=|q|=1 and F,G:R3R3 the corresponding rotations i.e. F(y)=qyq¯ and G(y)=pyp¯, then we get for the concatenation:

(FG)(y)=q(pyp¯)q¯=(qp)y(qp).

This entry was posted in Lecture. Bookmark the permalink.

Leave a Reply