Let $n\ge 1$ be an integer, let $M$ be a smooth manifold, let $G\subset GL(n,\mathbb C)$ be a matrix Lie group with identity matrix $I_n$ and [Lie algebra](/page/Lie%20Algebra) $\mathfrak g\subset \mathfrak{gl}(n,\mathbb C)$, and let $A\in\Omega^1(M;\mathfrak g)$. Products of matrix-valued differential forms are taken using wedge product of differential forms and matrix multiplication of coefficients, and $\operatorname{tr}:\mathfrak{gl}(n,\mathbb C)\to\mathbb C$ denotes the ordinary matrix trace. Define the matrix Chern-Simons three-form by