Papers
Topics
Authors
Recent
Search
2000 character limit reached

Hamilton’s Quaternions: Algebra & Applications

Updated 14 January 2026
  • Hamilton’s quaternions are a four-dimensional non-commutative division algebra over the reals, defined by a unique multiplication law extending complex numbers.
  • They represent 3D rotations via unit quaternions, providing a double cover of SO(3) through SU(2) and enabling clear matrix representations.
  • Their properties underpin diverse applications from celestial mechanics and the Hopf fibration to modern quaternion neural networks with significant parameter reductions.

Hamilton’s quaternions constitute the first and most fundamental example of a non-commutative division algebra over the real numbers. Developed by William Rowan Hamilton in 1843, quaternions generalized the complex numbers to facilitate the description of three-dimensional geometry, particularly for applications involving rotations and kinematical transformations. Quaternions form a four-dimensional real vector space endowed with a specific multiplication law that makes them an associative algebra. Their algebraic, geometric, and analytic properties underpin a prevalence in mathematics, physics, engineering, and, more recently, machine learning contexts.

1. Algebraic Structure and Properties

A quaternion is defined as an element of the form

q=a+bi+cj+dk,a,b,c,dR,q = a + b\,i + c\,j + d\,k, \quad a,b,c,d\in\mathbb{R},

where $1, i, j, k$ are linearly independent over %%%%1%%%% and satisfy

i2=j2=k2=ijk=1.i^2 = j^2 = k^2 = i\,j\,k = -1.

This system is equipped with non-commutative multiplication determined by

i2=j2=k2=1,ij=k,ji=k,jk=i,kj=i,ki=j,ik=j,i^2 = j^2 = k^2 = -1, \quad ij = k, \quad ji = -k, \quad jk = i, \quad kj = -i, \quad ki = j, \quad ik = -j,

extended bilinearly and associatively. The multiplication table for the basis {1,i,j,k}\{1, i, j, k\} is as follows:

× 1 i j k
1 1 i j k
i i -1 k -j
j j -k -1 i
k k j -i -1

Addition and real scalar multiplication are defined componentwise. The quaternion conjugate is given by

q=abicjdk,\overline{q} = a - b\,i - c\,j - d\,k,

and the norm is

q2=qq=a2+b2+c2+d2.|q|^2 = q\,\overline q = a^2 + b^2 + c^2 + d^2.

For q0q \neq 0, the multiplicative inverse is

q1=qq2.q^{-1} = \frac{\overline{q}}{|q|^2}.

Thus, quaternions form a normed division algebra over R\mathbb{R}, and as a vector space,

HR4,\mathbb{H} \cong \mathbb{R}^4,

where the quaternion product reduces to complex multiplication when c=d=0c = d = 0, i.e., for the subalgebra CH\mathbb{C} \subset \mathbb{H} (Krishnaswami et al., 2016, Abel, 2021, Altamirano-Gomez et al., 2023).

2. Quaternionic Representation of Rotations in R3\mathbb{R}^3

“Pure” quaternions, those with vanishing scalar part (a=0a = 0), can be identified with vectors in R3\mathbb{R}^3: v=0+bi+cj+dk.v = 0 + b\,i + c\,j + d\,k. Given a unit quaternion q=a+uq = a + \mathbf{u}, with a2+u2=1a^2 + \|\mathbf{u}\|^2 = 1, the rotation of the vector vv is realized by the map

vqvq1.v \mapsto q\,v\,q^{-1}.

This action preserves the norm and orientation, implementing the rotation of vv about axis u/u\mathbf{u} / \|\mathbf{u}\| by angle θ\theta, where q=cos(θ/2)+sin(θ/2)(uxi+uyj+uzk)q = \cos(\theta/2) + \sin(\theta/2)(u_x i + u_y j + u_z k). The explicit formula,

Rq(v)=vcosθ+(u×v)sinθ+u(uv)(1cosθ),R_q(v) = v\cos\theta + (\mathbf{u}\times v)\sin\theta + \mathbf{u}(\mathbf{u}\cdot v)(1-\cos\theta),

