[step:Use linearity of trace to prove bilinearity of the Killing form]
Fix $X_1,X_2,Y\in\mathfrak g$ and $a,b\in k$. Using the previous step, linearity of composition in the left factor, and linearity of trace on $\operatorname{End}_k(\mathfrak g)$, we obtain
\begin{align*}
B(aX_1+bX_2,Y)=\operatorname{tr}((a\operatorname{ad}_{X_1}+b\operatorname{ad}_{X_2})\circ\operatorname{ad}_Y).
\end{align*}
Thus
\begin{align*}
B(aX_1+bX_2,Y)=a\operatorname{tr}(\operatorname{ad}_{X_1}\circ\operatorname{ad}_Y)+b\operatorname{tr}(\operatorname{ad}_{X_2}\circ\operatorname{ad}_Y).
\end{align*}
By the definition of $B$,
\begin{align*}
B(aX_1+bX_2,Y)=aB(X_1,Y)+bB(X_2,Y).
\end{align*}
Similarly, for $X,Y_1,Y_2\in\mathfrak g$ and $a,b\in k$, linearity of $Y\mapsto\operatorname{ad}_Y$, linearity of composition in the right factor, and linearity of trace give
\begin{align*}
B(X,aY_1+bY_2)=\operatorname{tr}(\operatorname{ad}_X\circ(a\operatorname{ad}_{Y_1}+b\operatorname{ad}_{Y_2})).
\end{align*}
Therefore
\begin{align*}
B(X,aY_1+bY_2)=aB(X,Y_1)+bB(X,Y_2).
\end{align*}
So $B$ is bilinear.
[/step]