Introduction
Matrix Differential Equations (MDEs), such as differential Lyapunov and Riccati equations, are fundamental in fields like optimal control, model reduction, and signal processing. Solving these equations numerically, especially when they are "stiff," often requires exponential integrators. These integrators rely on the computation of $\varphi$-functions, which are generalizations of the matrix exponential.
For a standard matrix $A$, $\varphi$-functions are well-studied. However, many MDEs involve the Lyapunov operator $\mathcal{L}_A[X] = AX + XA^T$. Traditionally, researchers have handled these by vectorizing the operator, transforming a matrix problem into a much larger vector problem. This approach is computationally prohibitive due to the exponential growth in memory and processing requirements. This paper introduces philyap, a novel algorithm designed to compute $\varphi$-functions for Lyapunov operators directly and efficiently.
The philyap Algorithm
The core of the philyap algorithm is a modified scaling and squaring method combined with a truncated Taylor series expansion. Unlike standard matrix methods, philyap is specifically tailored for the structure of Lyapunov operators.
- Recursive Scaling and Doubling: The authors derived a new doubling formula for the $\varphi$-functions of Lyapunov operators. This allows the algorithm to scale the operator down to a region where a Taylor series approximation is accurate, and then recursively "square" (double) the result back to the original scale.
- Efficiency through Operator Properties: A key insight is that the exponential of a Lyapunov operator can be expressed using standard matrix exponentials: $e^{\mathcal{L}_A}[X] = e^A X e^{A^T}$. By leveraging this property, the algorithm avoids the complexity of full operator recursion, maintaining the computation within the matrix space.
Quasi-Backward Error Analysis
To ensure numerical stability and accuracy, the algorithm employs a rigorous quasi-backward error analysis. This framework automatically determines the optimal scaling parameter $s$ and the degree $m$ of the Taylor series expansion required to achieve a target precision, such as machine epsilon.
The table above provides the thresholds $\theta_{m+l}$ used in the selection process. These values represent the maximum allowable norm of the scaled operator for a given degree of the Taylor expansion to maintain the desired error bounds without wasting CPU cycles on unnecessary terms.
Experimental Evaluation
The performance of philyap was evaluated against state-of-the-art solvers, including MATLAB's expmv (matrix-vector exponential) and the Krylov-based kiops solver.
- Accuracy: In tests across 61 different operator benchmarks from the Matrix Computation Toolbox and classic literature,
philyapconsistently outperformed or matched the accuracy of existing methods. It was more accurate thanexpmvin over 80% of the test cases. - Computational Speedup: The efficiency gains are most evident in larger systems. For a $400 \times 400$ tridiagonal matrix (representing a 2D Laplacian),
philyapcompleted the computation in just 0.18 seconds. In contrast,kiopsrequired 16.09 seconds, andexpmvtook 131 seconds. This represents a ~90x speedup over specialized Krylov methods. - Application to Riccati Equations: When integrated into a Differential Riccati Equation (DRE) solver for an advection-diffusion model, the
philyap-based approach demonstrated superior speed and accuracy compared to traditional Backward Differentiation Formula (BDF) methods.
Conclusion and Future Directions
The philyap algorithm provides a significant advancement in the numerical treatment of Lyapunov operators. By avoiding vectorization and utilizing the inherent properties of the operator structure, it offers a high-performance alternative for solving stiff MDEs.
While highly effective for dense matrices of small-to-medium size (up to a few hundred rows/columns), the current implementation may face challenges with truly massive systems. Future research will focus on extending these techniques to large-scale sparse systems using low-rank approximations and exploring hybrid approaches with Krylov subspace methods to further enhance performance for high-dimensional problems.
Summary updated