M5.1 Matrices and Matrix Operations

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 (2×3) matrix, for example, might be used by television station executives to describe the channel-switching behavior of their 5 o’clock TV news audience:

A table shows the probabilities of switching channels for the example.

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

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:

Matrix A=(5721)Matrix B=(3638)

To find the sum of these 2×2 matrices, we add corresponding elements to create a new matrix:

An image shows the addition of two matrices.

To subtract matrix B from matrix A, we simply subtract the corresponding elements in each position:

An image shows the subtraction of two matrices.

Matrix Multiplication

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 A×B RESULTING
3×3 3×3 3×3
3×1 1×3 3×3
3×1 1×1 3×1
2×4 4×3 2×3
6×9 9×2 6×2
8×3 3×6 8×6

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
3×4 3×3
1×2 1×2
6×9 8×9
2×2 3×3

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:

Matrix A={523}Matrix B=(46)

This is a legitimate task, since matrix A is 3×1 and matrix B is 1×2. The product, matrix C, will have 3 rows and 2 columns (3×2).

Symbolically, the operation is Matrix A×Matrix B=Matrix C, or AB=C:

(abc)×(de)=(adaebdbecdce)
(M5-1)

Using the actual numbers, we have

(523)×(46)=(20308121218)=Matrix C

As a second example, let matrix R be (6 2 5) and matrix S be

(312)

Then the product, Matrix T=Matrix R×Matrix S, will be of dimension 1×1 because we are multiplying a 1×3 matrix by a 3×1 matrix:

MatrixR×MatrixS=MatrixT(1×3)(3×1)(1×1)(abc)×(def)=(ad+be+cf)(625)×(312)=[(6)(3)+(2)(1)+(5)(2)]=(30)

To multiply larger matrices, we combine the approaches of the preceding examples:

MatrixU=(6271)MatrixV=(3458)MatrixU×MatrixV=MatrixY(2×2)×(2×2)(2×2)(abcd)×(efgh)=(ae+bgaf+bhce+dgcf+dh)(6271)×(3458)=(18+1024+1621+528+8)=(28402636)
(M5-2)

To introduce a special type of matrix, called the identity matrix, let’s try a final multiplication example:

MatrixH=(4723)MatrixI=(1001)MatrixH×MatrixI=MatrixJ(4723)×(1001)=(4+00+72+00+3)=(4723)

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 J=Matrix H.

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.

Two tables show the number of plumbing fixtures to be installed and the cost per unit.

Job demand matrix×Fixture cost matrix=Job cost matrix

(3×3)(3×1)(3×1)(510220200153015)×($40$25$50)=($200+250+100$800+500+0$600+750+750)=($550$1,300$2,100)

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.

Matrix Notation for Systems of Equations

The use of matrices is helpful in representing a system of equations. For example, the system

2X1+3X2=244X1+2X2=36

can be written as

(2342)(X1X2)=(2436)

In general, we can express a system of equations as

AX=B

Matrix Transpose

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:

MatrixA=(526309148)Transpose of MatrixA=(531204698)MatrixB=(27038564)Transpose of MatrixB=(28750634)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset