Using what is listed below, I would like to prove that AP=DP. The problem is I keep running into errors whenever I try to compute $AP=DP$. I don't want to use use $p^{-1}AP=D$ because that is too long. 

Thank you.![enter image description here](https://i.stack.imgur.com/tfmok.png)