Left column shows the left factor, top row shows the right factor. Also, and for,.
Cayley Q8 graph showing the six cycles of multiplication byi,j andk. (If the image is opened in theWikimedia Commons by clicking twice on it, cycles can be highlighted by hovering over or clicking on them.)
Inmathematics, thequaternionnumber system extends thecomplex numbers. Quaternions were first described by the Irish mathematicianWilliam Rowan Hamilton in 1843[1][2] and applied tomechanics inthree-dimensional space. The set of all quaternions is conventionally denoted by ('H' forHamilton), or ifblackboard bold is not available, byH. Quaternions are not quite afield because, in general, multiplication of quaternions is notcommutative. Quaternions provide a definition of the quotient of twovectors in a three-dimensional space.[3][4] Quaternions are generally represented in the form
where the coefficientsa,b,c,d arereal numbers, and1,i,j,k are thebasis vectors orbasis elements.[5]
Graphical representation of products of quaternion units as 90° rotations in the planes of 4-dimensional space spanned by two of{1,i,j,k}. The left factor can be viewed as being rotated by the right factor to arrive at the product. Visuallyi⋅j = −(j⋅i).
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 =ijk = −1 & cut it on a stone of this bridge
Hamilton knew that the complex numbers could be interpreted aspoints in aplane, and he was looking for a way to do the same for points in three-dimensionalspace. Points in space can be represented by their coordinates, which are triples of numbers, and for many years he had known how to add and subtract triples of numbers. However, for a long time, he had been stuck on the problem of multiplication and division. He could not figure out how to calculate the quotient of the coordinates of two points in space. In fact,Ferdinand Georg Frobenius laterproved in 1877 that for a division algebra over the real numbers to be finite-dimensional and associative, it cannot be three-dimensional, and there are only three such division algebras: (complex numbers) and (quaternions) which have dimension 1, 2, and 4 respectively.[citation needed]
The great breakthrough in quaternions finally came on Monday 16 October 1843 inDublin, when Hamilton was on his way to theRoyal Irish Academy to preside at a council meeting. As he walked along the towpath of theRoyal Canal with his wife, the concepts behind quaternions were taking shape in his mind. When the answer dawned on him, Hamilton could not resist the urge to carve the defining formula for the quaternions into the stone ofBrougham Bridge with his pocket knife:
Although the carving has since faded away, there has been an annual pilgrimage since 1989, called theHamilton Walk, for scientists and mathematicians who process from theDunsink Observatory to the Royal Canal bridge in remembrance of Hamilton's discovery.
On the following day, Hamilton wrote a letter to his friend and fellow mathematician,J.T. Graves, describing the train of thought that led to his discovery. The letter was later published in a letter to thePhilosophical Magazine;[1] Hamilton states:
And here there dawned on me the notion that we must admit, in some sense, a fourth dimension of space for the purpose of calculating with triples ... An electric circuit seemed to close, and a spark flashed forth.[1]
Hamilton called a quadruple with these rules of multiplication aquaternion, and he devoted most of the remainder of his life to studying and teaching them.Hamilton's treatment is moregeometric than the modern approach, which emphasizes quaternions'algebraic properties. He founded a school of "quaternionists", and he tried to popularize quaternions in several books. The last and longest of his books,Elements of Quaternions,[14] was 800 pages long; it was edited byhis son and published shortly after his death.[citation needed]
After Hamilton's death, the Scottish mathematical physicistPeter Tait became the chief exponent of quaternions. At this time, quaternions were a mandatory examination topic in Dublin. Topics in physics and geometry that would now be described using vectors, such askinematics in space andMaxwell's equations, were described entirely in terms of quaternions. There was even a professional research association, theQuaternion Association, devoted to the study of quaternions and otherhypercomplex number systems.[15]
From the mid-1880s, quaternions began to be displaced byvector analysis, which had been developed byJosiah Willard Gibbs,Oliver Heaviside, andHermann von Helmholtz. Vector analysis described the same phenomena as quaternions, so it borrowed some ideas and terminology liberally from the literature on quaternions. However, vector analysis was conceptually simpler and notationally cleaner, and eventually quaternions were relegated to a minor role in mathematics andphysics. A side-effect of this transition is thatHamilton's work is difficult to comprehend for many modern readers. Hamilton's original definitions are unfamiliar and his writing style was wordy and difficult to follow.[citation needed]
The finding of 1924 that inquantum mechanics thespin of an electron and other matter particles (known asspinors) can be described using quaternions (in the form of the famousPauli spin matrices) furthered their interest; quaternions helped to understand how rotations of electrons by 360° can be discerned from those by 720° (the "Plate trick").[22][23] As of 2018[update], their use has not yet overtakenrotation groups.[c]
W. K. Clifford[25] (1845 − 1879) introduced his algebras as a tensor product (”compound of algebras”) of quaternion algebras (and its even sub-algebra), a concept introduced byB. Peirce[26] (1809 − 1880).R. Lipschitz[27] (1832 − 1903) rediscovered independently the even subalgebra. In 1922,C. L. E. Moore[28] (1876 − 1931) was to callLipschitz’ algebras ”hyperquaternions”. The term ”hyperquaternion” designates nowadays both the tensor product of quaternion algebras and its even subalgebra.[29]
Examples of hyperquaternions are: (isomorphic to the Clifford algebra and to real matrices) leading to applications inspecial relativity. Its even subalgebra is (biquaternions).[30][31]
wherea,b,c,d, are real numbers, andi,j,k, aresymbols that can be interpreted as unit-vectors pointing along the three spatial axes. In practice, if one ofa,b,c,d is 0, the corresponding term is omitted; ifa,b,c,d are all zero, the quaternion is thezero quaternion, denoted 0; if one ofb,c,d equals 1, the corresponding term is written simplyi,j, ork.
A quaternion, can be decomposed into itsscalar part (sometimesreal part) and itsvector part (sometimesimaginary part). A quaternion that equals its real part (that is, its vector part is zero) is called ascalar quaternion (sometimesreal quaternion or simplyscalar), and is identified with the corresponding real number. That is, the real numbers areembedded in the quaternions.[d] A quaternion that equals its vector part is called avector quaternion (sometimesright quaternion).
Quaternions form a 4-dimensionalvector space over the real numbers, with as abasis, by the component-wise addition
and the component-wise scalar multiplication
A multiplicative group structure, called theHamilton product, denoted by juxtaposition, can be defined on the quaternions in the following way:
The scalar quaternions commute with all other quaternions, that isaq =qa for every quaternionq and every scalar quaterniona. In algebraic terminology this is to say that the field of the scalar quaternions is thecenter of the quaternion algebra.
The product is first given for the basis elements, and then extended to all quaternions by using thedistributive property and the center property of the scalar quaternions (see below for details). The Hamilton product is notcommutative, but isassociative, thus the quaternions form anassociative algebra over the real numbers.
Additionally, every nonzero quaternion has an inverse with respect to the Hamilton product:
Thecenter of anoncommutative ring is the subring of elementsc such thatcx =xc for everyx. The center of the quaternion algebra is the subfield of scalar quaternions. In fact, it is a part of the definition that the scalar quaternions belong to the center. Conversely, ifq =a +bi +cj +dk belongs to the center, then
andc =d = 0. A similar computation withj instead ofi shows that one has alsob = 0. Thusq =a is a scalar quaternion.
The quaternions form a division algebra. This means that the non-commutativity of multiplication is the only property that makes quaternions different from a field. This non-commutativity has some unexpected consequences, among them that apolynomial equation over the quaternions can have more distinct solutions than the degree of the polynomial. For example, the equationz2 + 1 = 0, has infinitely many quaternion solutions, which are the quaternionsz =bi +cj +dk such thatb2 +c2 +d2 = 1. Thus theseimaginary units form aunit sphere in the three-dimensional space of quaternion vectors.
For two elementsa1 +b1i +c1j +d1k anda2 +b2i +c2j +d2k, their product, called theHamilton product (a1 +b1i +c1j +d1k) (a2 +b2i +c2j +d2k), is determined by the products of the basis elements and thedistributive law. The distributive law makes it possible to expand the product so that it is a sum of products of basis elements. This gives the following expression:
Now the basis elements can be multiplied using the rules given above to get:[9]
A quaternion of the forma + 0i + 0j + 0k, wherea is a real number, is called ascalar quaternion (sometimesreal quaternion), and a quaternion of the form0 +bi +cj +dk, whereb,c, andd are real numbers, and at least one ofb,c, ord is nonzero, is called avector quaternion (sometimesright quaternion. Ifa +bi +cj +dk is any quaternion, thena is called itsscalar part andbi +cj +dk is called itsvector part. Even though every quaternion can be viewed as a vector in a four-dimensional vector space, it is common to refer to the vector part as vectors in three-dimensional space. With this convention, a vector is the same as an element of the vector space[e]
Hamilton also called vector quaternionsright quaternions[37][38] and real numbers (considered as quaternions with zero vector part)scalar quaternions.
If a quaternion is divided up into its scalar part and its vector part, that is,
then the formulas for addition, multiplication, and multiplicative inverse are
Conjugation of quaternions is analogous to conjugation of complex numbers and to transposition (also known as reversal) of elements of Clifford algebras. To define it, let be a quaternion. Theconjugate ofq is the quaternion. It is denoted byq∗,qt,, orq.[9] Conjugation is aninvolution, meaning that it is its owninverse, so conjugating an element twice returns the original element. The conjugate of a product of two quaternions is the product of the conjugatesin the reverse order. That is, ifp andq are quaternions, then(pq)∗ =q∗p∗, notp∗q∗.
The conjugation of a quaternion, in contrast to the complex setting, can be expressed with multiplication and addition of quaternions:
Conjugation can be used to extract the scalar and vector parts of a quaternion. The scalar part ofp is1/2(p +p∗), and the vector part ofp is1/2(p −p∗).
Thesquare root of the product of a quaternion with its conjugate is called itsnorm and is denoted‖q‖ (Hamilton called this quantity thetensor ofq, but this conflicts with the modern meaning of "tensor"). In formulas, this is expressed as follows:
This is always a non-negative real number, and it is the same as the Euclidean norm on considered as the vector space. Multiplying a quaternion by a real number scales its norm by the absolute value of the number. That is, ifα is real, then
This is a special case of the fact that the norm ismultiplicative, meaning that
for any two quaternionsp andq. Multiplicativity is a consequence of the formula for the conjugate of a product.Alternatively it follows from the identity
(wherei denotes the usualimaginary unit) and hence from the multiplicative property ofdeterminants of square matrices.
This norm makes it possible to define thedistanced(p,q) betweenp andq as the norm of their difference:
This makes ametric space.Addition and multiplication arecontinuous in regard to the associatedmetric topology.This follows with exactly the same proof as for the real numbers from the fact that is a normed algebra.
Aunit quaternion is a quaternion of norm one. Dividing a nonzero quaternionq by its norm produces a unit quaternionUq called theversor ofq:
Every nonzero quaternion has a uniquepolar decomposition while the zero quaternion can be formed from any unit quaternion.
Using conjugation and the norm makes it possible to define thereciprocal of a nonzero quaternion. The product of a quaternion with its reciprocal should equal 1, and the considerations above imply that the product of and is 1 (for either order of multiplication). So thereciprocal ofq is defined to be
Since the multiplication is non-commutative, the quotient quantitiesp q−1 orq−1p are different (except ifp andq have parallel vector parts): the notationp/q is ambiguous and should not be used.
Because it is possible to divide quaternions, they form a division algebra. This is a structure similar to afield except that it admits non-commutative multiplication.Finite-dimensionalassociative division algebras over the real numbers are very rare: TheFrobenius theorem states that there are exactly three. Those are and Thenorm makes the quaternions into anormed algebra, and normed division algebras over the real numbers are also very rare:Hurwitz's theorem says that there are only four: and (theoctonions). The quaternions are also an example of acomposition algebra and of a unitalBanach algebra.
Three-dimensional graph of Q8. Red, green and blue arrows represent multiplication byi,j, andk, respectively. Multiplication by negative numbers is omitted for clarity.
Because the product of any two basis vectors is plus or minus another basis vector, the set{±1, ±i, ±j, ±k} forms a group under multiplication. Thisnon-abelian group is called the quaternion group and is denotedQ8.[39] The realgroup ring ofQ8 is a ring which is also an eight-dimensional vector space over It has one basis vector for each element of The quaternions are isomorphic to thequotient ring of by theideal generated by the elements1 + (−1),i + (−i),j + (−j), andk + (−k). Here the first term in each of the sums is one of the basis elements1,i,j, andk, and the second term is one of basis elements−1, −i, −j, and−k, not the additive inverses of1,i,j, andk.
The vector part of a quaternion can be interpreted as a coordinate vector in therefore, the algebraic operations of the quaternions reflect the geometry of Operations such as the vector dot and cross products can be defined in terms of quaternions, and this makes it possible to apply quaternion techniques wherever spatial vectors arise. A useful application of quaternions has been to interpolate the orientations of key-frames in computer graphics.[16]
For the remainder of this section,i,j, andk will denote both the three imaginary[40] basis vectors of and a basis for Replacingi by−i,j by−j, andk by−k sends a vector to itsadditive inverse, so the additive inverse of a vector is the same as its conjugate as a quaternion. For this reason, conjugation is sometimes called thespatial inverse.
For two vector quaternionsp =b1i +c1j +d1k andq =b2i +c2j +d2k theirdot product, by analogy to vectors in is
It can also be expressed in a component-free manner as
This is equal to the scalar parts of the productspq∗,qp∗,p∗q, andq∗p. Note that their vector parts are different.
Thecross product ofp andq relative to the orientation determined by the ordered basisi,j, andk is
(Recall that the orientation is necessary to determine the sign.) This is equal to the vector part of the productpq (as quaternions), as well as the vector part of−q∗p∗. It also has the formula
For thecommutator,[p,q] =pq −qp, of two vector quaternions one obtains
which gives the commutation relationship
In general, letp andq be quaternions and write
whereps andqs are the scalar parts, andpv andqv are the vector parts ofp andq. Then we have the formula
This shows that the noncommutativity of quaternion multiplication comes from the multiplication of vector quaternions. It also shows that two quaternions commute if and only if their vector parts are collinear. Hamilton[41] showed that this product computes the third vertex of a spherical triangle from two given vertices and their associated arc-lengths, which is also an algebra of points inElliptic geometry.
Unit quaternions can be identified with rotations in and were calledversors by Hamilton.[41] Also seeQuaternions and spatial rotation for more information about modeling three-dimensional rotations using quaternions.
SeeHanson (2005)[42] for visualization of quaternions.
Just as complex numbers can berepresented as matrices, so can quaternions. There are at least two ways of representing quaternions as matrices in such a way that quaternion addition and multiplication correspond to matrix addition andmatrix multiplication. One is to use 2 × 2 complex matrices, and the other is to use 4 × 4real matrices. In each case, the representation given is one of a family of linearly related representations. These areinjectivehomomorphisms from to thematrix ringsM(2,C) andM(4,R), respectively.
The quaterniona +bi +cj +dk can be represented using a complex2 × 2 matrix as
This representation has the following properties:
Constraining any two ofb,c, andd to zero produces a representation of complex numbers. For example, settingc =d = 0 produces a diagonal complex matrix representation of complex numbers, and settingb =d = 0 produces a real matrix representation.
The norm of a quaternion (the square root of the product with its conjugate, as with complex numbers) is the square root of thedeterminant of the corresponding matrix.[43]
The scalar part of a quaternion is one half of thematrix trace.
The conjugate of a quaternion corresponds to theconjugate transpose of the matrix.
By restriction this representation yields agroup isomorphism between the subgroup of unit quaternions and their imageSU(2). Topologically, theunit quaternions are the 3-sphere, so the underlying space of SU(2) is also a 3-sphere. The groupSU(2) is important for describingspin in quantum mechanics; seePauli matrices.
There is a strong relation between quaternions andPauli matrices. The2 × 2 complex matrix above can be written as so in this representation the quaternion units{1,i,j,k} correspond to{I,} ={I,}. Multiplying any two Pauli matrices always yields a quaternion unit matrix, all of them except for−1 . One obtains −1 viai2 =j2 =k2 =i j k = −1 ; e.g. the last equality is
The representation inM(2,ℂ) is not unique: A different convention, that preserves the direction of cyclic ordering between the quaternions and the Pauli matrices, is to choose
Using 4 × 4 real matrices, that same quaternion can be written as
However, the representation of quaternions inM(4,ℝ) is not unique. For example, the same quaternion can also be represented as
There are 48 distinct matrix representations of this form, in which one of the matrices represents the scalar part and the other three are all skew-symmetric. More precisely, there are 48 sets of quadruples of matrices with these symmetry constraints, such that a function sending1,i,j, andk to the matrices in the quadruple is ahomomorphism, that is, it sends sums and products of quaternions to sums and products of matrices.[45] In this representation, the conjugate of a quaternion corresponds to thetranspose of the matrix. The fourth power of the norm of a quaternion is thedeterminant of the corresponding matrix. The scalar part of a quaternion is one quarter of the matrix trace. As with the 2 × 2 complex representation above, complex numbers can again be produced by constraining the coefficients suitably; for example, as block diagonal matrices with two 2 × 2 blocks by settingc =d = 0.
Each 4×4 matrix representation of quaternions corresponds to a multiplication table of unit quaternions. For example, the last matrix representation given above corresponds to the multiplication table
×
a
d
−b
−c
a
a
d
−b
−c
−d
−d
a
c
−b
b
b
−c
a
−d
c
c
b
d
a
which is isomorphic — through — to
×
1
k
−i
−j
1
1
k
−i
−j
−k
−k
1
j
−i
i
i
−j
1
−k
j
j
i
k
1
Constraining any such multiplication table to have the identity in the first row and column and for the signs of the row headers to be opposite to those of the column headers, then there are 3 possible choices for the second column (ignoring sign), 2 possible choices for the third column (ignoring sign), and 1 possible choice for the fourth column (ignoring sign); that makes 6 possibilities. Then, the second column can be chosen to be either positive or negative, the third column can be chosen to be positive or negative, and the fourth column can be chosen to be positive or negative, giving 8 possibilities for the sign. Multiplying the possibilities for the letter positions and for their signs yields 48. Then replacing1 witha,i withb,j withc, andk withd and removing the row and column headers yields a matrix representation ofa +bi +cj +dk.
Quaternions are also used in one of the proofs of Lagrange's four-square theorem innumber theory, which states that every nonnegative integer is the sum of four integer squares. As well as being an elegant theorem in its own right, Lagrange's four square theorem has useful applications in areas of mathematics outside number theory, such ascombinatorial design theory. The quaternion-based proof usesHurwitz quaternions, a subring of the ring of all quaternions for which there is an analog of theEuclidean algorithm.
Quaternions can be represented as pairs of complex numbers. From this perspective, quaternions are the result of applying theCayley–Dickson construction to the complex numbers. This is a generalization of the construction of the complex numbers as pairs of real numbers.
Let be a two-dimensional vector space over the complex numbers. Choose a basis consisting of two elements1 andj. A vector in can be written in terms of the basis elements1 andj as
If we definej2 = −1 andij = −ji, then we can multiply two vectors using the distributive law. Usingk as an abbreviated notation for the productij leads to the same rules for multiplication as the usual quaternions. Therefore, the above vector of complex numbers corresponds to the quaterniona +b i +cj +dk. If we write the elements of as ordered pairs and quaternions as quadruples, then the correspondence is
In the complex numbers, there are exactly two numbers,i and−i, that give −1 when squared. In there are infinitely many square roots of minus one: the quaternion solution for the square root of −1 is the unitsphere in To see this, letq =a +bi +cj +dk be a quaternion, and assume that its square is −1. In terms ofa,b,c, andd, this means
To satisfy the last three equations, eithera = 0 orb,c, andd are all 0. The latter is impossible becausea is a real number and the first equation would imply thata2 = −1. Therefore,a = 0 andb2 +c2 +d2 = 1. In other words: A quaternion squares to −1 if and only if it is a vector quaternion with norm 1. By definition, the set of all such vectors forms the unit sphere.
Only negative real quaternions have infinitely many square roots. All others have just two (or one in the case of 0).[citation needed][g]
Eachantipodal pair of square roots of −1 creates a distinct copy of the complex numbers inside the quaternions. Ifq2 = −1, then the copy is theimage of the function
Every non-real quaternion generates asubalgebra of the quaternions that is isomorphic to and is thus a planar subspace of writeq as the sum of its scalar part and its vector part:
Decompose the vector part further as the product of its norm and itsversor:
(This is not the same as.) The versor of the vector part ofq,, is a right versor with –1 as its square. A straightforward verification shows thatdefines an injectivehomomorphism ofnormed algebras from into the quaternions. Under this homomorphism,q is the image of the complex number.
As is theunion of the images of all these homomorphisms, one can view the quaternions as apencil of planes intersecting on thereal line. Each of thesecomplex planes contains exactly one pair ofantipodal points of the sphere of square roots of minus one.
The relationship of quaternions to each other within the complex subplanes of can also be identified and expressed in terms of commutativesubrings. Specifically, since two quaternionsp andq commute (i.e.,p q =q p) only if they lie in the same complex subplane of, the profile of as a union of complex planes arises when one seeks to find all commutative subrings of the quaternionring.
Any quaternion (represented here in scalar–vector representation) has at least one square root which solves the equation. Looking at the scalar and vector parts in this equation separately yields two equations, which when solved gives the solutions
where is the norm of and is the norm of. For any scalar quaternion, this equation provides the correct square roots if is interpreted as an arbitrary unit vector.
Therefore, nonzero, non-scalar quaternions, or positive scalar quaternions, have exactly two roots, while 0 has exactly one root (0), and negative scalar quaternions have infinitely many roots, which are the vector quaternions located on, i.e., where the scalar part is zero and the vector part is located on the2-sphere with radius.
The Julia sets and Mandelbrot sets can be extended to the Quaternions, but they must use cross sections to be rendered visually in 3 dimensions. This Julia set is cross sectioned at thex y plane.
Like functions of acomplex variable, functions of a quaternion variable suggest useful physical models. For example, the original electric and magnetic fields described by Maxwell were functions of a quaternion variable. Examples of other functions include the extension of theMandelbrot set andJulia sets into 4-dimensional space.[49]
and amounts to the absolute value of half the angle subtended byp andq along agreat arc of theS3 sphere.This angle can also be computed from the quaterniondot product without the logarithm as:
Three-dimensional and four-dimensional rotation groups
The word "conjugation", besides the meaning given above, can also mean taking an elementa tor a r−1 wherer is some nonzero quaternion. Allelements that are conjugate to a given element (in this sense of the word conjugate) have the same real part and the same norm of the vector part. (Thus the conjugate in the other sense is one of the conjugates in this sense.)[53]
Thus the multiplicative group of nonzero quaternions acts by conjugation on the copy of consisting of quaternions with real part equal to zero. Conjugation by a unit quaternion (a quaternion of absolute value 1) with real partcos(φ) is a rotation by an angle2φ, the axis of the rotation being the direction of the vector part. The advantages of quaternions are:[54]
Avoidinggimbal lock, a problem with systems such as Euler angles.
Faster and more compact than matrices.
Nonsingular representation (compared with Euler angles for example).
The set of all unit quaternions (versors) forms a 3-sphereS3 and a group (aLie group) under multiplication,double covering the group of real orthogonal 3×3 matrices ofdeterminant 1 sincetwo unit quaternions correspond to every rotation under the above correspondence. Seeplate trick.
The image of a subgroup of versors is apoint group, and conversely, the preimage of a point group is a subgroup of versors. The preimage of a finite point group is called by the same name, with the prefixbinary. For instance, the preimage of theicosahedral group is thebinary icosahedral group.
The versors' group is isomorphic toSU(2), the group of complexunitary 2×2 matrices ofdeterminant 1.
LetA be the set of quaternions of the forma +bi +cj +dk wherea, b, c, andd are either allintegers or allhalf-integers. The setA is a ring (in fact adomain) and alattice and is called the ring of Hurwitz quaternions. There are 24 unit quaternions in this ring, and they are the vertices of aregular 24 cell withSchläfli symbol{3,4,3}. They correspond to the double cover of the rotational symmetry group of the regulartetrahedron. Similarly, the vertices of aregular 600 cell with Schläfli symbol{3,3,5} can be taken as the uniticosians, corresponding to the double cover of the rotational symmetry group of theregular icosahedron. The double cover of the rotational symmetry group of the regularoctahedron corresponds to the quaternions that represent the vertices of thedisphenoidal 288-cell.[55]
The Quaternions can be generalized into further algebras calledquaternion algebras. TakeF to be any field with characteristic different from 2, anda andb to be elements ofF; a four-dimensional unitary associative algebra can be defined overF with basis 1,i,j, andi j, wherei2 =a,j2 =b andi j = −j i (so(i j)2 = −a b).
Quaternion algebras are isomorphic to the algebra of 2×2 matrices overF or form division algebras overF, depending on the choice ofa andb.
The usefulness of quaternions for geometrical computations can be generalised to other dimensions by identifying the quaternions as the even part of the Clifford algebra This is an associative multivector algebra built up from fundamental basis elementsσ1,σ2,σ3 using the product rules
If these fundamental basis elements are taken to represent vectors in 3D space, then it turns out that thereflection of a vectorr in a plane perpendicular to a unit vectorw can be written:
Two reflections make a rotation by an angle twice the angle between the two reflection planes, so
corresponds to a rotation of 180° in the plane containingσ1 andσ2. This is very similar to the corresponding quaternion formula,
Indeed, the two structures and areisomorphic. One natural identification is
and it is straightforward to confirm that this preserves the Hamilton relations
In this picture, so-called "vector quaternions" (that is, pure imaginary quaternions) correspond not to vectors but tobivectors – quantities withmagnitudes andorientations associated with particular 2D planes rather than 1D directions. The relation to complex numbers becomes clearer, too: in 2D, with two vector directionsσ1 andσ2, there is only one bivector basis elementσ1σ2, so only one imaginary. But in 3D, with three vector directions, there are three bivector basis elementsσ2σ3,σ3σ1,σ1σ2, so three imaginaries.
This reasoning extends further. In the Clifford algebra there are six bivector basis elements, since with four different basic vector directions, six different pairs and therefore six different linearly independent planes can be defined. Rotations in such spaces using these generalisations of quaternions, calledrotors, can be very useful for applications involvinghomogeneous coordinates. But it is only in 3D that the number of basis bivectors equals the number of basis vectors, and each bivector can be identified as apseudovector.
There are several advantages for placing quaternions in this wider setting:[56]
Rotors are a natural part of geometric algebra and easily understood as the encoding of a double reflection.
In geometric algebra, a rotor and the objects it acts on live in the same space. This eliminates the need to change representations and to encode new data structures and methods, which is traditionally required when augmenting linear algebra with quaternions.
Rotors are universally applicable to any element of the algebra, not just vectors and other quaternions, but also lines, planes, circles, spheres, rays, and so on.
In theconformal model of Euclidean geometry, rotors allow the encoding of rotation, translation and scaling in a single element of the algebra, universally acting on any element. In particular, this means that rotors can represent rotations around an arbitrary axis, whereas quaternions are limited to an axis through the origin.
Rotor-encoded transformations make interpolation particularly straightforward.
The quaternions are "essentially" the only (non-trivial)central simple algebra (CSA) over the real numbers, in the sense that every CSA over the real numbers isBrauer equivalent to either the real numbers or the quaternions. Explicitly, theBrauer group of the real numbers consists of two classes, represented by the real numbers and the quaternions, where the Brauer group is the set of all CSAs, up to equivalence relation of one CSA being amatrix ring over another. By theArtin–Wedderburn theorem (specifically, Wedderburn's part), CSAs are all matrix algebras over a division algebra, and thus the quaternions are the only non-trivial division algebra over the real numbers.
CSAs – finite dimensional rings over a field, which aresimple algebras (have no non-trivial 2-sided ideals, just as with fields) whose center is exactly the field – are a noncommutative analog ofextension fields, and are more restrictive than general ring extensions. The fact that the quaternions are the only non-trivial CSA over the real numbers (up to equivalence) may be compared with the fact that the complex numbers are the only non-trivial finite field extension of the real numbers.
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 tox, y, z, etc.
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.
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, includingClerk Maxwell.
There was a time, indeed, when I, although recognizing the appropriateness of vector analysis in electromagnetic theory (and in mathematical physics generally), did think it was harder to understand and to work than the Cartesian analysis. But that was before I had thrown off the quaternionic old-man-of-the-sea who fastened himself about my shoulders when reading the only accessible treatise on the subject – Prof. Tait'sQuaternions. But I came later to see that, so far as the vector analysis I required was concerned, the quaternion was not only not required, but was a positive evil of no inconsiderable magnitude; and that by its avoidance the establishment of vector analysis was made quite simple and its working also simplified, and that it could be conveniently harmonised with ordinary Cartesian work. There is not a ghost of a quaternion in any of my papers (except in one, for a special purpose). The vector analysis I use may be described either as a convenient and systematic abbreviation of Cartesian analysis; or else, as Quaternions without the quaternions, ... ."Quaternion" was, I think, defined by an American schoolgirl to be"an ancient religious ceremony". This was, however, a complete mistake: The ancients – unlike Prof. Tait – knew not, and did not worship Quaternions.
Neither matrices nor quaternions and ordinary vectors were banished from these ten [additional] chapters. For, in spite of the uncontested power of the modern Tensor Calculus, those older mathematical languages continue, in my opinion, to offer conspicuous advantages in the restricted field of special relativity. Moreover, in science as well as in everyday life, the mastery of more than one language is also precious, as it broadens our views, is conducive to criticism with regard to, and guards against hypostasy [weak-foundation] of, the matter expressed by words or mathematical symbols.
... 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.
^Bradley & Sandifer (2007), p. 193 mentionWilhelm Blaschke's claim in 1959 that "the quaternions were first identified by L. Euler in a letter to Goldbach written on 4 May 1748," and they comment that "it makes no sense whatsoever to say that Euler 'identified' the quaternions in this letter ... this claim is absurd."[11]
^Tomb Raider (1996) is often cited as the first mass-market computer game to have used quaternions to achieve smooth three-dimensional rotations.[17]
^A more personal view of quaternions was written byJoachim Lambek in 1995. He wrote in his essayIf Hamilton had prevailed: Quaternions in physics: "My own interest as a graduate student was raised by the inspiring book by Silberstein". He concluded by stating "I firmly believe that quaternions can supply a shortcut for pure mathematicians who wish to familiarize themselves with certain aspects of theoretical physics."[24]
^More properly, thefield of real numbers is isomorphic to a uniquesubring of the quaternions. The field of complex numbers is also isomorphic to three subsets of quaternions.[35]
^The vector part of a quaternion is apseudovector oraxial vector, not an ordinary orpolar vector.[36] A polar vector can be represented in calculations (for example, for rotation by a "quaternion similarity transform") by a vector quaternion, with no loss of information, but the two should not be confused. The axis of a "binary" (180°) rotation quaternion corresponds to the direction of the represented polar vector in such a case.
^The identification of the square roots of minus one in was given by Hamilton[46] but was frequently omitted in other texts. By 1971 the sphere was included by Sam Perlis in his three-page exposition included inHistorical Topics in Algebra published by theNational Council of Teachers of Mathematics.[47] More recently, the sphere of square roots of minus one is described inIan R. Porteous's bookClifford Algebras and the Classical Groups (Cambridge, 1995) in proposition 8.13.[48]
^Books on applied mathematics, such as Corke (2017)[51] often use different notation withφ :=1/2θ — that is,another variableθ = 2φ.
^Gauss, C.F. (c. 1819). "Mutationen des Raumes" [Transformations of space]. In Martin Brendel (ed.).Carl Friedrich Gauss Werke [The works of Carl Friedrich Gauss]. Vol. 8. Prof. Stäckel of Kiel, Germany (article edited by). Göttingen, DE: Königlichen Gesellschaft der Wissenschaften [Royal Society of Sciences] (published 1900). pp. 357–361 – via Google.
^Clifford, W.K. (1878). "Applications of Grassmann's Extensive Algebra".American Journal of Mathematics.1 (4). The Johns Hopkins University Press:350–358.doi:10.2307/2369379.JSTOR2369379./
^Peirce, B. (1881). "Linear associative algebra".American Journal of Mathematics.4 (1). Johns Hopkins University:221–226.doi:10.2307/2369153.JSTOR2369153.
^Lipschitz, R. (1880). "Principes d'un calcul algébrique qui contient comme espèces particulières le calcul des quantités imaginaires et des quaternions".C. R. Acad. Sci. Paris (in French).91:619–621,660–664.
^Moore, C.L.E. (1922). "Hyperquaternions".Journal of Mathematics and Physics.1 (2):63–77.doi:10.1002/sapm19221263.
Adler, Stephen L. (1995).Quaternionic quantum mechanics and quantum fields. International series of monographs on physics. Vol. 88. Oxford University Press.ISBN0-19-506643-X.LCCN94006306.
Altmann, Simon L. (1989). "Hamilton, Rodrigues, and the Quaternion Scandal".Mathematics Magazine.62 (5):291–308.doi:10.1080/0025570X.1989.11977459.
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).
Goldman, Ron (2010).Rethinking Quaternions: Theory and Computation. Morgan & Claypool.ISBN978-1-60845-420-4.
Gürlebeck, Klaus; Sprössig, Wolfgang (1997).Quaternionic and Clifford calculus for physicists and engineers. Mathematical methods in practice. Vol. 1. Wiley.ISBN0-471-96200-7.LCCN98169958.
Pujol, Jose (2014). "On Hamilton's Nearly-Forgotten Early Work on the Relation between Rotations and Quaternions and on the Composition of Rotations".The American Mathematical Monthly.121 (6):515–522.doi:10.4169/amer.math.monthly.121.06.515.S2CID1543951.
Tait, Peter Guthrie (1873).An elementary treatise on quaternions (2nd ed.). Cambridge: The University Press.
Vince, John A. (2008).Geometric Algebra for Computer Graphics. Springer.ISBN978-1-84628-996-5.
Mebius, Johan E. (2005). "A matrix-based proof of the quaternion representation theorem for four-dimensional rotations".arXiv:math/0501249.
Mebius, Johan E. (2007). "Derivation of the Euler–Rodrigues formula for three-dimensional rotations from the general formula for four-dimensional rotations".arXiv:math/0701759.
David Erickson,Defence Research and Development Canada (DRDC), Complete derivation of rotation matrix from unitary quaternion representation in DRDC TR 2005-228 paper.
Morier-Genoud, Sophie; Ovsienko, Valentin (2008). "Well, Papa, can you multiply triplets?".arXiv:0810.5562 [math.AC]. describes how the quaternions can be made into a skew-commutative algebra graded byZ/2 ×Z/2 ×Z/2.
Ghiloni, R.; Moretti, V.; Perotti, A. (2013). "Continuous slice functional calculus in quaternionic Hilbert spaces".Rev. Math. Phys.25 (4):1350006–126.arXiv:1207.0666.Bibcode:2013RvMaP..2550006G.doi:10.1142/S0129055X13500062.S2CID119651315. Ghiloni, R.; Moretti, V.; Perotti, A. (2017). "Spectral representations of normal operators via Intertwining Quaternionic Projection Valued Measures".Rev. Math. Phys.29: 1750034.arXiv:1602.02661.doi:10.1142/S0129055X17500349.S2CID124709652. two expository papers about continuous functional calculus and spectral theory in quanternionic Hilbert spaces useful in rigorous quaternionic quantum mechanics.
Quaternions the Android app shows the quaternion corresponding to the orientation of the device.