reproduces the classical Rodrigues formula for rotations in three-dimensional space. Every rotation in SO(3)\mathrm{SO}(3) is represented in this manner via conjugation by a unit quaternion, with the pairs q,qq, -q yielding the same rotation (Krishnaswami et al., 2016, Abel, 2021).

3. Matrix Realization, Group Structure, and the Pauli Correspondence

Any quaternion q=a+bi+cj+dkq = a + b\,i + c\,j + d\,k can be represented as a 2×22 \times 2 complex matrix: F(q)=(a+bic+di c+diabi),F(q) = \begin{pmatrix} a + b\,i & c + d\,i \ -c + d\,i & a - b\,i \end{pmatrix}, with the property F(q1q2)=F(q1)F(q2)F(q_1 q_2) = F(q_1)F(q_2) and detF(q)=q2\det F(q) = |q|^2. The set of unit quaternions corresponds bijectively to SU(2)\mathrm{SU}(2), the group of 2×22 \times 2 unitary matrices of determinant 1: {q:q=1}SU(2).\{q: |q| = 1\} \leftrightarrow \mathrm{SU}(2). Conjugation vqvq1v \mapsto q v q^{-1} yields a surjective homomorphism SU(2)SO(3)\mathrm{SU}(2) \to \mathrm{SO}(3) with kernel {±1}\{\pm 1\}, indicating that SU(2)\mathrm{SU}(2) is the double cover of SO(3)\mathrm{SO}(3).

The canonical basis elements have a direct correspondence with the Pauli matrices under the identifications: iiσ3,jiσ2,kiσ1,i \mapsto i \sigma_3, \quad j \mapsto i \sigma_2, \quad k \mapsto i \sigma_1, where the Pauli matrices satisfy

σi2=I,σiσj=σjσi (ij),σ1σ2=iσ3.\sigma_i^2 = I, \quad \sigma_i \sigma_j = -\sigma_j \sigma_i \ (i \neq j), \quad \sigma_1\sigma_2 = i\sigma_3.

This correspondence is foundational in quantum theory, with the Lie algebra su(2)\mathfrak{su}(2) generated by these purely imaginary components (Krishnaswami et al., 2016).

4. Quaternionic Methods in Celestial Mechanics

Hamilton’s formulation enables a quaternionic regularization of the three-dimensional Kepler problem, circumventing the singularity at r=0r=0 using the Kustaanheimo–Stiefel (KS) transformation: qH    x=qqR3,q \in \mathbb{H} \implies x = q q^* \in \mathbb{R}^3, where the “star” conjugate qq^* inverts the sign on the kk-component. Under a new time parameter τ\tau with dt=rdτdt = r d\tau, the Kepler equation transforms into a four-dimensional linear oscillator equation. The general solution,

u(τ)=Acos(ωτ)+Bsin(ωτ),u(\tau) = A \cos(\omega \tau) + B \sin(\omega \tau),

can be mapped back to physical space, providing direct and transparent derivations of the three classical Kepler laws:

  1. Orbits are ellipses (x(E)=c+acosE+ibsinEx(E) = c + a\cos E + i\,b\sin E),
  2. Equal areas in equal times (Σ˙=12r2φ˙=const\dot\Sigma = \frac{1}{2}r^2 \dot\varphi = \text{const}),
  3. The harmonic law (T2/a3=constT^2 / a^3 = \text{const}), where TT is the period and aa is the semi-major axis (Abel, 2021).

5. The Hopf Fibration and Higher-Geometric Interpretations

The set of unit quaternions forms the three-sphere S3={qH:q=1}S^3 = \{q \in \mathbb{H} : |q| = 1\}. The Hopf fibration is the canonical mapping

h:S3S2,h(q)=qkq1,h: S^3 \to S^2, \quad h(q) = q k q^{-1},

