Suppose $n \times n$ hermitian and positive semi-definite matrix $A$ is given. We can rewrite $A$ using its eigen decomposition, $$ A = U_A \Lambda_A U_A^H. $$ Now suppose matrix $B$ is also $n \times n$, hermitian, and positive semi-definite. However, the only information known about $B$ is that it has identical eigenvalues, i.e. if eigen decomposition of $B$ is $B = U_B \Lambda_B U_B^H$, then $\Lambda_B = c~I_n$ where $c$ is a scalar and $I_n$ is $n\times n$ unity matrix.
I need to know if the value of $$\mathrm{det}(I_n+BA)$$ is affected by the choice of eigenvector matrix, $U_B$. For example, I face a contradiction when I calculate it by two ways. First, relaying on the fact that $U_B$ is unitary, it is written as, $$\mathrm{det}(I_n +c~U_B~U_B^H~A) = \mathrm{det}(I_n+c~I_n~A)=\mathrm{det}(I_n+c~A).$$
A second interpretation is, $$\det(I_n + c~U_B~U_B^H~U_A~\Lambda_A~U_A^H) = \det\Big(I_n+c~\underbrace{(U_B^H~U_A)}_{V}~\Lambda_A~(U_B^H~U_A)^H\Big)\\ = \det(I_n +c~\underbrace{V~\Lambda_A~V^H}_{\bar{A}}).$$
I suspect that the choice of $U_B$ may alter eigenvalues of matrix $\bar{A}$. In the extreme, if $V = U_B^H~U_A = 0$ the expression reduces to zero which is not equal to $\det(I_n+c~A)$ necessarily.
How do you explain this contradiction?
Thank you, regards.