From part (c), we have that A = M D M − 1 {\displaystyle \displaystyle A=MDM^{-1}} where
and
Taking powers yields