In mathematics, the quaternions form a number system similar to the complex numbers, with the usual arithmetical operations of addition, subtraction, multiplication, and division, but with four real-number components instead of two. Unlike with the complex numbers, quaternion multiplication is not commutative, meaning that the result of multiplying two quaternions depends on their order. Quaternions can be used to represent vectors in three-dimensional space, which provides a definition of the quotient of two vectors.

Quaternions were first described by the Irish mathematician and physicist William Rowan Hamilton in 1843, and in his honor the set of all quaternions is conventionally denoted by

{\displaystyle \mathbb {H} }

Quaternion
Jason Hise at English Wikipedia · Public domain via Wikimedia Commons

or H. A generic quaternion is usually represented in the form

{\displaystyle a+b\,\mathbf {i} +c\,\mathbf {j} +d\,\mathbf {k} ,}

where the coefficients a, b, c, d are real numbers, and 1, i, j, k are the basis vectors or basis elements.

Quaternion
Cone83 · CC BY-SA 4.0 via Wikimedia Commons

Quaternions are used in pure mathematics, but also have practical uses in applied mathematics, particularly for calculations involving three-dimensional rotations, such as in three-dimensional computer graphics, computer vision, robotics, magnetic resonance imaging and crystallographic texture analysis. They can be used alongside other methods of rotation, such as Euler angles and rotation matrices, or as an alternative to them, depending on the application.

As an abstract mathematical structure, quaternions form a four-dimensional associative normed division algebra over the real numbers, and therefore a ring, also a division ring and a domain. Because of their non-commutative multiplication, they do not form a field. The quaternions are also a special case of a Clifford algebra, classified as

Cl

Quaternion
Nielmo · CC BY-SA 4.0 via Wikimedia Commons

Cl

{\displaystyle \operatorname {Cl} _{0,2}(\mathbb {R} )\cong \operatorname {Cl} _{3,0}^{+}(\mathbb {R} ).}

According to the Frobenius theorem, the algebra

Quaternion
Prokofiev · CC BY-SA 3.0 via Wikimedia Commons

{\displaystyle \mathbb {H} }

is one of only two finite-dimensional division rings containing a proper subring isomorphic to the real numbers; the other being the complex numbers. These rings are also Euclidean Hurwitz algebras, of which the quaternions are the largest associative algebra (and hence the largest ring). Further extending the quaternions yields the non-associative octonions, which is the last normed division algebra over the real numbers. The next extension gives the sedenions, which have zero divisors and so cannot be a normed division algebra.

The unit quaternions give a group structure on the 3-sphere S3 isomorphic to the groups Spin(3) and SU(2), i.e. the universal cover group of SO(3). The positive and negative basis vectors form the eight-element quaternion group.

History

Quaternions were introduced by Hamilton in 1843. Important precursors to this work included Euler's four-square identity (1748) and Olinde Rodrigues' parameterization of general rotations by four parameters (1840), but neither of these writers treated the four-parameter rotations as an algebra. Gauss had discovered quaternions in 1819, but this work was not published until 1900.

Hamilton knew that the complex numbers could be interpreted as points in a plane, and he was looking for a way to do the same for points in three-dimensional space. 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 later proved 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:

{\displaystyle \mathbb {R,C} }

(complex numbers) and

{\displaystyle \mathbb {H} }

(quaternions) which have dimension 1, 2, and 4 respectively.

The great breakthrough in quaternions finally came on Monday 16 October 1843 in Dublin, when Hamilton was on his way to the Royal Irish Academy to preside at a council meeting. As he walked along the towpath of the Royal 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 of Brougham Bridge with his pocket knife:

{\displaystyle \mathbf {i} ^{2}=\mathbf {j} ^{2}=\mathbf {k} ^{2}=\mathbf {i\;j\;k} =-1}

Although the carving has since faded away, there has been an annual pilgrimage since 1989, called the Hamilton Walk, for scientists and mathematicians who process from the Dunsink 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 the Philosophical Magazine; 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.

