Dual quaternion

Dual quaternion

The set of dual quaternions is an algebra that can be used to represent spatial rigid body displacements.[1] A dual quaternion is an ordered pair of quaternions  = (A, B) and therefore is constructed from eight real parameters. Because rigid body displacements are defined by six parameters, dual quaternion parameters include two algebraic constraints.

W. R. Hamilton introduced quaternions[2][3] in 1843 and by 1873 W. K. Clifford obtained a broad generalization of these numbers that he called biquaternions,[4][5] which is an example of what is now called a Clifford algebra.[6] At the turn of the 20th century, Aleksandr Kotelnikov[7] and E. Study[8] developed dual vectors and dual quaternions for use in the study of mechanics.

In ring theory, dual quaternions are a ring (mathematics) constructed in the same way as the quaternions, except using dual numbers instead of real numbers as coefficients. A dual quaternion can be represented in the form q = q0 + ε qε, where q0 and qε are ordinary quaternions and ε is the dual unit (εε = 0). Unlike quaternions they do not form a division ring.

Similar to the way that rotations in 3D space can be represented by quaternions of unit length, rigid motions in 3D space can be represented by dual quaternions of unit length. This fact is used in theoretical kinematics (see McCarthy), and in applications to 3D computer graphics, robotics and computer vision.[9]

In 1891 Eduard Study realized that this associative algebra was ideal for describing the group of motions of three-dimensional space. He further developed the idea in Geometrie der Dynamen in 1901. B. L. van der Waerden called the structure "Study biquaternions", one of three eight-dimensional algebras referred to as biquaternions.

Plaque on Broom bridge (Dublin) commemorating Hamilton's invention of quaternions.



In order to describe operations with dual quaternions, it is helpful to first consider quaternions.[10]

A quaternion is a linear combinations of the basis elements 1, i, j, and k. Hamilton's product rule for i, j, and k is often written as

 i^2 = j^2 = k^2 = ijk = -1.\!

Compute i(ijk)=-jk=-i, to obtain jk=i, and (ijk)k=-ij=-k or ij=k. Now because j(jk)=ji=-k, we see that this product yields ij=-ji, which links quaternions to the properties of determinants.

A convenient way to work with the quaternion product is to write a quaternion as the sum of a scalar and a vector, that is A = a0 + A, where a0 is a real number and A = A1i + A2j + A3k is a three dimensional vector. The vector dot and cross operations can now be used to define the quaternion product of A=a0+A and C=c0+C as

 G = AC = (a_0 + \mathbf{A})(c_0 + \mathbf{C}) = (a_0 c_0 - \mathbf{A}\cdot \mathbf{C}) + (c_0 \mathbf{A} + a_0 \mathbf{C} + \mathbf{A}\times\mathbf{C}).

A dual quaternion is usually described as a quaternion with dual numbers as coefficients. A dual number is an ordered pair â=(a, b). Two dual numbers add componentwise and multiply by the rule âĉ=(a, b)(c, d) = (ac, ad + bc). Dual numbers are often written in the form â=a+εb, where ε is the dual unit that commutes with i, j, k and has the property ε2=0.

The result is that a dual quaternion is the ordered pair of quaternions Â=(A, B). Two dual quaternions add componentwise and multiply by the rule,

 \hat{A}\hat{C} = (A, B)(C, D) = (AC, AD+BC).\!

It is convenient to write a dual quaternion as the sum of a dual scalar and a dual vector, Â = â0 + A, where â0=(a, b) and A=(A, B) is the dual vector that defines a screw. This notation allows us to write the product of two dual quaternions as

 \hat{G} = \hat{A}\hat{C} = (\hat{a}_0 + \mathsf{A})(\hat{c}_0 + \mathsf{C}) = (\hat{a}_0 \hat{c}_0 - \mathsf{A}\cdot \mathsf{C}) + (\hat{c}_0 \mathsf{A} + \hat{a}_0 \mathsf{C} + \mathsf{A}\times\mathsf{C}).


The addition of dual quaternions is defined componentwise so that given,

 \hat{A} = (A, B) = a_0 + a_1 i + a_2 j + a_3 k + b_0 \epsilon + b_1 \epsilon i + b_2 \epsilon j + b_3 \epsilon k,


 \hat{C} = (C, D) = c_0 + c_1 i + c_2 j + c_3 k + d_0 \epsilon + d_1 \epsilon i + d_2 \epsilon j + d_3 \epsilon k,


 \hat{A} + \hat{C} = (A+C, B+D) = (a_0+c_0) + (a_1+c_1) i + (a_2+c_2) j + (a_3+c_3) k + (b_0+d_0) \epsilon + (b_1+d_1) \epsilon i + (b_2+d_2) \epsilon j + (b_3+d_3) \epsilon k,


