[guided]We now determine the element $[x,y] \in \mathfrak{h}$ by testing it against arbitrary elements of $\mathfrak{h}$. Fix $h \in \mathfrak{h}$. The Killing form is invariant, meaning that for all $a,b,c \in \mathfrak{g}$,
\begin{align*}
\kappa([a,b],c)=\kappa(a,[b,c]).
\end{align*}
Applying this with $a=x$, $b=y$, and $c=h$ gives
\begin{align*}
\kappa([x,y],h)=\kappa(x,[y,h]).
\end{align*}
Because $y \in \mathfrak{g}_{-\alpha}$, the defining relation for the root space says
\begin{align*}
[h,y] = -\alpha(h)y.
\end{align*}
Antisymmetry of the Lie bracket then gives
\begin{align*}
[y,h] = \alpha(h)y.
\end{align*}
Substituting this into the invariant-form identity gives
\begin{align*}
\kappa([x,y],h)
&= \kappa(x,\alpha(h)y) \\
&= \alpha(h)\kappa(x,y).
\end{align*}
Now compare this with the element $\kappa(x,y)t_\alpha \in \mathfrak{h}$. By definition, $t_\alpha$ is the unique element of $\mathfrak{h}$ satisfying
\begin{align*}
\kappa(t_\alpha,h)=\alpha(h)
\end{align*}
for every $h \in \mathfrak{h}$. Hence
\begin{align*}
\kappa(\kappa(x,y)t_\alpha,h)
&= \kappa(x,y)\kappa(t_\alpha,h) \\
&= \kappa(x,y)\alpha(h).
\end{align*}
Thus $[x,y]$ and $\kappa(x,y)t_\alpha$ have the same Killing-form pairing with every $h \in \mathfrak{h}$, so
\begin{align*}
\kappa([x,y]-\kappa(x,y)t_\alpha,h)=0
\end{align*}
for every $h \in \mathfrak{h}$.[/guided]