Quaternion Algebra
Quaternion Algebra
Vivek Kalita
1 Quaternion algebra
q = a + bi + cj + dk
i ⊗ i = j ⊗ j = k ⊗ k = −1
i ⊗ j = k, j ⊗ k = i, k⊗i=j
j ⊗ i = −k, k ⊗ j = −i, i ⊗ k = −j
3. Quaternion Multiplication
Let A = a0 + a and B = b0 + b, then,
A ⊗ B = (a0 b0 − a · b) + (a0 b + b0 a + a × b)
1
1.1.2 Conjugate of a quaternion
Definition 2 (Conjugate of a quaternion). Given a quaternion q = a0 + a, where a0 is the
scalar part and a is the vector part, the conjugate of q, denoted by q ∗ , is:
q ∗ = a0 − a
(q ∗ )∗ = q
(q1 ⊗ q2 )∗ = q2∗ ⊗ q1∗
q ⊗ q ∗ = (a20 + ∥a∥2 )1
A basic property
Lq (v) = q ⊗ v ⊗ q ∗
Given a quaternion q = w + u, where w is the scalar part and u is the vector part of
the quaternion, the quaternion rotation operator Lq (v) for a vector v is given by:
2
Theorem 1.1. The operator Lq (v) doesn’t change the length of the vector v
Theorem 1.2. If v is along u (the vector part of q) then, v is unchanged by the transfor-
mation Lq
Remark: Lq (v) is a linear operator,
where,
0 −uz uy
[u]x = uz 0 −ux
−uy ux 0
Or in other words,
1 − 2u2y − 2u2z
2ux uy − 2uz sin θ 2ux uz + 2uy sin θ
R(q) = 2ux uy + 2uz sin θ 1 − 2u2x − 2u2z 2uy uz − 2ux sin θ
2ux uz − 2uy sin θ 2uy uz + 2ux sin θ 1 − 2u2x − 2u2y
then,
Lq (v) = Ru
3
1.3 Exponential and Logarithm of a quaternion
Theorem 1.5. Any quaternion is expressible as:
q = ∥q∥(cos θ + û sin θ)
where,
w
θ=
∥u∥
Theorem 1.6 (Generaliztion of the Euler’s theorem).
θ θ
q = eûθ = cos + û sin
2 2
The exponential of a quaternion ûθ is given by its Taylor series:
(ûθ)2 (ûθ)3
eûθ = 1 + ûθ + + + ···
2! 3!
Theorem 1.7 (Logarithm).
u w
log(q) = ln ∥u∥ + arccos
∥u∥ ∥u∥
du(t) 1
= ω(t) ⊗ u(t)(t)
dt 2
ω
Proof. The rotation is about the instantaneous axis ω̂ = |ω| through the angle ∆θ = |ω|∆t.
It can be described by a quaternion:
∆θ ∆θ
∆q = cos + ω̂ sin
2 2
|ω|∆t |ω|∆t
= cos + ω̂ sin .
2 2
The rotation at t + ∆t is thus described by the quaternion sequence q(t), ∆q, implying
|ω|∆t |ω|∆t
q(t + ∆t) − q(t) = cos + ω̂ sin ⊗ q(t) − q(t)
2 2
4
|ω|∆t |ω|∆t
= cos q(t) + ω̂ sin ⊗ q(t) − q(t) (by (4)).
2 2
2 |ω|∆t |ω|∆t
= −2 sin q(t) + ω̂ sin ⊗ q(t).
4 2
The first term in the last equation above is of higher order than ∆t, thus its ratio to ∆t
goes to zero as the latter does. Hence
|ω|∆t
!
1 2
= lim ω̂ ⊗ q(t)
2 ∆t→0 ∆t
1
= |ω|ω̂ ⊗ q(t)
2
1
= ω ⊗ q(t).
2
Remarks: If q is known, we can recover the angular velocity from (25) by right multi-
plying its both sides with q ∗ :
ω = 2q̇ ⊗ q ∗ .
The second derivative of the quaternion would be:
1
q̈ = (ω̇ ⊗ q + ω ⊗ q̇)
2
1 1 2
= ω̇ + ω ⊗ q
2 2