Applicable Mathematics/Matrices
Matrices
A matrix is a rectangular array of numbers enclosed in brackets. In a notational sense, what differentiates a list of numbers from a matrix is its format. The numbers are listed so that each number has a certain, specific position between the brackets. Each number, or value, in a matrix is called an entry.
One of the main benefits of matrices is the properties which allow them to be manipulated and used for many different, but useful purposes.
Matrices can vary in size. This variation in size is called dimensions. Just like the dimensions of a room (width x length) matrices have dimensions (# of rows x # of columns). Thus, a 2 x 3 (read 2 by 3) matrix will have 2 rows and 3 columns.
Example of a 2 x 3 matrix:
Another term associated with matrices is address. Like your home address, an address describes where each value, or entry, of a matrix lives. The address is composed of the lowercase letter of the matrix with the row and column number (in that order) as subscripts.
Using the 2 x 3 matrix M as an example, the positions of the values are as follows:
A square matrix is any matrix that has the same number of rows as it does columns.
Example: 2 x 2 or 3 x 3 matrices are both square matrices.
Notice the numbers in red above in the 2 x 2 and 3 x 3 square matrices. These numbers are in the addresses of the main diagonal. The main diagonal of a square matrix is the diagonal from the upper left corner entry to the bottom right corner entry. Notice that only square matrices can have a main diagonal.
Adding and Subtracting Matrices
To add or subtract matrices, the sum or difference is found when addition or subtraction is applied to corresponding entries.
For example,
Since addition or subtraction takes place using corresponding entries, matrices must have the same dimensions in order to complete either operation.
Consider this operation
Now consider these matrices
Properties of Equality for Matrices
Commutative Property
Matrix addition is commutative
Associative Property
Matrix addition is associative.
Additive Identity
The zero matrix is the additive identity matrix 'O'.
A Zero matrix is a matrix in which all of the entries are zero.
Example of additive identity
Additive Inverse
It takes two matrices to form a pair of inverses. Two matrices are additive inverses if their sum is the zero matrix. This occurs when the additive inverse of a matrix contains the values opposite of each entry.
Multiplicative Identity Matrix
A multiplicative identity matrix, usually denoted by the letter I, is any square matrix that has a value of 1 in all the entries along the main diagonal and 0 in the remaining entries.
Any matrix multiplied by an identity matrix will retain it's original entries.
Multiplicative Inverse Matrix
If matrices where I is the identity matrix, then A and B are multiplicative inverses of one another.
Thus, matrices A and B are multiplicative inverses of each other.
Multiplying Matrices
Another useful property of matrices is called a scalar. A scalar is a number located outside of a single matrix. To apply the scalar to the matrix simply multiply each entry of the matrix by the scalar.
For example,
In order to multiply two matrices together it is necessary to pay attention to their dimensions. Matrices A and J can be multiplied only if the number of columns in A equals the number of rows in J. Also, another hint is that the product of an a x j and a j x b matrix is an a x b matrix. Notice that the number of columns from the first matrix equals the number of rows from the second matrix (j = j).
First, we'll look at how to test to see if we can multiply matrices.
Consider matrices Q and R.
Since the number of columns of matrix Q equals the rows of matrix R, these matrices can be multiplied. This will produce a 2 x 2 matrix.
Multiplying Q and R.
During this process, you may find your fingers and mental addition extremely helpful. You can use your left pointer finger to follow the entries in the rows of matrix Q and your right pointer finger to follow the columns of matrix R. To multiply matrices, add the products of consecutive entries in corresponding rows of matrix Q and columns of matrix R.
Determinants
Every square matrix has a value called a determinant. The determinant of a square matrix is the difference of the products of the diagonals.
The determinant of a 2 x 2 matrix can be found as follows:
The "down" diagonal is in red and the "up" diagonal is in blue. The up diagonals are always subtracted from the down diagonals.
Matrices that are larger than a 2 x 2 matrix become a little more complicated when finding the determinant but the same rules apply.
Let's find
When finding the determinant of a 3 x 3 matrix it is helpful to write the first two columns to the right side of the matrix like so,
As shown above in the 2x2 matrix, the numbers are color coded. The blue numbers, once again, indicate they are used in the up diagonals, the red are used in the down diagonals, and those in magenta are used in both.
Thus, the determinant of the above 3x3 matrix is -2872.