Applied Finite Mathematics by Rupinder Sekhon, UniqU, LLC - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Chapter 3Matrices

Chapter Overview

In this chapter, you will learn to:

  1. Do matrix operations.

  2. Solve linear systems using the Gauss-Jordan method.

  3. Solve linear systems using the matrix inverse method.

  4. Do application problems.

Introduction to Matrices

Section Overview

In this section you will learn to:

  1. Add and subtract matrices.

  2. Multiply a matrix by a scalar.

  3. Multiply two matrices.

A matrix is a rectangular array of numbers. Matrices are useful in organizing and manipulating large amounts of data. In order to get some idea of what matrices are all about, we will look at the following example.

Example 3.1

Fine Furniture Company makes chairs and tables at its San Jose, Hayward, and Oakland factories. The total production, in hundreds, from the three factories for the years 1994 and 1995 is listed in the table below.

Table 3.1.
 
19941995
ChairsTablesChairsTables
San Jose30183620
Hayward20122418
Oakland16102012
  1. Represent the production for the years 1994 and 1995 as the matrices A and B.

  2. Find the difference in sales between the years 1994 and 1995.

  3. The company predicts that in the year 2000 the production at these factories will double that of the year 1994. What will the production be for the year 2000?

  1. The matrices are as follows: _autogen-svg2png-0001.png_autogen-svg2png-0002.png

  2. We are looking for the matrix BA. When two matrices have the same number of rows and columns, the matrices can be added or subtracted entry by entry. Therefore, we get

    (3.1)
    _autogen-svg2png-0004.png
  3. We would like a matrix that is twice the matrix of 1994, i.e., 2A.

    Whenever a matrix is multiplied by a number, each entry is multiplied by the number.

    (3.2)
    _autogen-svg2png-0006.png

Before we go any further, we need to familiarize ourselves with some terms that are associated with matrices. The numbers in a matrix are called the entries or the elements of a matrix. Whenever we talk about a matrix, we need to know the size or the dimension of the matrix. The dimension of a matrix is the number of rows and columns it has. When we say a matrix is a 3 by 4 matrix, we are saying that it has 3 rows and 4 columns. The rows are always mentioned first and the columns second. This means that a 3×4 matrix does not have the same dimension as a 4×3 matrix. A matrix that has the same number of rows as columns is called a square matrix. A matrix with all entries zero is called a zero matrix. A square matrix with 1's along the main diagonal and zeros everywhere else, is called an identity matrix. When a square matrix is multiplied by an identity matrix of same size, the matrix remains the same. A matrix with only one row is called a row matrix or a row vector, and a matrix with only one column is called a column matrix or a column vector. Two matrices are equal if they have the same size and the corresponding entries are equal.

Matrix Addition and Subtraction

If two matrices have the same size, they can be added or subtracted. The operations are performed on corresponding entries.

Example 3.2

Given the matrices A, B, C and D, below

(3.3)
_autogen-svg2png-0013.png

Find, if possible.

  1. A+B

  2. CD

  3. A+D.

As we mentioned earlier, matrix addition and subtraction involves performing these operations entry by entry.

  1. We add each element of A to the corresponding entry of B.

    (3.4)
    _autogen-svg2png-0019.png
  2. Just like the problem above, we perform the subtraction entry by entry.

    (3.5)
    _autogen-svg2png-0020.png
  3. The sum A+D cannot be found because the two matrices have different sizes.

Two matrices can only be added or subtracted if they have the same dimension.

Multiplying a Matrix by a Scalar

If a matrix is multiplied by a scalar (a constant number), each entry is multiplied by that scalar.

Example 3.3

Given the matrix A and C in Example 3.2, find 2A and −3C.

To find 2A, we multiply each entry of matrix A by 2, and to find −3C, we multiply each entry of C by −3. The results are given below.

  1. We multiply each entry of A by 2.

    (3.6)
    _autogen-svg2png-0034.png
  2. We multiply each entry of C by −3.

    (3.7)
    _autogen-svg2png-0037.png

Multiplication of Two Matrices

To multiply a matrix by another is not as easy as the addition, subtraction, or scalar multiplication of matrices. Because of its wide use in application problems, it is important that we learn it well. Therefore, we will try to learn the process in a step by step manner. We first begin by finding a product of a row matrix and a column matrix.

Example 3.4

Given _autogen-svg2png-0038.png and _autogen-svg2png-0039.png, find the product _autogen-svg2png-0040.png.

The product is a 1×1 matrix whose entry is obtained by multiplying the corresponding entries and then forming the sum.

(3.8)
_autogen-svg2png-0042.png

Note that _autogen-svg2png-0043.png is a 1×1 matrix, and its only entry is 2a+3b+4c.

Example 3.5

Given _autogen-svg2png-0046.png and _autogen-svg2png-0047.png , find the product _autogen-svg2png-0048.png.

Again, we multiply the corresponding entries and add.

(3.9)
_autogen-svg2png-0049.png

In order for a product of a row matrix and a column matrix to exist, the number of entries in the row matrix must be the same as the number of entries in the column matrix.

Example 3.6

Given _autogen-svg2png-0050.png and _autogen-svg2png-0051.png , find the product _autogen-svg2png-0052.png.

We already know how to multiply a row matrix by a column matrix. To find the product _autogen-svg2png-0053.png, in this example, we will be multiplying the row matrix A to both the first and second columns of matrix B, resulting in a 1×2 matrix.

(3.10)
_autogen-svg2png-0057.png

We have just multiplied a 1×3 matrix by a matrix whose size is 3×2. So unlike addition and subtraction, it is possible to multiply two matrices with different dimensions as long as the number of entries in the rows of the first matrix are the same as the number of entries in columns of the second matrix.

Example 3.7

Given _autogen-svg2png-0060.png and _autogen-svg2png-0061.png , find the product _autogen-svg2png-0062.png.

This time we are multiplying two rows of the matrix A with two columns of the matrix B. Since the number of entries in each row of A are the same as the number of entries in each column of B, the product is possible. We do exactly what we did in Example 3.6. The only difference is that the matrix A has one more row.

We multiply the first row of the matrix A with the two columns of B, one at a time, and then repeat the process with the second row of A. We get

(3.11)
_autogen-svg2png-0071.png
Example 3.8

Given the matrices E, F, G and H, below

(3.12)
_autogen-svg2png-0076.png

Find, if possible.

  1. _autogen-svg2png-0077.png

  2. _autogen-svg2png-0078.png

  3. _autogen-svg2png-0079.png

  4. _autogen-svg2png-0080.png

  1. To find _autogen-svg2png-0081.png, we multiply the first row _autogen-svg2png-0082.png of E with the columns _autogen-svg2png-0084.png and _autogen-svg2png-0085.png of the matrix F, and then repeat the process by multiplying the other two rows of E with these columns of F. The result is as follows:

    (3.13)
    _autogen-svg2png-0089.png
  2. The product _autogen-svg2png-0090.png is not possible because the matrix F has two entries in each row, while the matrix E has three entries in each column. In other words, the matrix F has two columns, while the matrix E has three rows.

  3. _autogen-svg2png-0095.png

  4. _autogen-svg2png-0096.png

We summarize matrix multiplication as follows:

In order for product _autogen-svg2png-0097.png to exist, the number of columns of A, must equal the number of rows of B. If matrix