Dear Linear Algebra Experts,
(I am preparing for my exams and not able to solve these questions. I apologize in advance if they are straightforward but please help me to grow and learn this field. I would really appreciate your help.)
If $A \in M_n$ and $B \in M_n$ are Hermitian matrices, i.e., $A = A^{\rm H} $ and $B = B^{\rm H}$, where $B$ is positive definite.
(1) Prove that there is a non-singular matrix $Y$ such that $Y^{\rm H}AY = C$ and $Y^{\rm H}BY = D$, where both $C$ and $D$ are diagonal matrices.
(2a) Given a matrix $Y$ such that $Y^{\rm H}AY = C$ and and $Y^{\rm H}BY = D$ where both $C$ and $D$ are diagonal (not necessarily related to the above question 1), prove that the columns of $Y$ are eigenvectors of the following generalized eigenvalue problem $$Ay=\lambda B y$$
(2b) Describe how the corresponding eigenvalues can be obtained from $C$ and $D$.
You transform $B$ to the identity with a matrix $Z$. $$Z^{\star}BZ=I$$ $A$ gets transformed to $Z^{\star}AZ$, still hermitian. Now, we don't want to alter the result from $B$ ( the indentity), but want to transform $Z^{\star}AZ$ to a diagonal. So we find $T$ unitary so that $T^{\star}(Z^{\star}AZ) T= C$. Note that $Z$ does not change the $I$. Summing up $$Z^{\star}T^{\star}ATZ = C \\ Z^{\star}T^{\star}BTZ = I$$ So we take $Y=TZ$.
The other question: if $$Y^{\star}AY=C\\ Y^{\star}BY= D$$ then $$AY =Y^{\star}\ ^{-1}C=Y^{\star}\ ^{-1}D \cdot D^{-1}C =BY \cdot D^{-1}C$$ We see that the column $i$ of $Y$ satisfies $$(Ac_i - \lambda_iB) c_i=0$$ where $D^{-1}C = \text{diag}(\lambda_i)$