Multiplication of two dual quaternion follows from the multiplication rules for the quaternion units i, j, k and commutative multiplication by the dual unit ε. In particular, given

 \hat{A} = (A, B) = A + \epsilon B,


 \hat{C} = (C, D) = C + \epsilon D,


 \hat{A}\hat{C} = (A + \epsilon B)(C + \epsilon D) = AC + \epsilon (AD+BC). \!

Notice that there is no BD term, because the definition of dual numbers requires that ε2 = 0.

This gives us the multiplication table (note the multiplication order is row times column):

Multiplication table for dual quaternion units
× 1 i j k ε εi εj εk
1 1 i j k ε εi εj εk
i i −1 k −j εi −ε εk −εj
j j −k −1 i εj −εk −ε εi
k k j −i −1 εk εj −εi −ε
ε ε εi εj εk 0 0 0 0
εi εi −ε εk −εj 0 0 0 0
εj εj −εk −ε εi 0 0 0 0
εk εk εj −εi −ε 0 0 0 0


The conjugate of a dual quaternion is the extension of the conjugate of a quaternion, that is

 \hat{A}^* = (A^*, B^*) = A^* + \epsilon B^*. \!

As for quaternions, the conjugate of the product of dual quaternions, Ĝ = ÂĈ, is the product of their conjugates in reverse order,

 \hat{G}^* = (\hat{A}\hat{C})^* = \hat{C}^*\hat{A}^*.\!

It is useful to introduce the functions Sc(∗) and Vec(∗) that select the scalar and vector parts of a quaternion, or the dual scalar and dual vector parts of a dual quaternion. In particular, if  = â0 + A, then

 \mbox{Sc}(\hat{A}) = \hat{a}_0, \mbox{Vec}(\hat{A}) = \mathsf{A}.\!

This allows the definition of the conjugate of  as

 \hat{A}^* = \mbox{Sc}(\hat{A}) - \mbox{Vec}(\hat{A}).\!


 (\hat{a}_0+\mathsf{A})^* = \hat{a}_0 - \mathsf{A}.\!

The product of a dual quaternion with its conjugate yields

\hat{A}\hat{A}^* = (\hat{a}_0+\mathsf{A})(\hat{a}_0 - \mathsf{A})^* = \hat{a}_0^2 + \mathsf{A}\cdot\mathsf{A}.\!

This is a dual scalar which is the magnitude squared of the dual quaternion.


The norm of a dual quaternion |Â| is computed using the conjugate to compute |Â| = √(ÂÂ*). This is a dual number called the magnitude of the dual quaternion. Dual quaternions with |Â| = 1 are unit dual quaternions.

Dual quaternions of magnitude 1 are used to represent spatial Euclidean displacements. Notice that the requirement that ÂÂ* = 1, introduces two algebraic constraints on the components of Â, that is

 \hat{A}\hat{A}^* = (A, B)(A^*, B^*) = (AA^*, AB^* + BA^*) = (1, 0).\!


The inverse of a dual quaternion is defined as

 \hat{A}^{-1} = \frac{\hat{A}^*}{\hat{A}\hat{A}^*}.

This is the dual version of the inverse of a quaternion.

Dual quaternions and spatial displacements

A benefit of the dual quaternion formulation of the composition of two spatial displacements DB=([RB], b) and DA=([RA],a) is that the resulting dual quaternion yields directly the screw axis and dual angle of the composite displacement DC=DBDA.

In general, the dual quaternion associated with a spatial displacement D = ([A],d) is constructed from its screw axis S={S, V) and the dual angle (φ, d) where φ is the rotation about and d the slide along this axis, which defines the displacement D. The associated dual quaternion is given by,

 \hat{S} = \cos\frac{\hat{\phi}}{2} + \sin\frac{\hat{\phi}}{2} \mathsf{S}.

Let the composition of the displacement DB with DA be the displacement DC=DBDA. The screw axis and dual angle of DC is obtained from the product of the dual quaternions of DA and DB, given by

