A matrix is an array of numbers arranged in rows and columns. Matrices, which are usually enclosed in parentheses or brackets, are used as an effective means of presenting or summarizing business data.
The following 2-row by 3-column matrix, for example, might be used by television station executives to describe the channel-switching behavior of their 5 o’clock TV news audience:
The number in the first row and first column indicates that there is a 0.80 probability that someone currently watching the Channel 6 news will continue to do so next month. Similarly, 15% of Channel 6’s viewers are expected to switch to Channel 8 next month (row 1, column 2), 5% will not be watching the 5 o’clock news at all (row 1, column 3), and so on for the second row.
The remainder of this module deals with the numerous mathematical operations that can be performed on matrices. These include adding, subtracting, and multiplying matrices; transposing a matrix; finding a matrix’s determinant, cofactors, and adjoint; and finding the inverse of a matrix.
Matrix addition and subtraction are the easiest operations. Matrices of the same dimensions—that is, the same number of rows and columns—can be added or subtracted by adding or subtracting the numbers in the same row and column of each matrix. Here are two small matrices:
To find the sum of these matrices, we add corresponding elements to create a new matrix:
To subtract matrix B from matrix A, we simply subtract the corresponding elements in each position:
Matrix multiplication is an operation that can take place only if the number of columns in the first matrix equals the number of rows in the second matrix. Thus, matrices of the dimensions in the following table can be multiplied:
MATRIX A SIZE | MATRIX B SIZE | SIZE OF RESULTING |
---|---|---|
We also note, in the far right column in the table, that the outer two numbers in the matrix sizes determine the dimensions of the new matrix. That is, if an 8-row by 3-column matrix is multiplied by a 3-row by 6-column matrix, the resultant product will be an 8-row by 6-column matrix.
Matrices of the dimensions in the following table may not be multiplied:
MATRIX A SIZE | MATRIX B SIZE |
---|---|
To perform the multiplication process, we take each row of the first matrix and multiply its elements times the numbers in each column of the second matrix. Hence, the number in the first row and first column of the new matrix is derived from the product of the first row of the first matrix times the first column of the second matrix. Similarly, the number in the first row and second column of the new matrix is the product of the first row of the first matrix times the second column of the second matrix. This concept is not nearly as confusing as it may sound.
Let us begin by computing the value of matrix C, which is the product of matrix A times matrix B:
This is a legitimate task, since matrix A is and matrix B is The product, matrix C, will have 3 rows and 2 columns
Symbolically, the operation is or
Using the actual numbers, we have
As a second example, let matrix R be (6 2 5) and matrix S be
Then the product, will be of dimension because we are multiplying a matrix by a matrix:
To multiply larger matrices, we combine the approaches of the preceding examples:
To introduce a special type of matrix, called the identity matrix, let’s try a final multiplication example:
Matrix I is called an identity matrix. An identity matrix has 1s on its primary diagonal and 0s in all other positions. When multiplied by any matrix of the same square dimensions, it yields the original matrix, so in this case,
Matrix multiplication can also be useful in performing business computations. For example, Blank Plumbing and Heating is about to bid on three contract jobs: to install plumbing fixtures in a new university dormitory, an office building, and an apartment complex. The number of toilets, sinks, and bathtubs needed at each project is summarized in matrix notation as follows. The cost per plumbing fixture is also given. Matrix multiplication can be used to provide an estimate of the total cost of fixtures at each job.
Job demand cost matrix
Hence, Blank Plumbing can expect to spend $550 on fixtures at the dormitory project, $1,300 at the office building, and $2,100 at the apartment complex.
The use of matrices is helpful in representing a system of equations. For example, the system
can be written as
In general, we can express a system of equations as
The transpose of a matrix is a means of presenting data in a different form. To create the transpose of a given matrix, we simply interchange the rows with the columns. Hence, the first row of a matrix becomes its first column, the second row becomes its second column, and so on.
Two matrices are transposed here: