Given a 3x3 symmetric matrix $A$ =\begin{pmatrix} 1 & -1 & -1 \\ -1 & 1 & 1 \\ -1 &1& 1 \end{pmatrix}
Find the orthogonal basis corresponding to the above matrix $A$
The eigen values for the above are coming out to be repeated i.e. 0 , 0 , 3
So for the symmetric matrix $A$=$PD$$P^{T}$ where $P$ is the eigen vectors corresponding to eigen values in $D$ and from $P$ matrix we get the orthonormal basis. But here the eigen vectors corresponding to the eigen value 0 would not be unique so the matrix $P$ formed will have linearly dependent columns.
Can the above approach be used if the eigen values are repeated and eigen vectors are not distinct.
No, the matrix $P$ will not have linearly dependent columns. If you compute the eigenvectors corresponding to the eigenvalue $0$; you will see that they are the linear combinations of $(1,1,0)$ and $(1,0,1)$. Besides, $(-1,1,1)$ is an eigenvector corresponding to the eigenvalue $3$. Can you take it from here?