\hat{A}=\cos(\hat{\alpha}/2)+ \sin(\hat{\alpha}/2)\mathsf{A}\quad
\text{and}\quad \hat{B}=\cos(\hat{\beta}/2)+ \sin(\hat{\beta}/2)\mathsf{B}.

That is, the composite displacement DC=DBDA has the associated dual quaternion given by

 \hat{C}  = \cos\frac{\hat{\gamma}}{2}+\sin\frac{\hat{\gamma}}{2}\mathsf{C}
\Big(\cos\frac{\hat{\beta}}{2}+\sin\frac{\hat{\beta}}{2}\mathsf{B}\Big) \Big(\cos\frac{\hat{\alpha}}{2}+

Expand this product in order to obtain

\cos\frac{\hat{\gamma}}{2}+\sin\frac{\hat{\gamma}}{2} \mathsf{C}  = 
\Big(\cos\frac{\hat{\beta}}{2}\cos\frac{\hat{\alpha}}{2} - 
\sin\frac{\hat{\beta}}{2}\sin\frac{\hat{\alpha}}{2} \mathsf{B}\cdot \mathsf{A}\Big)  +  \Big(\sin\frac{\hat{\beta}}{2}\cos\frac{\hat{\alpha}}{2} \mathsf{B} + 
\sin\frac{\hat{\alpha}}{2}\cos\frac{\hat{\beta}}{2} \mathsf{A} + 
\sin\frac{\hat{\beta}}{2}\sin\frac{\hat{\alpha}}{2} \mathsf{B}\times \mathsf{A}\Big).

Divide both sides of this equation by the identity

 \cos\frac{\hat{\gamma}}{2} = \cos\frac{\hat{\beta}}{2}\cos\frac{\hat{\alpha}}{2} - 
\sin\frac{\hat{\beta}}{2}\sin\frac{\hat{\alpha}}{2} \mathsf{B}\cdot \mathsf{A}

to obtain

 \tan\frac{\hat{\gamma}}{2} \mathsf{C}  = \frac{\tan\frac{\hat{\beta}}{2}\mathsf{B} + 
\tan\frac{\hat{\alpha}}{2} \mathsf{A} + 
\tan\frac{\hat{\beta}}{2}\tan\frac{\hat{\alpha}}{2} \mathsf{B}\times \mathsf{A}}{1 - 
\tan\frac{\hat{\beta}}{2}\tan\frac{\hat{\alpha}}{2} \mathsf{B}\cdot \mathsf{A}}.

This is Rodrigues formula for the screw axis of a composite displacement defined in terms of the screw axes of the two displacements. He derived this formula in 1840.[11]

The three screw axes A, B, and C form a spatial triangle and the dual angles at these vertices between the common normals that form the sides of this triangle are directly related to the dual angles of the three spatial displacements.

Matrix form of dual quaternion multiplication

The matrix representation of the quaternion product is convenient for programming quaternion computations using matrix algebra, which is true for dual quaternion operations as well.

The quaternion product AC is a linear transformation by the operator A of the components of the quaternion C, therefore there is a matrix representation of A operating on the vector formed from the components of C.

Assemble the components of the quaternion C=c0+C into the array C=(C1, C2, C3, c0). Notice that the components of the vector part of the quaternion are listed first and the scalar is listed last. This is an arbitrary choice, but once this convention is selected we must abide by it.

The quaternion product AC can now be represented as the matrix product

AC = [A^+] C = 
a_0 & -A_3 & A_2 & A_1 \\
A_3 & a_0 & -A_1 & A_2 \\
-A_2 & A_1 & a_0  & A_3 \\
-A_1 & -A_2 & -A_3 & a_0
\begin{Bmatrix} C_1 \\ C_2 \\ C_3 \\ c_0 \end{Bmatrix}.

The product AC can also be viewed as an operation by C on the components of A, in which case we have

AC = [C^-] A = \begin{bmatrix}
c_0 & C_3 & -C_2 & C_1 \\
-C_3 & c_0 & C_1 & C_2 \\
C_2 & -C_1 & c_0  & C_3 \\
-C_1 & -C_2 & -C_3 & c_0
\begin{Bmatrix} A_1 \\ A_2 \\ A_3 \\ a_0 \end{Bmatrix}.

The dual quaternion product ÂĈ = (A, B)(C, D) = (AC, AD+BC) can be formulated as a matrix operation as follows. Assemble the components of Ĉ into the eight dimensional array Ĉ = (C1, C2, C3, c0, D1, D2, D3, d0), then ÂĈ is given by the 8x8 matrix product

\hat{A}\hat{C} = [\hat{A}^+]\hat{C} = \begin{bmatrix} A^+ & 0 \\ B^+ & A^+ \end{bmatrix}\begin{Bmatrix} C \\ D\end{Bmatrix}.

As we saw for quaternions, the product ÂĈ can be viewed as the operation of Ĉ on the coordinate vector Â, which means ÂĈ can also be formulated as,

\hat{A}\hat{C} = [\hat{C}^-]\hat{A} = \begin{bmatrix} C^- & 0 \\ D^- & C^- \end{bmatrix}\begin{Bmatrix} A \\ B\end{Bmatrix}.

More on spatial displacements

The dual quaternion of a displacement D=([A], d) can be constructed from the quaternion S=cos(φ/2) + sin(φ/2)S that defines the rotation [A] and the vector quaternion constructed from the translation vector d, given by D = d1i + d2j + d3k. Using this notation, the dual quaternion for the displacement D=([A], d) is given by

 \hat{S} = S + \varepsilon \frac{1}{2}DS.

Let the Plucker coordinates of a line in the direction x through a point p in a moving body and its coordinates in the fixed frame which is in the direction X through the point P be given by,

\hat{x}=\mathbf{x} + \varepsilon \mathbf{p}\times\mathbf{x}\quad\text{and}\quad\hat{X}=\mathbf{X} + \varepsilon \mathbf{P}\times\mathbf{X}.

Then the dual quaternion of the displacement of this body transforms Plucker coordinates in the moving frame to Plucker coordinates in the fixed frame by the formula

\hat{X} = \hat{S}\hat{x}\hat{S}^*.

Using the matrix form of the dual quaternion product this becomes,

\hat{X} =[\hat{S}^+][\hat{S}^-]^*\hat{x}.

This calculation is easily managed using matrix operations.

Dual quaternions and 4x4 homogeneous transforms

It might be helpful, especially in rigid body motion, to represent dual quaternions as homogeneous matrices. As given above a dual quaternion can be written as: \hat q = r + d\varepsilon where r and d are both quaternions. The r quaternion is known as the real or rotational part and the d quaternion is known as the dual or displacement part. A 3 dimensional position vector,

\vec{v} = (v_0, v_1, v_2)

can be transformed by constructing the dual-quaternion representation,

\hat v := 1 + \varepsilon (v_0 i + v_1 j + v_2 k)

then a transformation by \hat q is given by

\vec{v}' = \hat q \cdot \hat v \cdot \hat q^{-1}.

The rotation part can be given by

r = r_w + r_xi + r_yj + r_zk = \cos \left( \frac{\theta}{2} \right) + \sin \left( \frac{\theta}{2} \right) \cdot \vec{a}

where θ is the angle of rotation about axis \vec{a}. The rotation part can be expressed as a 3×3 orthogonal matrix by

R =\begin{pmatrix}
r_w^2+r_x^2-r_y^2-r_z^2   &2r_xr_y-2r_wr_z           &2r_xr_z+2r_wr_y        \\
2r_xr_y+2r_wr_z           &r_w^2-r_x^2+r_y^2-r_z^2 &2r_yr_z-2r_wr_x        \\
2r_xr_z-2r_wr_y           &2r_yr_z+2r_wr_x         &r_w^2-r_x^2-r_y^2+r_z^2\\

The displacement can be written as

d r^* = 0 + \frac{\Delta x}{2}i + \frac{\Delta y}{2}j + \frac{\Delta z}{2}k.

Translation and rotation combined in one transformation matrix is:

 [R|t] = \begin{pmatrix}
  &   &   & \Delta x \\
  & R &   & \Delta y \\
  &   &   & \Delta z \\
0 & 0 & 0 & 1 \\

Where the left upper 3×3 matrix is the rotation matrix we just calculated.


Since both Eduard Study and William Kingdon Clifford used, and wrote upon, the dual quaternions, at times authors refer to dual biquaternions as “Study biquaternions” or “Clifford biquaternions”. The latter eponym has also been used to refer to split-biquaternions. Read the article by Joe Rooney linked below for view of a supporter of W.K. Clifford’s claim. Since the claims of Clifford and Study are in contention, it is convenient to use the current designation dual quaternion to avoid conflict.

See also


  1. ^ A.T. Yang, Application of Quaternion Algebra and Dual Numbers to the Analysis of Spatial Mechanisms, Ph.D thesis, Columbia University, 1963.
  2. ^ W. R. Hamilton, "On quaternions, or on a new system of imaginaries in algebra," Philos. Mag. 18, installments July 1844 - April 1850, ed. by D. E. Wilkins (2000)
  3. ^ W. R. Hamilton, Elements of Quaternions, Longmans, Green & Co., London, 1866
  4. ^ W. K. Clifford, "Preliminary sketch of bi-quaternions, Proc. London Math. Soc. Vol. 4 (1873) pp. 381-395
  5. ^ W. K. Clifford, Mathematical Papers, (ed. R. Tucker), London: Macmillan, 1882.
  6. ^ J. M. McCarthy, An Introduction to Theoretical Kinematics, pp. 62–5, MIT Press 1990.
  7. ^ A. P. Kotelnikov, Screw calculus and some applications to geometry and mechanics, Annal. Imp. Univ. Kazan (1895)
  8. ^ E. Study, Geometrie der Dynamen, Teubner, Leipzig, 1901.
  9. ^ A. Torsello, E. Rodolà and A. Albarelli, Multiview Registration via Graph Diffusion of Dual Quaternions, Proc. of the XXIV IEEE Conference on Computer Vision and Pattern Recognition, pp. 2441-2448, June 2011.
  10. ^ O. Bottema and B. Roth, Theoretical Kinematics, North Holland Publ. Co., 1979
  11. ^ Rodrigues, O. (1840), Des lois géométriques qui régissent les déplacements d’un système solide dans l’espace, et la variation des coordonnées provenant de ses déplacements con- sidérés indépendamment des causes qui peuvent les produire, Journal de Mathématiques Pures et Appliquées de Liouville 5, 380–440.

Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Quaternion — Quaternions, in mathematics, are a non commutative extension of complex numbers. They were first described by the Irish mathematician Sir William Rowan Hamilton in 1843 and applied to mechanics in three dimensional space. They find uses in both… …   Wikipedia

  • Dual number — For dual grammatical number found in some languages, see Dual (grammatical number). In linear algebra, the dual numbers extend the real numbers by adjoining one new element ε with the property ε2 = 0 (ε is nilpotent). The collection of dual… …   Wikipedia

  • Quaternion — Plaque commémorative de la naissance des quaternions sur le pont de Broom (Dublin). « Ici, le 16 octobre 1843, alors qu il se promenait, Sir William Rowan Hamilton découvrit dans un éclair de génie la formule fondamentale sur la… …   Wikipédia en Français

  • Split-quaternion — Coquaternion multiplication × 1 i j k 1 1 i j k i i −1 k −j j j −k +1 −i …   Wikipedia

  • Nombre Dual — En mathématiques et en algèbre abstraite, les nombres duaux sont une algèbre associative unitaire commutative à deux dimensions sur les nombres réels, apparaissant à partir des réels par adjonction d un nouvel élément avec la propriété ( est un… …   Wikipédia en Français

  • Nombre dual — En mathématiques et en algèbre abstraite, les nombres duaux sont une algèbre associative unitaire commutative à deux dimensions sur les nombres réels, apparaissant à partir des réels par adjonction d un nouvel élément avec la propriété ( est un… …   Wikipédia en Français

  • Rational motion — In kinematics, the motion of a rigid body is defined as a continuous set of displacements. One parameter motions can be definedas a continuous displacement of moving object with respect to a fixed frame in Euclidean three space ( E 3), where the… …   Wikipedia

  • Clifford algebra — In mathematics, Clifford algebras are a type of associative algebra. They can be thought of as one of the possible generalizations of the complex numbers and quaternions.[1][2] The theory of Clifford algebras is intimately connected with the… …   Wikipedia

  • Eduard Study — (March 23, 1862 ndash; January 6, 1930) was a German mathematician known for work on invariant theory of ternary forms (1889) and for the study of spherical trigonometry. He is also know for contributions to space geometry, hypercomplex numbers,… …   Wikipedia

  • Screw theory — was developed by Sir Robert Stawell Ball in 1876, for application in kinematics and statics of mechanisms (rigid body mechanics). It is a way to express displacements, velocities, forces and torques in three dimensional space, combining both… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”