Lineer Cebir - System of Linear Equations and Matrices
Lineer Cebir - System of Linear Equations and Matrices
Lineer Cebir - System of Linear Equations and Matrices
1/30/08
9:42 AM
Page 67
SYSTEMS OF LINEAR
EQUATIONS AND
MATRICES
Florida Images/Alamy
87533_02_ch2_p067-154
68
1/30/08
9:42 AM
Page 68
(1)
where a, b, c, d, h, and k are real constants and neither a and b nor c and d are
both zero.
Now lets study the nature of the solution of a system of linear equations in
more detail. Recall that the graph of each equation in System (1) is a straight line in
the plane, so that geometrically the solution to the system is the point(s) of intersection of the two straight lines L1 and L2, represented by the first and second equations
of the system.
Given two lines L1 and L2, one and only one of the following may occur:
a. L1 and L2 intersect at exactly one point.
b. L1 and L2 are parallel and coincident.
c. L1 and L2 are parallel and distinct.
(See Figure 1.) In the first case, the system has a unique solution corresponding to
the single point of intersection of the two lines. In the second case, the system has
infinitely many solutions corresponding to the points lying on the same line.
Finally, in the third case, the system has no solution because the two lines do not
intersect.
y
y
L1
L1 L 2
L1
L2
L2
x
FIGURE 1
(a) Unique solution
(c) No solution
87533_02_ch2_p067-154
1/30/08
9:42 AM
Page 69
69
3x 212 x 12 12
3x 4 x 2 12
7x 14
x2
2x y = 1
5
(2, 3)
3x + 2y = 12
Finally, substituting this value of x into the expression for y obtained earlier gives
y 2(2) 1 3
x
5
FIGURE 2
A system of equations with one solution
Therefore, the unique solution of the system is given by x 2 and y 3. Geometrically, the two lines represented by the two linear equations that make up the
system intersect at the point (2, 3) (Figure 2).
We can check our result by substituting the values x 2 and y 3 into the
equations. Thus,
Note
2122 132 1
3122 2132 12
From the geometric point of view, we have just verified that the point (2, 3) lies on
both lines.
2. A system of equations with infinitely many solutions Consider the system
2x y 1
6x 3y 3
which is a true statement. This result follows from the fact that the second equation
is equivalent to the first. (To see this, just multiply both sides of the first equation
by 3.) Our computations have revealed that the system of two equations is equivalent to the single equation 2x y 1. Thus, any ordered pair of numbers (x, y)
satisfying the equation 2x y 1 (or y 2x 1) constitutes a solution to the
system.
In particular, by assigning the value t to x, where t is any real number, we find
that y 2t 1 and so the ordered pair (t, 2t 1) is a solution of the system. The
variable t is called a parameter. For example, setting t 0 gives the point (0, 1)
as a solution of the system, and setting t 1 gives the point (1, 1) as another solution. Since t represents any real number, there are infinitely many solutions of the
87533_02_ch2_p067-154
70
1/30/08
9:42 AM
Page 70
system. Geometrically, the two equations in the system represent the same line, and
all solutions of the system are points lying on the line (Figure 3). Such a system is
said to be dependent.
2x y = 1
6x 3y = 3
FIGURE 3
A system of equations with infinitely
many solutions; each point on the line is
a solution.
y
4
2x y = 1
y 2x 1
y 2x 4
6x 3y = 12
x
5
FIGURE 4
A system of equations with no solution
We see at once that the lines represented by these equations are parallel (each
has slope 2) and distinct since the first has y-intercept 1 and the second has
y-intercept 4 (Figure 4). Systems with no solutions, such as this one, are said to
be inconsistent.
87533_02_ch2_p067-154
1/30/08
9:42 AM
Page 71
71
venirs of each type should Ace Novelty make in order to use all of the available
time? Formulate but do not solve the problem. (We will solve this problem in
Example 7, Section 2.2.)
Solution
Machine I
Machine II
Machine III
Type B
Type C
2
1
2
1
3
1
1
2
2
180
300
240
Similar considerations on the use of machines II and III lead to the following
equations:
x 3y 2z 300
2 x y 2z 240
Since the variables x, y, and z must satisfy simultaneously the three conditions
represented by the three equations, the solution to the problem is found by solving the following system of linear equations:
2 x y z 180
x 3y 2z 300
2 x y 2z 240
(2)
Just as a linear equation in two variables represents a straight line in the plane, it can
be shown that a linear equation ax by cz d (a, b, and c not all equal to zero)
in three variables represents a plane in three-dimensional space. Thus, each equation
in System (2) represents a plane in three-dimensional space, and the solution(s) of the
system is precisely the point(s) of intersection of the three planes defined by the three
linear equations that make up the system. As before, the system has one and only one
solution, infinitely many solutions, or no solution, depending on whether and how the
planes intersect one another. Figure 5 illustrates each of these possibilities.
87533_02_ch2_p067-154
72
1/30/08
9:42 AM
Page 72
In Figure 5a, the three planes intersect at a point corresponding to the situation in
which System (2) has a unique solution. Figure 5b depicts a situation in which there
are infinitely many solutions to the system. Here, the three planes intersect along a
line, and the solutions are represented by the infinitely many points lying on this line.
In Figure 5c, the three planes are parallel and distinct, so there is no point in common
to all three planes; System (2) has no solution in this case.
P3
P3
P2
P2
P1
P1
P2
P1
FIGURE 5
(a) A unique solution
P3
(c) No solution
Note The situations depicted in Figure 5 are by no means exhaustive. You may
consider various other orientations of the three planes that would illustrate the three
possible outcomes in solving a system of linear equations involving three variables.
is a linear equation in the four variables, x1, x2, x3, and x4.
When the number of variables involved in a linear equation exceeds three,
we no longer have the geometric interpretation we had for the lower-dimensional
spaces. Nevertheless, the algebraic concepts of the lower-dimensional spaces generalize to higher dimensions. For this reason, a linear equation in n variables,
a1x1 a2x2 . . . an xn c, where a1, a2, . . . , an are not all zero, is referred to
as an n-dimensional hyperplane. We may interpret the solution(s) to a system comprising a finite number of such linear equations to be the point(s) of intersection of
the hyperplanes defined by the equations that make up the system. As in the case of
systems involving two or three variables, it can be shown that only three possibilities exist regarding the nature of the solution of such a system: (1) a unique solution, (2) infinitely many solutions, or (3) no solution.
87533_02_ch2_p067-154
1/30/08
9:42 AM
Page 73
73
2.1 Exercises
In Exercises 112, determine whether each system of linear equations has (a) one and only one solution, (b) infinitely many solutions, or (c) no solution. Find all solutions whenever they exist.
1. x 3y 1
4 x 3y 11
3.
x 4y 7
1
x 2y 5
2
2. 2 x 4y 5
3x 2y 6
4. 3x 4y 7
9x 12y 14
5. x 2y 7
2x y 4
3
6. x 2y 4
2
1
x y2
3
7. 2 x 5y 10
6 x 15y 30
8. 5x 6y 8
10x 12y 16
9. 4 x 5y 14
10.
2 x 3y 4
11. 2x 3y 6
6x 9y 12
12.
5
x
4
1
x
4
2
y3
3
5
y6
3
2
x y5
3
3
15
1
x y
2
4
4
has no solution.
14. Determine the value of k for which the system of linear
equations
3x 4 y 12
x ky 4
has infinitely many solutions. Then find all solutions corresponding to this value of k.
In Exercises 1527, formulate but do not solve the problem. You will be asked to solve these problems in the
next section.
87533_02_ch2_p067-154
74
1/30/08
9:42 AM
Page 74
Proteins (%)
Carbohydrates (%)
Iron (%)
Food I
10
10
5
Food II
6
12
4
Food III
8
6
12
87533_02_ch2_p067-154
1/30/08
9:42 AM
Page 75
75
2
x4
3
2
x 2a x 4b 6
3
x
4
x86
3
7
x 14
3
x6
Substituting this value of x into the expression for y obtained earlier, we have
y
x y z 200
2
16 2 4 0
3
y
z
200
x + 2y = 6
(6, 0)
x
2x 3y = 12
87533_02_ch2_p067-154
76
1/30/08
9:42 AM
Page 76
The GaussJordan elimination method is a suitable technique for solving systems of linear equations of any size. One advantage of this technique is its adaptability to the computer. This method involves a sequence of operations on a system of linear equations to obtain at each stage an equivalent systemthat is, a system having
the same solution as the original system. The reduction is complete when the original
system has been transformed so that it is in a certain standard form from which the
solution can be easily read.
The operations of the GaussJordan elimination method are
1. Interchange any two equations.
2. Replace an equation by a nonzero constant multiple of itself.
3. Replace an equation by the sum of that equation and a constant multiple of any
other equation.
To illustrate the GaussJordan elimination method for solving systems of linear
equations, lets apply it to the solution of the following system:
2x 4y 8
3x 2y 4
We begin by working with the first, or x, column. First, we transform the system
into an equivalent system in which the coefficient of x in the first equation is 1:
2 x 4y 8
3x 2y 4
x 2y 4
3x 2y 4
(3a)
Multiply the first equation
in (3a) by 12 (operation 2).
(3b)
(3c)
3x 6y 12
3x 2y
4
8y 8
Then, we obtain the following equivalent system in which the coefficient of y in the
second equation is 1:
x 2y 4
y1
(3d)
2
y1
x 2y 4
2y 2
x
2
This system is now in standard form, and we can read off the solution to System (3a)
as x 2 and y 1. We can also express this solution as (2, 1) and interpret it geometrically as the point of intersection of the two lines represented by the two linear
equations that make up the given system of equations.
Lets consider another example, involving a system of three linear equations and
three variables.
87533_02_ch2_p067-154
1/30/08
9:42 AM
Page 77
77
2 x 4y 6z 22
3x 8y 5z 27
x y 2z 2
x 2y 3z 11
3x 8y 5z 27
x y 2z 2
(4a)
(4b)
Next, we eliminate the variable x from all equations except the first:
x 2y 3z 11
2y 4z 6
x y 2z 2
x 2y 3z 11
2y 4z 6
3y 5z 13
(4c)
3x 6y 9z 33
3x 8y 5z 27
2y 4z 6
Replace the third equation in (4c)
by the sum of the first equation
the third equation:
(4d)
x 2y 3z 1 1
x y 2 z 2
3y 5z 13
Then we transform System (4d) into yet another equivalent system, in which the
coefficient of y in the second equation is 1:
x 2y 3z 11
y 2z 3
3y 5z 13
(4e)
We now eliminate y from all equations except the second, using operation 3 of the
elimination method:
x
7z 17
y 2z 3
3y 5z 13
7z 17
y 2z 3
11z 22
(4f)
x 2y 3 z 11
2y 4 z 6
x
7 z 17
Replace the third equation in (4f)
by the sum of (3) the second
equation the third equation:
3y 6z 9
3y 5z 13
11z 22
(4g)
87533_02_ch2_p067-154
78
1/30/08
9:42 AM
Page 78
7z 17
y 2z 3
z 2
Eliminating z from all equations except the third (try it!) then leads to the system
x
y
3
1
z2
(4h)
In its final form, the solution to the given system of equations can be easily read off!
We have x 3, y 1, and z 2. Geometrically, the point (3, 1, 2) is the intersection of the three planes described by the three equations comprising the given system.
Augmented Matrices
Observe from the preceding example that the variables x, y, and z play no significant
role in each step of the reduction process, except as a reminder of the position of each
coefficient in the system. With the aid of matrices, which are rectangular arrays of
numbers, we can eliminate writing the variables at each step of the reduction and thus
save ourselves a great deal of work. For example, the system
2 x 4y 6z 22
3x 8y 5z 27
x y 2z 02
(5)
4
8
1
6
22
5 27
2
2
(6)
The submatrix consisting of the first three columns of Matrix (6) is called the coefficient matrix of System (5). The matrix itself, (6), is referred to as the augmented
matrix of System (5) since it is obtained by joining the matrix of coefficients to the
column (matrix) of constants. The vertical line separates the column of constants from
the matrix of coefficients.
The next example shows how much work you can save by using matrices instead
of the standard representation of the systems of linear equations.
EXAMPLE 2 Write the augmented matrix corresponding to each equivalent system given in (4a) through (4h).
Solution
Equivalent System
Augmented Matrix
a. 2 x 4y 6z 22
3x 8y 5z 27
x y 2z 2
2
3
1
4
8
1
6 22
5 27
2
2
(7a)
x 2y 3z 11
3x 8y 5z 27
x y 2z 2
1
3
1
2
8
1
3 11
5 27
2
2
(7b)
b.
87533_02_ch2_p067-154
1/30/08
9:42 AM
Page 79
79
c.
x 2y 3z 11
2y 4z 6
x y 2z 2
1
0
1
2
2
1
3
11
4 6
2
2
(7c)
d. x 2y 3z 11
2y 4z 6
3y 5z 13
1
0
0
2
2
3
3
11
4 6
5
13
(7d)
e. x 2y 3z 11
y 2z 3
3y 5z 13
1
0
0
2
1
3
3
11
2 3
5
13
(7e)
7z 17
y 2z 3
3y 5z 13
1
0
0
0
1
3
7
17
2 3
5
13
(7f)
17z 17
y 12z 3
11z 22
1
0
0
0
1
0
7
17
2 3
11
22
(7g)
3
y
1
z 2
1
0
0
0
1
0
0 3
0 1
1 2
(7h)
f. x
g. x
h. x
1. Each row consisting entirely of zeros lies below all rows having nonzero
entries.
2. The first nonzero entry in each (nonzero) row is 1 (called a leading 1).
3. In any two successive (nonzero) rows, the leading 1 in the lower row lies to
the right of the leading 1 in the upper row.
4. If a column in the coefficient matrix contains a leading 1, then the other
entries in that column are zeros.
0
1
0
0 0
0 0
1 3
1
b. 0
0
0
1
0
0 4
0 3
0 0
1
c. 0
0
2
0
0
0 0
1 0
0 1
0
d. 1
0
1
0
0
2 2
0 3
1
2
1
e. 0
0
2
0
0
0 0
1 3
2 1
1
f. 0
0
0 4
3 0
0 0
0
g. 1
0
0
0
1
0 0
0 3
0 2
87533_02_ch2_p067-154
80
1/30/08
9:42 AM
Page 80
Solution
d. This matrix is not in row-reduced form. Conditions 3 and 4 are violated: The
leading 1 in row 2 lies to the left of the leading 1 in row 1. Also, column 3 contains a leading 1 in row 3 and a nonzero element above it.
e. This matrix is not in row-reduced form. Conditions 2 and 4 are violated: The first
nonzero entry in row 3 is a 2, not a 1. Also, column 3 contains a leading 1 and
has a nonzero entry below it.
f. This matrix is not in row-reduced form. Condition 2 is violated: The first nonzero
entry in row 2 is not a leading 1.
g. This matrix is not in row-reduced form. Condition 1 is violated: Row 1 consists
of all zeros and does not lie below the nonzero rows.
The foregoing discussion suggests the following adaptation of the GaussJordan
elimination method in solving systems of linear equations using matrices. First, the
three operations on the equations of a system (see page 76) translate into the following row operations on the corresponding augmented matrices.
Row Operations
Unit Column
For example, in the coefficient matrix of (7d), only the first column is in unit
form; in the coefficient matrix of (7h), all three columns are in unit form. Now, the
sequence of row operations that transforms the augmented matrix (7a) into the equivalent matrix (7d) in which the first column
2
3
1
87533_02_ch2_p067-154
1/30/08
9:42 AM
Page 81
81
is called pivoting the matrix about the element (number) 2. Similarly, we have pivoted about the element 2 in the second column of (7d), shown circled,
2
2
3
in order to obtain the augmented matrix (7g). Finally, pivoting about the element 11
in column 3 of (7g)
7
2
11
leads to the augmented matrix (7h), in which all columns to the left of the vertical line
are in unit form. The element about which a matrix is pivoted is called the pivot
element.
Before looking at the next example, lets introduce the following notation for the
three types of row operations.
5 9
` d
3 5
3
2
3
2
5 9
` d
3 5
1
3 R1
5
3
1
2
3
d
5
R2 2R1
5
3
13
1
0
3
d
1
The first column, which originally contained the entry 3, is now in unit form, with
a 1 where the pivot element used to be, and we are done.
In the first solution, we used operation 2 to obtain a 1
where the pivot element was originally. Alternatively, we can use operation 3 as
follows:
Alternate Solution
c
Note
3
2
5 9
` d
3 5
R1 R2
1
2
2
4
` d
3
5
R2 2R1
1
0
2
4
`
d
1
3
1
0
5
3
13
3
d
1
and
1
0
2
4
`
d
1
3
87533_02_ch2_p067-154
82
1/30/08
9:42 AM
Page 82
look quite different, but they are in fact equivalent. You can verify this by observing
that they represent the systems of equations
x
5
y
3
x 2y
and
1
y 1
3
y 3
respectively, and both have the same solution: x 2 and y 3. Example 4 also
shows that we can sometimes avoid working with fractions by using an appropriate
row operation.
A summary of the GaussJordan method follows.
The GaussJordan Elimination Method
(8)
3
2
1
2
2
2
8 9
1 3
3 8
R1 R2
1
2
1
0
2
2
9 12
1 3
3
8
R2 2R1
R3 R1
1
0
0
0
2
2
9
12
19 27
12 4
R2 4 R3
1
0
0
0
2
2
9
12
12 4
19
27
1
0
0
0
1
2
9
12
6 2
19
27
1
2 R2
87533_02_ch2_p067-154
1/30/08
9:42 AM
Page 83
R3 2R2
1
31 R3
R1 9R3
R2 6R3
1
0
0
0
1
0
9
12
6 2
31
31
1
0
0
0
1
0
9
12
6 2
1
1
1
0
0
0
1
0
0 3
0 4
1 1
83
The solution to System (8) is given by x 3, y 4, and z 1. This may be verified by substitution into System (8) as follows:
3132 2142 8112 9
2132 2142 1
3
3 2142 3112 8
1
0
2
2
3
3 1
1 2
Observe that column 1 is in unit form. The next step in the GaussJordan elimination procedure calls for obtaining a nonzero element in the second position of
row 2. If you use row 1 (which is above the row under consideration) to help you
obtain the pivot, you might proceed as follows:
1
0
0
1
0
2
2
3
3 1
1 2
R2 4 R1
0
1
0
0
1
2
3
1
2 3
1 2
As you can see, not only have we obtained a nonzero element to serve as the next
pivot, but it is already a 1, thus obviating the next step. This seems like a good
move. But beware, we have undone some of our earlier work: Column 1 is no
longer a unit column where a 1 appears first. The correct move in this case is to
interchange row 2 with row 3 in the first augmented matrix.
The next example illustrates how to handle a situation in which the first entry in
row 1 of the augmented matrix is zero.
87533_02_ch2_p067-154
84
1/30/08
9:42 AM
Page 84
0
3
5
2
6
2
3
7
12 3
2 7
R1 4 R2
1
3 R1
R3 5R1
1
2 R2
R1 2R2
R3 12R2
1
40 R3
R1 7R3
R2 32 R3
3
0
5
6
2
2
12 3
3 7
2 7
1
0
5
2
2
2
4 1
3 7
2 7
1
0
0
2
2
12
4 1
3 7
22 2
1
0
0
2
1
12
4
1
0
0
0
1
0
7
1
0
0
0
1
0
7
1
0
0
0
1
0
0 1
0 2
1
1
3
2
22
3
2
40
3
2
1
7
2
2
8
7
2
40
8
7
2
The solution to the system is given by x 1, y 2, and z 1; this may be verified
by substitution into the system.
APPLIED EXAMPLE 7 Manufacturing: Production Scheduling
Complete the solution to Example 1 in Section 2.1, page 70.
Solution To complete the solution of the problem posed in Example 1, recall
that the mathematical formulation of the problem led to the following system of
linear equations:
2 x y z 180
x 3y 2z 300
2 x y 2z 240
where x, y, and z denote the respective numbers of type-A, type-B, and type-C
souvenirs to be made.
87533_02_ch2_p067-154
1/30/08
9:42 AM
Page 85
85
Solving the foregoing system of linear equations by the GaussJordan elimination method, we obtain the following sequence of equivalent augmented matrices:
2
1
2
1
3
1
1 180
2 300
2 240
R1 4 R2
1
2
2
3
1
1
R2 2R1
R3 2R1
1
0
0
3
5
5
1
0
0
3
1
5
15 R2
2 300
1 180
2 240
2
300
3 420
2 360
2
3
5
2
300
84
360
1
5
3
5
R1 3R2
R3 5R2
1
0
0
0
1
0
48
84
1 60
R1 15 R3
R2 35 R3
1
0
0
0
1
0
0 36
0 48
1 60
Thus, x 36, y 48, and z 60; that is, Ace Novelty should make 36 type-A
souvenirs, 48 type-B souvenirs, and 60 type-C souvenirs in order to use all available machine time.
x 2y 3z 3
3x 2y 4z 12
ii. cRi
iii. Ri aRj
87533_02_ch2_p067-154
86
1/30/08
9:42 AM
Page 86
2.2 Exercises
In Exercises 14, write the augmented matrix corresponding to each system of equations.
1. 2x 3y 7
3x y 4
3.
y 2z 6
2x 2y 8z 7
3y 4z 0
2. 3x 7y 8z 5
x
3z 2
4x 3y
7
4. 3x1 2x2
0
x1 x2 2x3 4
2x2 3x3 5
In Exercises 58, write the system of equations corresponding to each augmented matrix.
3
5. c
1
0
6. 1
4
1
7. 2
3
3
0
3
1
0
0
3
`
d
1 2
1
4
6
2
8. 4
0
3
3
0
1 6
2 5
0 0
10. c
1
0
1 3
` d
0 0
0
11. c
1
1 3
` d
0 5
0
12. c
0
1 3
` d
0 5
1
13. 0
0
0
1
0
0 3
0 4
1 5
1
14. 0
0
0
1
0
1
15. 0
0
0
1
0
1 3
0 4
1 6
1
16. 0
0
0 10
1
2
0
0
0
17. 0
0
0
1
0
0 0
2 4
0 0
1
0
18.
0
0
0
1
0
0
0 1
0 2
2 3
0
3
0
6
0
4
1
5
3
2
21. c
1
6
4 8
` d
1 2
2 3
` d
4 2
1
3 R1
15 R2
1
2
1
B#
1
26. 0
0
9
1
0 2
3
4
2
2 4
8 6
3 4
2
3
4
3 5
3 2
1 3
1
0
2
1
#
0
1
R2
# R
0 5
`
R
1
3
1
#
#
#
#
#
#
# R
#
2
R 3R
#
1
16
R3 9R2
R1 R3
R3
1
0
0
R1 4 R2
4
3 4
0 1
0 2
1 2
0
1
0
#
#
1
2
0 2
` R
1 0
R1 3R2
# R B0
R2 3R1
R3 2R1
1
7
3 4
3 4
1 7
0
1
1
2
2
1
0
R2 2R1
1
3
3
7
1 10
R3 R1
R1 2R2
0
30. 1
1
#
1
# R B0
1
0
#
2
2
1 R2 2R1 1
`
R B #
3 1
3
8
3
R B
1
29. 3
2
2
19. c
3
1
24. 2
1
3
4
1 3
2 4
9 6
` R
1 4
1
11 R3
6 12
1 5
2
4
In Exercises 2730, fill in the missing entries by performing the indicated row operations to obtain the rowreduced matrices.
28. B
9. c
0
25. 2
5
2
4
2 3
3
2
2 4
0 5
2 6
4
3
1
27. B
2 4
`
d
1
5
3
1
0
2
23. 2
3
#
#
#
#
2
#
#
R1 21 R3
R3 4R2
3 4
R1 21 R3
R2 3R3
1
0
0
0
1
0
#
#
0
5
0 2
1 2
3
20. c
4
2 6
` d
2 5
22. c
3 4
` d
4 6
1
2
87533_02_ch2_p067-154
1/30/08
9:42 AM
Page 87
35. x 2y 8
3x 4y 4
36.
3x y 1
7x 2y 1
37. 2x 3y 8
4x y 2
38.
5x 3y 9
2x y 8
39. x y z 0
2x y z 1
x y 2z 2
40. 2x y 2z 4
x 3y z 3
3x 4y z 7
41. 2x 2y z 9
x
z 4
4y 3z 17
42. 2x 3y 2z 10
3x 2y 2z 0
4x y 3z 1
43.
x2 x3 2
4x1 3x2 2x3 16
3x1 2x2 x3 11
44. 2x 4y 6z 38
x 2y 3z
7
3x 4y 4z 19
45. x1 2x2 x3 6
2x1 x2 3x3 3
x1 3x2 3x3 10
46. 2x 3y 6z 11
x 2y 3z
9
3x y
7
3z 1
47. 2x
3x 2y z 9
x y 4z 4
49.
87
87533_02_ch2_p067-154
88
1/30/08
9:42 AM
Page 88
Proteins (%)
Carbohydrates (%)
Iron (%)
Food I
10
10
5
Food II
6
12
4
Food III
8
6
12
Cutting
Sewing
Packaging
Sleeveless
9
22
6
ShortSleeve
12
24
8
LongSleeve
15
28
8
87533_02_ch2_p067-154
1/30/08
9:42 AM
Page 89
89
3
2
2
R2 2R1
R3 3R1
1
0
0
2
8
7
1
6
3 3
4
12
1
0
0
2
7
8
R1 4 R2
1
2
3
3 3
5 12
13
21
3 3
13 21
5
12
R2 R3
R1 2R2
R3 7R2
1
0
0
0
1
0
13
15
8
9
51 51
R1 13R3
R2 8R3
1
0
0
0
1
0
0
2
0 1
1 1
2
3
2
1
51 R3
x
3 3
1 6
4
12
2
1
7
3 3
8 9
5
12
1
0
0
0
1
0
200
13
15
8 9
1 1
1
10 R3
1
60
25
1
200
80 12,600
40
5,950
R2 40R1
R3 20R1
1
0
0
1
20
5
1
200
40 4600
20 1950
1
0
0
1
1
5
1
200
2 230
20 1950
R1 R2
R3 5R2
1
0
0
0
1
0
1
30
2 230
10
800
1
0
0
0
1
0
1 30
2 230
1
80
R1 R3
R 2R3
1
0
0
0
1
0
0 50
0 70
1 80
2. Referring to the solution of Exercise 2, Self-Check Exercises 2.1, we see that the problem reduces to solving the
TECHNOLOGY
z
USING
y
R2 4 R3
1
0
0
The three matrix operations can be performed on a matrix using a graphing utility. The
commands are summarized in the following table.
Calculator Function
Operation
TI-83/84
TI-86
Ri 4 Rj
cRi
Ri aRj
rowSwap([A], i, j)
*row(c, [A], i)
*row(a, [A], j, i)
rSwap(A, i, j)
multR(c, A, i)
mRAdd(a, A, j, i)
or equivalent
or equivalent
or equivalent
(continued)
87533_02_ch2_p067-154
90
1/30/08
9:42 AM
Page 90
3
2
1
2
2
2
1
2
1
0
2
2
8 9
1 3
3 8
9 12
1 3
3
8
1
0
1
0
2
2
9 12
19 27
3
8
1
0
0
0
2
2
9
12
19 27
12 4
1
0
0
0
1
2
9
12
9.5 13.5
12
4
1
0
0
0
1
0
9
12
9.5
13.5
31
31
1
0
0
0
1
0
9
12
9.5 13.5
1
1
1
0
0
0
1
0
0
3
9.5 13.5
1
1
*row(12 , [B], 2) C
*row(311 , [B], 3) C
1
0
0
0
1
0
0 3
0 4
1 1
The last matrix is in row-reduced form, and we see that the solution of the system is
x 3, y 4, and z 1.
Using rref (TI-83/84 and TI-86) to Solve a System of Linear Equations
The operation rref (or equivalent function in your utility, if there is one) will transform an augmented matrix into one that is in row-reduced form. For example, using
rref, we find
3
2
1
2
2
2
8 9
1 3
3 8
rref
1
0
0
0
1
0
0 3
0 4
1 1
as obtained earlier!
Using
87533_02_ch2_p067-154
1/30/08
9:42 AM
Page 91
91
Solution
x1 = 3
x2 = 4
x3 = 1
TECHNOLOGY EXERCISES
Use a graphing utility to solve the system of equations
(a) by the GaussJordan method, (b) using the rref operation, and (c) using SIMULT.
1.
2.
4.
x1 2x2 2x3 x4 1
2x1 x2 2x3 3x4 2
x1 5x2 7x3 2x4 3
3x1 4x2 3x3 4x4 4
3. 2x1 x2 3x3 x4 9
x1 2x2
3x4 1
x1
3x3 x4 10
x1 x2 x3 x4 8
(9)
87533_02_ch2_p067-154
92
1/30/08
9:42 AM
Page 92
1
3
2
1
0
0
2
1
3
2
1
1
3 2
2 1
5 3
3 2
1 1
1
1
R2 3R1
R3 2 R1
R1 2R2
R3 R2
1
0
0
1
0
0
2 3 2
7
7 7
1
1
1
0 1
0
1 1 1
0
0
0
17 R2
The next example shows what happens in the elimination procedure when the system does not have a solution.
EXAMPLE 2 A System of Equations That Has No Solution Solve the system
of linear equations given by
x y z 1
(10)
3x y z 4
x 5y 5z 1
Solution Using the GaussJordan elimination method, we obtain the following
sequence of equivalent augmented matrices:
1
3
1
1
1
5
1
1
1 4
5 1
R2 3R1
R3 R1
R3 R2
1
0
0
1
0
0
1
4
4
1
4
0
1
1
4 1
4 2
1
1
4 1
0 1
Observe that row 3 in the last matrix reads 0x 0y 0z 1that is, 0 1!
We therefore conclude that System (10) is inconsistent and has no solution. Geometrically, we have a situation in which two of the planes intersect in a straight line
but the third plane is parallel to this line of intersection of the two planes and does
not intersect it. Consequently, there is no point of intersection of the three planes.
87533_02_ch2_p067-154
1/30/08
9:42 AM
Page 93
93
Example 2 illustrates the following more general result of using the GaussJordan
elimination procedure.
Systems with No Solution
If there is a row in an augmented matrix containing all zeros to the left of the
vertical line and a nonzero entry to the right of the line, then the corresponding
system of equations has no solution.
It may have dawned on you that in all the previous examples we have dealt only with
systems involving exactly the same number of linear equations as there are variables.
However, systems in which the number of equations is different from the number of variables also occur in practice. Indeed, we will consider such systems in Examples 3 and 4.
The following theorem provides us with some preliminary information on a system of linear equations.
THEOREM 1
a. If the number of equations is greater than or equal to the number of variables
in a linear system, then one of the following is true:
i. The system has no solution.
ii. The system has exactly one solution.
iii. The system has infinitely many solutions.
b. If there are fewer equations than variables in a linear system, then the system
either has no solution or it has infinitely many solutions.
Theorem 1 may be used to tell us, before we even begin to solve a problem,
what the nature of the solution may be.
Note
Although we will not prove this theorem, you should recall that we have illustrated geometrically part (a) for the case in which there are exactly as many equations
(three) as there are variables. To show the validity of part (b), let us once again consider the case in which a system has three variables. Now, if there is only one equation in the system, then it is clear that there are infinitely many solutions corresponding geometrically to all the points lying on the plane represented by the equation.
Next, if there are two equations in the system, then only the following possibilities exist:
1. The two planes are parallel and distinct.
2. The two planes intersect in a straight line.
3. The two planes are coincident (the two equations define the same plane) (Figure 6).
P2
P1
P1
P2
2
P1, P2
(a) No solution
FIGURE 6
87533_02_ch2_p067-154
94
1/30/08
9:43 AM
Page 94
Thus, either there is no solution or there are infinitely many solutions corresponding
to the points lying on a line of intersection of the two planes or on a single plane determined by the two equations. In the case where two planes intersect in a straight line,
the solutions will involve one parameter, and in the case where the two planes are
coincident, the solutions will involve two parameters.
EXAMPLE 3 A System with More Equations Than Variables Solve the following system of linear equations:
x 2y 4
x 2y 0
4x 3y 12
Solution
2
4
2 0
3 12
R2 R1
R3 4R1
1
0
0
2
4
4 4
5 4
1
0
0
2
4
1 1
5 4
R1 2R2
R3 5R2
1
0
0
0 2
1 1
0 1
14 R2
The last row of the row-reduced augmented matrix implies that 0 1, which is
impossible, so we conclude that the given system has no solution. Geometrically, the
three lines defined by the three equations in the system do not intersect at a point.
(To see this for yourself, draw the graphs of these equations.)
EXAMPLE 4 A System with More Variables Than Equations Solve the following system of linear equations:
x 2y 3z w 2
3x y 2z 4w 1
2x 3y 5z w 3
Solution First, observe that the given system consists of three equations in four
variables and so, by Theorem 1b, either the system has no solution or it has infinitely many solutions. To solve it we use the GaussJordan method and obtain the
following sequence of equivalent augmented matrices:
1
3
2
2
1
3
3
2
5
1 2
4 1
1 3
R2 3R1
R3 2 R1
1
0
0
2
7
1
1
0
0
2
1
1
3
1
1
1 2
1 1
1
1
R1 2R2
R3 R2
1
0
0
0
1
0
3
7
1
1
1
0
1 2
7 7
1
1
1
0
1 1
0
0
17 R2
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 95
95
The last augmented matrix is in row-reduced form. Observe that the given system is
equivalent to the system
xzw 0
y z w 1
of two equations in four variables. Thus, we may solve for two of the variables in
terms of the other two. Letting z s and w t (where s and t are any real numbers), we find that
xst
yst1
zs
wt
Note
The following example illustrates a situation in which a system of linear equations has
infinitely many solutions.
APPLIED EXAMPLE 5 Traffic Control Figure 7 shows the flow of
downtown traffic in a certain city during the rush hours on a typical weekday. The arrows indicate the direction of traffic flow on each one-way road, and
the average number of vehicles per hour entering and leaving each intersection
appears beside each road. 5th Avenue and 6th Avenue can each handle up to
2000 vehicles per hour without causing congestion, whereas the maximum capacity of both 4th Street and 5th Street is 1000 vehicles per hour. The flow of traffic
is controlled by traffic lights installed at each of the four intersections.
4th St.
300
5th Ave.
1200
5th St.
500
x1
x2
x4
6th Ave.
1300
1400
x3
700
FIGURE 7
800
400
a. Write a general expression involving the rates of flowx1, x2, x3, x4and
suggest two possible flow patterns that will ensure no traffic congestion.
b. Suppose the part of 4th Street between 5th Avenue and 6th Avenue is to be
resurfaced and that traffic flow between the two junctions must therefore be
reduced to at most 300 vehicles per hour. Find two possible flow patterns that
will result in a smooth flow of traffic.
Solution
a. To avoid congestion, all traffic entering an intersection must also leave that
intersection. Applying this condition to each of the four intersections in a
87533_02_ch2_p067-154
96
1/30/08
9:43 AM
Page 96
clockwise direction beginning with the 5th Avenue and 4th Street intersection,
we obtain the following equations:
1500 x1 x4
1300 x1 x2
1800 x2 x3
2000 x3 x4
This system of four linear equations in the four variables x1, x2, x3, x4 may be
rewritten in the more standard form
x1
x4
x1 x2
x2 x3
x3 x4
1500
1300
1800
2000
0
0
0
1
1
0
0
0
1
1
1
1500
0
1300
0
1800
1
2000
R2 R1
1
0
0
0
0
1
1
0
0
0
1
1
1
1500
1
200
0
1800
1
2000
R3 R2
1
0
0
0
0
1
0
0
0
0
1
1
1
1500
1
200
1
2000
1
2000
1
0
0
0
0
1
0
0
0
0
1
0
1
1500
1
200
1
2000
0
0
R4 R3
The last augmented matrix is in row-reduced form and is equivalent to a system of three linear equations in the four variables x1, x2, x3, x4. Thus, we may
express three of the variablessay, x1, x2, x3in terms of x4. Setting x4 t
(t a parameter), we may write the infinitely many solutions of the system as
x1 1500 t
x2 200 t
x3 2000 t
x4 t
Observe that for a meaningful solution we must have 200 t 1000 since
x1, x2, x3, and x4 must all be nonnegative and the maximum capacity of a street
is 1000. For example, picking t 300 gives the flow pattern
x1 1200
x2 100
x3 1700
x4 300
x3 1500
x4 500
x2 300
b. In this case, x4 must not exceed 300. Again, using the results of part (a), we
find, upon setting x4 t 300, the flow pattern
x1 1200
x2 100
x3 1700
x4 300
x2 50
x3 1750
x4 250
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 97
97
0
1
0
x 2y 3z 9
2x 3y z 4
x 5y 4z 2
1
3
5 2
0
0
x 2y 4z 4
x 5y 3z 10
2. A system consists of three linear equations in four variables. Can the system have a unique solution?
2.3 Exercises
In Exercises 112, given that the augmented matrix in
row-reduced form is equivalent to the augmented matrix
of a system of linear equations, (a) determine whether
the system has a solution and (b) find the solution or
solutions to the system, if they exist.
1
1. 0
0
0
1
0
0
3
0 1
1
2
1
3. 0
0
0 2
1 4
0 0
0
0
1
0
0
1
0
0
3
1
0
0
0
2
0
0
1
0
10.
1
2
0
0
0
0
1
0
0
0
0
1
0
0
0
1
2
0
1
0
12.
0
0
0
0
0
0
0
1
0
0
3
2
0
0
1
3
2
4
0
0
0
0
1
4
3
2
0
0
0
0
0
1
0
0
3
0 2
1
1
1
0
11.
0
0
1
4. 0
0
0
1
0
0 3
0 1
0 0
0
1
0
0
1
0
0
1
0
0
0
4
0
1
1
3
0
1
1
0
0
1
1
4
`
d
0 2
1
0
7.
0
0
0
1
0
0
0
0
1
0
1
0
8.
0
0
0
2
0
1
0
3
0
1
0
1
0
0
1
2. 0
0
1
6. 0
0
5. c
1
0
9.
0
0
0
3
0 1
1
2
13. 2x y 3
x 2y 4
2x 3y 7
14. x 2y 3
2x 3y 8
x 4y 9
15. 3x 2y 3
2x y 3
x 2y 5
16. 2x 3y 2
x 3y 2
x y 3
17. 3x 2y 5
x 3y 4
2x 4y 6
18. 4x 6y 8
3x 2y 7
x 3y 5
87533_02_ch2_p067-154
98
1/30/08
23.
Page 98
19. x 2y 2
7x 14y 14
3x 6y 6
21.
9:43 AM
3x 2y 4
32 x y 2
6x 4y 8
20.
x 2y z 2
2x 3y z 1
2x 4y 2z 4
22.
3y 2z 4
2x y 3z 3
2x 2y z 7
2x1 x2 x3 4
3x1 32 x2 32 x3 6
6x1 3x2 3x3 12
24. x y 2z 3
2x y 3z 7
x 2y 5z 0
25. x 2y 3z 4
2x 3y z 2
x 2y 3z 6
26. x1 2x2 x3 3
2x1 x2 2x3 2
x1 3x2 3x3 5
27. 4x y z 4
8x 2y 2z 8
29. 2x y 3z 1
x y 2z 1
5x 2y 3z 6
30. 3x 9y 6z 12
x 3y 2z 4
2x 6y 4z
8
31. x 2y z 4
2x y z 7
x 3y 2z 7
x 3y z 9
32. 3x 2y z 4
x 3y 4z 3
2x 3y 5z 7
x 8y 9z 10
Vitamin A
Vitamin C
Calcium
Food I
400
110
90
Food II
1200
570
30
Food III
800
340
60
36. MANUFACTURING PRODUCTION SCHEDULE Ace Novelty manufactures Giant Pandas, Saint Bernards, and Big
Birds. Each Panda requires 1.5 yd2 of plush, 30 ft3 of stuffing, and 5 pieces of trim; each Saint Bernard requires 2 yd2
of plush, 35 ft3 of stuffing, and 8 pieces of trim; and each
Big Bird requires 2.5 yd2 of plush, 25 ft3 of stuffing, and
15 pieces of trim. If 4700 yd2 of plush, 65,000 ft3 of stuffing, and 23,400 pieces of trim are available, how many of
each of the stuffed animals should the company manufacture if all the material is to be used? Give two specific
options.
37. INVESTMENTS Mr. and Mrs. Garcia have a total of $100,000
to be invested in stocks, bonds, and a money market
account. The stocks have a rate of return of 12%/year,
while the bonds and the money market account pay
8%/year and 4%/year, respectively. The Garcias have stipulated that the amount invested in stocks should be equal
to the sum of the amount invested in bonds and 3 times the
amount invested in the money market account. How should
the Garcias allocate their resources if they require an
annual income of $10,000 from their investments? Give
two specific options.
38. TRAFFIC CONTROL The accompanying figure shows the
flow of traffic near a citys Civic Center during the rush
hours on a typical weekday. Each road can handle a maximum of 1000 cars/hour without causing congestion. The
flow of traffic is controlled by traffic lights at each of the
five intersections.
3rd St.
6th Ave.
7th Ave.
700
600
500
Ci
vi
x2
x1
4th St.
cD
x6
riv
e
x3
600
800
x4
x5
700
700
600
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 99
600
600
x3
x2
8th St.
x4
700
9x 6y 12z k
700
x7
x1
9th St.
6th Ave.
1000
x5
800
700
x6
900
99
1100
3
2
2
x
y
z
2
1
2
7
x
y
z
In Exercises 43 and 44, determine whether the statement
is true or false. If it is true, explain why it is true. If it is
false, give an example to show why it is false.
2x 3y 2
x 4y 6
5x ky 2
1
0
0
2
7
7
4 4
7 14
7
14
z
1
0
0
2
1
7
4
4 R 2R
1
1
2
1 2
0
R3 7R2
7
14
0
y 5z 2
3
2
5
1
6
4 4
3
10
1
2
1
2
3
5
4 4 R 2R
2
1
1 6
R3 R1
3
10
R1 4 R2
17 R2
0
1
0
2
0
1 2
0
0
2z
y z 2
Letting z t, where t is a parameter, we see that the infinitely many solutions are given by
x 2t
y t 2
zt
87533_02_ch2_p067-154
100
1/30/08
9:43 AM
Page 100
2
3
5
3 9 R 2R
2
1
1 4
R3 R1
4 2
1
0
0
2
7
7
3
9
1
R3 R2
7 14 0
7
7
0
USING
TECHNOLOGY
2
7
0
Since the last row of the final augmented matrix is equivalent to the equation 0 7, a contradiction, we conclude
that the given system has no solution.
3
9
7 14
0
7
2
1
1
6
2
1
1
6
4
2
2
1
2
1
12
6
Then using the rref or equivalent operation, we obtain the equivalent matrix
1
0
0
0
0
1
0
0
0
0
2
1
0
0
0
0
0
x2 2x3 1
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 101
2.4 MATRICES
101
TECHNOLOGY EXERCISES
4.
1. 2x1 x2 x3 0
3x1 2x2 x3 1
x1 2x2 x3 3
2x2 2x3 4
x1 x2 3x3 6 x4 2
x1 x2 x3 2 x4 2
2 x1 x2 x3 2 x4 0
5. x1 x2 x3 x4 1
x1 x2 x3 4 x4 6
3x1 x2 x3 2 x4 4
5x1 x2 3x3 x4 9
2. 3x1 x2 4x3 5
2 x1 3x2 2x3 4
x1 2x2 4x3 6
4x1 3x2 5x3 9
2.4 Matrices
Using Matrices to Represent Data
Many practical problems are solved by using arithmetic operations on the data associated with the problems. By properly organizing the data into blocks of numbers, we
can then carry out these arithmetic operations in an orderly and efficient manner. In
particular, this systematic approach enables us to use the computer to full advantage.
Lets begin by considering how the monthly output data of a manufacturer may
be organized. The Acrosonic Company manufactures four different loudspeaker
systems at three separate locations. The companys May output is described in
Table 1.
TABLE 1
Location I
Location II
Location III
Model A
Model B
Model C
Model D
320
480
540
280
360
420
460
580
200
280
0
880
Now, if we agree to preserve the relative location of each entry in Table 1, we can
summarize the set of data as follows:
320
480
540
280
360
420
460
580
200
280
0
880
87533_02_ch2_p067-154
102
1/30/08
9:43 AM
Page 102
More generally, a matrix is a rectangular array of real numbers. For example, each
of the following arrays is a matrix:
3
A c
2
0
1
1
d
4
3
B 0
1
1
2
C
4
0
2
1
4
D 31
14
The real numbers that make up the array are called the entries, or elements, of the
matrix. The entries in a row in the array are referred to as a row of the matrix, whereas
the entries in a column in the array are referred to as a column of the matrix. Matrix
A, for example, has two rows and three columns, which may be identified as follows:
Column 1
Row 1
Row 2
Column 2
3
2
0
1
Column 3
1
4
A 2 3 matrix
8
1
4
6
4
2
A 3 3 square matrix
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 103
2.4 MATRICES
103
c. Find the sum of the entries that make up row 1 of P and interpret the result.
d. Find the sum of the entries that make up column 4 of P and interpret the
result.
Solution
a. The matrix P has three rows and four columns and hence has size 3 4.
b. The required entry lies in row 2 and column 4, and is the number 0. This
means that no model D loudspeaker system was manufactured at location II
in May.
c. The required sum is given by
320 280 460 280 1340
which gives the total number of loudspeaker systems manufactured at location I in May as 1340 units.
d. The required sum is given by
280 0 880 1160
giving the output of model D loudspeaker systems at all locations of the company in May as 1160 units.
Equality of Matrices
Two matrices are said to be equal if they have the same size and their corresponding
entries are equal. For example,
c
2
4
3
6
1
13 12
d c
2
4
3
14 22
1
d
2
Also,
1
c
2
3
4
1
5
d 3
3
5
2
4
3
since the matrix on the left has size 2 3 whereas the matrix on the right has size
3 2, and
c
2
4
3
2
d c
6
4
3
d
7
since the corresponding elements in row 2 and column 2 of the two matrices are not
equal.
Equality of Matrices
Two matrices are equal if they have the same size and their corresponding
entries are equal.
1
2
x
y1
3
1
d c
2
2
4
1
z
d
2
Solution Since the corresponding elements of the two matrices must be equal, we
find that x 4, z 3, and y 1 1, or y 2.
87533_02_ch2_p067-154
104
1/30/08
9:43 AM
Page 104
1
1
4
1
d c
0
6
3
2
3
11
d c
2
1 6
4
1
34
21
43
2
d c
0 122
5
7
d
2
7
3
1
1
4
and
2
2
3 3
0
1
2 112
1
3 2 4
00
5
1
12
2 1 3
0
4 112
3
1
0
TABLE 2
Location I
Location II
Location III
Model A
Model B
Model C
Model D
210
400
420
180
300
280
330
450
180
180
40
740
The output for May was given earlier in Table 1. Find the total output of the company for May and June.
Solution
given by
320
A 480
540
280
360
420
460
580
200
280
0
880
Next, from Table 2, we see that the production matrix for June is given by
210
B 400
420
180
300
280
330
450
180
180
40
740
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 105
2.4 MATRICES
105
Finally, the total output of Acrosonic for May and June is given by the matrix
320
A B 480
540
280
360
420
460
580
200
530
880
960
460
660
700
790
1030
380
280
210
0 400
880
420
180
300
280
330
450
180
180
40
740
460
40
1620
Commutative law
Associative law
The commutative law for matrix addition states that the order in which matrix addition
is performed is immaterial. The associative law states that, when adding three matrices together, we may first add A and B and then add the resulting sum to C. Equivalently, we can add A to the sum of B and C.
A zero matrix is one in which all entries are zero. A zero matrix O has the property that
AOOAA
for any matrix A having the same size as that of O. For example, the zero matrix of
size 3 2 is
0
O 0
0
0
0
0
a12
0
a22 0
a32
0
0
a11
0 a21
0
a31
a12
a22 A
a32
where aij denotes the entry in the ith row and jth column of the matrix A.
The matrix obtained by interchanging the rows and columns of a given matrix A
is called the transpose of A and is denoted AT. For example, if
1
A 4
7
2
5
8
3
6
9
1
A 2
3
4
5
6
7
8
9
then
T
87533_02_ch2_p067-154
106
1/30/08
9:43 AM
Page 106
Transpose of a Matrix
Scalar Multiplication
A matrix A may be multiplied by a real number, called a scalar in the context of
matrix algebra. The scalar product, denoted by cA, is a matrix obtained by multiplying each entry of A by c. For example, the scalar product of the matrix
A c
3
0
1
1
2
d
4
3
0
1
1
2
9
d c
4
0
3
3
6
d
12
Scalar Product
If A is a matrix and c is a real number, then the scalar product cA is the matrix
obtained by multiplying each entry of A by c.
EXAMPLE 4 Given
A c
3
1
4
d
2
and
B c
3
1
2
d
2
2
d
2
2
6
d c
2
2
5
d
2
10
d
4
210
B 400
420
180
300
280
330
450
180
180
40
740
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 107
2.4 MATRICES
107
180
300
280
198
330
308
330
450
180
363
495
198
180
40
740
198
44
814
1
1
3
4
2
2
d 3c
7
1
and
0
d
4
1
3
3
2y
d c
2
2z
x
z
z
3
d c
x
2
7
d
0
Downtown
Wilshire
Regular
Regular
plus
Premium
1200
750
650
850
600
1100
Downtown
Wilshire
Regular
plus
Premium
1250
825
550
750
750
1150
3. Jack owns two gas stations, one downtown and the other
in the Wilshire district. Over 2 consecutive days his gas
stations recorded gasoline sales represented by the following matrices:
A
B
Regular
2.4 Exercises
In Exercises 16, refer to the following matrices:
2
11
A
6
5
3
0
B
3
1
3
2
0
1
1
1
2
0
9
6
2
5
2
4
1
8
4
7
9
8
C 31
54
1
3
D
2
0
87533_02_ch2_p067-154
108
1/30/08
9:43 AM
Page 108
2x 2
21.
2
2z
2
2
0
1
2
6
3
C 2
4
0
3
2
2
B 3
2
4
1
2
2
D 3
2
2
6
3
4
2
1
11. Compute C D.
x
3
2
2
d c
y
1
23. c
1
2y
x
2
d 4c
3
0
8
3
d c
6
0
2
5
6
4
3
5
14. c
2
3
3
1
4
0
1
15. c
3
4
8
5
4
d c
6
3
1
d
7
1
4
d c
6
0
3
2
2
0
1
16. 3 3
7
1
2
1
3
2
3 4 4
6
3
1
2
6
17. c
4.5
6.3
4.2
3.1
d c
3.2
2.2
1.5
3.3
1.2
8.2
0.06
18. 0.43
1.55
1
1
19.
3
2
2
0.12
0.77
1.11 0.22
0.43
1.09
0
0
1
3
1
6
3
0
1
20. 0.5 5
2
3
2
0
3
0.6 4
1
0
1
4
9
2
1
1
0
3
1
1
0
9
d
5
1
6
0
0
6
1
3
1
5
A c
2
4
4
2
3
d
1
C c
1
3
0
2
2
d
1
2
4
2 2 0
2z 1
4
u
1
4
B c
4
1
3
0
2
d
4
3
A 2
4
3.6
d
4.4
0
1
2
10
d
u
4
4
5
1
4
0
and
1
B 1
3
2
0
2
0.75
0.65
0.57
5
2
1 0.2 1
1
3
4
5
0
8
2
8
2
3
4
3
4
6 2
3
2
8
2
d
4
2
3z
d c
3
4
2
y1
4 3 1
1
4
2
5
2
25. Verify by direct computation the validity of the commutative law for matrix addition.
4
d
3
2
2
d c
5
11
0
6
z
4
d c
2
2u
u
4
3
13. c
2
3
y 2 2
4
2
22. c
1
24. 3
x
3
4
3
4
2
2
27. (3 5)A 3A 5A
29. 4(A B) 4A 4B
31. 3 3
1
33. 3
0
1
4
1
1
2
2
0
54
32. c
4
3
2
4
0
1
1
2
34.
6
4
2
3
2
5
6
2
3
0
1
d
5
4
5
0
2
35. CHOLESTEROL LEVELS Mr. Cross, Mr. Jones, and Mr. Smith
each suffer from coronary heart disease. As part of their
treatment, they were put on special low-cholesterol diets:
Cross on diet I, Jones on diet II, and Smith on diet III. Progressive records of each patients cholesterol level were
kept. At the beginning of the first, second, third, and fourth
months, the cholesterol levels of the three patients were:
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 109
109
2.4 MATRICES
Leslie
Tom
IBM
500
400
GE
350
450
Ford
200
300
Wal-Mart
400
200
Leslie
Tom
IBM
50
0
GE
50
80
Ford
0
100
Wal-Mart
100
50
A II
III
M1
M2
M3
340
360
380
410
430
440
620
660
700
A II
III
M3
340
360
380
410
430
440
620
660
700
B II
III
Main office
A Westside branch
Eastside branch
2820
1030
1170
Savings
accounts
Fixeddeposit
accounts
1470
520
540
1120
480
460
120
60
70
110
50
50
and
120
C 70
60
80
30
20
80
40
40
M2
Checking
accounts
M1
M1
M2
M3
357
378
399
430.5
451.5
462
651
693
735
87533_02_ch2_p067-154
110
1/30/08
9:43 AM
Page 110
1
1
3
4
2
2
d 3c
7
1
1
3
0
1
d c
4
1
5
c
4
2
6
d c
3
7
0
2
d
5 5
3
4
3
9
0
d
12
2. We are given
3
2y
d c
2
2z
x
c
z
z
3
d c
x
2
7
d
0
2xy
2
USING
3z
3
d c
2x
2
TECHNOLOGY
7
d
0
AB c
1200
1100
750
850
c
2450
2250
1575
1600
650
1250
d c
600
1150
825
750
550
d
750
1200
d
1350
Matrix Operations
Graphing Utility
A graphing utility can be used to perform matrix addition, matrix subtraction, and
scalar multiplication. It can also be used to find the transpose of a matrix.
EXAMPLE 1 Let
1.2
A 2.1
3.1
3.1
4.2
4.8
4.1
and B 1.3
1.7
3.2
6.4
0.8
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 111
111
2.4 MATRICES
Solution
6.3
10.6
5.6
b. Using matrix operations, we enter the expression 2.1A 3.2B and obtain
10.6
2.1A 3.2B 8.57
1.07
3.73
11.66
7.52
c. Using matrix operations, we enter the expression (2.1A 3.2B)T and obtain
12.1A 3.2B2 T c
15.64
16.75
0.25
29.3
11.95
d
12.64
APPLIED EXAMPLE 2 John operates three gas stations at three locations, I, II, and III. Over 2 consecutive days, his gas stations recorded the
following fuel sales (in gallons):
Regular
Location I
Location II
Location III
1400
1600
1200
Regular
Location I
Location II
Location III
1000
1800
800
Day 1
Regular Plus
Premium
1200
900
1500
1100
1200
800
Day 2
Regular Plus
Premium
900
1200
1000
800
1100
700
Diesel
200
300
500
Diesel
150
250
400
Find a matrix representing the total fuel sales at Johns gas stations.
Solution
The fuel sales can be represented by the matrix A (day 1) and matrix
B (day 2):
1400
A 1600
1200
1200
900
1500
1100
1200
800
200
300
500
and
1000
B 1800
800
900
1200
1000
800
1100
700
150
250
400
We enter the matrices A and B into the calculator. Using matrix operations, we
enter the expression A B and obtain
2400
A B 3400
2000
2100
2100
2500
1900
2300
1500
350
550
900
Excel
First, we show how basic operations on matrices can be carried out using Excel.
EXAMPLE 3 Given the following matrices,
1.2
A 2.1
3.1
a. Compute A B.
3.1
4.2
4.8
4.1
and B 1.3
1.7
3.2
6.4
0.8
(continued)
87533_02_ch2_p067-154
112
1/30/08
9:43 AM
Page 112
Solution
1
2
3
4
B
A
1.2
2.1
3.1
3.1
4.2
4.8
E
B
4.1
1.3
1.7
3.2
6.4
0.8
Second, compute the sum of matrix A and matrix B. Highlight the cells that will
contain matrix A B, type =, highlight the cells in matrix A, type +, highlight
the cells in matrix B, and press Ctrl-Shift-Enter . The resulting matrix A B is
shown in Figure T2.
A
FIGURE T2
The matrix A B
8
9
10
11
B
A+B
5.3
0.8
4.8
6.3
10.6
5.6
b. Highlight the cells that will contain matrix 2.1A 3.2B. Type 2.1*,
highlight matrix A, type 3.2*, highlight the cells in matrix B, and press
Ctrl-Shift-Enter . The resulting matrix 2.1A 3.2B is shown in Figure T3.
A
FIGURE T3
B
2.1A - 3.2B
13
14
10.6
3.73
15
8.57
11.66
16
1.07
7.52
APPLIED EXAMPLE 4 John operates three gas stations at three locations I, II, and III. Over 2 consecutive days, his gas stations recorded the
following fuel sales (in gallons):
Regular
1400
1600
1200
Location I
Location II
Location III
Regular
1000
1800
800
Location I
Location II
Location III
Day 1
Regular Plus
Premium
1200
900
1500
1100
1200
800
Day 2
Regular Plus
Premium
900
1200
1000
800
1100
700
Diesel
200
300
500
Diesel
150
250
400
Find a matrix representing the total fuel sales at Johns gas stations.
Solution
(day 2):
1400
A 1600
1200
1200
900
1500
1100
1200
800
200
300
500
and
1000
B 1800
800
900
1200
1000
800
1100
700
150
250
400
Note: Boldfaced words/characters enclosed in a box (for example, Enter ) indicate that an action (click, select,
or press) is required. Words/characters printed blue (for example, Chart sub-type:) indicate words/characters that appear on the
screen. Words/characters printed in a typewriter font (for example, =(2/3)*A2+2) indicate words/characters that need to
be typed and entered.
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 113
113
We first enter the elements of the matrices A and B onto a spreadsheet. Next, we
highlight the cells that will contain the matrix A B, type =, highlight A, type +,
highlight B, and then press Ctrl-Shift-Enter . The resulting matrix A B is
shown in Figure T4.
A
23
24
25
26
FIGURE T4
The matrix A B
2400
3400
2000
B
A+B
2100
2100
2500
D
1900
2300
1500
350
550
900
TECHNOLOGY EXERCISES
Refer to the following matrices and perform the indicated operations.
1.2
A 4.1
1.7
3.1
3.2
2.8
6.2
B 3.1
1.2
3.2
2.7
1.4
5.4
4.2
5.2
2.7
3.1
8.4
1.4
1.2
1.7
1. 12.5A
2. 8.4B
3. A B
4. B A
5. 1.3A 2.4B
6. 2.1A 1.7B
7. 3(A B)
8. 1.3(4.1A 2.3B)
1.2
1.7
2.8
1000
8004
Row matrix (1 3)
Next, we let the unit selling price of regular, regular plus, and premium gasoline be
the entries in the matrix
3.09
B 3.29
3.45
Column matrix (3 1)
The first entry in matrix A gives the number of gallons of regular gasoline sold, and
the first entry in matrix B gives the selling price for each gallon of regular gasoline,
so their product (1600)(3.09) gives the revenue realized from the sale of regular gaso-
87533_02_ch2_p067-154
114
1/30/08
9:43 AM
Page 114
line for the day. A similar interpretation of the second and third entries in the two
matrices suggests that we multiply the corresponding entries to obtain the respective
revenues realized from the sale of regular, regular plus, and premium gasoline.
Finally, the total revenue realized by Als from the sale of gasoline is given by adding
these products to obtain
(1600)(3.09) (1000)(3.29) (800)(3.45) 10,994
or $10,994.
This example suggests that if we have a row matrix of size 1 n,
A 3a1
a2
p an 4
a3
(11)
EXAMPLE 1 Let
A 31
2 3
54
and
2
3
B
0
1
Then
AB 3 1
2
2
3
54
112 122 12 2 13 2 13 2 10 2 15 2 11 2 9
0
1
IBM
BAC
A 700
400
200
At the close of trading on a certain day, the prices (in dollars per share) of these
stocks are
GM
B IBM
BAC
50
120
42
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 115
Solution
115
AB 3700
50
2004 120 17002 1502 14002 11202 12002 1422
42
400
or $91,400.
Returning once again to the matrix product AB in Equation (11), observe that the
number of columns of the row matrix A is equal to the number of rows of the column
matrix B. Observe further that the product matrix AB has size 1 1 (a real number
may be thought of as a 1 1 matrix). Schematically,
Size of A
Size of B
1n
n1
(1 1)
Size of AB
Size of B
mn
np
(m p)
Size of AB
a11
a21
a12
a22
a13
d
a23
b11
B b21
b31
b12
b22
b32
b13
b23
b33
b14
b24
b34
Same
Size of A
23
34
(2 4)
Size of AB
Size of B
we see that the matrix product C AB is defined (since the number of columns of A
equals the number of rows of B) and has size 2 4. Thus,
C c
c11
c21
c12
c22
c13
c23
c14
d
c24
The entries of C are computed as follows: The entry c11 (the entry in the first row, first
column of C) is the product of the row matrix composed of the entries from the first
row of A and the column matrix composed of the first column of B. Thus,
c11 3a11
a12
b11
a13 4 b21 a11b11 a12b21 a13b31
b31
87533_02_ch2_p067-154
116
1/30/08
9:43 AM
Page 116
The entry c12 (the entry in the first row, second column of C) is the product of the row
matrix composed of the first row of A and the column matrix composed of the second
column of B. Thus,
c12 3a11
b12
a13 4 b22 a11b12 a12b22 a13b32
b32
a12
3
1
1
2
4
d
3
and
1
B 4
2
3
1
4
3
2
1
Compute AB.
Solution The size of matrix A is 2 3, and the size of matrix B is 3 3. Since
the number of columns of matrix A is equal to the number of rows of matrix B, the
matrix product C AB is defined. Furthermore, the size of matrix C is 2 3. Thus,
3
1
1
2
1
4
d 4
3
2
3
1
4
3
c
2 c 11
c21
1
c12
c22
c13
d
c23
It remains now to determine the entries c11, c12, c13, c21, c22, and c23. We have
1
1
44 4 132 112 112 142 142 122 15
2
c12 33
3
44 1 132 132 112 11 2 14 2 142 24
4
c13 33
3
44 2 132 132 112 12 2 14 2 112 3
1
c11 33
c21 31
1
34 4 112 112 122 14 2 13 2 122 13
2
c22 31
3
34 1 112 132 122 112 132 142 7
4
3
34 2 112 132 12 2 122 132 112 10
1
c23 31
15
13
24
7
3
d
10
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 117
117
EXAMPLE 4 Let
3
A 1
3
2
2
1
1
3
4
1
B 2
1
and
3
4
2
4
1
3
Then
31
2 2 1 11 2
AB 11 2 1 2 2 3 11 2
31
1 2 4 11 2
6
0
1
19
11
21
12
13
5
34
2113
11 2 4 2 1 3 3
34
1143
12
3241
22
4211
11 2 2 2 2 3 1
11
3344
21
4 3 1 4
112 1 2 3 3 4
17
7
25
13
3 112 4 3
BA 2 3
4 112 1 3
11 2 3 2 112 3 3
12
5
4
33
2412
112 3 2 4 3 2
33
1442
26
18
17
The preceding example shows that, in general, AB BA for two square matrices
A and B. However, the following laws are valid for matrix multiplication.
If the products and sums are defined for the matrices A, B, and C, then
1. (AB)C A(BC)
2. A(B C) AB AC
Associative law
Distributive law
The square matrix of size n having 1s along the main diagonal and 0s elsewhere
is called the identity matrix of size n.
Identity Matrix
In F
0
1
0
0
n rows
n columns
The identity matrix has the properties that In A A for every n r matrix A and
BIn B for every s n matrix B. In particular, if A is a square matrix of size n, then
In A AIn A
87533_02_ch2_p067-154
118
1/30/08
9:43 AM
Page 118
EXAMPLE 5 Let
1
A 4
1
3
3
0
1
2
1
Then
1
I3 A 0
0
0
1
0
1
AI3 4
1
0
1
0 4
1
1
3
3
0
1
1
2 4
1
1
3
3
0
1
2 A
1
1 1
2 0
1 0
0
1
0
0
1
0 4
1
1
3
3
0
1
2 A
1
3
3
0
Pandas
P
L.A.
Seattle
St. Bernards
500
400
800
400
Birds
1300
d
700
Similarly, we may represent the amount and type of material required to manufacture each type of animal by a 3 3 activity matrix A. Thus,
Plush
Pandas
A St. Bernards
Birds
1.5
2
2.5
Stuffing
30
35
25
Trim
5
8
15
Finally, the unit cost for each type of material may be represented by the 3 1
cost matrix C.
Plush
C Stuffing
Trim
4.50
0.10
0.25
a. The amount of each type of material required for each plant is given by the
matrix PA. Thus,
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 119
PA c
500
400
1.5
1300
d 2
700
2.5
800
400
L.A.
Seattle
30
35
25
119
5
8
15
Plush
Stuffing
Trim
5600
c
3150
75,500
43,500
28,400
d
15,700
b. The total cost of materials for each plant is given by the matrix PAC:
5600
PAC c
3150
L.A.
Seattle
75,500
43,500
c
4.50
28,400
d 0.10
15,700
0.25
39,850
d
22,450
or $39,850 for the L.A. plant and $22,450 for the Seattle plant. Thus, the total
cost of materials incurred by Ace Novelty is $62,300.
Matrix Representation
Example 7 shows how a system of linear equations may be written in a compact
form with the help of matrices. (We will use this matrix equation representation in
Section 2.6.)
EXAMPLE 7 Write the following system of linear equations in matrix form.
2x 4y z 6
3x 6y 5z 1
x 3y 7z 0
Solution
Lets write
2
A 3
1
4
6
3
1
5
7
x
X y
z
6
B 1
0
Note that A is just the 3 3 matrix of coefficients of the system, X is the 3 1 column matrix of unknowns (variables), and B is the 3 1 column matrix of constants.
We now show that the required matrix representation of the system of linear equations is
AX B
To see this, observe that
2
AX 3
1
4
6
3
1 x
2x 4y z
5 y 3x 6y 5z
7 z
x 3y 7z
which, by matrix equality, is easily seen to be equivalent to the given system of linear equations.
87533_02_ch2_p067-154
120
1/30/08
9:43 AM
Page 120
1
2
3
0
d 2
1
1
3
4
1
0
2
4
3
1
A
4z 7
Ash
Joan
AT&T
TWX
IBM
GM
2000
c
1000
1000
2500
500
2000
5000
d
0
2.5 Exercises
In Exercises 14, the sizes of matrices A and B are given.
Find the size of AB and BA whenever they are defined.
7. c
1
3
3
9. c
1
1
11. c
3
2
1
dc
d
0 1
1
2
8. c
4
2
d 1
4
2
2 2
dc
1 3
4
d
1
1
5
3 7
dc d
0 2
3
10. 4
5
2
1
2
1
12. c
1
3 1
dc
2 3
1
3
0 2
1
0
3
0
0
d
2
13. c
2
3
15. c
0.1
0.2
1
2
1
2
d 4
4
0
0.9 1.2
dc
0.8 0.5
6
17. 2
4
3
1
4
2
18. 1
3
4
2
5 c
1
1
19. c
3
1
2
20. 4
1
1
21. 4 2
3
0
2
2
0
1
2
2
2
1
0
1
14. 4
0
2
3
1
0.4
1.2
d 16. c
2.1
0.4
0 1
8 0
9 0
2
3
0
1
0
2
0
1
1
3
1
0
0 1
1 1
1 0
0
0
1
3
4
1
1
2
0
2
1
4
3
5
1
0
2
1
2
0.3 0.2
dc
0.5 0.4
4
d
1
2
1 1
d
1
0
1
3
1
0
2
2
3 c
3
1
1
0
1
2
2
d
4
0.6
d
0.5
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 121
2
22. 3 2
1
1
23. c
0
3
24. 2 0
2
1
1
0
0 2
2 3
1 0
3
3
1
1
2
d 0
5
0
0 4
dc
1 7
3
1
2
1
0
1 1
3 0
3 0
0
1
0
1
0
1
0
1
0
Ac
Hint: Let A c
0
0
1
0 1
0 0
1 1
2
C 1
3
2
2
1
0
3
1
1
1
2
2
1
3
0
2
1
3
B 2
1
1
2
3
0
0
1
0
2
1
25. Verify the validity of the associative law for matrix multiplication.
26. Verify the validity of the distributive law for matrix multiplication.
2
d
4
1
3
and B c
2
4
1
d
3
Compute AB and BA and hence deduce that matrix multiplication is, in general, not commutative.
28. Let
0
A 1
0
3
0
2
4
C 3
2
5
1
2
2
B 3
4
0
1
0
a
c
b
d.
d
A c
1
d
2
4
1
3
5
6
4
6
6
3
a. Compute AB.
b. Compute AC.
c. Using the results of parts (a) and (b), conclude that
AB AC does not imply that B C.
3
0
3
8
0
d
0
and B c
0
4
0
d
5
2
2
B c
and
2
d
1
4
2
a. Compute (A B)2.
b. Compute A2 2 AB B2.
c. From the results of parts (a) and (b), show that in general (A B)2 A2 2 AB B2.
33. Let
A c
2
5
4
d
6
and B c
4
7
8
d
3
3
d
1
1
2
and
B c
3
2
4
d
2
In Exercises 3540, write the given system of linear equations in matrix form.
35. 2x 3y 7
3x 4y 8
7
36. 2x
3x 2y 12
37. 2x 3y 4z 6
2y 3z 7
x y 2z 4
38. x 2y 3z 1
3x 4y 2z 1
2x 3y 7z 6
39. x1 x2 x3 0
2x1 x2 x3 2
3x1 2x2 4x3 4
29. Let
A c
3
d
6
27. Let
A c
0
1
d c
3
3
1
1
32. Let
121
2
d
2
A
William
Michael
BAC
GM
IBM TRW
300
200
100
400
200
100
200
d
0
At the close of trading on a certain day, the prices (in dollars per share) of the stocks are given by the matrix
BAC
GM
B
IBM
TRW
54
48
98
82
a. Find AB.
b. Explain the meaning of the entries in the matrix AB.
87533_02_ch2_p067-154
122
1/30/08
9:43 AM
Page 122
A Conn.
Mass.
60
20
10
Model
II
III
IV
80
30
15
40
10
5
120
60
30
I
2006
A 2007
2008
Charity
II
III
28.2
28.6
30.4
40.5
42.6
46.4
18.2
19.6
20.8
On average, charity I puts 78% toward program cost, charity II puts 88% toward program cost, and charity III puts
80% toward program cost. Write a 3 1 matrix B reflecting the percentage put toward program cost by the charities. Then use matrix multiplication to find the total
amount of money put toward program cost in each of the
3 yr by the charities under consideration.
46. BOX-OFFICE RECEIPTS The Cinema Center consists of four
theaters: cinemas I, II, III, and IV. The admission price for
one feature at the Center is $4 for children, $6 for students,
and $8 for adults. The attendance for the Sunday matinee
is given by the matrix
Children Students Adults
Cinema I
A
Cinema II
Cinema III
Cinema IV
110
180
85
250
225
75
280
0
50
225
110
225
Under 30
A 30 to 50
Over 50
Dem.
Rep.
Ind.
0.50
0.45
0.40
0.30
0.40
0.50
0.20
0.15
0.10
B 30,000
30 to 50
Over 50
40,000
20,000
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 123
123
Alan
A Maria
Steven
II
4000
2000
2000
3000
5000
3000
c. What is the total cost of materials incurred by Ace Novelty in filling the order?
III
3000
3000
5000
B II
III
London
In-state
A Out-of-state
Foreign
Male
Female
2700
800
500
3000
700
300
B
Female
Bus. Ad.
Eng.
0.25
c
0.30
0.20
0.35
0.30
0.25
0.25
d
0.10
Find the matrix AB that shows the number of in-state, outof-state, and foreign students expected to enter each discipline.
50. PRODUCTION PLANNING Refer to Example 6 in this section.
Suppose Ace Novelty received an order from another
amusement park for 1200 Pink Panthers, 1800 Giant Pandas, and 1400 Big Birds. The quantity of each type of
stuffed animal to be produced at each plant is shown in the
following production matrix:
Panthers Pandas Birds
P
L.A.
Seattle
700
500
1000
800
London
B 300
800
d
600
60
40
Tokyo
Hong Kong
150
250
The costs for the calls (in dollars per minute) for the peak
and nonpeak periods in the month in question are given,
respectively, by the matrices
Hong Kong
Fine Arts
Hong Kong
and
London
L. & S.
Tokyo
A 80
C Tokyo
By using data accumulated in previous years, the admissions committee has determined that these students will
elect to enter the College of Letters and Science, the College of Fine Arts, the School of Business Administration,
and the School of Engineering according to the percentages
that appear in the following matrix:
Male
51. COMPUTING PHONE BILLS Cindy regularly makes longdistance phone calls to three foreign citiesLondon,
Tokyo, and Hong Kong. The matrices A and B give the
lengths (in minutes) of her calls during peak and nonpeak
hours, respectively, to each of these three cities during the
month of June.
.34
.42
.48
London
D Tokyo
and
Hong Kong
.24
.31
.35
A Location II
Location III
Location I
B Location II
Location III
Model
B
Model
C
Model
D
320
480
540
280
360
420
460
580
200
280
0
880
Model
A
Model
B
Model
C
Model
D
180
300
280
330
450
180
180
40
740
210
400
420
The unit production costs and selling prices for these loudspeakers are given by matrices C and D, respectively,
where
Model A
Model B
C
Model C
Model D
120
180
260
500
Model A
and
Model B
D
Model C
Model D
160
250
350
700
87533_02_ch2_p067-154
124
1/30/08
9:43 AM
Page 124
400
110
90
Vitamin A
M Vitamin C
Calcium
Food II
Food III
1200
570
30
800
340
60
A c
Food I
Food II
Food III
Food I
Food II
Food III
0
d
1.15
Compute AB.
b. Hartman has m branches nationwide, and the sales of n
of its products (in thousands of dollars) last year are represented by the matrix
1.1
0
Branch 1
B
Branch 2
.
.
.
Branch m
Product
3
a11
a12
a13
a21 a22
.
.
.
.
.
.
am1 am2
a23
.
.
.
am3
a2n
.
.
.
amn
a1n
B
Product
A B C D
B
Branch I
Branch II
3
2 8
4 6
10
8
1
2
3
4
c
3
0
d 2
1
1
2. Let
1
0
2
9
13
1
0
13
d
21
4
3
1
1112 3102 0122
2112 4102 1122
0
A 2
1
1142 3132 0112
d
2142 4132 1112
1
1
0
2
3
4
x
X y
z
1
B 0
7
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 125
3. Write
B
54
113
112
70
Ash
AB
Joan
AT&T
TWX
IBM
GM
2000
1000
627,000
560,500
1000
2500
500
2000
5000
0
125
54
113
112
70
Ash
Joan
USING
TECHNOLOGY
Matrix Multiplication
Graphing Utility
1.2
2.7
3.1
4.2
1.4
d
3.4
B c
0.8
6.2
1.2
0.4
3.7
d
3.3
1.2
C 4.2
1.4
2.1
1.2
3.2
1.3
0.6
0.7
12.5
25.64
5.68
11.51
2.44
d
8.41
(You may need to scroll the display on the screen to obtain the complete matrix.)
b. Using matrix operations, we enter the expression (1.1A 2.3B)C. We obtain the
matrix
c
39.464
52.078
21.536
67.999
12.689
d
32.55
Excel
Note: Boldfaced words/characters in a box (for example, Enter ) indicate that an action (click, select, or press) is required.
Words/characters printed blue (for example, Chart sub-type:) indicate words/characters that appear on the screen. Words/characters printed in a typewriter font (for example, =(2/3)*A2+2) indicate words/characters that need to be typed and entered.
(continued)
87533_02_ch2_p067-154
126
1/30/08
9:43 AM
Page 126
EXAMPLE 2 Let
A c
1.2
2.7
1.4
d
3.4
3.1
4.2
B c
0.8
6.2
1.2
0.4
3.7
d
3.3
1.2
C 4.2
1.4
2.1
1.2
3.2
1.3
0.6
0.7
FIGURE T1
Spreadsheet showing the matrices A, B,
and C
1.2
2.7
B
A
3.1
4.2
1.4
3.4
1.2
4.2
1.4
C
2.1
1.2
3.2
1.3
0.6
0.7
E
0.8
6.2
F
B
1.2
0.4
G
3.7
3.3
Second, compute AC. Highlight the cells that will contain the matrix product AC,
which has order 2 3. Type =MMULT(, highlight the cells in matrix A, type ,,
highlight the cells in matrix C, type ), and press Ctrl-Shift-Enter . The matrix
product AC shown in Figure T2 will appear on your spreadsheet.
A
10
11
12
FIGURE T2
The matrix product AC
12.5
25.64
B
AC
5.68
11.51
C
2.44
8.41
b. Compute (1.1A 2.3B)C. Highlight the cells that will contain the matrix product
(1.1A 2.3B)C. Next, type =MMULT(1.1*, highlight the cells in matrix A, type
+2.3*, highlight the cells in matrix B, type ,, highlight the cells in matrix C,
type ), and then press Ctrl-Shift-Enter . The matrix product shown in Figure T3
will appear on your spreadsheet.
A
13
14
15
FIGURE T3
B
(1.1A+2.3B)C
39.464
21.536
52.078
67.999
C
12.689
32.55
TECHNOLOGY EXERCISES
In Exercises 18, refer to the following matrices and perform the indicated operations. Round your answers to
two decimal places.
1.2
A 7.2
0.8
0.7
B 1.2
3.3
3.1
6.3
3.2
1.2
1.8
1.3
0.3
1.7
1.2
1.2
3.5
4.2
4.3
2.1
2.8
0.8
4.2
3.2
0.8
3.3
C
1.3
2.1
7.1
1.2
2.8
3.2
6.2
4.8
1.5
8.4
1. AC
2. CB
3. (A B)C
4. (2A 3B)C
5. (2A 3.1B)C
6. C(2.1A 3.2B)
7. (4.1A 2.7B)1.6C
8. 2.5C(1.8A 4.3B)
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 127
5
7
5
6
6.2
4.8
C E 5.4
8.2
10.3
4
2
4
8
7.3
6.5
3.2
7.3
6.8
2
9
4
3
8
6
4
2
4.0
8.4
6.3
6.5
4.8
2
3
B E5
8
4
7.1
6.3
9.1
4.1
9.1
6
4
8
6
7
7
6
4
9
8
5
2
3U
5
8
9.3
8.4
2.8 U
9.8
20.4
4.6
2.4
D E7.1
3.4
7.1
3.9
6.8
9.4
6.1
4.2
8.4
7.9
6.3
5.3
3.9
6.1
11.4
5.7
8.4
6.4
127
9.8
2.9
4.2 U
6.3
7.1
The use of the (multiplicative) inverse of a real number enables us to solve algebraic
equations of the form
ax b
(12)
b
a
For example, since the inverse of 2 is 21 12, we can solve the equation
2x 5
5
2
87533_02_ch2_p067-154
128
1/30/08
9:43 AM
Page 128
where A, X, and B are matrices of the proper sizes. To do this we need the matrix
equivalent of the inverse of a real number. Such a matrix, whenever it exists, is called
the inverse of a matrix.
Inverse of a Matrix
Let A be a square matrix of size n. A square matrix A1 of size n such that
A1A AA1 In
2
d
4
1
3
A1 c
2
3
2
1
d
12
AA1 c
1
3
A1A c
2
3
2
1
1
1d c
2
0
0
d I
1
2
1
d c
4
0
0
d I
1
1 1
dc
12 3
0
0
1
d
0
a
c
b
d
d
where a, b, c, and d are some appropriate numbers, then by the definition of an inverse
we would have BB1 I; that is,
c
0
0
1 a
dc
0 c
b
1
d c
0
d
0
d
1
d
1
d c
0
0
0
d
1
c
0
which implies that 0 1an impossibility! This contradiction shows that B does not
have an inverse.
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 129
129
2
d
3
1
1
b
d
d
a
c
a 2c
a 3c
b 2d
1
d c
b 3d
0
0
d
1
But this matrix equation is equivalent to the two systems of linear equations
a 2c 1
f
a 3c 0
and
b 2d 0
f
b 3d 1
and
1
1
2
1
` d
3
0
1
1
2
0
` d
3
1
Note that the matrices of coefficients of the two systems are identical. This suggests that we solve the two systems of simultaneous linear equations by writing the
following augmented matrix, which we obtain by joining the coefficient matrix and
the two columns of constants:
c
1
1
2
1
`
3
0
0
d
1
1 2
1 0 R2 R1
1 2
1 0
`
d c
`
d
1 3
0 1
0 5
1 1
3
1 2
1 0 R1 2R2 1 0
25
c
` 1 1 d c
` 15
1d
0 1
0 1
5
5
5
5
1
5 R2
A1 c 15
5
25
1d
5
1
1
2 35
dc
3 51
25
1d
5
c
1
0
3
0
d c 51
1
5
25
1d
5
1
1
2
d
3
The preceding example suggests a general algorithm for computing the inverse of
a square matrix of size n when it exists.
87533_02_ch2_p067-154
130
1/30/08
9:43 AM
Page 130
if possible.
Then the matrix B is the inverse of A.
Although matrix multiplication is not generally commutative, it is possible to
prove that if A has an inverse and AB I, then BA I also. Hence, to verify that B is
the inverse of A, it suffices to show that AB I.
Note
1
2
1
1
1
2
1
2
1
1
1
1 0
2
0
0
1
0
0
0
1
and use the GaussJordan elimination method to reduce it to the form [I B]:
2
3
2
1
2
1
1
1
1 0
2
0
0
1
0
0
0
1
R1 R2
1
3
2
1
2
1
0
1
1 0
2
0
1
1
0
0
0
1
0
1
1
3
2
2
1
2
2
0
0
1
1
2
0
0
0
1
R1
R2 3R1
R3 2R1
1
0
0
1
1
1
R1 R2
R2
R3 R2
1
0
0
0
1
0
1
2
1 3
1
1
R1 R3
R2 R3
1
0
0
0
1
0
0
3
0 4
1
1
1
2
0
1
1
1
3
4
1
1
2
0
1
1
1
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 131
131
2
1
3
3
2
5
2
1
3
3 1
2 0
5 0
0
1
0
0
0
1
2
1
3
3
1
2 0
5
0
0
1
0
0
0
1
R2 2R1
R3 3R1
1
0
0
2
3
3
R2
R3 R2
1
0
0
2
3
0
3
1
4 2
4
3
3
1
4
2
0
1
0
1
1
0
1
0
0
0
1
0
0
1
Since the entries in the last row of the 3 3 submatrix that comprises the left-hand
side of the augmented matrix just obtained are all equal to zero, the latter cannot be
reduced to the form [I B]. Accordingly, we draw the conclusion that A is singular
that is, does not have an inverse.
More generally, we have the following criterion for determining when the inverse of
a matrix does not exist.
If there is a row to the left of the vertical line in the augmented matrix containing all zeros, then the matrix does not have an inverse.
Let
A c
a
c
b
d
d
d
1
c
D c
b
d
a
(13)
87533_02_ch2_p067-154
132
1/30/08
9:43 AM
Page 132
Note As an aid to memorizing the formula, note that D is the product of the elements
along the main diagonal minus the product of the elements along the other diagonal:
b
d
d
:Main diagonal
a
c
D ad bc
b
d
a
d
c
is obtained by interchanging a and d and reversing the signs of b and c. Finally, A1
is obtained by dividing this matrix by D.
EXAMPLE 3 Find the inverse of
A c
Solution
2
d
4
1
3
the matrix
c
4
3
2
d
1
1
4
c
2 3
2
2
d c 3
1
2
1
d
12
(14)
Lets write
a11
A a21
a31
a12
a22
a32
a13
a23
a33
x1
X x2
x3
b1
B b2
b3
You should verify that System (14) of linear equations may be written in the form of
the matrix equation
AX B
(15)
If A is nonsingular, then the method of this section may be used to compute A1. Next,
multiplying both sides of Equation (15) by A1 (on the left), we obtain
A1AX A1B or
IX A1B or
X A1B
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 133
133
b. 2x y z 2
3x 2y z 3
2x y 2z 1
AX C
respectively, where
2
A 3
2
1
2
1
1
1
2
x
X y
z
1
B 2
1
2
C 3
1
1
2
0
1
1
1
was found in Example 1. Using this result, we find that the solution of the first
system (a) is
3
X A B 4
1
1
1
2
0
1
1
1 2
1 1
1
2
0
1
2
8
1 3 13
1
1
1
87533_02_ch2_p067-154
134
1/30/08
9:43 AM
Page 134
x
yn
10,000x 24,000y b
This system of two equations in two variables may be written in the matrix form
AX B
where
A c
1
10,000
1
d
24,000
x
X c d
y
n
B c d
b
Therefore,
X A1B
1
24,000
c
14,000 10,000
24,000
1
d c 14,000
1
10,000
14,000
1
14,000
1 d
14,000
Thus,
X c
12
7
57
1
14,000
1 d
14,000
n
c d
b
12
7
57
1
14,000
1 d
14,000
800
514.3
d c
d
12,000,000
285.7
Therefore, 514 compact cars and 286 full-size cars will be acquired in this case.
b. Here, n 1000 and b 14,000,000, so
X A1B c
12
7
57
1
14,000
1 d
14,000
1000
714.3
d c
d
14,000,000
285.7
Therefore, 714 compact cars and 286 full-size cars will be purchased in this
case.
if it exists.
1
1
2
2x y z b1
x y z b2
x 2y 3z b3
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 135
135
second tour, and $2771 for the third tour. Determine how
many adults and how many children were in each tour.
Solutions to Self-Check Exercises 2.6 can be found on
page 138.
b
d
d
a
c
2.6 Exercises
In Exercises 14, show that the matrices are inverses of
each other by showing that their product is the identity
matrix I.
1. c
1
1
3
d
2
2. c
4
2
5
d
3
and
2
2
1
3
1
1
3
3. 2
2
2
4. 4
3
and
4
6
5
2
1
3
2
1
and
3
d
1
13
1
13
2
3
2
1
1
and
1
2
12
1
4
3
1
23
3
2
1
4
3
2
5. c
2
1
7. c
3
2
2
9. 0
1
5
d
3
3
d
2
3
0
2
4
11. 1
3
2
3
1
1
13. 2
1
4
3
2
6. c
2
3
3
d
5
8. c
4
6
2
d
3
1
1
1
1
1
1
0
1
1
0
1
3
1
2
16.
0
1
1
3
2
2
2
0
1
1
3
1
1
1
52
d
2
13
0
1
2
15.
2
2
17. 2x 5y 3
x 3y 2
(See Exercise 5.)
18. 2x 3y 5
3x 5y 8
(See Exercise 6.)
19. 2x 3y 4z 4
z 3
x 2y z 8
(See Exercise 9.)
20.
x1 x2 3x3 2
2x1 x2 2x3 2
2x1 2x2 x3 3
(See Exercise 10.)
22.
21.
4
1
1
1
10. 2
2
1
1
2
2
4
6
1
12. 3
5
2
4
0
1
2
3
3
14. 2
6
2
1
5
3
2
1
0
2
2
7
4
8
x 4y z 3
2x 3y 2z 1
x 2y 3z 7
(See Exercise 13.)
23. x1 x2 x3 x4 6
2x1 x2 x3
4
2x1 x2
x4 7
2x1 x2 x3 3x4 9
(See Exercise 15.)
24. x1 x2 2x3 3x4 4
2x1 3x2
x4 11
2x2 x3 x4 7
x1 2x2 x3 x4 6
(See Exercise 16.)
87533_02_ch2_p067-154
136
1/30/08
9:43 AM
Page 136
x 2y b1
2x y b2
25.
x 2y z b1
x y z b2
3x y z b3
where (i) b1 7, b2 4, b3 2
and
(ii) b1 5, b2 3, b3 1
28.
x1 x2 x3 b1
x1 x2 x3 b2
x1 2x2 x3 b3
where (i) b1 5, b2 3, b3 1
and
(ii) b1 1, b2 4, b3 2
3x 2y z b1
2x 3y z b2
x y z b3
29.
2x1 x2 x3 b1
x1 3x2 4x3 b2
x1
x3 b3
where (i) b1 1, b2 4, b3 3
and
(ii) b1 2, b2 5, b3 0
31.
x1 x2 x3 x4 b1
x1 x2 x3 x4 b2
x2 2x3 2x4 b3
x1 2x2 x3 2x4 b4
where (i) b1 1, b2 1, b3 4, b4 0
and
(ii) b1 2, b2 8, b3 4, b4 1
32.
x1 x2 2x3 x4 b1
4x1 5x2 9x3 x4 b2
3x1 4x2 7x3 x4 b3
2x1 3x2 4x3 2x4 b4
where (i) b1 3, b2 6, b3 5, b4 7
and
(ii) b1 1, b2 1, b3 0, b4 4
33. Let
A c
a. Find A1.
2
4
4
d
3
6
4
B c
and
3
4
5
d
7
2
1
5
d
3
B c
4
1
3
d
1
C c
2
2
3
d
1
A c
35. Let
3x 2y b1
4x 3y b2
26.
34. Let
3
d
5
2
1
2
3
d A c
3
1
2
d
4
1
3
2
2
d c
1
3
1
d
2
Find the monthly demand for the deluxe edition and the
standard edition when the unit prices are set according to
the following schedules:
a. p 50 and q 25
b. p 45 and q 25
c. p 45 and q 20
40. NUTRITION/DIET PLANNING Bob, a nutritionist who works
for the University Medical Center, has been asked to prepare special diets for two patients, Susan and Tom. Bob has
decided that Susans meals should contain at least 400 mg
of calcium, 20 mg of iron, and 50 mg of vitamin C,
whereas Toms meals should contain at least 350 mg of
calcium, 15 mg of iron, and 40 mg of vitamin C. Bob has
also decided that the meals are to be prepared from three
basic foods: food A, food B, and food C. The special nutritional contents of these foods are summarized in the
accompanying table. Find how many ounces of each type
of food should be used in a meal so that the minimum
requirements of calcium, iron, and vitamin C are met for
each patients meals.
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 137
Food A
Food B
Food C
Calcium
30
25
20
Contents (mg/oz)
Iron
1
1
2
Vitamin C
2
5
4
137
Organization I
Organization II
Organization III
2
d
3
1
k
0
1
2
1
k
k2
has an inverse.
Hint: Find the value(s) of k such that the augmented matrix
[A I] can be reduced to the form [I B].
a
c
b
d
d
a
c
b
d
d
87533_02_ch2_p067-154
138
1/30/08
9:43 AM
Page 138
1
1
1 0
3
0
1
1
2
0
0
1
2
B2 0
5
Therefore,
1
1
2
1
1
1 0
3
0
0
1
0
0
R1 4 R2
0
1
1
2
1
1
1
2
1
0
1 1
3
0
1
0
0
0
R2 2R1
0
R3 R1
1
1
0
1 1
2
0
1
2
1
0 R R
1
2
0
R2
R3 R2
1
1
2
3
0
2 R3
0 R
1
1
0
0
1
1
1
1
0
0
0
1
0
0
1
1 1
1
1
1
0
0
0
1
0
0
1
0 2
1
1
1
5
3
0
1
1
x
1
X y A1B2 2
z
1
A1
1
5
3
3. Let x denote the number of adults and y the number of children on a tour. Since the tours are filled to capacity, we have
x y 19
Next, since the total receipts for the first tour were $2931
we have
169x 129y 2931
y
19
(a)
0
1
1
where
2
A 1
1
0 2
2
1 0 1
1 5
3
or x 2, y 1, and z 3.
1
5
3
x
y 19
169x 129y 3011
(b)
x
y 19
169x 129y 2771
(c)
1
1
3
x
X y
z
5
B1 4
8
1
5
3
0
5
1
1 4 2
1 8
1
AX B1
AX B2
AX B3
where
A c
B1 c
1
169
19
d
2931
1
d
129
x
X c d
y
B2 c
19
d
3011
B3 c
19
d
2771
129
40
169
40
1
40
d
401
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 139
x
X c d A1B3
y
x
X c d A1B1
y
129
40
c 169
40
1
40
d
401
c
19
12
c
d c d
2931
7
(a)
129
40
c
14
d
5
169
40
USING
1
40
d
401
TECHNOLOGY
129
40
1
40
d
401
169
40
19
8
d c d
2771
11
(c)
x
X c d A1B2
y
c
139
19
d
3011
(b)
3
2
1
5
4
3
3
2
1
5
4
3
0.1
1.3
0.6
0.2
1.1
0.7
0.1
0.7
0.4
3
2
1
5
4
3
x
X y
z
4
B 3
2
The solution is X A1B. Entering the matrices A and B in the graphing utility and
using the matrix multiplication capability of the utility gives the output shown in
Figure T1that is, x 0, y 0.5, and z 0.5.
(continued)
87533_02_ch2_p067-154
140
1/30/08
9:43 AM
Page 140
FIGURE T1
Excel
We use the function MINVERSE to find the inverse of a square matrix using Excel.
EXAMPLE 3
3
2
1
5
4
3
Solution
FIGURE T2
1
2
3
5
6
7
8
9
10
B
Matrix A
1
2
5
C
3
2
1
5
4
3
Matrix A1
0.1
0.2
1.3
1.1
0.7
0.6
0.1
0.7
0.4
3
2
1
5
4
3
x
X y
z
4
B 3
2
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 141
A
Matrix X
12
13
5.55112E17
14
0.5
15
0.5
141
FIGURE T3
Matrix X gives the solution to the
problem.
TECHNOLOGY EXERCISES
In Exercises 16, find the inverse of the matrix. Round
your answers to two decimal places.
1.
1.2
3.4
1.2
1.1
1.6
3.
4.2
1.6
2.3
3.2
1.6
2.1
2.1
6.2
4.
2.3
2.1
2
3
5. E3
2
3
1
2
2
1
4
1
6
6. E 4
1
1.1
2.1
7.3
1.3
3.1
2.6
3.4
3.1
1.8
1.4
2.8
3.2
7.3
7.1
3.1
3
1
6
1
2
4
2.4
1
2
2.2
4.2
2. 2.1
1.8
3.7
1.3
7.6
4.6
2.3
2.3
7. 2x 3y 4z 2.4
3 x 2y 7z 8.1
x 4y 2z 10.2
4.2
2.9
3.2
7.2
1.4
8.4
2.4
4.6
2
4
4
4
5
2
5
2
3
3
3.2
1.6
1.3
3.7
4
1
1U
2
6
3
1.2
3
4
5.1
1.4
3
1.2U
2
4
87533_02_ch2_p067-154
142
1/30/08
9:43 AM
Page 142
A
Input
(amount used in production)
M
S
0.2
0.2
0.1
0.2
0.4
0.2
0.1
0.1
0.3
(16)
The first column (read from top to bottom) tells us that the production of 1 unit of
agricultural products requires the consumption of 0.2 unit of agricultural products,
0.2 unit of manufactured goods, and 0.1 unit of services. The second column tells us
that the production of 1 unit of manufactured goods requires the consumption of
0.2 unit of agricultural products, 0.4 unit of manufactured goods, and 0.2 unit of services. Finally, the third column tells us that the production of 1 unit of services
requires the consumption of 0.1 unit each of agricultural products and manufactured
goods and 0.3 unit of services.
APPLIED EXAMPLE 1 InputOutput Analysis Refer to the input
output matrix (16).
a. If the units are measured in millions of dollars, determine the amount of agricultural products consumed in the production of $100 million worth of manufactured goods.
b. Determine the dollar amount of manufactured goods required to produce $200
million worth of all goods and services in the economy.
Solution
M
S
0.2
0.2
0.1
Output
M
0.2
0.4
0.2
0.1
0.1
0.3
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 143
143
that 0.2 unit of agricultural products is required to produce 1 unit of agricultural products, so the amount of agricultural goods required to produce x units of agricultural
products is given by 0.2x unit. Next, again referring to the inputoutput matrix, we see
that 0.2 unit of agricultural products is required to produce 1 unit of manufactured
goods, so the requirement for producing y units of the latter is 0.2y unit of agricultural
products. Finally, we see that 0.1 unit of agricultural goods is required to produce 1
unit of services, so the value of agricultural products required to produce z units of services is 0.1z unit. Thus, the total amount of agricultural products required to produce
the total output of goods and services in the economy is
0.2x 0.2y 0.1z
units. In a similar manner, we see that the total amount of manufactured goods and the
total value of services required to produce the total output of goods and services in the
economy are given by
0.2x 0.4y 0.1z
0.1x 0.2y 0.3z
respectively.
These results could also be obtained using matrix multiplication. To see this, write
the total output of goods and services x, y, and z as a 3 1 matrix
x
X y
z
The matrix X is called the total output matrix. Letting A denote the inputoutput
matrix, we have
0.2
A 0.2
0.1
0.2
0.4
0.2
0.1
0.1
0.3
Inputoutput matrix
0.2
0.4
0.2
0.1 x
0.1 y
0.3 z
is a 3 1 matrix whose entries represent the respective values of the agricultural products, manufactured goods, and services consumed in the internal process of
production. The matrix AX is referred to as the internal consumption matrix.
Now, since X gives the total production of goods and services in the economy, and
AX, as we have just seen, gives the amount of goods and services consumed in the production of these goods and services, it follows that the 3 1 matrix X AX gives the
net output of goods and services that is exactly enough to satisfy consumer demands.
Letting matrix D represent these consumer demands, we are led to the following
matrix equation:
X AX D
(I A)X D
where I is the 3 3 identity matrix.
87533_02_ch2_p067-154
144
1/30/08
9:43 AM
Page 144
Assuming that the inverse of (I A) exists, multiplying both sides of the last
equation by (I A)1 on the left yields
X (I A)1D
In a Leontief inputoutput model, the matrix equation giving the net output of
goods and services needed to satisfy consumer demand is
Total
output
Internal
consumption
AX
Consumer
demand
where X is the total output matrix, A is the inputoutput matrix, and D is the
matrix representing consumer demand.
The solution to this equation is
X (I A)1D
(17)
which gives the amount of goods and services that must be produced to satisfy
consumer demand.
Equation (17) gives us a means of finding the amount of goods and services to be
produced in order to satisfy a given level of consumer demand, as illustrated by the
following example.
APPLIED EXAMPLE 2 InputOutput Model for a Three-Sector
Economy For the three-sector economy with inputoutput matrix given
by (16), which is reproduced here:
0.2
A 0.2
0.1
0.2
0.4
0.2
0.1
0.1
0.3
a. Find the total output of goods and services needed to satisfy a consumer
demand of $100 million worth of agricultural products, $80 million worth of
manufactured goods, and $50 million worth of services.
b. Find the value of the goods and services consumed in the internal process of
production in order to meet this total output.
Solution
where x, y, and z denote the value of the agricultural products, the manufactured goods, and services, respectively. The matrix representing the consumer
demand is given by
100
D 80
50
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 145
145
Next, we compute
1
I A 0
0
0
1
0
0
0.2
0 0.2
1
0.1
0.2
0.4
0.2
0.1
0.8
0.1 0.2
0.3
0.1
0.2
0.6
0.2
0.1
0.1
0.7
Using the method of Section 2.6, we find (to two decimal places)
1.43
1I A2 1 0.54
0.36
0.57
1.96
0.64
0.29
0.36
1.57
0.57
1.96
0.64
0.29 100
203.1
0.36 80 228.8
1.57
50
165.7
or $103 million worth of agricultural products, $149 million worth of manufactured goods, and $116 million worth of services.
APPLIED EXAMPLE 3 An InputOutput Model for a ThreeProduct Company TKK Corporation, a large conglomerate, has three
subsidiaries engaged in producing raw rubber, manufacturing tires, and manufacturing other rubber-based goods. The production of 1 unit of raw rubber requires
the consumption of 0.08 unit of rubber, 0.04 unit of tires, and 0.02 unit of other
rubber-based goods. To produce 1 unit of tires requires 0.6 unit of raw rubber,
0.02 unit of tires, and 0 unit of other rubber-based goods. To produce 1 unit of
other rubber-based goods requires 0.3 unit of raw rubber, 0.01 unit of tires, and
0.06 unit of other rubber-based goods. Market research indicates that the demand
for the following year will be $200 million for raw rubber, $800 million for tires,
and $120 million for other rubber-based products. Find the level of production for
each subsidiary in order to satisfy this demand.
Solution View the corporation as an economy having three sectors and with an
inputoutput matrix given by
Raw rubber
A Tires
Goods
Raw
rubber
Tires
Goods
0.08
0.04
0.02
0.60
0.02
0
0.30
0.01
0.06
Using Equation (17), we find that the required level of production is given by
x
X y 1I A2 1D
z
87533_02_ch2_p067-154
146
1/30/08
9:43 AM
Page 146
where x, y, and z denote the outputs of raw rubber, tires, and other rubber-based
goods and where
200
D 800
120
Now,
0.92
I A 0.04
0.02
0.60
0.98
0
0.30
0.01
0.94
0.69
1.05
0.01
0.37
0.03
1.07
See Exercise 7.
Therefore,
1.12
X 1I A2 1D 0.05
0.02
0.69
1.05
0.01
0.37
200
820.4
0.03 800 853.6
1.07
120
140.4
To fulfill the predicted demand, $820 million worth of raw rubber, $854 million
worth of tires, and $140 million worth of other rubber-based goods should be
produced.
0.4
0.2
0.1
d
0.2
x
X c d
y
D c
50
d
10
A
A
T
0.4
0.2
0.1
d
0.2
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 147
147
2.7 Exercises
1. AN INPUTOUTPUT MATRIX FOR A THREE-SECTOR ECONOMY
A simple economy consists of three sectors: agriculture
(A), manufacturing (M), and transportation (T). The input
output matrix for this economy is given by
A
M
T
0.4
0.1
0.2
0.1
0.4
0.2
0.1
0.3
0.2
a. Determine the amount of agricultural products consumed in the production of $100 million worth of manufactured goods.
b. Determine the dollar amount of manufactured goods
required to produce $200 million worth of all goods in
the economy.
c. Which sector consumes the greatest amount of agricultural products in the production of a unit of goods in that
sector? The least?
2. AN INPUTOUTPUT MATRIX FOR A FOUR-SECTOR ECONOMY
The relationship governing the intraindustrial and interindustrial sales and purchases of four basic industries
agriculture (A), manufacturing (M), transportation (T), and
energy (E)of a certain economy is given by the following inputoutput matrix.
A
A
M
T
E
0.3
0.2
0.2
0.1
0.2
0.3
0.2
0.2
0
0.2
0.1
0.3
0.1
0.1
0.3
0.2
3. A c
0.4
0.3
0.2
d
0.1
and
D c
10
d
12
4. A c
0.2
0.5
0.3
d
0.2
and
4
D c d
8
5. A c
0.5
0.2
0.2
d
0.5
and
D c
10
d
20
6. A c
0.6
0.1
0.2
d
0.4
and
D c
8
d
12
7. Let
0.08
A 0.04
0.02
0.60
0.02
0
0.30
0.01
0.06
Show that
1.13
1I A2 1 0.05
0.02
0.69
1.05
0.02
0.37
0.03
1.07
0.4
0.1
0.2
0.1
0.4
0.2
0.1
0.3
0.2
a. Find the total output of goods needed to satisfy a consumer demand for $200 million worth of agricultural
products, $100 million worth of manufactured goods,
and $60 million worth of transportation.
b. Find the value of goods and transportation consumed in
the internal process of production in order to meet this
total output.
87533_02_ch2_p067-154
148
1/30/08
9:43 AM
Page 148
13. A c
0.4
0.3
0.2
d
0.5
and D c
12
d
24
14. A c
0.1
0.3
0.4
d
0.2
and D c
5
d
10
15. A
2
5
1
5
1
2
1
5
0.2
16. A 0.3
0.1
1
5
1
2
10
and D 5
15
0
0.4
0.2
0.2
0.1
0.1
0.2
6
and D 8
10
2. a. Let
x
X c d
y
X (I A)1D
Now,
IA c
0
0.4
d c
1
0.2
1
0
0.1
0.6
d c
0.2
0.2
0.1
d
0.8
0.6
0.2
1
c
0.2
0.1
1
`
0.8
0
0 1 R1
d 0.6
1
0.17
1.67
`
0.8
0
0 R2 0.2R1
d
1
1
c
0
0.17
1.67
`
0.77
0.33
0 1 R
d 0.77 2
1
1
c
0
0.17
1.67
`
1
0.43
0
1 0.17R2
d R
1.30
1.74
0
`
1
0.43
1
0
0.22
d
1.30
giving
1I A2 1 c
1.74
0.43
0.22
d
1.30
or, equivalently,
X (I A)1D
89.2
50
39.2
d c d c
d
34.5
10
24.5
Therefore,
x
1.74
X c d 1I A2 1D c
y
0.43
50
d
10
0.22 50
89.2
d c d c
d
34.5
1.30 10
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 149
USING
TECHNOLOGY
149
0.4
0.1
0.4
0.15
0.4
0.2
and
20
D 15
40
Find the final outputs of each industry such that the demands of industry and the
consumer sector are met.
Solution First, we enter the matrices I (the identity matrix), A, and D. We are
required to compute the output matrix X (I A)1D. Using the matrix operations of the graphing utility, we find (to two decimal places)
110.28
X 1I A2 1 * D 116.95
142.94
Hence the final outputs of the first, second, and third industries are 110.28,
116.95, and 142.94 units, respectively.
Excel
0.4
0.1
0.4
0.15
0.4
0.2
and
20
D 15
40
Find the final outputs of each industry such that the demands of industry and the
consumer sector are met.
Solution
1. Enter the elements of the matrix A and D onto a spreadsheet (Figure T1).
A
FIGURE T1
Spreadsheet showing matrix A and
matrix D
1
2
3
4
B
Matrix A
0.2
0.4
0.3
0.1
0.25
0.4
C
0.15
0.4
0.2
E
Matrix D
20
15
40
(continued)
87533_02_ch2_p067-154
150
1/30/08
9:43 AM
Page 150
FIGURE T2
B
Matrix I
1
0
0
0
1
0
0
0
1
2.151777
1.306436
1.325648
Matrix (I A)1
1.460134
2.315082
1.613833
1.133525
1.402498
2.305476
3. Compute (I A)1 * D. Highlight the cells that will contain the matrix
(I A)1 * D. Type =MMULT(, highlight the cells containing the matrix
(I A)1, type ,, highlight the cells containing the matrix D, type ), and
press Ctrl-Shift-Enter . The resulting matrix is shown in Figure T3. So, the
final outputs of the first, second, and third industries are 110.28, 116.95, and
142.94, respectively.
16
17
18
19
FIGURE T3
Matrix (I A)1*D
A
Matrix (I A)1 *D
110.2786
116.9549
142.9395
TECHNOLOGY EXERCISES
In Exercises 14, A is an inputoutput matrix associated
with an economy and D (in units of million dollars) is a
demand vector. Find the final outputs of each industry
such that the demands of industry and the consumer
sector are met.
1.
2.
0.3
0.2
A
0.3
0.4
0.12
0.31
A
0.18
0.32
0.2
0.1
0.1
0.2
0.31
0.22
0.32
0.14
0.4
0.2
0.2
0.1
0.1
0.3
0.3
0.2
0.40
0.12
0.05
0.22
and
0.05
0.20
0.15
0.05
40
60
D
70
20
and
3.
4.
0.2
0.1
A
0.3
0.2
0.2
0.1
0.2
0.05
0.2
0.1
A
0.2
0.3
0.4
0.2
0.1
0.1
0.3
0.2
0.1
0.2
0.3
0.1
0.4
0.2
0.05
0.3
0.4
0.1
0.1
0.3
0.05
0.05
and
and
25
30
D
50
40
40
20
D
30
60
50
20
D
40
60
Note: Boldfaced words/characters in a box (for example, Enter ) indicate that an action (click, select, or press) is required.
Words/characters printed blue (for example, Chart sub-type:) indicate words/characters on the screen. Words/characters
printed in a typewriter font (for example, =(2/3)*A2+2) indicate words/characters that need to be typed and entered.
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 151
151
ABBA
b. Associative law
(A B) C A (B C)
(AB)C A(BC )
b. Distributive law
A(B C) AB AC
3. Inverse of a 2 2 matrix
4. Solution of system AX B
(A nonsingular)
If
A c
and
D ad bc 0
then
A1
a
c
b
d
d
1
d
c
D c
b
d
a
X A1B
TERMS
system of linear equations (68)
solution of a system of linear equations
(68)
parameter (69)
dependent system (70)
inconsistent system (70)
GaussJordan elimination method (76)
equivalent system (76)
coefficient matrix (78)
augmented matrix (78)
row-reduced form of a matrix (79)
b. A system of linear equations with at least as many equations as variables may have _____ solution, _____
_____ solutions, or a _____ solution.
5. Two matrices are equal provided they have the same _____
and their corresponding _____ are equal.
6. Two matrices may be added (subtracted) if they both have
the same _____. To add or subtract two matrices, we add
or subtract their _____ entries.
7. The transpose of a/an _____ matrix with elements aij is the
matrix of size _____ with entries _____.
8. The scalar product of a matrix A by the scalar c is the
matrix _____ obtained by multiplying each entry of A by
_____.
87533_02_ch2_p067-154
152
1/30/08
9:43 AM
Page 152
1. 1
2. c
1
3
0
1
2
11. 2(3A)
13. A(B C)
14. AB AC
2
1
d c
4
5
2
d
2
15. A(BC )
16.
3. 33
4. c
3
2
1
2
d 4
3
2
1
5. c
y
x
z
d c
3
3
6. c
x 1
7
dc d c d
3 2
4
17. 2x 3y 5
3 x 4y 1
19.
2
d
w
a3
3
b e 2
d
1
6
4
2
8. c
1
1
d 3
2
4
4
d
2
c1
x
0
3
y
1
12
z c
2
2
3
1
0
2
B 2
1
1
1
4
3
C 1
2
1
6
1
x y 2z
5
3 x 2y z 10
2x 3y 2z 10
1
3
2
3
1
2
2
4
3
20. 3 x 2y 4z 16
2x y 2z 1
x 4y 8z 18
x 2y 3z 4w 17
2x y 2z 3w 9
3x y 2z 4w 0
4x 2y 3z w 2
23. 3x 2y z 4
x 3y 4z 3
2x 3y 5z 7
x 8y 9z 10
18. 3x 2y
3
2 x 4y 14
21. 3x 2y 4z 11
2x 4y 5z 4
x 2y z 10
22.
7. 1
1
1CA CB2
2
1
0
1
3
y
10. 3A 2 B
1
2
3 0
1
1
2
14 1
2
1
1
9. 2A 3B
24. 2 x 3y z 10
3 x 2y 2z 2
x 3y 4z 7
4x y z 4
25. A c
3
1
1
d
2
26. A c
2
1
4
d
6
27. A c
3
2
4
d
2
28. A c
2
1
4
d
2
2
29. A 1
1
3
1
2
1
31. A 3
1
2
1
0
1
2
1
4
2
6
1
30. A 2
1
2
32. A 1
3
2
1
0
1
2
1
4
3
2
3
4
2
87533_02_ch2_p067-154
1/30/08
9:43 AM
Page 153
REVIEW EXERCISES
1
1
2
d
2
B c
3
4
1
d
2
C c
33. (A1B)1
36. (A B)1
1
1
37. 2 x 3y 8
x 2y 3
39.
38.
x 2y 4z 13
2x 3y 2z
0
x 4y 6z 15
x 3y 1
2x 4y 8
40. 2x 3y 4 z 17
x 2y 4z 7
3x y 2z 14
41. GASOLINE SALES Gloria Newburg operates three selfservice gasoline stations in different parts of town. On a
certain day, station A sold 600 gal of premium, 800 gal of
super, 1000 gal of regular gasoline, and 700 gal of diesel
fuel; station B sold 700 gal of premium, 600 gal of super,
1200 gal of regular gasoline, and 400 gal of diesel fuel; station C sold 900 gal of premium, 700 gal of super, 1400 gal
of regular gasoline, and 800 gal of diesel fuel. Assume that
the price of gasoline was $3.20/gal for premium, $2.98/gal
for super, and $2.80/gal for regular and that diesel fuel sold
for $3.10/gal. Use matrix algebra to find the total revenue
at each station.
42. COMMON STOCK TRANSACTIONS Jack Spaulding bought
10,000 shares of stock X, 20,000 shares of stock Y, and
30,000 shares of stock Z at a unit price of $20, $30, and $50
per share, respectively. Six months later, the closing prices
of stocks X, Y, and Z were $22, $35, and $51 per share,
respectively. Jack made no other stock transactions during
the period in question. Compare the value of Jacks stock
holdings at the time of purchase and 6 months later.
43. INVESTMENTS Williams and Michaels stock holdings are
given in the following table:
William
Michael
BAC
800
600
GM
1200
1400
IBM
400
600
1
d
2
TRW
1500
2000
The prices (in dollars per share) of the stocks of BAC, GM,
IBM, and TRW at the close of the stock market on a certain day are $50.26, $31.00, $103.07 and $38.67, respectively.
a. Write a 2 4 matrix A giving the stock holdings of
William and Michael.
b. Write a 4 1 matrix B giving the closing prices of the
stocks of BAC, GM, IBM, and TRW.
c. Use matrix multiplication to find the total value of the
stock holdings of William and Michael at the market
close.
44. INVESTMENT PORTFOLIOS The following table gives the
number of shares of certain corporations held by Olivia
153
Olivia
Max
IBM
800
500
September
Google
500
600
Boeing
1200
2000
GM
1500
800
Olivia
Max
IBM
900
700
October
Google
600
500
Boeing
1000
2100
GM
1200
900
0.2
c
0.1
0.15
d
0.15
a. Determine the amount of agricultural products consumed in the production of $200 million worth of manufactured goods.
b. Determine the dollar amount of manufactured goods
required to produce $300 million worth of all goods in
the economy.
c. Which sector consumes the greater amount of agricultural products in the production of 1 unit of goods in
that sector? The lesser?
87533_02_ch2_p067-154
154
1/30/08
9:43 AM
Page 154
0.3
0.1
0.1
49. INPUTOUTPUT MATRICES The inputoutput matrix associated with an economy based on agriculture (A) and manufacturing (M) is given by
0.4
0.2
0.3
0.2
c
0.1
0.15
d
0.15
A c
2x y z 1
x 3y 2z
0
1
0
0
2
0 3
1
1
1
b. 0
0
0
1
0
0
3
0 0
0
1
1
c. 0
0
0
1
0
0
2
3 1
0
0
1
0
d.
0
0
0
1
0
0
0
0
1
0
e. c
0
1
1
2
` d
2
3
0
0
0
0
0
0
1
0
2
0
4
d
1
2
C 1
3
1
B 3
2
1
1
1
2
1
0
2
1
4
1
1
1
2
3
0
z
2x y z 1
3x y z
1
3
3x 3y 3z 5
1
0
4. Let
3x y 2z 1