Matrices like any other mathematical tool make our life easier! Of course, they are not as simplistic as multiplication or division operations which help us every day in simple concepts such as finding out how much 2 kilograms of apple would cost, but they are still present around us in a myriad of other, more sophisticated processes. Every time you surf the web some data is encrypted and for that, we need... you guessed it – matrices! Economist makes a report or data is analyzed, once again matrices save the day. Imagine a manager in a grocery store who wants to compare clients according to their purchases. What do they do? They represent your receipt as a matrix where each element represents the number of a particular commodity purchased and afterward those matrices are compared! Now that you know how broadly applicable matrices are, we hope that you are motivated to start learning about different types of matrices and notions related to them!
Basic matrices
A square matrix is a matrix with the same number of rows and columns. For example, this is a square matrix :
A zero matrix is a matrix with every element equal to :
Diagonal matrices
The first non-zero element in each row is called the leading entry. In the example below, the leading entries are colored red:
A diagonal matrix is a square matrix where all leading entries are located at the diagonal from the top left to the bottom right corner (and have, therefore, indices ), and all other elements are zeroes. This diagonal is known as the main diagonal of the matrix, in the example below, the main diagonal is colored red:
A scalar matrix is a diagonal matrix whose main diagonal elements all contain the same scalar number value:
In non-square matrices the main diagonal elements, too, have indices :
The diagonal from the bottom left to the top right corner of a square matrix, containing elements , is, therefore, called the secondary diagonal:
An identity matrix (sometimes ambiguously called a unit matrix) of size is the square matrix with elements equal to on the main diagonal and elsewhere. It is denoted by , or simply by , if the size of a matrix does not matter. For example, below is a identity matrix.
The name of the identity matrix comes from the fact that multiplying by it would not change any matrix in any way, so the resulting matrix is identical to the original matrix. So, we can think of it as multiplying by if we draw parallels to multiplying numbers.
Triangular matrices
An upper triangular matrix is a square matrix where all elements below the main diagonal are equal to : , if . All other elements can be arbitrary (including 0):
A lower triangular matrix is a square matrix where all elements above the main diagonal are equal to : , if . Analogously to the upper triangular matrix, all other elements can be arbitrary:
A symmetric matrix is a square matrix where
Note that square zero matrices and identity matrices are special cases of scalar matrices, scalar matrices are special cases of diagonal matrices and diagonal matrices are in turn special cases of lower triangular, upper triangular, and symmetric matrices.
Conclusion
Let's summarize! In this topic, we got to know different types of matrices, why they are useful and how can we apply them in practice, here are some of the main points:
A square matrix is a matrix that has the same number of rows and columns and so has a dimension
Zero matrices are matrices that contain only s
A leading entry is the first nonzero element of every row in a matrix
A diagonal matrix has nonzero elements only on its diagonal, hence the name, while a matrix with nonzero elements on its secondary diagonal is called a secondary diagonal matrix
An identity matrix is a square diagonal matrix with all its nonzero elements equal to 1, if we multiply a matrix by an identity matrix we will get the same matrix
Triangular matrices are those matrices that have all their elements equal to s below or above the main diagonal