quaternions
- User
quaternions
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
quaternions
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Quaternions are a fascinating mathematical structure that extends the complex numbers into a four-dimensional number system. First described by Irish mathematician William Rowan Hamilton in 1843, quaternions have evolved from a purely mathematical curiosity to become an essential tool in numerous applications, particularly involving three-dimensional rotations.
The discovery of quaternions has a romantic origin story. On October 16, 1843, William Rowan Hamilton was walking along the Royal Canal in Dublin when he suddenly had a mathematical epiphany. So excited by his discovery, he immediately carved the fundamental formula of quaternion algebra into the stone of Brougham Bridge[6]:
This moment of insight came after Hamilton had spent years searching for a way to extend complex numbers to three dimensions. He realized that to make his system work, he needed not three but four dimensions[9]. The plaque commemorating this discovery now stands in place of Hamilton's original carving[9].
A quaternion is an expression of the form:
where , , , and are real numbers, and , , and are abstract symbols or basis elements[1]. This can be represented as an ordered quadruple [5].
The quaternion can be decomposed into two parts:
A quaternion that equals its real part is called a scalar or real quaternion and is identified with the corresponding real number. This means the real numbers are embedded in the quaternions[1].
Quaternions can also be represented using a scalar plus a 3D vector notation:
where is a scalar and is a 3D vector[5][6]. This representation is particularly useful for understanding quaternion operations in terms of familiar vector operations.
The distinctive feature of quaternions is their multiplication rules. The basis elements , , and multiply according to:
[1][5][6]
This can be summarized in a multiplication table:
| × | 1 | i | j | k |
|---|---|---|---|---|
| 1 | 1 | i | j | k |
| i | i | -1 | k | -j |
| j | j | -k | -1 | i |
| k | k | j | -i | -1 |
Using the vector-scalar representation, the product of two quaternions and can be expressed as:
where is the dot product and is the cross product of vectors[5].
Unlike real and complex numbers, quaternion multiplication is non-commutative, meaning in general[1][4]. This non-commutativity is not a defect but rather a feature that allows quaternions to represent rotations in three-dimensional space, which themselves are non-commutative[7].
Quaternions form:
According to the Frobenius theorem, quaternions are one of only two finite-dimensional division rings containing a proper subring isomorphic to the real numbers, the other being the complex numbers[1][11].
The conjugate of a quaternion is defined as:
Unlike complex numbers, the conjugate of a product is the product of conjugates in reverse order: [1].
The norm of a quaternion is defined as:
This norm has the important property of being multiplicative: [1][6].
The inverse of a non-zero quaternion is given by:
This ensures that [1][6].
A unit quaternion is a quaternion with norm 1. The set of unit quaternions forms a 3-sphere in 4D space and is particularly important for representing rotations[1][7].
Unit quaternions, also called versors, provide an elegant way to represent rotations in 3D space[7]. A rotation by angle around a unit axis vector can be represented by the quaternion:
[7]
To rotate a vector in 3D space, it's first converted to a pure quaternion , and then the transformation:
is applied. The vector part of gives the rotated vector[7][9].
One of the most powerful aspects of quaternions is how they handle composition of rotations. If and are quaternions representing two rotations, then represents the composite rotation (first rotate by , then by )[7].
Compared to other methods of representing rotations, quaternions offer several advantages:
Performance comparisons show that quaternions typically require fewer operations than rotation matrices for vector rotation[7].
Quaternions have found numerous practical applications:
In 1924, it was discovered that the spin of electrons and other particles (known as spinors) can be described using quaternions in the form of Pauli spin matrices. Quaternions helped explain why rotations of electrons by 360° can be distinguished from those by 720° (the "Plate trick")[1].
Quaternions can be generalized to quaternion algebras over arbitrary fields. For a field with characteristic different from 2, and elements and in , a quaternion algebra can be defined with basis , , , and , where , , and [1].
The quaternions can be further extended to eight-dimensional octonions, which form the last normed division algebra over the real numbers. Unlike quaternions, octonions are non-associative. The next extension gives sixteen-dimensional sedenions, which have zero divisors and cannot form a normed division algebra[1][4].
Quaternions can be represented using 2×2 complex matrices or 4×4 real matrices, where quaternion addition and multiplication correspond to matrix addition and multiplication[1][6].
Just as there are complex integers (Gaussian integers), there are quaternion integers that include quaternions with all integer components and those with all components being odd multiples of . Within this subset, there are 24 quaternions that have multiplicative inverses, known as the units of the algebra[8].
The discovery of quaternions had a profound impact on mathematics. It led to the development of modern abstract algebra and vector analysis. As mathematician John Carlos Baez noted, "As soon as Hamilton invented the quaternions, everyone and his brother decided to make up their own number system"[4]. While many of these systems proved useless, they ultimately contributed to what we now consider modern algebra.
Quaternions represent a remarkable mathematical structure that bridges multiple areas of mathematics and has proven invaluable in numerous practical applications, particularly those involving three-dimensional rotations and transformations.