Introduction
Quaternions, a four-dimensional extension of complex numbers, are indispensable in fields requiring the representation of 3D rotations and multi-dimensional signal processing, such as wind profile analysis and polarized wave modeling. However, the non-commutative nature of quaternion multiplication ($pq \neq qp$) presents a significant barrier to applying standard calculus. Historically, researchers were forced to decompose quaternions into four real components to perform optimization—a process that is mathematically cumbersome and obscures the underlying algebraic structure. This paper introduces a comprehensive framework for quaternion matrix derivatives, extending the Generalized HR (GHR) calculus to provide a direct and systematic approach to optimization in the quaternion domain.
Methodology: Extending GHR Calculus to Matrices
The authors address the limitations of previous methods by generalizing scalar and vector quaternion calculus to full matrix variables. The framework is built upon several key methodological pillars:
- Matrix-Level Generalization: The theory defines derivatives for functions involving matrix variables $Q \in \mathbb{H}^{N \times S}$, moving beyond simple scalar or vector inputs.
- The Vec Operator and Jacobian: By employing the
vecoperator to stack matrix columns, the authors establish a formal definition for the quaternion Jacobian matrix. - Robust Product and Chain Rules: New rules are derived to ensure that the order of multiplication is strictly maintained, correcting errors found in earlier HR calculus literature.
- Differential Identification: A systematic "differential-to-derivative" mapping allows practitioners to identify complex derivatives by first finding the function's differential.
Key Insights: Correcting the Product Rule and Embracing Non-Analyticity
A pivotal contribution of this work is the correction of the "product rule flaw" present in previous HR calculus implementations. By utilizing GHR calculus, the authors demonstrate that derivatives of products must incorporate quaternion rotations to remain mathematically sound.
Furthermore, the framework explicitly supports "non-analytic" functions. In classical complex analysis, differentiability conditions are often too restrictive for engineering applications, where cost functions (such as squared error norms) are inherently non-analytic. This framework allows for the direct optimization of such functions without needing to resort to real-valued decomposition.
Central to the paper's utility is the provision of extensive "lookup tables" for common quaternion structures, mirroring the influential work of Magnus and Neudecker in the real-matrix domain.
Results and Applications
The theoretical framework is validated through the derivation of closed-form solutions and the optimization of foundational signal processing algorithms. A major result is the closed-form solution for the Quaternion Matrix Least Squares problem: $$Q = (A^H A)^{-1} A^H C B^H (B B^H)^{-1}$$ This result is fundamental for solving overdetermined linear systems directly in quaternion algebra. Additionally, the authors show that update rules for adaptive filters like the Quaternion Least Mean Square (QLMS) and the Quaternion Affine Projection Algorithm (QAPA) can be derived with significantly greater elegance and less error than traditional component-wise methods.
Conclusion
This paper establishes a rigorous and practical foundation for quaternion matrix calculus. By providing a systematic set of rules and tables, it enables researchers to optimize complex systems directly in the quaternion domain, preserving the mathematical integrity of the data and streamlining the development of advanced signal processing algorithms. Future work may extend these principles to second-order derivatives (Hessians) and even higher-order hypercomplex systems.
Summary updated