7. (a) Show that if A is a real symmetric matrix such that xi and x2 are eigenvectors with distinct eigenvalues Xi and X2, then xi and x2 are orthogonal. (Hint: Show
values.)
(b) Explain how, using this information, you can compute an orthonormal eigenbasis for A. (In particular, be sure to address the case that A has a repeated eigenvalue.)