Quaternion
Encyclopedia : Q : QU : QUA : Quaternion
- This page describes the mathematical entity. For other senses of this word, see quaternion (disambiguation).
In modern language, quaternions form a 4-dimensional normed division algebra over real numbers. The algebra of quaternions is often denoted by H (for Hamilton), or in blackboard bold by [\mathbb H]. This algebra H holds a special place in analysis since, according to the Frobenius theorem, it is one of only three finite-dimensional division rings containing the real numbers as a subring.
Definition
While complex numbers are obtained by adding the element i to real numbers, where i satisfies i2 = −1, quaternions are obtained by adding the elements i, j, and k to real numbers, where i, j, and k satisfy the following relations:
- [i^2 = j^2 = k^2 = ijk = -1\,]
- [\beginij & = & k, & & & & ji & = & -k, \\jk & = & i, & & & & kj & = & -i, \\ki & = & j, & & & & ik & = & -j. \end]
Example
Let
- [\beginx & = & 3 + i \\y & = & 5i + j - 2k\end]
- [\beginx + y & = & 3 + 6i + j - 2k \\\\xy & = & (3 + i)(5i + j - 2k) \\& = & 15i + 3j - 6k + 5i^2 + ij - 2ik \\& = & 15i + 3j - 6k - 5 + k + 2j \\& = & -5 + 15i + 5j - 5k \\\\yx & = & (5i + j - 2k)(3 + i) \\& = & 15i + 5i^2 + 3j + ji - 6k - 2ki \\& = & 15i - 5 + 3j - k - 6k - 2j \\& = & -5 + 15i + j - 7k\end]
Arithmetic
Unlike real or complex numbers, multiplication of quaternions is not commutative: e.g.
- [\beginij & = & k \\ji & = & -k \\jk & = & i \\kj & = & -i \\ki & = & j \\ik & = & -j \\\end]
The quaternions are an example of a division ring, an algebraic structure similar to a field except for commutativity of multiplication. In particular, multiplication is still associative and every non-zero element has a unique inverse.
Quaternions form a 4-dimensional associative algebra over the reals (in fact a division algebra) and contain the complex numbers, but they do not form an associative algebra over the complex numbers. The quaternions, along with the complex and real numbers, are the only finite-dimensional associative division algebras over the field of real numbers. The non-commutativity of multiplication has some unexpected consequences, among them that polynomial equations over the quaternions can have more distinct solutions than the degree of the polynomial.
The equation [z^2 + 1 = 0], for instance, has the infinitely-many quaternion solutions [z = bi + cj + dk] with [b^2 + c^2 + d^2 = 1].
The conjugate [z^*] of the quaternion [z = a + bi + cj + dk] is defined as
- [z^* = a - bi - cj - dk \,]
- [|z| = \sqrt = \sqrt. \,]
By using the distance function d(z, w) = |z − w|, the quaternions form a metric space (isometric to the usual Euclidean metric on R4) and the arithmetic operations are continuous. We also have |zw| = |z| |w| for all quaternions z and w. Using the absolute value as norm, the quaternions form a real Banach algebra.
Fundamental formula
The set of equations
- [ i^2 = j^2 = k^2 = i j k = -1 ]
- [ i j k = -1 ]
- [ i j k k = -k, ]
- [ i j (-1) = -k, ]
- [ i j = k. ]
- [ i i j k = -i, ]
- [ (-1) j k = -i, ]
- [ j k = i. ]
- [ j j k = j i, ]
- [ -k = j i, ]
Profile
The set of quaternions that square to −1 is the set of vectors of absolute value 1, that is
- [\left\ = \left\\ q q^* = 1 \right\} = S^2 \, ]
- [e^= \cos + i \sin \,]
Rotation group
As is explained in more detail in quaternions and spatial rotation, the multiplicative group of non-zero quaternions acts by conjugation on the copy of R3 consisting of quaternions with real part equal to zero. The conjugation by a unit quaternion (a quaternion of absolute value 1) with real part cos(t) is a rotation by an angle 2t, the axis of the rotation being the direction of the imaginary part. The advantages of quaternions are:
- Non singular representation (compared with Euler angles for example)
- More compact (and faster) than matrices
- Pairs of unit quaternions can represent a rotation in 4d space.
Representing quaternions by matrices
There are at least two ways of representing quaternions as matrices, in such a way that quaternion addition and multiplication correspond to matrix addition and matrix multiplication (i.e., quaternion-matrix homomorphisms). One is to use 2×2 complex matrices, and the other is to use 4×4 real matrices.In the first way, the quaternion a + bi + cj + dk is represented as
- [\begin a+bi & c+di \\ -c+di & a-bi \end]
- Complex numbers (c = d = 0) correspond to diagonal matrices.
- The square of the absolute value of a quaternion is the determinant of the corresponding matrix.
- The conjugate of a quaternion corresponds to the conjugate transpose of the matrix.
- Restricted to unit quaternions, this representation provides the isomorphism between S3 and SU(2). The latter group is important in quantum mechanics when dealing with spin; see also Pauli matrices.
- [\begin \;\; a & -b & \;\; d & -c \\ \;\; b & \;\; a & -c & -d \\ -d & \;\; c & \;\; a & -b \\ \;\; c & \;\; d & \;\; b & \;\; a \end]
Quaternion operations
Quaternion operations have extended applications in electrodynamics and general relativity. The use of quaternions can replace tensors in representation. It is sometimes easier to use quaternions with complex elements, leading to a form that is not a division algebra. However, the same operations can be performed using a combination of conjugate operations. Only quaternions with real elements will be discussed here. The discussion will involve describing quaternions in two forms. One as a combination of a vector and a scalar, and the other as a combination of the two constructors and the bivector (i, j, and k).Define two quaternions:
- [p = a + \vec = a + bi + cj + dk]
- [q = t + \vec = t + xi + yj + zk]
Addition and products
- Quaternion addition
- p + q
- [p + q = a + t + \vec + \vec = (a + t) + (b + x)i + (c + y)j + (d + z)k]
- Quaternion multiplication
- pq
- [pq = at - \vec\cdot\vec + a\vec + t\vec + \vec\times\vec]
- [pq = (at - bx - cy - dz) + (bt + ax + cz - dy)i + (ct + ay + dx - bz)j + (dt + az + by - cx)k]
- [qp = at - \vec\cdot\vec + a\vec + t\vec - \vec\times\vec]
- p*q
- [p^*q = at + \vec\cdot\vec + a\vec - t\vec - \vec\times\vec]
- [q^*p = at + \vec\cdot\vec - a\vec + t\vec + \vec\times\vec]
- Quaternion dot-product
- p · q
- [p \cdot q = at + \vec\cdot\vec = at + bx + cy + dz]
- [p \cdot q = \frac]
- [p \cdot i = b]
- Quaternion outer-product
- Outer(p,q)
- [\operatorname(p,q) = a\vec - t\vec - \vec\times\vec]
- [\operatorname(p,q) = (ax - bt - cz + dy)i + (ay + bz - ct - dx)j + (az - by + cx - dt)k]
- [\operatorname(p,q) = \frac]
- Quaternion cross-product
- p × q
- [p \times q = \vec\times\vec]
- [p \times q = (cz - dy)i + (dx - bz)j + (by - cx)k]
- [p \times q = \frac]
- Quaternion even-product
- Even(p,q)
- [\operatorname(p,q) = at - \vec\cdot\vec + a\vec + t\vec]
- [\operatorname(p,q) = (at - bx - cy - dz) + (ax + bt)i + (ay + ct)j + (az + dt)k]
- [\operatorname(p,q) = \frac]
- Quaternion reciprocal
- p−1
- [p^ = \frac]
- Quaternion division
- p−1q
- Quaternion scalar
- Scalar(p)
[1\cdot p = \frac = a]
- Quaternion vector
- Vector(p)
[\operatorname(1, p) = \frac = \vec = bi + cj + dk]
- Quaternion modulus
- [|p|]
- [|p| = \sqrt = \sqrt = \sqrt]
- Quaternion sign
- sgn(p)
- [\sgn(p) = \frac
>
] - Quaternion argument
- arg(p)
- [\arg(p) = \arccos\left(\frac(p)}
>
\right)] Functions of a quaternion variable
Functions of a complex variable can be extended to functions of a quaternion variable as follows:Let the complex function be written [f(z) = u(x,y) + i v(x,y)] where u and v are real-valued functions of two real variables. According to the above profile, any quaternion can be written
[q = a + b r] where r 2 = −1. Then the extension is given by [f(q) = u(a,b) + r v(a,b)].
Construction of quaternions from complex numbers
According to the Cayley-Dickson construction, a quaternion is an ordered pair of complex numbers. Letting j be a new root of −1, different from both i and −i, and given u and v are a pair of complex numbers, then- [ q = u + j v ]
If [ u = a + i b ] and [ v = c + i d ] then
- [ q = a + i b + j c + j i d ].
- [ j i = - i j ],
- [ q = a + i b + j c + i j (-d) ],
With these rules, we can now derive the multiplication table for i, j and i j, the imaginary components of a quaternion:
- [ i i = -1, ]
- [ i j = (i j), ]
- [ i (i j) = (i i) j = -j, ]
- [ j i = - (i j), ]
- [ j j = -1, ]
- [ j (i j) = - j (j i) = - (j j) i = i, ]
- [ (i j) i = - (j i) i = -j (i i) = j, ]
- [ (i j) j = i (j j) = -i, ]
- [ (i j) (i j) = -(i j) (j i) = -i (j j) i = i i = -1. ]
For any complex number v = c + i d, its product with j has the following property:
- [ j v = v^* j ]
- [ j v = j c + j i d = j c - (i j) d = (c - i d) j = v^* j ].
- [ p = w + j z ].
- [ q p = (u + j v) (w + j z) = u w + u j z + j v w + j v j z ]
- :[ = u w + j u^* z + j v w + j j v^* z ]
- :[ = (u w - v^* z) + j (u^* z + v w). ]
- [ (u + j v) (w + j z) = (u w - z v^*) + j (u^* z + w v) ]
Note that if u = a + i b, v = c + i d, and p = a + i b + j c + k d then p′s construction from u and v is rather
- [ p = u + v j = u + j v^* ].
Generalizations
If F is any field with characteristic different from 2, and a and b are elements of F, one may define a four-dimensional unitary associative algebra over F by using two generators i and j and the relations i2 = a, j2 = b and ij = −ji. These algebras are called quaternion algebras either isomorphic to the algebra of 2×2 matrices over F, or they are division algebras over F.
History
Quaternions were introduced by Irish mathematician Sir William Rowan Hamilton in 1843. Hamilton was looking for ways of extending complex numbers (which can be viewed as points on a plane) to higher spatial dimensions. He could not do so for 3 dimensions, but 4 dimensions produce quaternions. According to the story Hamilton told, on October 16, he was out walking along the Royal Canal in Dublin with his wife when the solution in the form of the equation- [i^2 = j^2 = k^2 = ijk = -1\,]
Quaternion plaque on Brougham (Broom) Bridge, Dublin, which says:
Here as he walked by
on the 16th of October 1843
Sir William Rowan Hamilton
in a flash of genius discovered
the fundamental formula for quaternion multiplication
i2 = j2 = k2 = i j k = −1
& cut it on a stone of this bridge.suddenly occurred to him; Hamilton then promptly carved this equation into the side of the nearby Brougham Bridge (now called Broom Bridge). This involved abandoning the commutative law, a radical step for the time. Vector algebra and matrices had yet to be developed.
Not only this, but Hamilton had in a sense invented the cross and dot products of vector algebra. Hamilton also described a quaternion as an ordered quadruple (4-tuple) of real numbers, and described the first coordinate as the 'scalar' part, and the remaining three as the 'vector' part. If two quaternions with zero scalar parts are multiplied, the scalar part of the product is the negative of the dot product of the vector parts, while the vector part of the product is the cross product. But the significance of these was still to be discovered. Hamilton proceeded to popularize quaternions with several books, the last of which, Elements of Quaternions, had 800 pages and was published shortly after his death.
Use controversy
Even by this time there was controversy about the use of quaternions. Some of Hamilton's supporters, like Cargill Gilston Knott, vociferously opposed the growing fields of vector algebra and vector calculus (developed by Oliver Heaviside and Willard Gibbs among others), maintaining that quaternions provided a superior notation. While this is debatable in three dimensions, quaternions cannot be directly applied in higher dimensions (though extensions like octonions and Clifford algebras may be more applicable). Vector notation had nearly universally replaced quaternions in science and engineering by the mid-20th century.Some early formulations of Maxwell's equations used a quaternion-based notation (although Maxwell's original formulation simply used 20 equations in 20 variables), but it proved unpopular compared to the vector-based notation of Heaviside. (All of these formulations were mathematically equivalent.)
Recent years
Quaternions are often used in computer graphics (and associated geometric analysis) to represent rotations (see quaternions and spatial rotation) and orientations of objects in three-dimensional space. They are smaller than other representations such as matrices, and operations on them such as composition can be computed more efficiently. Quaternions also see use in control theory, signal processing, attitude control, physics, and orbital mechanics, mainly for representing rotations/orientations in three dimensions. For example, it is common for spacecraft attitude-control systems to be commanded in terms of quaternions, which are also used to telemeter their current attitude. The rationale is that combining many quaternion transformations is more numerically stable than combining many matrix transformations, avoiding such phenomena as gimbal lock, which can occur when Euler angles are used. Using quaternions also reduces overhead from that when rotation matrices are used, because one carries only four components, not nine, the multiplication algorithms to combine successive rotations are faster, and it is far easier to renormalize the result afterwards.Since 1989, the National University of Ireland, Maynooth has organized a pilgrimage, where scientists (including physicists Murray Gell-Mann in 2002 and Steven Weinberg in 2005 and mathematician Andrew Wiles in 2003) take a walk from Dunsink Observatory to the Royal Canal bridge where, unfortunately, no trace of Hamilton's carving remains.
Quotes about quaternions
- I regard it as an inelegance, or imperfection, in quaternions, or rather in the state to which it has been hitherto unfolded, whenever it becomes or seems to become necessary to have recourse to x, y, z, etc. -- William Rowan Hamilton (ed. Quoted in a letter from Tait to Cayley.)
- Time is said to have only one dimension, and space to have three dimensions. [...] The mathematical quaternion partakes of both these elements; in technical language it may be said to be "time plus space", or "space plus time": and in this sense it has, or at least involves a reference to, four dimensions. And how the One of Time, of Space the Three, Might in the Chain of Symbols girdled be. -- William Rowan Hamilton (Quoted in R P Graves, "Life of Sir William Rowan Hamilton")
- Quaternions came from Hamilton after his really good work had been done; and, though beautifully ingenious, have been an unmixed evil to those who have touched them in any way, including Clark Maxwell. -- Lord Kelvin, 1892.
- . . .quaternions appear to exude an air of nineteenth century decay, as a rather unsuccessful species in the struggle-for-life of mathematical ideas. Mathematicians, admittedly, still keep a warm place in their hearts for the remarkable algebraic properties of quaternions but, alas, such enthusiasm means little to the harder-headed physical scientist. -- Simon L. Altmann, 1986
See also
- Quaternion group
- Coquaternion (split-quaternion)
- Associative algebra
- Complex number
- Division algebra
- Hypercomplex number
- Hypernumber
- Octonion
- Quaternions and spatial rotation
- Biquaternion
- Hyperbolic quaternion
- Tesseract
- Hurwitz quaternion
External articles and resources
Links
- [Geometric Tools documentation] Includes several papers focusing on computer graphics applications of quaternions. Covers useful techniques such as spherical linear interpolation.
- [Patrick-Gilles Maillot] Provides free fortran and C source code for manipulating quaternions and rotations / position in space. Also includes mathematical background on quaternions.
- [Geometric Tools source code] Includes free C++ source code for a complete quaternion class suitable for computer graphics work, under a very liberal license.
- [Doing Physics with Quaternions]
- [Quaternions for Computer Graphics and Mechanics (Gernot Hoffman)]
- [Quaternion Calculator] [Java]
- [The Physical Heritage of Sir W. R. Hamilton] (PDF)
- [Hamilton’s Research on Quaternions]
- [Quaternion Julia Fractals] 3D Raytraced Quaternion Julia Fractals by David J. Grossman
- [Quaternion Math and Conversions] Great page explaining basic math with links to straight forward rotation conversion formulae.
- John H. Mathews, [Bibliography for Quaternions].
- [Quaternion powers on GameDev.net]
- Andrew Hanson, [Visualizing Quaternions home page].
- "[Quaternion]". 1911 encyclopedia.
- Tait, Peter Guthrie, "[Quaternion]". M.A. Sec. R.S.E. Encyclopaedia Britannica, Ninth Edition, 1886, Vol. XX, pp. 160-164. (bzipped PostScript file)
Books and publications
- Tait, Peter Guthrie, "An elementary treatise on quaternions". 2d ed., Cambridge, [Eng.] : The University Press, c. 1873.
- Macfarlane, Alexander, "Vector analysis and quaternions", 4th ed. 1st thousand. New York, J. Wiley & Sons; [etc., etc.] 1906. LCCN es 16000048
- Joly, Charles Jasper, "A manual of quaternions". London, Macmillan and co., limited; New York, The Macmillan company, 1905. LCCN 05036137 //r84
- Finkelstein, David, Josef M. Jauch, Samuel Schiminovich, and David Speiser, "Foundations of quaternion quantum mechanics". J. Mathematical Phys. 3 1962 207--220, MathSciNet.
- Du Val, Patrick, "Homographies, quaternions, and rotations". Oxford, Clarendon Press, 1964 (Oxford mathematical monographs). LCCN 64056979 //r81
- Crowe, Michael J. (1967). A History of Vector Analysis: The Evolution of the Idea of a Vectorial System University of Notre Dame Press. Surveys the major and minor vector systems of the 19th century (Hamilton, Möbius, Bellavitis, Clifford, Grassmann, Tait, Peirce, Maxwell, MacFarlane, MacAuley, Gibbs, Heaviside). The competition between quaternions and other systems is a major theme.
- Adler, Stephen L., "Quaternionic quantum mechanics and quantum fields". New York : Oxford University Press, 1995. International series of monographs on physics (Oxford, England) 88. LCCN 94006306 ISBN 019506643X (alk. paper)
- Altmann, Simon L., "Rotations, quaternions, and double groups". Oxford [Oxfordshire] : Clarendon Press ; New York : Oxford University Press, c1986. LCCN 85013615 ISBN 0198553722
- Ward, J. P. (1997). Quaternions and Cayley Numbers: Algebra and Applications, Kluwer Academic Publishers. ISBN 0792345134.
- Gürlebeck, Klaus and Wolfgang Sprössig, "Quaternionic and Clifford calculus for physicists and engineers". Chichester ; New York : Wiley, c1997 (Mathematical methods in practice; v. 1) LCCN 98169958 ISBN 0471962007 (acid-free paper)
- Kuipers, Jack (2002). Quaternions and Rotation Sequences: A Primer With Applications to Orbits, Aerospace, and Virtual Reality (Reprint edition). Princeton University Press. ISBN 0691102988
- Conway, John Horton, and Smith, Derek A., (2003) On Quaternions and Octonions: Their Geometry, Arithmetic, and Symmetry, A. K. Peters, Ltd.
- Hanson, Andrew J., "Visualizing Quaternions". Elsevier : Morgan Kaufmann ; San Fransisco : (2006). ISBN 0120884003
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
