If $M\in S_n(\mathbb C)$ is a symmetric matrix of rank two then it can be decomposed as the sum of two rank one matrices
$ M=uv^T+vu^T,\text{ with } u,v\in\mathbb C^n. $
For given $M$ how do I compute $u,v$ ?
If $M\in S_n(\mathbb C)$ is a symmetric matrix of rank two then it can be decomposed as the sum of two rank one matrices
$ M=uv^T+vu^T,\text{ with } u,v\in\mathbb C^n. $
For given $M$ how do I compute $u,v$ ?
Disclaimer: As @MvG has rightfully remarked under the form of a comment situated below, the property was asked in a first version for real valued entries. He has given a case where such a decomposition can exist for complex entries.
I think it is still of interest to see that the property is false for matrices with real entries. Here is a counterexample.
Let $M$ be the $n \times n$ matrix with entries $0$ except $M_{11}=M_{22}=1$.
It is a symmetrical rank 2 matrix.
Let us assume that $M$ has a decomposition as given in the question. Its upper left $2 \times 2$ block, call it $N$, will be:
$$N:=\begin{pmatrix}a\\b\end{pmatrix}\begin{pmatrix}c & d\end{pmatrix}+\begin{pmatrix}c\\d\end{pmatrix}\begin{pmatrix}a & b\end{pmatrix}=\begin{pmatrix}2ac & (ad+bc)\\ (ad+bc) & 2bd\end{pmatrix}$$
($a,b$ and $c,d$ are the first coeff. of $u$ and $v$ resp.). Thus
$$\det(N)=4abcd-(ad+bc)^2=-(ad-bc)^2 \leq 0$$
But the upper-left $2 \times 2$ block of $M$ is $I_2$ with $\det(I_2)=1$.
Contradiction.
Going off the comment by @Cellular Sheaf referencing degenerate quadrics, I'm going to answer the question in the context of finding a pair of hyperplanes that represent solutions to the symmetric quadratic form $x^TMx=0$.
For the case of real symmetric $M$, there exists an eigendecomposition $M = Q^TDQ$ where is $Q$ is orthogonal consisting of the eigenvectors of $M$ and $D$ is the diagonal matrix of eigenvalues. For vectors $x$ and $y$ related by $y=Qx$, it can be seen that $x^TMx = y^TDy$. Since $M$ has rank 2, $D$ only has two nonzero elements which we can write as $\lambda_1$ and $\lambda_2$ leading to the following: $$y^T D y = \begin{bmatrix} y_1 \\ y_2 \\ \vdots \\ y_n \end{bmatrix}^T \begin{bmatrix} \begin{matrix} \lambda_1 & 0 \\ 0 & \lambda_2 \end{matrix} & \mathbf{0}_{2 \times (n-2)} \\ \mathbf{0}_{(n-2) \times 2} & \mathbf{0}_{(n-2) \times (n-2)} \end{bmatrix} \begin{bmatrix} y_1 \\ y_2 \\ \vdots \\ y_n \end{bmatrix} = 0$$ $$\lambda_1y_1^2 + \lambda_2y_2^2=0$$ $$y_1 = \pm\sqrt{\frac{-\lambda_2}{\lambda_1}}y_2$$ $$y_1 \mp \sqrt{\frac{-\lambda_2}{\lambda_1}}y_2 = 0$$ Since $y_1$ and $y_2$ are just the linear products of $x$ and a row of $Q$, the last equation gives the two hyperplanes we were seeking. If $M$ is indefinite, $\lambda_1$ and $\lambda_2$ have opposite signs, so the square root will be real and we would have two real hyperplanes. Otherwise, we would have two complex hyperplanes.
For the case of symmetric complex matrices, $M$ is no longer necessarily diagonalizable, so the eigendecomposition approach from before is not guaranteed to lead to a linear constraint (likely will result in a quadric). If we assume the specific case that $M$ is diagonalizable such that $M=Z^TDZ$ for complex orthogonal $Z$ (i.e. $Z^TZ=I$) and diagonal matrix $D$, then we can once again recover the two complex hyperplanes using the same approach as before.