Computing the Fréchet Derivative of the Polar Decomposition

Evan S. Gawlik, Melvin Leok

Abstract

We derive iterative methods for computing the Fréchet derivative of the map which sends a full-rank matrix $A$ to the factor $U$ in its polar decomposition $A=UH$, where $U$ has orthonormal columns and $H$ is Hermitian positive definite. The methods apply to square matrices as well as rectangular matrices having more rows than columns. Our derivation relies on a novel identity that relates the Fréchet derivative of the polar decomposition to the matrix sign function $\mathrm{sign}(X) = X (X^2)^{-1/2}$ applied to a certain block matrix $X$.

Introduction

In linear algebra, the polar decomposition factors a matrix $A$ into two distinct components: $A = UH$. Here, $U$ possesses orthonormal columns (representing a rotation or reflection), and $H$ is a Hermitian positive definite matrix (representing scaling). This decomposition is a staple in fields ranging from computer animation to aerospace engineering, where it is used to characterize rotations and deformations.

While the decomposition itself is well-understood, calculating its Fréchet derivative presents a significant challenge. The Fréchet derivative, denoted as $L_P(A, E)$, quantifies how the unitary factor $U$ changes in response to a small perturbation $E$ in the original matrix $A$. This information is vital for sensitivity analysis and for applications requiring smooth interpolation between different rotations. Traditionally, this derivative has been computed using the Singular Value Decomposition (SVD). However, the SVD is computationally expensive for large-scale problems, and because the polar decomposition is not a "primary matrix function," standard differentiation shortcuts for functions like $e^A$ or $\log(A)$ do not directly apply.

Theoretical Framework: The Matrix Sign Identity

This research bridges the gap between the polar decomposition and primary matrix functions by establishing a novel identity. The authors demonstrate that the Fréchet derivative of the polar decomposition can be related to the matrix sign function, which is a primary matrix function.

The "aha!" moment of the paper is formalized in Theorem 2, which proves that the derivative $L_P(A, E)$ can be extracted from the top-right block of a specific $2n \times 2n$ matrix sign function. This theoretical breakthrough allows for the adaptation of efficient iterative techniques originally designed for the matrix sign function to the problem of polar decomposition.

Coupled Iterative Algorithms

Building on this identity, the authors propose a "coupled iteration" strategy. Rather than computing the derivative as a post-processing step, the algorithms simultaneously iterate toward both the unitary factor $U$ and the derivative $L_P(A, E)$. This follows the numerical analysis principle: if an iterative scheme exists to compute a function $f(A)$, differentiating that iteration often yields a valid scheme for the derivative.

Key Algorithms

  1. Coupled Newton Iteration: This is an extension of the classic Newton method for polar decomposition. For a square matrix, the iteration proceeds as:
  2. $X_{k+1} = \frac{1}{2}(X_k + X_k^{-*})$
    • $E_{k+1} = \frac{1}{2}(E_k - X_k^{-*} E_k^* X_k^{-*})$
  3. Coupled Newton-Schulz Iteration: A multiplication-based alternative that avoids matrix inversions, making it particularly suitable for parallel computing environments.

To ensure practical utility, the paper introduces techniques for scaling to accelerate convergence and rigorous termination criteria to ensure the derivative reaches double-precision accuracy without unnecessary iterations.

Performance and Numerical Results

The algorithms were rigorously tested using matrices from the MATLAB matrix gallery, including nearly orthogonal, binomial, and Frank matrices. The results highlight several key advantages:

  • Efficiency: For large matrices, the coupled Newton iteration is more computationally efficient than SVD-based methods or solving Lyapunov equations, provided it converges within five iterations.
  • Accuracy and Stability: The methods achieve near machine precision for well-conditioned matrices. Furthermore, the iterations are "automatically stable" because the mapping being computed is idempotent.
  • Versatility: Unlike previous methods restricted to square matrices, these iterative schemes naturally extend to rectangular matrices ($m \times n$) where $m \ge n$, either through direct iteration or an initial QR decomposition.

Limitations and Future Directions

Despite the efficiency of these methods, they face challenges when the matrix $A$ is nearly singular—specifically when the two smallest singular values are both extremely close to zero. In such cases, the derivative becomes highly sensitive, and the iteration may lose numerical accuracy.

Future work will focus on refining termination logic to better handle heavy roundoff errors and exploring the general conditions under which this "coupled iteration" strategy can be applied to other non-primary matrix functions.

Summary updated

Abstract

We derive iterative methods for computing the Fréchet derivative of the map which sends a full-rank matrix $A$ to the factor $U$ in its polar decomposition $A=UH$, where $U$ has orthonormal columns and $H$ is Hermitian positive definite. The methods apply to square matrices as well as rectangular matrices having more rows than columns. Our derivation relies on a novel identity that relates the Fréchet derivative of the polar decomposition to the matrix sign function $\mathrm{sign}(X) = X (X^2)^{-1/2}$ applied to a certain block matrix $X$.
BibTeX
@misc{gawlik2016computing,
  author = {Evan S. Gawlik and Melvin Leok},
  title = {{Computing the Fréchet Derivative of the Polar Decomposition}},
  year = {2016},
  eprint = {1608.04491},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1608.04491},
}
Figure