[example: General Linear Lie Algebra]
The vector space $M_n(F)$ becomes a Lie algebra when equipped with the commutator bracket
\begin{align*}
[A,B]=AB-BA.
\end{align*}
This Lie algebra is denoted $\mathfrak{gl}_n(F)$. The bracket is bilinear because matrix multiplication is bilinear: for $\lambda,\mu\in F$ and $A,A',B\in M_n(F)$,
\begin{align*}
[\lambda A+\mu A',B]=(\lambda A+\mu A')B-B(\lambda A+\mu A')=\lambda(AB-BA)+\mu(A'B-BA')=\lambda[A,B]+\mu[A',B].
\end{align*}
The same calculation in the second variable gives
\begin{align*}
[A,\lambda B+\mu B']=A(\lambda B+\mu B')-(\lambda B+\mu B')A=\lambda(AB-BA)+\mu(AB'-B'A)=\lambda[A,B]+\mu[A,B'].
\end{align*}
It is alternating, since for every $A\in M_n(F)$,
\begin{align*}
[A,A]=AA-AA=0.
\end{align*}
It remains to verify the Jacobi identity. For $A,B,C\in M_n(F)$, using the definition of the commutator and associativity of matrix multiplication,
\begin{align*}
[A,[B,C]]=A(BC-CB)-(BC-CB)A=ABC-ACB-BCA+CBA.
\end{align*}
Similarly,
\begin{align*}
[B,[C,A]]=B(CA-AC)-(CA-AC)B=BCA-BAC-CAB+ACB.
\end{align*}
And
\begin{align*}
[C,[A,B]]=C(AB-BA)-(AB-BA)C=CAB-CBA-ABC+BAC.
\end{align*}
Adding the three displayed expressions, the terms cancel in pairs:
\begin{align*}
(ABC-ABC)+(-ACB+ACB)+(-BCA+BCA)+(CBA-CBA)+(-BAC+BAC)+(-CAB+CAB)=0.
\end{align*}
Thus
\begin{align*}
[A,[B,C]]+[B,[C,A]]+[C,[A,B]]=0.
\end{align*}
So $M_n(F)$ with the commutator bracket is a Lie algebra, and the example shows that ordinary associative matrix multiplication produces a Lie bracket by measuring noncommutativity.
[/example]