Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I can't follow, assuming B is self adjoint I write A=PDP^+C so A-PDP^=C, the only way I see at the moment to arrive to your conclusion is by assuming that A is at least triangularizable under the same unitary transformation P, can you clarify?