Introduction to Matrices 🧮
A matrix is a grid of numbers or mathematical expressions that we use to store vast quantities of data in such a way that allows us to easily identify and manipulate each piece of information in the matrix. Engineering, science and computing all use matrices in a huge number of applications i.e. data analysis, search engines or game theory. The size of the matrices is observed by the number of rows and columns and can be described as an “” matrix and written as
.
Example 1:
The matrix shown is a matrix.
The individual values in the matrix are referred to as expressions and are usually written in lowercase letters. The th row of the
th column can be written as
. The row is always stated first and then the column second.
is the first row of the first column, so from example 1 above
is the second row of the second column, so from example 1 above
is the first row of the fourth column, so from example 1 above
Special Matrices
Square Matrices Examples:
Matrices that have the same number of rows as they do columns are referred to as a square matrix.
Diagonal Matrices Examples:
Matrices that have zeros covering the entire matrix, apart from a line of expressions running from top-left to bottom-right of the matrix are called diagonal matrices as seen below.
Note: the middle value in the matrix is a zero; yet this still qualifies as a diagonal matrix.
Identity Matrices Examples:
If there are all ones in the top left to bottom right expressions, and all the other values in the matrix are zero, then we have an identity matrix. Identity matrices will usually be denoted with an .
Transposing Matrices
To transpose a matrix we interchange the rows and columns. When we transpose we say that we turn into
as seen in the example below.
Note: Next post on the subject is titled “Matrix Operations” and is available from this link >>