Jump to content

Applicable Mathematics/Matrices

From Wikibooks, open books for an open world

Matrices

[edit | edit source]

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 (number of rows x number 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.

Take note of 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

[edit | edit source]

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

[edit | edit source]

Commutative Property

[edit | edit source]

Matrix addition is commutative

>______________

Associative Property

[edit | edit source]

Matrix addition is associative.

>_________

Additive Identity

[edit | edit source]

The zero matrix is the additive identity matrix 'O'.

A Zero matrix is a matrix in which all of the entries are zero.

Any matrix added to the matrix 'O' will retain its' same values.

Example of additive identity

Additive Inverse

[edit | edit source]

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

[edit | edit source]

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.

See Multiplying Matrices

Multiplicative Inverse Matrix

[edit | edit source]

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

[edit | edit source]

Back to Multiplicative Identity Matrix

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 must equal 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

[edit | edit source]

Every square matrix has a value called a determinant, and only square matrices have defined determinants. The determinant of a 2x2 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.

    • The "down" diagonal is not necessarily the same as the main diagonal mentioned earlier. The down diagonal happens to be the main diagonal for a 2 x 2 matrix but larger matrices will have multiple down diagonals and only one main diagonal.

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.

While square matrices of any size have a determinant, there is no way to extend this diagonal method of computing that determinant for a square matrix of size 4x4 or larger.

Practice Problems

[edit | edit source]

Questions

[edit | edit source]

Match the following terms with their definitions.

1. What is a matrix? A mold in which something, such as printing type or a phonograph record, is cast or shaped.

2. How can you change one format of an equation into another? If both funds are in the same fund" family" you can do an "Exchange"

3.How do you perform scalar multiplication? You just take a regular number called a "scalar" and multiply it on every entry in the matrix.

Properties

[edit | edit source]

Match the names of the properties with their equation equivalent.

____Additive Identity>______________1.

____ Additive Inverse>______________2.

____ Associative Property>__________3.

____ Commutative Property>_________4.

____ Multiplicative Identity>__________5.

____ Multiplicative Inverse>__________6.

Properties Solutions

Adding Matrices

[edit | edit source]

Add the matrices.

1)

2)

3)

4)

5)

6)

Adding Matrices Solutions

Subtracting Matrices

[edit | edit source]

Subtract the matrices.

1)

2)

3)

4)

5)

Subtracting Matrices Solutions

Multiplying Matrices

[edit | edit source]

Multiply the matrices or by the scalar to find the product.

1)

2)

3)

4)

5)

Multiplying Matrices Solutions

Determinants

[edit | edit source]

Find the determinant of the following matrices.

1)

2)

3)

4)

5)

Determinants Solutions

Solutions

[edit | edit source]

Definitions Solutions

[edit | edit source]

Match the following terms with their definitions.

8 address>_______________1. Diagonal from the upper left corner entry to the bottom right corner entry

6 determinant>____________2. A rectangular array of numbers enclosed in brackets

3 dimensions>____________3. Variation in size of a matrix

1 main diagonal>__________4. Any matrix that has the same number of rows as it does columns

2 matrix>________________5. Matrix in which all of the entries are zero

7 scalar>________________6. The difference of the products of the diagonals

4 square matrix>__________7. Number located outside of a single matrix which is multiplied by each entry of the matrix

5 zero matrix>____________8. Describes where each value, or entry, of a matrix lives

Properties Solutions

[edit | edit source]

Match the names of the properties with their equation equivalent.

4 Additive Identity>______________1.

5 Additive Inverse>______________2.

1 Associative Property>__________3.

3 Commutative Property>_________4.

2 Multiplicative Identity>__________5.

6 Multiplicative Inverse>__________6.

Adding Matrices Solutions

[edit | edit source]

Add the matrices.

1)

2)

3) Cannot be done because the matrices do not have the same dimensions.

4) Cannot be done because the matrices do not have the same dimensions.

5)

6)

Subtracting Matrices Solutions

[edit | edit source]

Subtract the matrices.

1)

2)

3)

4) Cannot be done because the matrices do not have the same dimensions.

5)

Multiplying Matrices Solutions

[edit | edit source]

Multiply the matrices or by the scalar to find the product.

1)

2)

3)

4)

5) Cannot be done because the number of columns from the first matrix does not equal the number of rows in the second matrix.

Determinants Solutions

[edit | edit source]

Find the determinant of the following matrices.

1) 30

2) 90

3) -198

4) -33

5) 42