Let $L$ be a Lie-algebra. I have to show that the Lie-bracket $[\,,]$ is associative if and only if $[x,y]\in C(L)$ for all $x,y\in L$, where $C(L)$ denotes the center of $L$.
I know that $[x,y]\in C(L)\Leftrightarrow [[x,y],z]=0\,\,\,\forall z\in L$. But from here I do not know how to continue.
Can anyone give me hint?
Suppose that the Lie bracket is associative: $[x,[y,z]]=[[x,y],z]$
We know that $[x,[y,z]]+[z,[x,y]]+[y,[z,x]]=0$
we have $[z,[x,y]]=-[[x,y],z]=-[x,[y,z]]=0$ replacing this in the Jacobi equality, we obtain $[y,[z,x]]=0$, which is equivalent to saying that for every $x,z, [z,x]$ is in the center of $L$.