Let K {\displaystyle {}K} be a field and let M = ( a i j ) i j {\displaystyle {}M={\left(a_{ij}\right)}_{ij}} be an n × n {\displaystyle {}n\times n} -matrix over K {\displaystyle {}K} . Then
is called the trace of M {\displaystyle {}M} .