Skip to content Skip to navigation Skip to collection information

Connexions

You are here: Home » Content » Applied Finite Mathematics » Matrices

Navigation

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Endorsed by Endorsed (What does "Endorsed by" mean?)

This content has been endorsed by the organizations listed. Click each link for a list of all content endorsed by the organization.
  • College Open Textbooks display tagshide tags

    This collection is included inLens: Community College Open Textbook Collaborative
    By: CC Open Textbook Collaborative

    Comments:

    "Reviewer's Comments: 'I recommend this book for undergraduates. The content is especially useful for those in finance, probability statistics, and linear programming. The course material is […]"

    Click the "College Open Textbooks" link to see all content they endorse.

    Click the tag icon tag icon to display tags associated with this content.

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • Bookshare

    This collection is included inLens: Bookshare's Lens
    By: Bookshare - A Benetech Initiative

    Comments:

    "Accessible versions of this collection are available at Bookshare. DAISY and BRF provided."

    Click the "Bookshare" link to see all content affiliated with them.

  • Featured Content display tagshide tags

    This collection is included inLens: Connexions Featured Content
    By: Connexions

    Comments:

    "Applied Finite Mathematics covers topics including linear equations, matrices, linear programming, the mathematics of finance, sets and counting, probability, Markov chains, and game theory."

    Click the "Featured Content" link to see all content affiliated with them.

    Click the tag icon tag icon to display tags associated with this content.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.
Download
x

Download collection as:

  • PDF
  • EPUB (what's this?)

    What is an EPUB file?

    EPUB is an electronic book format that can be read on a variety of mobile devices.

    Downloading to a reading device

    For detailed instructions on how to download this content's EPUB to your specific device, click the "(what's this?)" link.

  • More downloads ...

Download module as:

  • PDF
  • EPUB (what's this?)

    What is an EPUB file?

    EPUB is an electronic book format that can be read on a variety of mobile devices.

    Downloading to a reading device

    For detailed instructions on how to download this content's EPUB to your specific device, click the "(what's this?)" link.

  • More downloads ...
Reuse / Edit
x

Collection:

Module:

Add to a lens
x

Add collection to:

Add module to:

Add to Favorites
x

Add collection to:

Add module to:

 

Matrices

Module by: Rupinder Sekhon. E-mail the author

Summary: This chapter covers principles of matrices. After completing this chapter students should be able to: complete matrix operations; solve linear systems using Gauss-Jordan method; Solve linear systems using the matrix inverse method and complete application problems.

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 1

Problem 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 1
 