Hamilton called a quadruple with these rules of multiplication a quaternion, and he devoted most of the remainder of his life to studying and teaching them. Hamilton's treatment is more geometric 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, was 800 pages long; it was edited by his son and published shortly after his death.

After Hamilton's death, the Scottish mathematical physicist Peter 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 as kinematics in space and Maxwell's equations, were described entirely in terms of quaternions. There was even a professional research association, the Quaternion Association, devoted to the study of quaternions and other hypercomplex number systems.

From the mid-1880s, quaternions began to be displaced by vector analysis, which had been developed by Josiah Willard Gibbs, Oliver Heaviside, and Hermann 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 and physics. A side-effect of this transition is that Hamilton'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.

However, quaternions have had a revival since the late 20th century, primarily due to their utility in describing spatial rotations. The representations of rotations by quaternions are more compact and quicker to compute than the representations by matrices. In addition, unlike Euler angles, they are not susceptible to "gimbal lock". For this reason, quaternions are used in computer graphics, computer vision, robotics, nuclear magnetic resonance image sampling, control theory, signal processing, attitude control, physics, bioinformatics, molecular dynamics, computer simulations, and orbital mechanics. For example, it is common for the attitude control systems of spacecraft to be commanded in terms of quaternions. Quaternions also have contributed to number theory, because of their relationships with the quadratic forms.

Quaternions in physics

Hamilton had introduced biquaternions in his Lectures on Quaternions, and these were used by Ludwik Silberstein in 1914 to exhibit the Lorentz transformations of special relativity. This representation of Lorentz transformations was also used by Cornelius Lanczos in 1949.

The finding of 1924 that in quantum mechanics the spin of an electron and other matter particles (known as spinors) can be described using quaternions (in the form of the famous Pauli 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"). As of 2018, their use has not yet overtaken rotation groups.

W. K. Clifford (1845 − 1879) introduced his algebras as a tensor product (”compound of algebras”) of quaternion algebras (and its even sub-algebra), a concept introduced by B. Peirce (1809 − 1880). R. Lipschitz (1832 − 1903) rediscovered independently the even subalgebra. In 1922, C. L. E. Moore (1876 − 1931) was to call Lipschitz’ algebras ”hyperquaternions”. The term ”hyperquaternion” designates nowadays both the tensor product of

{\displaystyle n}

quaternion algebras

{\displaystyle \mathbb {H} ^{\otimes n}}

and its even subalgebra

{\displaystyle \mathbb {H} ^{\otimes n-1}\otimes \mathbb {C} }

Examples of hyperquaternions are:

{\displaystyle \mathbb {H} ,\mathbb {H} ^{\otimes 2}=\mathbb {H} \otimes _{\mathbb {R} }\mathbb {H} }

(isomorphic to the Clifford algebra

{\displaystyle Cl_{3,1}\mathbb {(R)} }

and to

{\displaystyle 4\times 4}

real matrices

{\displaystyle M(4,\mathbb {R} )}

) leading to applications in special relativity. Its even subalgebra is

{\displaystyle \mathbb {H} \otimes \mathbb {C} }

(biquaternions).

Another example is

{\displaystyle \mathbb {H} ^{\otimes 3}=M(4,\mathbb {H} )}

yielding a quaternionic matrix and its even subalgebra

{\displaystyle \mathbb {H} ^{\otimes 2}\otimes _{\mathbb {R} }\mathbb {C} }

(Dirac algebra).

Definition

A quaternion is an expression of the form

{\displaystyle a+b\,\mathbf {i} +c\,\mathbf {j} +d\,\mathbf {k} ,}

where a, b, c, d, are real numbers, and i, j, k, are symbols that can be interpreted as unit-vectors pointing along the three spatial axes. In practice, if one of a, b, c, d is 0, the corresponding term is omitted; if a, b, c, d are all zero, the quaternion is the zero quaternion, denoted 0; if one of b, c, d equals 1, the corresponding term is written simply i, j, or k.