where kk is a fixed unit imaginary quaternion. The fibers of this fibration are circles S1S^1, with

{qeiϕ:ϕ[0,2π)}S1,\{q e^{i\phi} : \phi \in [0, 2\pi)\} \cong S^1,

demonstrating that S3S^3 is a nontrivial S1S^1-bundle over S2S^2. In homogeneous coordinates (z1,z2)C2(z_1, z_2) \in \mathbb{C}^2, the Hopf map is

(z1,z2)(2(z1z2),  2(z1z2),  z12z22).(z_1, z_2) \mapsto \left(2 \Re(z_1 \overline{z_2}),\; 2 \Im(z_1 \overline{z_2}),\; |z_1|^2 - |z_2|^2\right).

This geometric structure has implications in topology, gauge theory, and geometric analysis (Krishnaswami et al., 2016).

6. Hamilton Product and Quaternionic Neural Networks

Quaternions, specifically the Hamilton product, have been adapted as computational primitives in Quaternion-Valued Convolutional Neural Networks (QCNNs), offering intrinsic interchannel coupling. Given

q1=a1+b1ı^+c1ȷ^+d1k^,q2=a2+b2ı^+c2ȷ^+d2k^,q_1 = a_1 + b_1 \hat{\imath} + c_1 \hat{\jmath} + d_1 \hat{k}, \quad q_2 = a_2 + b_2 \hat{\imath} + c_2 \hat{\jmath} + d_2 \hat{k},

the product is

q1q2=(a1a2b1b2c1c2d1d2) +(a1b2+b1a2+c1d2d1c2)ı^ +(a1c2b1d2+c1a2+d1b2)ȷ^ +(a1d2+b1c2c1b2+d1a2)k^.\begin{aligned} q_1 q_2 &= (a_1 a_2 - b_1 b_2 - c_1 c_2 - d_1 d_2) \ &\quad + (a_1 b_2 + b_1 a_2 + c_1 d_2 - d_1 c_2)\, \hat{\imath} \ &\quad + (a_1 c_2 - b_1 d_2 + c_1 a_2 + d_1 b_2)\, \hat{\jmath} \ &\quad + (a_1 d_2 + b_1 c_2 - c_1 b_2 + d_1 a_2)\, \hat{k}. \end{aligned}

QCNN architectures implement convolution, backpropagation, and optimization entirely within the quaternionic algebra, achieving parameter reductions of up to 4×\sim 4 \times compared to real-valued equivalents, while maintaining or surpassing performance in domains such as image classification, 3D shape recognition, and generative modeling. Empirical studies report, for example, that a quaternion ResNet with 932K parameters matches or outperforms its real-valued counterpart with 3.6M parameters on CIFAR-10 (94.56% vs 93.63% accuracy). Essential mechanisms include split-component activation functions (e.g., QReLU), quaternion batch normalization, and spectral normalization. Active research directions include generalization beyond quaternions, QCNNs in the frequency domain, analytic quaternionic activations, and group-theoretic frameworks unifying various convolutional implementations (Altamirano-Gomez et al., 2023).

7. Connections and Impact Across Mathematics and Applications

All foundational aspects of Hamilton’s quaternions—the non-commutative four-dimensional real algebra, unit-quaternion group structure, their conjugation-induced rotational action, explicit matrix realizations in SU(2)\mathrm{SU}(2), Pauli correspondence, Hopf fibration, and contemporary uses in quaternionic neural networks—trace directly to the defining axioms

i2=j2=k2=ijk=1i^2 = j^2 = k^2 = ijk = -1

and the multiplicative behavior of the quaternion modulus. A central implication is the unifying role of quaternions in expressing spatial symmetries, encoding rotations, and regularizing dynamical systems. Their contemporary computational adoption leverages these algebraic and geometric invariances to produce efficient, expressive, and interpretable models in machine learning, signal processing, and beyond (Krishnaswami et al., 2016, Abel, 2021, Altamirano-Gomez et al., 2023).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (3)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Hamilton Quaternion.