1994 1995
Chairs Tables Chairs Tables
San Jose 30 18 36 20
Hayward 20 12 24 18
Oakland 16 10 20 12
  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?

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×43×4 size 12{3 times 4} {} matrix does not have the same dimension as a 4×34×3 size 12{4 times 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 2

Problem 1

Given the matrices AA size 12{A} {}, BB size 12{B} {}, CC size 12{C} {} and DD size 12{D} {}, below

A=124231503B=213242361C=423D=234A=124231503 size 12{A= left [ matrix { 1 {} # 2 {} # 4 {} ## 2 {} # 3 {} # 1 {} ## 5 {} # 0 {} # 3{} } right ]} {}B=213242361 size 12{B= left [ matrix { 2 {} # - 1 {} # 3 {} ## 2 {} # 4 {} # 2 {} ## 3 {} # 6 {} # 1{} } right ]} {}C=423 size 12{C= left [ matrix { 4 {} ## 2 {} ## 3 } right ]} {}D=234 size 12{D= left [ matrix { - 2 {} ## - 3 {} ## 4 } right ]} {}
(3)

Find, if possible.

  1. A+BA+B size 12{A+B} {}
  2. CDCD size 12{C - D} {}
  3. A+DA+D size 12{A+D} {}.

Note:

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

Problem 1

Given the matrix AA size 12{A} {} and CC size 12{C} {} in Example 2, find 2A2A size 12{2A} {} and 3C3C size 12{ - 3C} {}.

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 4

Problem 1

Given A=234A=234 size 12{A= left [ matrix { 2 {} # 3 {} # 4{} } right ]} {} and B=abcB=abc size 12{B= left [ matrix { a {} ## b {} ## c } right ]} {}, find the product ABAB size 12{ ital "AB"} {}.

Example 5

Problem 1

Given A=234A=234 size 12{A= left [ matrix { 2 {} # 3 {} # 4{} } right ]} {} and B=567B=567 size 12{B= left [ matrix { 5 {} ## 6 {} ## 7 } right ]} {} , find the product ABAB size 12{ ital "AB"} {}.

Note:

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 6

Problem 1

Given A=234A=234 size 12{A= left [ matrix { 2 {} # 3 {} # 4{} } right ]} {} and B=536475B=536475 size 12{B= left [ matrix { 5 {} # 3 {} ## 6 {} # 4 {} ## 7 {} # 5{} } right ]} {} , find the product ABAB size 12{ ital "AB"} {}.

Example 7

Problem 1

Given A=234123A=234123 size 12{A= left [ matrix { 2 {} # 3 {} # 4 {} ## 1 {} # 2 {} # 3{} } right ]} {} and B=536475B=536475 size 12{B= left [ matrix { 5 {} # 3 {} ## 6 {} # 4 {} ## 7 {} # 5{} } right ]} {} , find the product ABAB size 12{ ital "AB"} {}.

Example 8

Problem 1

Given the matrices EE size 12{E} {}, FF size 12{F} {}, GG size 12{G} {} and HH size 12{H} {}, below

E=124231F=2132G=41H=31E=124231 size 12{E= left [ matrix { 1 {} # 2 {} ## 4 {} # 2 {} ## 3 {} # 1{} } right ]} {}F=2132 size 12{F= left [ matrix { 2 {} # - 1 {} ## 3 {} # 2{} } right ]} {}G=41 size 12{G= left [ matrix { 4 {} # 1{} } right ]} {}H=31 size 12{H= left [ matrix { - 3 {} ## - 1 } right ]} {}
(12)

Find, if possible.

  1. EFEF size 12{ ital "EF"} {}
  2. FEFE size 12{ ital "FE"} {}
  3. FHFH size 12{ ital "FH"} {}
  4. GHGH size 12{ ital "GH"} {}

We summarize matrix multiplication as follows:

In order for product ABAB size 12{ ital "AB"} {} to exist, the number of columns of AA size 12{A} {}, must equal the number of rows of BB size 12{B} {}. If matrix AA size 12{A} {} is of dimension m×nm×n size 12{m times n} {} and BB size 12{B} {} of dimension n×pn×p size 12{n times p} {}, the product will have the dimension m×pm×p size 12{m times p} {}. Furthermore, matrix multiplication is not commutative.

Example 9

Problem 1

Given the matrices RR size 12{R} {}, SS size 12{S} {}, and TT size 12{T} {} below.

R=102215231S=012310421T=230322110R=102215231 size 12{R= left [ matrix { 1 {} # 0 {} # 2 {} ## 2 {} # 1 {} # 5 {} ## 2 {} # 3 {} # 1{} } right ]} {}S=012310421 size 12{S= left [ matrix { 0 {} # - 1 {} # 2 {} ## 3 {} # 1 {} # 0 {} ## 4 {} # 2 {} # 1{} } right ]} {}T=230322110 size 12{T= left [ matrix { - 2 {} # 3 {} # 0 {} ## - 3 {} # 2 {} # 2 {} ## - 1 {} # 1 {} # 0{} } right ]} {}
(14)

Find 2RS3ST2RS3ST size 12{2 ital "RS" - 3 ital "ST"} {}.

In this chapter, we will be using matrices to solve linear systems. In Section 7, we will be asked to express linear systems as the matrix equation AX=BAX=B size 12{ ital "AX"=B} {}, where AA size 12{A} {}, XX size 12{X} {}, and BB size 12{B} {} are matrices. The matrix AA size 12{A} {} is called the coefficient matrix.

Example 10

Problem 1

Verify that the system of two linear equations with two unknowns:

ax+by=hax+by=h size 12{ ital "ax"+ ital "by"=h} {}
(20)
cx+dy=kcx+dy=k size 12{ ital "cx"+ ital "dy"=k} {}
(21)

can be written as AX=BAX=B size 12{ ital "AX"=B} {}, where

A=abcdX=xyand   B=hkA=abcd size 12{A= left [ matrix { a {} # b {} ## c {} # d{} } right ]} {}X=xy size 12{X= left [ matrix { x {} ## y } right ]} {}and   B=hk size 12{B= left [ matrix { h {} ## k } right ]} {}

Example 11

Problem 1

Express the following system as AX=BAX=B size 12{ ital "AX"=B} {}.

2x+3y4z=52x+3y4z=5 size 12{2x+"3y"–4z=5} {}
(26)
3x+4y5z=63x+4y5z=6 size 12{3x+4y - 5z=6} {}
(27)
5x6z=75x6z=7 size 12{5x - 6z=7} {}
(28)

Systems of Linear Equations; Gauss-Jordan Method

In this section, we learn to solve systems of linear equations using a process called the Gauss-Jordan method. The process begins by first expressing the system as a matrix, and then reducing it to an equivalent system by simple row operations. The process is continued until the solution is obvious from the matrix. The matrix that represents the system is called the augmented matrix, and the arithmetic manipulation that is used to move from a system to a reduced equivalent system is called a row operation.

Example 12

Problem 1

Write the following system as an augmented matrix.

2x+3y4z=52x+3y4z=5 size 12{2x+3y - 4z=5} {}
(30)
3x+4y5z=63x+4y5z=6 size 12{3x+4y - 5z= - 6} {}
(31)
4x+5y6z=74x+5y6z=7 size 12{4x+5y - 6z=7} {}
(32)

In the Section 2, we expressed the system of equations as AX=BAX=B size 12{ ital "AX"=B} {}, where AA size 12{A} {} represented the coefficient matrix, and BB size 12{B} {} the matrix of constant terms. As an augmented matrix, we write the matrix as ABAB size 12{ left [A \lline B right ]} {}. It is clear that all of the information is maintained in this matrix form, and only the letters xx size 12{x} {}, yy size 12{y} {} and zz size 12{z} {} are missing. A student may choose to write xx size 12{x} {}, yy size 12{y} {} and zz size 12{z} {} on top of the first three columns to help ease the transition.

Example 13

Problem 1

For the following augmented matrix, write the system of equations it represents.

135220353231135220353231 size 12{ left [ matrix { 1 {} # 3 {} # - 5 {} # \lline {} # 2 {} ## 2 {} # 0 {} # - 3 {} # \lline {} # - 5 {} ## 3 {} # 2 {} # - 3 {} # \lline {} # - 1{} } right ]} {}
(34)

Once a system is expressed as an augmented matrix, the Gauss-Jordan method reduces the system into a series of equivalent systems by employing the row operations. This row reduction continues until the system is expressed in what is called the reduced row echelon form. The reduced row echelon form of the coefficient matrix has 1's along the main diagonal and zeros elsewhere. The solution is readily obtained from this form.

The method is not much different form the algebraic operations we employed in the elimination method in the first chapter. The basic difference is that it is algorithmic in nature, and, therefore, can easily be programmed on a computer.

We will next solve a system of two equations with two unknowns, using the elimination method, and then show that the method is analogous to the Gauss-Jordan method.

Example 14

Problem 1

Solve the following system by the elimination method.

x+3y=7x+3y=7 size 12{x+3y=7} {}
(38)
3x+4y=113x+4y=11 size 12{3x+4y="11"} {}
(39)

Example 15

Problem 1

Solve the following system from Example 14 by the Gauss-Jordan method, and show the similarities in both methods by writing the equations next to the matrices.

x+3y=7x+3y=7 size 12{x+3y=7} {}
(47)
3x+4y=113x+4y=11 size 12{3x+4y="11"} {}
(48)

Now we list the three row operations the Gauss-Jordan method employs.

Row Operations

  1. Any two rows in the augmented matrix may be interchanged.
  2. Any row may be multiplied by a non-zero constant.
  3. A constant multiple of a row may be added to another row.

One can easily see that these three row operation may make the system look different, but they do not change the solution of the system.

The first row operation states that if any two rows of a system are interchanged, the new system obtained has the same solution as the old one. Let us look at an example in two equations with two unknowns. Consider the system

x+3y=7x+3y=7 size 12{x+3y=7} {}
(53)
3x+4y=113x+4y=11 size 12{3x+4y="11"} {}
(54)

We interchange the rows, and we get,

3x+4y=113x+4y=11 size 12{3x+4y="11"} {}
(55)
x+3y=7x+3y=7 size 12{x+3y=7} {}
(56)

Clearly, this system has the same solution as the one above.

The second operation states that if a row is multiplied by any non-zero constant, the new system obtained has the same solution as the old one. Consider the above system again,

x+3y=7x+3y=7 size 12{x+3y=7} {}
(57)
3x+4y=113x+4y=11 size 12{3x+4y="11"} {}
(58)

We multiply the first row by –3, we get,

- 3 x - 9 y = - 21 -3x-9y=-21
(59)
3x+4y=113x+4y=11 size 12{3x+4y="11"} {}
(60)

Again, it is obvious that this new system has the same solution as the original.

The third row operation states that any constant multiple of one row added to another preserves the solution. Consider our system,

x+3y=7x+3y=7 size 12{x+3y=7} {}
(61)
3x+4y=113x+4y=11 size 12{3x+4y="11"} {}
(62)

If we multiply the first row by – 3, and add it to the second row, we get,

x+3y=7x+3y=7 size 12{x+3y=7} {}
(63)
5y=105y=10 size 12{ - 5y= - "10"} {}
(64)

And once again, the same solution is maintained.

Now that we understand how the three row operations work, it is time to introduce the Gauss-Jordan method to solve systems of linear equations.

As mentioned earlier, the Gauss-Jordan method starts out with an augmented matrix, and by a series of row operations ends up with a matrix that is in the reduced row echelon form. A matrix is in the reduced row echelon form if the first nonzero entry in each row is a 1, and the columns containing these 1's have all other entries as zeros. The reduced row echelon form also requires that the leading entry in each row be to the right of the leading entry in the row above it, and the rows containing all zeros be moved down to the bottom.

We state the Gauss-Jordan method as follows.

Gauss-Jordan Method

  1. Write the augmented matrix.
  2. Interchange rows if necessary to obtain a non-zero number in the first row, first column.
  3. Use a row operation to make the entry in the first row, first column, a 1.
  4. Use row operations to make all other entries as zeros in column one.
  5. Interchange rows if necessary to obtain a nonzero number in the second row, second column. Use a row operation to make this entry 1. Use row operations to make all other entries as zeros in column two.
  6. Repeat step 5 for row 3, column 3. Continue moving along the main diagonal until you reach the last row, or until the number is zero. The final matrix is called the reduced row-echelon form.

Example 18

Problem 1

Solve the following system by the Gauss-Jordan method.

2x+y+2z=102x+y+2z=10 size 12{2x+y+2z="10"} {}
(65)
x+2y+z=8x+2y+z=8 size 12{x+2y+z=8} {}
(66)
3x+yz=23x+yz=2 size 12{3x+y - z=2} {}
(67)

Before we leave this section, we mention some terms we may need in the fourth chapter. The process of obtaining a 1 in a location, and then making all other entries zeros in that column, is called pivoting. The number that is made a 1 is called the pivot element, and the row that contains the pivot element is called the pivot row. We often multiply the pivot row by a number and add it to another row to obtain a zero in the latter. The row to which a multiple of pivot row is added is called the target row.

Systems of Linear Equations – Special Cases

Section Overview

In this section you will learn to:

  1. Determine the linear systems that have no solution.
  2. Solve the linear systems that have infinitely many solutions.

If we consider the intersection of two lines in a plane, three things can happen.

  1. The lines intersect in exactly one point. This is called an independent system.
  2. The lines are parallel, so they do not intersect. This is called an inconsistent system.
  3. The lines coincide, so they intersect at infinitely many points. This is a dependent system.

The figures below shows all three cases.

Figure 1
 The graph on the right depicts an independent system. The graph in the middle depicts an inconsistent system. The graph on the left depicts a dependent system.

Every system of equations has either one solution, no solution, or infinitely many solutions.

In the Section 4, we used the Gauss-Jordan method to solve systems that had exactly one solution. In this section, we will determine the systems that have no solution, and solve the systems that have infinitely many solutions.

Example 19

Problem 1

Solve the following system of equations.

x+y=7x+y=7 size 12{x+y=7} {}
(76)
x+y=9x+y=9 size 12{x+y=9} {}
(77)

At this stage, we are going to start using a calculator to row reduce the augmented matrix.

Example 20

Problem 1

Solve the following system of equations.

2x+3y4z=72x+3y4z=7 size 12{2x+3y - 4z=7} {}
(80)
3x+4y2z=93x+4y2z=9 size 12{3x+4y - 2z=9} {}
(81)
5x+7y6z=205x+7y6z=20 size 12{5x+7y - 6z="20"} {}
(82)

Example 21

Problem 1

Solve the following system of equations.

x+y=7x+y=7 size 12{x+y=7} {}
(85)
x+y=7x+y=7 size 12{x+y=7} {}
(86)

Example 22

Problem 1

Solve the following system of equations.

x+y+z=2x+y+z=2 size 12{x+y+z=2} {}
(88)
2x+yz=32x+yz=3 size 12{2x+y - z=3} {}
(89)
3x+2y=53x+2y=5 size 12{3x+2y=5} {}
(90)

Example 23

Problem 1

Solve the following system of equations.

x+2y3z=5x+2y3z=5 size 12{x+2y - 3z=5} {}
(94)
2x+4y6z=102x+4y6z=10 size 12{2x+4y - 6z="10"} {}
(95)
3x+6y9z=153x+6y9z=15 size 12{3x+6y - 9z="15"} {}
(96)

We summarize our discussion in the following table.

  1. If any row of the reduced row-echelon form of the matrix gives a false statement such as 0 = 1, the system is inconsistent and has no solution.
  2. If the reduced row echelon form has fewer equations than the variables and the system is consistent, then the system has an infinite number of solutions. Remember the rows that contain all zeros are dropped.
    1. If a system has an infinite number of solutions, the solution must be expressed in the parametric form.
    2. The number of arbitrary parameters equals the number of variables minus the number of equations.

Inverse Matrices

Section Overview

In this section you will learn to:

  1. Find the inverse of a matrix, if it exists.
  2. Use inverses to solve linear systems.

In this section, we will learn to find the inverse of a matrix, if it exists. Later, we will use matrix inverses to solve linear systems.

Definition of an Inverse: An n×nn×n size 12{n times n} {} matrix has an inverse if there exists a matrix BB size 12{B} {} such that AB=BA=InAB=BA=In size 12{ ital "AB"= ital "BA"=I rSub { size 8{n} } } {}, where InIn size 12{I rSub { size 8{n} } } {} is an n×nn×n size 12{n times n} {} identity matrix. The inverse of a matrix AA size 12{A} {}, if it exists, is denoted by the symbol A1A1 size 12{A rSup { size 8{ - 1} } } {}.

Example 24

Problem 1

Given matrices AA size 12{A} {} and BB size 12{B} {} below, verify that they are inverses.

A=4131B=1134A=4131 size 12{A= left [ matrix { 4 {} # 1 {} ## 3 {} # 1{} } right ]} {}B=1134 size 12{B= left [ matrix { 1 {} # - 1 {} ## - 3 {} # 4{} } right ]} {}
(98)

Example 25

Problem 1

Find the inverse of the following matrix.

A=3152A=3152 size 12{A= left [ matrix { 3 {} # 1 {} ## 5 {} # 2{} } right ]} {}
(100)

What you just witnessed is no coincidence. This is the method that is often employed in finding the inverse of a matrix.

We list the steps, as follows:

The Method for Finding the Inverse of a Matrix

  1. Write the augmented matrix AInAIn size 12{ left [A \lline I rSub { size 8{n} } right ]} {}.
  2. Write the augmented matrix in step 1 in reduced row echelon form.
  3. If the reduced row echelon form in 2 is InBInB size 12{ left [ matrix { I rSub { size 8{n} } {} # \lline {} # B{} } right ]} {}, then BB size 12{B} {} is the inverse of AA size 12{A} {}.
  4. If the left side of the row reduced echelon is not an identity matrix, the inverse does not exist.

Example 27

Problem 1

Given the matrix AA size 12{A} {} below, find its inverse.

A=111230021A=111230021 size 12{A= left [ matrix { 1 {} # - 1 {} # 1 {} ## 2 {} # 3 {} # 0 {} ## 0 {} # - 2 {} # 1{} } right ]} {}
(113)

Now that we know how to find the inverse of a matrix, we will use inverses to solve systems of equations. The method is analogous to solving a simple equation like the one below.

23x=423x=4 size 12{ { {2} over {3} } x=4} {}
(122)

Example 28

Problem 1

Solve the following equation .

23x=423x=4 size 12{ { {2} over {3} } x=4} {}
(123)

To solve a linear system, we first write the system in the matrix equation AX=BAX=B size 12{ ital "AX"=B} {}, where AA size 12{A} {} is the coefficient matrix, XX size 12{X} {} the matrix of variables, and BB size 12{B} {} the matrix of constant terms. We then multiply both sides of this equation by the multiplicative inverse of the matrix AA size 12{A} {}.

Consider the following example.

Example 29

Problem 1

Solve the following system

3x+y=33x+y=3 size 12{3x+y=3} {}
(126)
5x+2y=45x+2y=4 size 12{5x+2y=4} {}
(127)

Example 30

Problem 1

Solve the following system

xy+z=6xy+z=6 size 12{x - y+z=6} {}
(134)
2x+3y=12x+3y=1 size 12{2x+3y=1} {}
(135)
2y+z=52y+z=5 size 12{ - 2y+z=5} {}
(136)

Once again, we remind the reader that not every system of equations can be solved by the matrix inverse method. Although the Gauss-Jordan method works for every situation, the matrix inverse method works only in cases where the inverse of the square matrix exists. In such cases the system has a unique solution.

We summarize our discussion in the following table.

The Method for Finding the Inverse of a Matrix

  1. Write the augmented matrix AInAIn size 12{ left [ matrix { A {} # \lline {} # I rSub { size 8{n} } {} } right ]} {}.
  2. Write the augmented matrix in step 1 in reduced row echelon form.
  3. If the reduced row echelon form in 2 is InBInB size 12{ left [ matrix { I rSub { size 8{n} } {} # \lline {} # B{} } right ]} {}, then BB size 12{B} {} is the inverse of AA size 12{A} {}.
  4. If the left side of the row reduced echelon is not an identity matrix, the inverse does not exist.

The Method for Solving a System of Equations When a Unique Solution Exists

  1. Express the system in the matrix equation AX=BAX=B size 12{ ital "AX"=B} {}.
  2. To solve the equation AX=BAX=B size 12{ ital "AX"=B} {}, we multiply on both sides by A1A1 size 12{A rSup { size 8{ - 1} } } {}.

Application of Matrices in Cryptography

In this section, we see a use of matrices in encoding and decoding secret messages. There are many techniques used, but we will use a method that first converts the secret message into a string of numbers by arbitrarily assigning a number to each letter of the message. Next we convert this string of numbers into a new set of numbers by multiplying the string by a square matrix of our choice that has an inverse. This new set of numbers represents the coded message. To decode the message, we take the string of coded numbers and multiply it by the inverse of the matrix to get the original string of numbers. Finally, by associating the numbers with their corresponding letters, we obtain the original message.

In this section, we will use the correspondence where the letters A to Z correspond to the numbers 1 to 26, as shown below, and a space is represented by the number 27, and all punctuation is ignored.

Table 2
A B C D E F G H I J K L M
1 2 3 4 5 6 7 8 9 10 11 12 13
N O P Q R S T U V W X Y Z
14 15 16 17 18 19 20 21 22 23 24 25 26

Example 31

Problem 1

Use the matrix A=1213A=1213 size 12{A= left [ matrix { 1 {} # 2 {} ## 1 {} # 3{} } right ]} {} to encode the message: ATTACK NOW!

Example 32

Problem 1

Decode the following message that was encoded using matrix A=1213A=1213 size 12{A= left [ matrix { 1 {} # 2 {} ## 1 {} # 3{} } right ]} {}.

212637534554741015369212637534554741015369 size 12{ left [ matrix { "21" {} ## "26" } right ] left [ matrix { "37" {} ## "53" } right ] left [ matrix { "45" {} ## "54" } right ] left [ matrix { "74" {} ## "101" } right ] left [ matrix { "53" {} ## "69" } right ]} {}
(141)

Now suppose we wanted to use a 3×33×3 size 12{3 times 3} {} matrix to encode a message, then instead of dividing the letters into groups of two, we would divide them into groups of three.

Example 33

Problem 1

Using the matrix B=111101211B=111101211 size 12{B= left [ matrix { 1 {} # 1 {} # - 1 {} ## 1 {} # 0 {} # 1 {} ## 2 {} # 1 {} # 1{} } right ]} {}, encode the message: ATTACK NOW!

Example 34

Problem 1

Decode the following message that was encoded using matrix B=111101211B=111101211 size 12{B= left [ matrix { 1 {} # 1 {} # - 1 {} ## 1 {} # 0 {} # 1 {} ## 2 {} # 1 {} # 1{} } right ]} {}.

112043251041221414112043251041221414 size 12{ left [ matrix { "11" {} ## "20" {} ## "43" } right ] left [ matrix { "25" {} ## "10" {} ## "41" } right ] left [ matrix { "22" {} ## "14" {} ## "14" } right ]} {}
(150)

We summarize.

TO ENCODE A MESSAGE

  1. Divide the letters of the message into groups of two or three.
  2. Convert each group into a string of numbers by assigning a number to each letter of the message. Remember to assign letters to blank spaces.
  3. Convert each group of numbers into column matrices.
  4. Convert these column matrices into a new set of column matrices by multiplying them with a compatible square matrix of your choice that has an inverse. This new set of numbers or matrices represents the coded message.

TO DECODE A MESSAGE

  1. Take the string of coded numbers and multiply it by the inverse of the matrix that was used to encode the message.
  2. Associate the numbers with their corresponding letters.

Applications – Leontief Models

In the 1930's, Wassily Leontief used matrices to model economic systems. His models, often referred to as the input-output models, divide the economy into sectors where each sector produces goods and services not only for itself but also for other sectors. These sectors are dependent on each other and the total input always equals the total output. In 1973, he won the Nobel Prize in Economics for his work in this field. In this section we look at both the closed and the open models that he developed.

The Closed Model

As an example of the closed model, we look at a very simple economy, where there are only three sectors: food, shelter, and clothing.

Example 36

Problem 1

We assume that in a village there is a farmer, carpenter, and a tailor, who provide the three essential goods: food, shelter, and clothing. Suppose the farmer himself consumes 40% of the food he produces, and gives 40% to the carpenter, and 20% to the tailor. Thirty percent of the carpenter's production is consumed by himself, 40% by the farmer, and 30% by the carpenter. Fifty percent of the tailor's production is used by himself, 30% by the farmer, and 20% by the tailor. Write the matrix that describes this closed model.

Example 37

Problem 1

In Example 36 above, how much should each person get for his efforts?

Note:

The use of a calculator in solving these problems is strongly recommended. Although we at De Anza College use TI-85 calculators, any calculator that handles matrices will do.

The Open Model

The open model is more realistic, as it deals with the economy where sectors of the economy not only satisfy each others needs, but they also satisfy some outside demands. In this case, the outside demands are put on by the consumer. But the basic assumption is still the same; that is, whatever is produced is consumed.

Let us again look at a very simple scenario. Suppose the economy consists of three people, the farmer FF size 12{F} {}, the carpenter CC size 12{C} {}, and the tailor TT size 12{T} {}. A part of the farmer's production is used by all three, and the rest is used by the consumer. In the same manner, a part of the carpenter's and the tailor's production is used by all three, and rest is used by the consumer.

Let us assume that whatever the farmer produces, 20% is used by him, 15% by the carpenter, 10% by the tailor, and the consumer uses the other 40 billion dollars worth of the food. Ten percent of the carpenter's production is used by him, 25% by the farmer, 5% by the tailor, and 50 billion dollars worth by the consumer. Fifteen percent of the clothing is used by the tailor, 10% by the farmer, 5% by the carpenter, and the remaining 60 billion dollars worth by the consumer. We write the internal consumption in the following table, and express the demand as the matrix D.

Table 4
  FF size 12{F} {} produces CC size 12{C} {} produces TT size 12{T} {} produces
FF size 12{F} {} uses .20 .25 .10
CC size 12{C} {} uses .15 .10 .05
TT size 12{T} {} uses .10 .05 .15

The consumer demand for each industry in billions of dollars is given below.

D=405060D=405060 size 12{D= left [ matrix { "40" {} ## "50" {} ## "60" } right ]} {}
(169)

Example 38

Problem 1

In Example 37, what should be, in billions of dollars, the required output by each industry to meet the demand given by the matrix D?

Example 39

Problem 1

Suppose an economy consists of three industries FF size 12{F} {}, CC size 12{C} {}, and TT size 12{T} {}. Again, each of the industries produces for internal consumption among themselves, as well as, the external demand by the consumer. The following table gives information about the use of each industry's production in dollars.

Table 5
  F F size 12{F} {} C C size 12{C} {} T T size 12{T} {} Demand Total
F F size 12{F} {} 40 50 60 100 250
C C size 12{C} {} 30 40 40 110 220
T T size 12{T} {} 20 30 30 120 200

The first row says that of the $250 dollars worth of production by the industry FF size 12{F} {}, $40 is used by FF size 12{F} {}, $50 is used by CC size 12{C} {}, $60 is used by TT size 12{T} {}, and the remainder of $100 is used by the consumer. The other rows are described in a similar manner.

Find the proportion of the amounts consumed by each of the industries. In other words, find the matrix A.

Once again, the total input equals the total output.

We summarize as follows:

LEONTIEF'S MODELS

THE CLOSED MODEL

  1. All consumption is within the industries. There is no external demand.
  2. Input = Output Input = Output size 12{"Input"=" Output"} {}
    (187)
  3. X=AXX=AX size 12{X= ital "AX"} {} or IAX=0IAX=0 size 12{ left (I - A right )X=0} {}

THE OPEN MODEL

  1. In addition to internal consumption, there is an outside demand by the consumer.
  2. Input = Output Input = Output size 12{"Input "=" Output"} {}
    (188)
  3. X=AX+DX=AX+D size 12{X= ital "AX"+D} {} or X=IA1DX=IA1D size 12{X= left (I - A right ) rSup { size 8{ - 1} } D} {}

Collection Navigation

Content actions

Download:

Collection as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add:

Collection to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Reuse / Edit:

Reuse or edit collection (?)

Check out and edit

If you have permission to edit this content, using the "Reuse / Edit" action will allow you to check the content out into your Personal Workspace or a shared Workgroup and then make your edits.

Derive a copy

If you don't have permission to edit the content, you can still use "Reuse / Edit" to adapt the content by creating a derived copy of it and then editing and publishing the copy.

| Reuse or edit module (?)

Check out and edit

If you have permission to edit this content, using the "Reuse / Edit" action will allow you to check the content out into your Personal Workspace or a shared Workgroup and then make your edits.

Derive a copy

If you don't have permission to edit the content, you can still use "Reuse / Edit" to adapt the content by creating a derived copy of it and then editing and publishing the copy.