[step:Split the compact Lie algebra into its central and semisimple summands]Let $\mathfrak g:=\operatorname{Lie}(G)$ denote the Lie algebra of $G$, and let
\begin{align*}
\mathfrak z:=\mathfrak z(\mathfrak g):=\{X\in\mathfrak g:[X,Y]=0\text{ for every }Y\in\mathfrak g\}
\end{align*}
be its center. Let
\begin{align*}
\mathfrak s:=[\mathfrak g,\mathfrak g]
\end{align*}
denote the derived Lie subalgebra, the real linear span of all brackets $[X,Y]$ with $X,Y\in\mathfrak g$.
Because $G$ is compact, averaging any real inner product on $\mathfrak g$ over $G$ with respect to normalized Haar probability measure gives an $\operatorname{Ad}(G)$-invariant real inner product $(\cdot,\cdot)_{\mathfrak g}$ on $\mathfrak g$ (citing a result not yet in the wiki: Existence of Ad-invariant inner product on compact Lie algebra). Its infinitesimal invariance says that, for all $X,Y,Z\in\mathfrak g$,
\begin{align*}
([X,Y],Z)_{\mathfrak g}+(Y,[X,Z])_{\mathfrak g}=0.
\end{align*}
If $Z\in\mathfrak z$, then $[X,Z]=0$ for every $X\in\mathfrak g$, and therefore
\begin{align*}
([X,Y],Z)_{\mathfrak g}=0
\end{align*}
for every $X,Y\in\mathfrak g$. Hence $\mathfrak s\subseteq \mathfrak z^\perp$.
Conversely, if $U\in\mathfrak s^\perp$, then for every $X,Y\in\mathfrak g$,
\begin{align*}
([U,X],Y)_{\mathfrak g}=-(X,[U,Y])_{\mathfrak g}.
\end{align*}
Since $[U,Y]\in\mathfrak s$ and $X$ is arbitrary, this identity alone does not yet force $[U,X]=0$. We use the standard compact Lie algebra structure theorem instead: a compact Lie algebra decomposes orthogonally as the [direct sum](/page/Direct%20Sum) of its center and its derived semisimple ideal (citing a result not yet in the wiki: Compact Lie algebra decomposition into center plus semisimple derived algebra). Applied to $\mathfrak g$, it gives
\begin{align*}
\mathfrak g=\mathfrak z\oplus\mathfrak s
\end{align*}
as an orthogonal direct sum of ideals, and $\mathfrak s$ is a compact semisimple Lie algebra.[/step]