I have a question on the decomposition of polynomial matrices.
Suppose $A(\lambda) = \sum_{j=0}^L \lambda^j A_j$ is an $n \times n$ matrix of polynomials, which is Hermitian on the real axis $\lambda \in \mathbb{R}$. What is the necessary and sufficient condition to decompose $A(\lambda)$ into the following form: $$ A(\lambda) = U(\lambda) \begin{bmatrix}d_1(\lambda) & & \\ & \ddots & \\ & & d_n(\lambda) \end{bmatrix} U^\star(\lambda) $$ where $U(\lambda)$ is an $n\times n$ matrix of polynomials, and $D(\lambda) = \begin{bmatrix}d_1(\lambda) & & \\ & \ddots & \\ & & d_n(\lambda) \end{bmatrix} $ is a diagonal matrix of polynomials.
An easy necessary condition for such a decomposition to exist is that the number of positive/negative eigenvalues of $D(\lambda)$ has to be greater than or equal to that of $A(\lambda)$ for all $\lambda \in \mathbb{R}$. But is this also a sufficient condition?
A special case for such problems is the J-spectral decomposition, which considers the case that $D(\lambda)$ is a constant diagonal matrix $J = \begin{bmatrix}I_{p} & \\ & -I_{q}\end{bmatrix}$. According to the beautiful result from GohbergLancasterRodman, the necessary and sufficient condition for such a decomposition to exist is that the signature of $A(\lambda)$ is constant for all $\lambda \in \mathbb{R}\setminus\sigma(A)$, where $\sigma(A):=\{\lambda\in\mathbb{R}: det(A(\lambda))=0\}$. This condition is exactly the same as the necessary condition we stated above in the general case, which shows that the necessary condition is also sufficient for this special case.
Thanks!