Let $A$ and $B$ be symmetric $n \times n$ matrices. Then $[A, B] = [B, X]$, where $X = $?
This is probably an easy question, but I cannot presently see the solution. I am not sure how determine what $X$ must necessarily be on the supposition that it satisfies $[A,B]=[B,X]$. I was able to show that $[A,B] = [B, -\frac{1}{2}(A+A^T)]$ for all $A$ and $B$ generally, and so if $A$ is symmetric, $[A,B] = [B,-A]$. This gives us a sufficient condition on $X$ for it to satisfy the equation, but I am having trouble showing that it is a necessary condition, that if the equation holds, then $X=-A$.
I could use a hint.
The linear matrix equation $\rm [A, B] = [B, X]$ can be written in the form
$$\rm B X - X B = A B - B A$$
Vectorizing, we obtain a system of $n^2$ linear equations in $n^2$ variables
$$\left( (\mathrm I_n \otimes \mathrm B) - (\mathrm B \otimes \mathrm I_n) \right) \mbox{vec} (\mathrm X) = \mbox{vec} (\mathrm A \mathrm B - \mathrm B \mathrm A)$$
Whether the solution $\rm X = -A$ is unique or not depends on the rank of the $n^2 \times n^2$ matrix above.