From: 3blue1brown

Quaternions are a fascinating and often underappreciated number system in mathematics [00:00:21]. Just as complex numbers are a two-dimensional extension of real numbers, quaternions are a four-dimensional extension of complex numbers [00:00:27]. Beyond their abstract mathematical nature, quaternions possess a pragmatic utility for describing rotation in three dimensions and are even relevant to quantum mechanics [00:00:37].

Historical Context and Initial Resistance

The discovery of quaternions is a famous story in mathematics [00:00:45]. The Irish mathematician William Rowan Hamilton spent years attempting to find a three-dimensional number system analogous to complex numbers [00:00:48]. On October 16, 1843, while crossing the Broom Bridge in Dublin, Hamilton had a flash of insight: he needed to add not one, but two more imaginary dimensions to the complex numbers, resulting in three imaginary dimensions and a real number, all perpendicular to each other in a kind of fourth dimension [00:01:03]. He carved the crucial equation describing these three imaginary units into the bridge, where a plaque now stands in his honor [00:01:23].

In Hamilton’s era, the modern notion of vectors with dot and cross products was not standardized [00:01:32]. After his discovery, Hamilton strongly advocated for quaternions to be the primary language for describing three-dimensional space, even establishing an official quaternion society [00:01:42]. However, other mathematicians opposed this, finding the confusing notion of quaternion multiplication unnecessary for describing three dimensions [00:01:55]. This led to “old-timey trash talk,” with some legitimately calling them “evil” [00:02:05]. It is even believed that the Mad Hatter scene in Lewis Carroll’s “Alice in Wonderland” (Carroll was an Oxford mathematician) mocked quaternion multiplication through its chaotic table placement and references to their non-commutative nature [00:02:10].

Describing Three-Dimensional Rotations

Despite initial resistance, the computing industry spurred a resurgence of quaternions among programmers working with graphics, robotics, and anything involving orientation in 3D space [00:02:26].

Efficiency and Error Avoidance

Quaternions provide an elegant way to describe and compute 3D rotations [00:02:36]. They are computationally more efficient than other methods and help avoid numerical errors that can arise in alternative approaches [00:02:41].

Geometric Intuition

A quaternion’s magnitude (its distance from zero) is found by taking the square root of the sum of the squares of its four components [00:19:25]. When one quaternion q1 is multiplied by another q2, the effect is to scale q2 by the magnitude of q1, followed by a specific type of rotation in four dimensions [00:19:38]. These special 4D rotations correspond to the hypersphere of quaternions, which are a distance of 1 from the origin [00:19:50]. Unit quaternions (those with a magnitude of 1) are precisely those whose multiplication action is a pure rotation [00:19:59].

Quaternion Multiplication

Quaternion multiplication is not commutative, meaning the order of multiplication matters (e.g., i times j is k, but j times i is -k) [00:28:40]. This non-commutative property is common in groups of actions on space, such as rotations of a Rubik’s Cube [00:29:09].

While a single quaternion product doesn’t directly correspond to a 3D rotation in an obvious way (as it would morph the ijk unit sphere out of place), the description of 3D rotation using quaternions involves a process called “conjugation” [00:30:41].

Relevance in Quantum Mechanics

The 20th century saw quaternions gain appreciation from a new field: quantum mechanics [00:02:49]. The specific actions quaternions describe in four dimensions are highly relevant to how two-state systems, such as the spin of an electron or the polarization of a photon, are mathematically described [00:02:55].

Visualizing Quaternions (Supporting Understanding)

To build intuition for quaternion multiplication, a visualization approach uses stereographic projection [00:03:07]. This method maps a higher-dimensional sphere onto a lower-dimensional space [00:07:37].

Stereographic Projection

  • Circle to Line (for Linus the Linelander): Analogous to explaining complex numbers to a creature understanding only one dimension, a circle can be projected onto a line [00:07:45].
  • Sphere to Plane (for Felix the Flatlander): Similar to explaining 3D rotations to a two-dimensional creature, a sphere can be projected onto a plane [00:11:11].
  • 4D Hypersphere to 3D Space (for us): Quaternions, which live in four-dimensional space, can be visualized by stereographically projecting their unit hypersphere into our familiar 3D space [00:20:17].
    • The number 1 projects to the center of our space [00:20:48].
    • A whole sphere (passing through i, j, and k) on the unit hypersphere remains fixed in place under this projection, representing all unit quaternions with a real part of zero (Hamilton’s “unit vectors”) [00:21:01]. This sphere appears as a unit sphere in our 3D space [00:21:09].
    • The number negative 1 projects to “the point at infinity” [00:22:00].
    • Any plane seen in the projection represents a sphere on the hypersphere that passes through the number negative 1 [00:23:08].

Quaternion Multiplication Visualization

The action of multiplying a unit quaternion by any other quaternion from the left can be conceptualized as two distinct 2D rotations happening perpendicularly and in sync in four dimensions [00:23:24].

For example, when multiplying by i:

  • The circle passing through 1 and i (seen as a line in projection) rotates 90 degrees [00:23:38].
  • The circle perpendicular to it, passing through j and k, rotates 90 degrees according to a right-hand rule (thumb pointing from 1 to i, fingers curling in the direction of rotation) [00:24:03].

Similarly, for multiplication by j:

  • The circle through 1 and j rotates 90 degrees [00:27:19].
  • The perpendicular circle (through i and k) rotates 90 degrees according to the right-hand rule (thumb pointing from 1 to j) [00:27:38].

This dual rotation describes the rigid motion of the hypersphere [00:25:45]. While this discussion primarily focuses on left multiplication, right multiplication exists and follows a similar logic but uses a left-hand rule [00:29:44]. Understanding both left and right multiplication is crucial for comprehending how unit quaternions describe rotation in three dimensions through a process called conjugation [00:30:24].