Chapter 1
Chapter 1
CHAPTER
• Acknowledgments
I would like to express my gratitude to the long list of reviewers that have contributed
so much to all eight editions of this book. Thanks also to the many users who have sent
In comments and suggestions.
A special thanks is due to the reviewers of the eighth edition:
Margaret Bayer, University of Kansas
Anton Betten, Colorado State University
Fernanda Botelho, University of Memphis
Pinyuen Chen, Syracuse University
Aimo Hinkkanen, University of Illinois, Urbana-Champaign
Naihuan Jing, North Carolina State University
Mohammad A. Kazemi, University of North Carolina, Charlotte
Terry A. Loring, University of New Mexico Matrices and Systems of Equations
Judi McDonald, Washington State University
Shashikant MUlay, University of Tennessee Probably the most important problem in mathematics is that of solving a system of
John C. Nardo, Oglethorpe University linear equations. Well over 75 percent of all mathematical problems encountered in
Thomas Riedel, University of Louisville scientific or industrial applications involve solving a linear system at some stage. By
Pavel Sikorskii, Michigan State University using the methods of modern mathematics, it is often possible to take a sophisticated
problem and reduce it to a single system of linear equations. Linear systems arise in
Tin- Yau Tam, AUburn University
applications to such areas as business, economics, sociology, ecology, demography, ge-
Alexander Tumanov, University of Illinois, Urbana-Champaign netics, electronics, engineering, and physics. Therefore, it seems appropriate to begin
Many of the revisions and new . .. .. this book with a section on linear systems.
comm en ts an d suggestions.
. exercise, in this latest edition are a direct result of their .
Special thanks to Mathe ti Edi .
the new edition and t P . rna ICS itor Carohne Celano for her help in planning
production of the bo ok ~~ec~ Manager Robert Merenoff for his work on coordinating III Systems of Linear Equations
editorial, production 0 . d ile s to accuracy checker Tom Wegleitner and to the entire
I would lik ' kr sa es staff at Pearson for all their efforts. A linear equation in n unknowns is an equation of the form
I e to ac nowledge the ibuti
Most of the first edition f th b k COntn ut,ons of Gene Golub and Jim Wilkinson. alxl +a2x2+···+al1xn =b
Scholar at Stanford Uni 0 . e 000 . was wruten m 1977-1978 while I was a Visiting
iversny unng that . dI where a" a2, ... ,an and b are real numbers and Xl, X2, ... , Xli are variables. A linear
numerical linear algebra . . b perm attended Courses and lectures on
have greatly influenced t~il:e;oo~ G;ne Golub and J. H. Wilkinson. Those lectures system of m equations in Il unknowns is then a system of the form
Gennund Dahlquist for h· sh If· mally,. I would Irke to express my gratitude to
though Gene Golub J. 'w ·lekP ul suggestIOns on earlier editions of this book. AI-
QIIXI + GI2X2 + + QlnXI/ = b,
h ' irn I mson and G
t ey Continue to live On in th '. errnun
d Dahlnu:
ahlqulst are no longer with us, Q21XI + Q22X2 + + Q21lXIl = b:
e memones of their friends. (1)
Steven J. Leon
[email protected] where the a;/s and the b;'s are all real numbers. We will refer to systems of the form (1)
as m x n linear systems. The following are examples of linear systems:
(a) XI + 2x, =5 (b) XI - X, + X3 =2 (c) XI + X, =2
2xI + 3X2 =8 2xI + X2 - X3 =4 Xl - X2 = I
X, =4
2 Chapter I Matrices and Systems of Equations
I . (I) + 2· (2) = 5
2 . (I) + 3 . (2) =8
The ordered triple (2, 0, 0) is a solution of system (b), since
- X2
-
+ X3
X3
= 5
2X3 = 4 3xI + 2X2 + X3 = 2
2 x 2 Systems
System (a) is easy to solve because it is clear from the last two equations that
Let us exarni ne . X2 = 3 and X3 = 2. Using these values in the first equation, we get
geometncally a system of the form
3xI + 2·3 - 2 =-2
allXI + al2X2 = b, x, =-2
a21XI + a22x2 = b:
Thus, the solution of the system is (-2,3,2). System (b) seems to be more difficult
Each equation can be represented ra hi '.
(XI, X2) will be a solution of th g p. cally as a line in the plane. The ordered pair to solve. Actually, system (b) has the same solution as system (a). To see this, add the
id e system If and a I if i I' first two equations of the system:
consi er the three systems n Y I It res on both lines. For example,
33x] + 2X2 - X3 = -2
2X3 = 4 n X n Systems
3x] + 2X2 + X3 = 2
Let us restrict ourselves to n x n systems for the remainder of this section. We will
Thus, (x], X2, X3) is a solution of system (b) if and only if it is a solution of system (a). show that if an n x n system has exactly one solution, then operations I and III can be
Therefore, both systems have the same solution set, ((_ 2, 3, 2)}. used to obtain an equivalent "strictly triangular system."
Definition
TthwO
hsystemhsof equations involving the same variables are said to be equivalent if Definition A system is said to be in strict triangular form if, in the kth equation, the coef-
ey ave t e same solutJOnset.
ficients of the first k - I variables are all zero and the coefficient of Xk is nonzero
(k= I, ... ,n).
Clearly, if we interchange the ord . hi h
this will have no effe t he solun er 10 w 1C two equations of a system are written,
the original system .; on t 0. slounon set. The reordered system will be equivalent to EXAMPLE I The system
. or examp 0., the systems
x] + X2 + X3 =3 X2 - 2 =2 or
-2x] - X2 + 4X3 =I and 2x] + 2X2 + 2X3 = 6
are equivalent. -2xI - X2 + 4X3 = I Using X2 = 4, X3 = 2 in the first equation, we end up with
. . .
anx]
ai]x]
+ ... + a·", x n
+"'+ainXn
-
-
=b.
b
i
Thus, the solution of the system is (-3,4,2).
•
If and only If It satisfies the equations ] Any n x n strictly triangular system can be solved in the same manner as the last
example. First, the nth equation is solved for the value of x". This value is used in the
(n - l)st equation to solve for Xn-]' The values Xn and Xn_] are used in the (n - 2)nd
anXI + ... + a· x - b
(ai] +aan)xI + ... + (a. + 'n n - i equation to solve for Xn-2, and so on. We will refer to this method of solving a strictly
]n aainhn = b, + ab, triangular system as back substitution.
6 Chapter I Matricesand Systems of Equations
1.1 Systems of Linear Equations 7
EXAMPLE 2 Solve the system
Using back substitution, we get
2xI - x, + 3X3 - 2X4 =I
x, - 2X3
4X3
+ 3X4
+ 3X4
=2
=3
X3 = 4, X2 = -2,
Let us look back at the system of equations in the last example. We can associate
XI =3
•
4X4 =4 with that system a 3 x 3 array of numbers whose entries are the coefficients of the Xi'S:
-n
2
Solution
-I
Using back substitution, we obtain 3
We will refer to this array as the coefficient matrix of the system. The term matrix
4X4 =4 X4 = I means simply a rectangular array of numbers. A matrix having m rows and n columns
4X3 + 3· I =3 X3 = 0 is said to be m x n. A matrix is said to be square if it has the same number of rows and
x, -
2 .0 +3 . I =2 x, =-1 columns-that is, if m = n.
2xI-(-I)+3·0-2·1 = I Xl = If we attach to the coefficient matrix an additional column whose entries are the
numbers on the right-hand side of the system, we obtain the new matrix
Thus, the solution is (I, -I, 0, I).
• 2 I
. In general, given a system of n linear equations in n unknowns, we will use opera-
tions I and III to try to obtain an equivalent system that is strictly triangular. (We will
see III the next section of the book that it is not possible to reduce the system to strictly
-I
3
-3
I -1]
tnanzular form III the cases wh th We will refer to this new matrix as the augmented matrix. In general, when an m x r
e» ere e system does not have a unique solution.) matrix B is attached to an m x n matrix A in this way, the augmented matrix is denoted
EXAMPLE 3 Solve the system by (A I B). Thus, if
XI
3xI
+ 2x, +
- X, - 3X3
X3 = 3
= -I A=
[ ",
a"
a12
an ". )
a2n
B=
[ bb,21
b12
b" b"
b" ]
Solution
2x, + 3X2 + X3 = 4
a/:/I am2 am" ' ., bm2 bmr
then
SUbtracting 3 times the first row from the second row yields
(A IB) = r all
:
alII bll
i; J
- ?X, - 6X3 =- 10 ami all/I! bml bmr
SUbtracting 2 times the first row from the third row yields With each system of equations, we may associate an augmented matrix of the form
By using row operation III, 3 times the first row is subtracted from the second row and Next, the second row is used as the pivotal row to eliminate the entries in the second
column below the pivot element -I:
2 times the first row is subtracted from the third. When this is done, we end up with
the matrix
I 2 I 3]
-j]
I I I I
[o
o
-7 -6 -10 <-- pivotal row
-I -I -2
o
o
-I -I
0 -3 -2
I
[
At this step .we choose the second row as our new pivotaJ row and apply row opera- o 0 -3 -3 -15
non III to ehmm atT the iast elementin the second column. This time, the pivot is -7
and the quotient -7 = '7 IS the multiple of the pivotal row that is subtracted from the Finally, the third row is used as the pivotal row to eliminate the last element in the third
third row. We end up with the matrix column:
I I J I
-l~]
I 2
o -7 I
-6 -10 3] o -I -I I
[
o 0 -'7 I 4 [o 0 -3 -2
~'7 o 0 o -I -2
This is the augmented matrix for the strictly triangular system, which is equivalent to
the original system. The solution of the system is easily obtained by back substitution. This augmented matrix represents a strictly triangular system. Solving by back substi-
tution, we obtain the solution (2, -1,3,2). •
EXAMPLE 4 Solve the system
In general, if an n x n linear system can be reduced to strictly triangular form, then
4 - x, - XJ + X4 = 0 it will have a unique solution that can be obtained by performing back substitution on
XI + X, + XJ + X4 = 6 the triangular system. We can think of the reduction process as an algorithm involving
2xI + 4x, + XJ - 2X4 = -1 n - I steps. At the first step, a pivot element is chosen from among the nonzero entries
3xI + X, - 2X3 + 2X4 = 3 in the first column of the matrix. The row containing the pivot element is called the
pivotal row. We interchange rows (if necessary) so that the pivotal row is the new first
Solution row. Multiples of the pivotal row are then subtracted from each of the remaining n - 1
The augmented matrix for this system is rows so as to obtain O's in the first entries of rows 2 through n. At the second step,
~-: -: : ~I
a pivot element is chosen from the nonzero entries in column 2, rows 2 through n, of
the matrix. The row containing the pivot is then interchanged with the second row of
the matrix and is used as the new pivotal row. Multiples of the pivotal row are then
subtracted from the remaining n - 2 rows so as to eliminate all entries below the pivot
2 4 I -2 I in the second column. The same procedure is repeated for columns 3 through n _ I.
. .. 3 I -2 2 3 Note that at the second step row 1 and column I remain unchanged, at the third step
Smce it is not possible to elirni
the first two rows and first two columns remain unchanged, and so on. At each step,
use row operation 1to int hi mate any entries by using 0 as a pivot element we will
fi ere ange the fi t ' the overall dimensions of the system are effectively reduced by 1 (see Figure 1.1.2).
rst row will be the pivotal d rs. two rows of the augmented matrix. The new
rowan the Pivot element will be I: If the elimination process can be carried out as described, we will arrive at an
equivalent strictly triangular system after n - I steps. However, the procedure will
(iiii}(liiiiJ 2xI
4xI
+ X2 = 3
+ 3x, = 5
and
2XI+
4xI + 3X2
x2=-1
=
-mlXI
-m2XI
+ X2
+ X2
= b,
= b2
Step2
(1 iii i)~ (1 iii i) have the same coefficient matrix but different right-
hand sides. Solve both systems simultaneously
augmented matrix
by
eliminating the first entry in the second row of the
where m., m2, bl, and b2 are constants,
(a) Show that the system will have a unique solu-
tion if m 1
(1 i i i i)-' (1 iii
Inl
Step 3
Figure 1.1.2.
i) -and then performing back substitutions for each of
consistent
(c) Give a geometric
(b).
only if b, = b-:
r; ; I n
1. Use back SUbstit~tion to solve each of the followin Xl + 2X2 - 2X3 =1 Xl + 2X2 - 2X3 = 9 where all, a12, a21, and a22 are constants. Explain
systems of equations: g + 5X2 +
-2 I 2xI X, = 9 + + X, =
(a) XI - 3x, = 2
+ + =8
(a) (b) (;
3 -4 I ~J XI + 3x, + 4x, = 9
2xI
XI
5X2
+ 3X2 + 4x, = -2
9 why a system of this form must be consistent.
11. Give a geometrical interpretation of a linear equa-
-l)
(b) XI X, X3
2X2 = 6 tion in three unknowns. Give a geometrical de-
2x, + X3 =5 (c) [~-; ~ by doing elimination on a 3 x 5 augmented matrix scription of the possible solution sets for a 3 x 3
3X3 =9 5 2 6-1 and then performing two back substitutions. linear system.
(c) XI + 2x2 + 2x, + X, = 5
3X2 + x] - 2X4 = J
-i -~ ~ ~1
II
(d) (~
-X,+2x,=_1 J J 2 4 8
J
Row Echelon Form
= 4 4X4 5 3 -2 7
(d) XI + X, + X3 + X, + x, = 5 6. Solve each of the following systems:
In Section I we learned a method for reducing an n x n linear system to strict triangular
2x, + X, - 2x4 + X, = I (a) XI - 2X2 =5 (b) 2xI + X2 =8 form. However, this method will fail if, at any stage of the reduction process, all the
4x, + X, - 2x, = I 3x, + X2 = I 4xI - 3X2 = 6 possible choices for a pivot element in a given column are O.
X4 - 3xs :::::0 (c) 4xI + 3X2 = 4 (d) XI + 2X2 _ X3 =I
=2 2 EXAMPLE I Consider the system represented by the augmented matrix
2. Write out the coefficient rna .
2x, ,XI + 4X2 = 3 2x, - X2 + X, = 3
terns in Exerci~ tnx for each of the sys- -XI + 2x2 + 3x, = 7 1 1 1 1 1 1 <- pivotal row
3. In each of the following s . (e) 2x, =
+ X2 + 3X3 -I -I 0 0 I -I
equation as a line in the Iystems, mterpret each 4xI + 3X2 + 5x, = I -2 -2 0 0 3 I
graph the lines and det pane. For each system,
6x, + 5X2 + 5X3 = -3 0 0 I I 3 -I
number of solutions. ermme geometrically the
(I) I I 2 2 4 I
(a) x, + X2 = 4 3xI + 2x + = 0 2 X3
X, - X2 == 2
(b)
XI + 2x2 = 4 -2x, + x, - x, = 2 If row operation III is used to eliminate the nonzero entries in the last four rows of the
2x1
-2x1 - 4X2 =4 2xI - X2 + 2x, ""-I first column, the resulting matrix will be
(c)
-4xI
-
+ 2x, = -6
X2 "" 3
(d) XI + X2 "" 1 (g) "x
3 I
+ j'2X2+ 2X3=-J I I 1 I I I
Xl - X2 =J XI + 2x2 + tx] = 2. 0 0 1 1 2 0 <- pivotal row
4. W'nte an augmented matrix for -XI + 3X2 "" 3 !x
2 I
+ 2x 2 + T12 = x)
2
..L 0 0 2 2 5 3
10
in Exercise 3. each of the systems (h) 0 0 1 I 3 -I
X2 + X3 + X4 =0 0 0 I I
5. Write OUithe system of equations that co 3xI 3 0
to each of the follOWing augme ted rresponds
+ 3X3 - 4x, =7
n rnabices: XI + X, + X, + 2x, =6 At this stage, the reduction to strict triangular form breaks down. All four possible
2x, + 3X2 + X, + 3x, "" 6 choices for the pivot element in the second column are O. How do we proceed from
12 Chapter 1 Matrices and Systems of Equations
1.2 Row Echelon Form 13
here? Since our goal is to simplify the system as much as possible, it seems natural to
the solution set will be the set of all 5-tuples satisfying the first three equations,
move over to the third column and eliminate the last three entries:
I I I I I I
X, + x, + X3 + X4 + X, = I
o o I I X3 + X4 + 2x, =0 (I)
2 0
o o o o 1 3 x, = 3
o o o o I -I The variables corresponding to the first nonzero elements in each row of the reduced
o o o o I 0 matrix will be referred to as lead variables. Thus, XI, X3, and Xs are the lead variables.
The remaining variables corresponding to the columns skipped in the reduction process
In the fourth column, all the choices for a pivot element are 0; so again we move on to
will be referred to as free variables. Hence, X, and X4 are the free variables. If we
the next column. If we use the third row as the pivotal row, the last two entries in the
transfer the free variables over to the right-hand side in (I), we obtain the system
fifth column are eliminated and we end up with the matrix
XI + X3 + Xs = I - X, - X4
I I I X3 + 2x, = -X4 (2)
o o o
o o X, =3
3
o o -4 System (2) is strictly triangular in the unknowns XI, X3, and X,. Thus, for each pair
o o -3 of values assigned to x, and X4, there will be a unique solution. For example, if = x,
X4 = 0, then x, = 3, X3 = -6, and XI = 4, and hence (4,0, -6,0,3) is a solution to
The coefficient matrix that we end up with is not in strict triangular form; it is in the system.
staircase, or echelo?, form. The horizontal and vertical line segments in the array for
the coefficient matnx indicate the structure of the staircase form. Note that the vertical
Definition A matrix is said to be in row echelon form
drop IS I for each step, but the horizontal span for a step can be more than I.
The equations represented by the last two rows are (I) If the first nonzero entry in each nonzero row is I.
(ii) If row k does not consist entirely of zeros, the number of leading zero
OXI + Ox, + OX3 + OX4 + Ox, = -4 entries in row k + I is greater than the number of leading zero entries in
OXI + Ox, + OX3 + OX4 + Ox, = -3 row k.
Since there are no 5-tuples th t ld . . (iii) If there are rows whose entries are all zero, they are below the rows having
a cou satIsfy these equations, the system is inconSIstent. nonzero entries.
•
EXAMPLE 2 The following matrices are in row echelon form:
so a;~pp~se now that we change the right-hand side of the system in the last eX3iUple
00 tain a consIstent system. For example, if we start with
[Io 4I 32] , [Io 02 3]I , 3 I
-I
-2
I I
-1
-2
0
0
I I I
0
0
I-I
3
I
I
o 0 I 000 [~ 0
0 0
I
~] •
EXAMPLE 3 The following matrices are not in row echelon form:
001 133
I 1 2 2 4 4
[2035 4 6]
then the reduction process will yield the echelon form augmented matrix 004
, [0
o I
0 0)
0 ' [~ b)
The first matrix does not satisfy condition (i). The second matrix fails to satisfy condi-
I I I 1
tion (iii), and the third matrix fails to satisfy condition (ii). •
o 0 2 0
o 0 I 3
o 0 0 0 Definition The process of using row operations I, II, and ill to transform a 'linear system into
o 0 0 0 0 0 one whose augmented matrix is in row echelon form is called Gaussian elimina-
The last two equations of th red tion.
e uced system will be satisfied for any 5-tuple. Thus,
14 Chapter I Matrices and Systems of Equations
1.2 Row Echelon Form 15
Note that row operation II is necessary in order to scale the rows so that the leading
X2
coefficients are all I. If the row echelon form of the augmented matrix contains a row
of the form
[00"'011)
the system is inconsistent. OtherWise, the system will be consistent. If the system is
consistent and the nonzero rows of the row echelon form of the matrix form a strictly
triangular system, the system Willhave a unique solution.
Overdetermined Systems
A linear system is said to be d . .
.
len owns. Overdetennmed oven eterminen If there are more equations than un-
systems II (b . Figure 1.2.1.
are usua y ut not always) inconsistent. X'fZX~~X"",
EXAMPLE 4
Solve each of the following overdetermined systems:
X, -- ,
matrix form a strictly triangular system.
(a) XI + X, = I (b) XI + 2x, + X3 = I
XI - X, - 3 I
- 2xI - X, + X3 = 2 2 I I I 2 I
-XI + 2x, = -2 4 3
XI + X, + 3X3 =4 2 -I I 2 0 I I
0
System (c): -> '5
(e) 2xI - X, + 3X3 =5 4 3 3 4 0 0 0 0
XI + 2x, + XJ = I
3 I 2 3 0 0 0 0
2xI - X, + X3 =2
4xI + 3x, + 3xJ =4 Solving for X, and XI in terms of X3, we obtain
'Xl_ - 0 2. >J
3xI + X, + 2X3 = 3 X2 = -0.2X3
Solution XI = I - 2x, - X3 = I - 0.6X3
The process of using elementary row operations to transform a matrix into reduced row
0 0
,
[ 000 0
-+ [t 0 0 I 0
0 0 0 I
If we put the free variables over on the right-hand side, it follows that -+ [-t 1 -1
4 -4
0 -3
3
8
3
g) -+ [~
-I
1 -1
0
1 -3
1 -1
2
~) row
echelon
form
Xl = I- X2 - X3
-1 0 -2 0 0 -I reduced
=2
-+ [g g) -+ [t
X4
X5 =-1
1
0
0
1 -1
1 1
0
0
1 -I
1
gj row echelon
form
Thus, for any real numbers C/ and {J, the 5-tuple
If we set X4 equal to any real number a, then XI = C/, X2 = -C/, and X3 = a. Thus, all
(I - C/ - {J, C/, {J, 2, -1) ordered 4-tuples of the form (a, -C/, C/, C/) are solutions of the system. •
is a solution of the system. •
8 volts
4 ohms
2 ohms
A ~---A,M-~---'
i,
B
3 ohms 2 ohms
9 volts
[ -:
~
o 0
-~
I-I
~
210
160]
-40
a charge and produces a current. The current will flow out from the terminal of the
battery that is represented by the longer vertical line. The resistances are measured in
ohms. The letters represent nodes and the i's represent the currents between the nodes.
-I 0 0 I The currents are measured in amperes. The arrows show the direction of the currents.
-330 If, however, one of the currents, say 12, turns out to be negative, this would mean that
The reduced row echelon form for this matrix is the current along that branch is in the direction opposite that of the arrow.
To determine the currents, the following rules are used:
[ o~ ~ ~ =: ~~~)
0 I -I 210
Kirchhoff's Laws
1. At every node, the sum of the incoming currents equals the sum of the outgoing
The. 00000
system ISconsistent and . currents.
l' , Smceth'
so utlOns.The traffic flow di ere IS a free variable there are many possible 2. Around every closed loop, the algebraic sum of the voltage gains must equal
X2 x ad· iagram does not . . ' .
, .3, n x. Umquely If th give enough mformation to deterrmne XI, the algebraic sum of the voltage drops.
secnons th . e amount of traffi . r
. ' e trafficon the remainin . c were known between any pair of inte.
If the amount of traffic between in g ane~es could easily be calculated. For example, The voltage drops E for each resistor are given by Ohm's law,
hour, then x. '= 200. Using this valtersectlOnsC and D averages 200 automobiles per E = iR
ue, we can the I c
n so ve lor x"
X2, and X3:
where i represents the current in amperes and R the resistance in ohms.
x, '= x. + 330 ee 530 Let us find the currents in the network pictured in Figure 1.2.3. From the first law,
X2 '= x. + 170,= 370 we have
X3 '= X. + 210 '= 410 I, ~ 12 + ts = 0 (node A)
-i, + i2 - i3 = 0 (node B)
-
20 Chapter I Matrices and Systems of Equations
1.2 Row Echelon Form 21
By the second law,
carbon dioxide contains one carbon atom and glucose contains six, to balance the car-
4il + 2i2 =8 (top loop) bon atoms we require that
2i, + 5i3 = 9 (bottom loop)
The network can be represented by the augmented matrix
Similarly, to balance the oxygen, we need
-I I
I -1
° I]
2
and finally, to balance the hydrogen, we need
2 5
This matrix is easily reduced to row echelon form:
Ii -j1
If we move all the unknowns to the left-hand sides of the three equations, we end up
with the homogeneous linear system
fJ XI
2XI + X2 - 2X3 -
- 6X4
6X4
=a
=a
Solving by back substitution, we see that i, = I i = 2 and"
' 2 ,
_ I
13 - ,_
2x, - 12x4 = °
By Theorem 1.2.1, the system has nontrivial solutions. To balance the equation, we
Homogeneous Systems must find solutions (x" X2, X3, X4) whose entries are nonnegative integers. If we solve
A system of linear equations" id b the system in the usual way, we see that X4 is a free variable and
hand side are II IS Sal to e homogeneous if the constants on the right-
a zero Homogen 0 " ial
matter to find a sol t"". e us systems are always consistent. It is a mVI
lOn
mooeneous systemUh ;Just set all the variables equal to-zero. Thus, if an m x n ho-
o as a umque sol ti " 0)
The homogeneous s st . E u ron, It must be the trivial solution (0, 0, ... , . In particular, if we take X4 = I, then XI = X2 = X3 = 6 and the equation takes the form
knowns In the c
.
Yhem In xample 6 consIsted of m = 3 equations in n
ase t at n > m the ill I
4 un-
tl
=
additional nontrivial sol Uti Th' re WI a ways be free variables and, consequen y.
of underdetermined t IOns · ISresuit has essentially been proved in our discussion
sys ems but beca f. .
, , use 0 ItS Importance, we state it as a theorem.
Theol'em 1.2.1 APPLICATION 4 Economic Models for Exchange of Goods
An III x It homogeneous system of r . Suppose that in a primitive society the members of a tribe are engaged in three oc-
mear equatrong has a nontrivial solution if n > m.
Proof cupations: farming, manufacturing of tools and utensils, and weaving and sewing of
A homogeneous system is alwa s .
clothing. Assume that initially the tribe has no monetary system and that all goods and
have at most m nonzero ro Th consIstent. The row echelon form of the matrix can
services are bartered. Let us denote the three groups by F, M, and C, and suppose that
It variables altogether and:~ III ~~there are at most m lead variables. Since there are
the directed graph in Figure 1.2.4 indicates how the bartering system works in practice.
can be assigned arbitrary I ' ere must be Some free variables. The free vanables
h . va ues. For each . . bl s The figure indicates that the farmers keep half of their produce and give one-fourth
t ere IS a solution of the s assIgnment of values to the free vana e.
ystem. • of their produce to the manufacturers and one-fourth to the clothing producers. The
manufacturers divide the goods evenly among the three groups, one-third going to
APPLICATION 1 each group. The group producing clothes gives half of the clothes to the farmers and
Chemical Equations
divides the other half evenly between the manufacturers and themselves. The result is
In the process of photosynthesis I. _ summarized in the following table:
carbon dIoxide (CO) ad' p ants use radlem energy from sunlight to convert
h . 2 n water (H 0) . Th
c emlcal equation of the reaction' 2 f hlnto glucose (C6H1206) and oxygen (0,). e F M C
IS 0 t e form
x,C02 + x,H,O ~ x °+ F , I I
3 ,
I
The reduced row echelon form of the augmented matrix for this system is
o
1
Figure 1.2.4. o
There is one free variable: X3· Setting X3 '= 3, we obtain the solution (5, 3, 3), and the
The first column of the table' di general solution consists of all multiples of (5, 3, 3). It follows that the variables Xl,
fanners the second col ' di icates the distribution of the goods produced by the x2, and X3 should be assigned values in the ratio
, urnn In rcates th di ib '
the third column indicates th di ib ,e istn utlOn of the manufactured goods, and
e istn unon of th I thi
As the size of th t ib ' e c a mg. Xl : X2 : X3 '= 5 :3:3
en egrows the s t fb '
and, consequently the trib d 'd' ys em a anenng becomes too cumbersome
, , ' e eel es to rnstir t
this simple economic syst I u e a monetary system of exchange, For This simple system is an example of the closed Leontief input-output model.
or debt and that the pri o;m, we assume that there will be no accumulation of capital Leontief's models are fundamental to our understanding of economic systems. Mod-
, ces lor each of the th f
the eXisting bartering system. The u ' ree types of goods will reflect the values a ern applications would involve thousands of industries and lead to very large linear
of goods that fairly represent the q esnon IS how to assign values to the three types systems. The Leontief models will be studied in greater detail later, in Section 8 of
The problem can be tum d ,current banenng system. Chapter 6.
e mtoahnear t· .
rno e I th at was originally d I
d sys em of equations using an economic
Leontief. For this model eve'lolPed hy the Nobel Prize-winning economist Wassily
h h ' we WI let x he th d
y I e farmers, X2 be the val f hie monetary value of the goods produce
the clolhing produced A
.
ude.o t e manufactured goods and X3 be the value of all
. ccor 109 to th fi '
SECTION 1.2 EXERCISES
received by the farmers erst row of the table the value of the goods I. Which of the matrices that follow are in row eche-
. amounts to half th ' 2. The augmented matrices that follow are in row ech-
one-third the value of th e value of the farm goods produced pius Ion form? Which are in reduced row echelon form? elon form. For each case, indicate whether the cor-
od e manufactured d ' .
go s. Thus, the total value of oct pro ucts and half the value of the clothmg responding linear system is consistent. If the sys-
the system is fair, the total value ~~ s received by the farmer is ~Xl + j X2 + ~X3' If tern has a unique solution, find it.
total value of the farm goods prod goodds receIved by the farmers should equal XI, the
uce . Hence , w eave h t hee Ii
hnear equauon.
(a)
lb
2 3
0 I ~1 (b)
[~ooo ~ 00]
(a)
[~ 11 n (b) [~
!1-1]
3
~X
21
+3 +2'
x2
1
X3'=XI
I (e)
[~ !]0
0
(d)
[~~] (e)
[~
-2
0
0
4
I
0 I ~]
Using the second 1 4
received b row of the tahle and e .
y the manufacturers we b . quatmg the value of the goods produced an
d (e)
[~ ] I
0 .~
(0
[~ !J
0
I (d)
[~
-2
I
2
-I
n]
:]
, 0 tam a second equation:
n,
0 0 1 1 3 0 1
I
(g) [~
0
0
I
2
3
(h) [~ 0
0
1
0 (e) [~
3
014 21-2]
o 0 I
24 Chapter I Matrices and Systems of Equations
1.2 Row Echelon Form 25
-I 3
1 2 (I) x, - x, + 2x] = 4 8. Consider a linear system whose augmented matrix (b) x, + 2x, + x, = -I
o + 3x, - x] = I
o
I
o 11 2x,
?X, + 3x, + 4x] = 7
is of the form
-Xl -X2 +
2x, + 3x,
2X3 = 2
=-2
[-l
3. The augmented matrices that follow are in reduced 2
(g) x, + x, + x] + .r. = 0 solve both systems by computing the row echelon
row echelon form. In each case, find the solution 4
2x, + 3x, - x, - x. = 2 form of an augmented matrix (A I B) and perform-
Trlo~rlg [7~~I;1 YS -2
3x, + 2x, + x, + x. = 5 ing back substitution twice.
;~; Of[~e line;b:
3x, + 6x, - x, - x. = 4 For what values of a will the system have a unique
0013 0001 13. Given a homogeneous system of linear equations,
(h) x, - 2x, = 3 solution?
if the system is overdetermined, what are the possi-
-3 2x, + = I x, 9. Consider a linear system whose augmented matrix bilities as to the number of solutions? Explain.
(c) [~ o
o r I-n (I)
-5x, =4 + 8x,
-x, + 2x, - x, = 2
is of the form
14. Given a nonhomogeneous system of linear equa-
jl~1
2
(d) (~ ~ ~ ~ -2x, + 2x, + = x] 4
5 the possibilities as to the number of solutions? Ex-
3x, + 2x, + 2x, = 5 plain.
I-iii iI
I
-3x, + 8x, + 5x] = 17
('J Ii (j)
-XI
x, + 2x, - 3x] + x. = I
- X2 =6 + 4x] - x ..
(3) Is it possible for the system to be inconsistent?
Explain.
15. Determine the values of Xl, X2,
following traffic flow diagram:
X3, and X4 for the
~~I-~l
o 0 0
(k)
-2x, - 4x, + 7x] - x, = 1
x,
2x, - 2x,
+ 3x, + x] +
+ x] + 2r.
x. = 3
=8
(b) For what values of f3 will the system have in-
finitely many solutions?
-400
x, - 2x, + 2x, = 1
2x, x, + - x, + 3x, =0 X2, X3, X4 and show that the system will be consis-
l1x, + 2x, + x, = 14
7. Give a ge
x, - 2x,
.
+ x, + X4 =0
(AIB)= [13 27128
~1 tent if and only if
(I)
A=
[-i ~J 2
8
then
For row vectors, there is no universal standard notation. In this book, we will
a, = [ -il ' 3Z = [n, 33 = [~)
represent both row and column vectors with boldface lowercase letters and to distin. and
guish a row vector from a column vector we will place a horizontal arrow above the
letter.. Thus, the horizontal arrow indicates a horizontal array (row vector) rather than 1\1 =
a vertical array (column vector).
For example,
(3, 2, 5), 3z = (-I, 8,4)
•
Equality
i, ("'"",) and y, fEI For two matrices to be e ual, they must have the same dimensions and their corre-
sponding entries must agree.
are row and column vectors with four entries each.
Given an m x n matri A it i f
I h x ,I IS 0 ten necessary to refer to a particular row or Definition Two m x n matrices A and B are said to be equal if au = bU for each i and j.
coumn·IIT e standard notation for the jth column vector of A is 3 i, There is no
umversa Y accepted standard tati C ) tho
b00 k , Since
. .
we Use honzontal no anon lor. the
. ith row vector of a matrix A. In IS
vector of A by 3;. arrows to indicate row vectors, we denote the ith row
If A is an m x n matn th h Scalar Multiplication
nx, en t e ~ of A are given by
If A is a matrix and" is a scalar, then "A is the matrix formed by multiplying each of
3j = (ail, ai2, ... , aill) i-I
the entries of A by a,
- , ... ,m
and the column vectors are given hy
Definition If A is an m X n matrix and" is a scalar, then "A is the m x n matrix whose (i, j)
I
entry is aaij.
alj
a2} J
= .
3j
j = 1, ... ,n
For example, if
am}
8
Themt·A A = [:
a nx can be represented in te .. . 8 I~ )
rms of either Us column vectors or its row vectors.
then
1 4 24
A -- (a l,a2,· .. ,a
-A=
2 [; 4 ~J and 3A _ [12
- 18 24 3g J
ll
)
Or A=ll:j
B is an 3m
Similarly, if . Matrix Addition
n x r matrix, then
Two matrices with the same dimensions can be added by adding their corresponding
entries.
Definition If A = (aU) and B = (bu) are both m x n matrices, then the sum A +B is the
m x n matrix whose (i, j) entry is au + b., for each ordered pair (i, j).
30 Chapter I Matrices and Systems of Equations
1.3 Matrix Arithmetic 31
For example,
Case 1. One Equation in Several Unknowns
Let us begin by examining the case of one equation in several variables. Consider, for
example, the equation
3x, + 2X2 + 5X3 = 4
If we set
A+O=O+A=A
We will refer to 0 as the zero' '
m x n matrices F rth matrix. It acts as an additive identity on the set of all if we let
. u ermore each m x . d
' n matnx A has an additive inverse. Indee ,
A+(-I)A,=O=(-l)A+A A= (a, a2 , .. au] and x=
It is Customaryto de t h ",
no e t e addItIve inverse by -A, Thus,
aX=b (2) A = (2
We generally think of a x and b bei
as I x I matrices. Our ~O~In as emg scalars; however, they could also be treated
m n is
an x linear system by a s~nw to generalize equation (2) so that we can represenl then
g e malnx equatIOnof the form
Ax = 2·3 + I· 2 + (-3)· I +4· (-2) =-3
Ax= b
where A is an m x n matri ' Note that the result of multiplying a row vector on the left by a column vector on the
first the case of one equati~' x ISan unknown vector in lRn, and b is in lRm. We consider right is a scalar. Consequently, this type of multiplication is often referred to as a scalar
n in several unknowns. product.
32 Chapter I Matrices and Systems of Equations
1.3 Matrix Arithmetic 33
I"'
a21 a22 a2n Solution
X,
A= x= b=
2
Q'~I Qm2
Ax=
a21xI + a22X, + + a'nxn
(5l allXj + GI2X2 + + QlnXn
then the linear system of equations (3) is equivalent to the matrix equation (4). a",IX' + a"'2X2:+'" + a",nxn
Given an In x n rnatnx A and a vector x in JRn, it is possible to compute a product all
Ax by (5) '. The product Ax will be an In x I matrix-that is, a vector in JRm. The rule a21
for determmmg the i th entry of Ax is =Xl .
2l
5xI - 4X2 + 2x] =6
A=[4 J5 3 7 ' can be written as a matrix equation
• •
34 Chapter I Matrices and Systems of Equations
1.3 Matrix Arithmetic 35
Definition If a" a2, ... , a" are vectors in IRm and c" c-; ... , Cn are scalars, then a sum of the Matrix Multiplication
form
More generally, it is possible to multiply a matrix A times a matrix B if the number
Cia, + czaz + ... + cnan
of columns of A equals the number of rows of B. The first column of the product is
is said to be a linear combination of the vectors a.. az, ... , an' determined by the first column of B; that is, the first column of A B is Ab, the second
column of A B is A bz, and so on. Thus the product A B is the matrix whose columns
are Ab" Abz, ... , Abn:
It follows from equation (6) that the product Ax is a linear combination of the
column vectors of A. Some books even use this linear combination representation as
AB = (Ab], Ab2, ...• Ab,,)
the definition of matrix vector multiplication.
The (i, j) entry of AB is the ith entry of the column vector Abj. It is determined
If A is an In x n matrix and x is a vector in IR", then by multiplying the ith row vector of A times the jth column vector of B.
of (7).
f . .
id . .
. provi es a ruce way of characterizing whether a linear sys·
m a equations IS consistent I d d h f .
. n ee , t e ollowlllg theorem is a direct consequence
,
AB = [~ =~1 [-~
3. (-2) -2·4
: ~J
3·]-2·1 3'3-2.61
Theorem 1.3.1 2· (-2) + 4·4 2·1+4·] 2·3+4·6
Consistency Theorem for Linear Systems [ 1·(-2)-3·4
I . I - 3 . I 1·3 - 3·6
=[-:~ ~ ~1
A linear system Ax = b is co". .'.
nation of the column nsrstenr If and only If b can be written as a linear combl
vectors of A.
EXAMPLE 7 The linear system
-14 -2 -15
The shading indicates how the (2,3) entry of the product A B is computed as a scalar
x] + 2xz =I
product of the second row vector of A and the third column vector of B. It is also
2x] + 4X2 =I possible to multiply B times A, however, the resulting matrix BA is not equal to AB.
is inconsistent, since the vector [ I J. . e In fact, AB and B A do not even have the same dimensions, as the following multipli-
I cannot be wntten as a linear combination of Ih cation shows:
column vectors ( I J and (21
-2·3 + I ·2 + 3 . I
w ld b 2 4 . Note that any linear combination of these veclOts BA = ( -2.(-2)+1.4+3.(-3)1
au e of the form 4·3+1·2+6·1 4· (-2) + I ·4 + 6 . (-3)
J
dh
x] UJ + X2 (24 J = ( 2x, ++ 4xz J
XI 2X2
-I
( 20
-I
-22 •
an ence the second entry of th
e Vector must be double the first entry. •
36 Chapter I Matrices and Systems of Equations
1.3 Matrix Arithmetic 37
EXAMPLE 9 If Table 2 Amount Produced per Quarter
Season
A= [~~] and B= [~ ~] Product Summer Fall Winter Spring
A 4000 4500 4500 4000
then it is impossible to multiply A times B, since the number of column of A doesnot B 2000 2600 2400 2200
equal the number of rows of B. However, it is possible to multiply B times A. C 5800 6200 6000 6000
BA = [~ ;] [~ ~] = [ 1~
3 6
2~
15 24
1 • Solution
Let us consider the problem in terms of matrices. Each of the two tables can be repre-
sented by a matrix, namely,
If A and B are both II x II matrices, then A Band BA wiII also be n x II matrices.
but, in general, they will not be equal. Multiplication of matrices is not commutative. 0.10 0.30 0.15]
M = 0.30 0.40 0.25
EXAMPLE 10 If r 0.10 0.20 0.15
A=[OIOI]
and
and B = [I2 2I] 4000 4500 4500 4000]
P = 2000 2600 2400 2200
then r 5800 6200 6000 6000
If we form the product MP, the first column of M P will represent the costs for the
AB = [6 6] [i i] summer quarter:
and Raw materials: (0.10)(4000) + (0.30)(2000) + (0.15)(5800) = 1870
Labor: (0.30)(4000) + (0.40)(2000) + (0.25)(5800) = 3450
BA = [i i] [6 6] [i i) =
Overhead and
miscellaneous: (0.10)(4000) + (0.20)(2000) + (0.15)(5800) = 1670
Hence, AB of BA.
• The costs for the fall quarter are given in the second column of MP:
Expe ..... Product The entries in row I of MP represent the total cost of raw materials for each of the four
A B quarters. The entries in rows 2 and 3 represent the total cost for labor and overhead,
Raw materials c respectively, for each of the four quarters. The yearly expenses in each category may
Labor 0.10 0.30 0.15 be obtained by adding the entries in each row. The numbers in each of the columns
0.30 0.40 may be added to obtain the total production costs for each quarter. Table 3 summarizes
Overhead and miscellaneous 0.25
0.10 0.20 the total production costs. •
0.15
38 Chapter I Matrices and Systems of Equations
Season
Summer Fall Winter Spring Year
Raw materials
1,870 2,160 2.070 The matrix C in Example II is its own transpose. This frequently happens with
Labor 1,960 8,060
3,450 3,940 matrices that arise in applications.
3,810 3,580 14,780
Overhead and miscellaneous 1,670 1,900 1,830
Total production costs
6,990 8,000 -
7,710
1,740
7,280
7,140
29,980
Definition An n X n matrix A is said to be symmetric if AT = A.
For example, if I Ions. IS IS true for both scalar and matrix multiplications.
pages on the Internet is extremely large, searches can be simplified dramatically, since 3. For which of the pairs in Exercise 2 is it possible to
the matrices and search vectors are sparse; that is, most of the entries in any column
are O's.
multiply the second matrix times the first, and what
would the dimension of the product matrix be?
A = [: _; I· b = [~I, c= [ =;]
For Internet searches, the better search engines will do simple matching searche 4. Write each of the following systems of equations as (a) Write b as a linear combination of the column
a matrix equation. vectors 31 and 32.
to find all pages matching the keywords, but they will not order them on the basis oflle
(b) Use the result from part (a) to determine a so.
relative frequencies of the keywords. Because of the commercial nature of the InterneL (8) 3Xl + 2x, = I ~ (I lution of the linear system Ax = b. Does the
people who want to sell P~oducts may deliberately make repeated use of keywords ro 2x, - 3x, = 5
system have any other solutions? Explain.
ensure that their \\feb srte IS highly ranked in any relative-frequency search. In fact,II
(b) x,+x, =5 (c) Write c as a linear combination of the column
ISeasy to surreptitIously list a keyword hundreds of times. If the font color of the won!
matches the background color of the page, then the viewer will not be aware thai the
2Xl + X2 - X3 =6 vectors 3 I and 32.
word is listed repeatedly. 3Xl - 2x, + 2x] = 7 10. For each of the choices of A and b that follow. de-
termine whether the system Ax = b is consistent
For Web searches, a more sophisticated algorithm is necessary for ranking Ile (c) 2x, + x, + X3 =4 by examining how b relates to the column vectors
pages that contain all of the key search Words. In Chapter 6, we will study a special Xl - X2 + 2X3 =2 of A. Explain your answers in each case.
type of matnx model for assigning probabilities in certain random processes. Th~
tYt~hofmodel IS referred to as a Markov process or a Markov chain. In Section J 5. If
3x] - 2X2 - X3 =0
(a) A = [ _; _:], b= U]
[1 !l I
arankmgs
. apterof 6,Web
we pages.
will see how to use Markov chains to model Web surfing and obtain
(b) A = [~ ~] b = [;
A=
References
"IU I verify thai
1. Berry, M,ichaelw.,
and Murray Browne, Understanding Search Engines: Math,
(a) SA = 3A + 2A (b) 6A = 3(2A)
(c) A = [;
321
; :],
b=[_n
elna/lca Modeling d T; R . (c) (AT)T = A
-----------
1 J. Let A be a 5 x 3 matrix. If
an ext etnevat, SIAM, Philadelphia, 1999.
6. If
b=31 +32 = 32 +33
A = [i ~ ~) and B = [-~ ~ -~ I then what can you conclude about the number of
SECT/ON
I. If
'.3 EXERCISES
- verify
(a) A
that
+B
+ B)
=B +A
+ 3B
solutions of the linear system Ax = b? Explain.
12. Let A be a 3 x 4 matrix. If
b=31 +32+33+34
i Jl
(b) 3(A = 3A
2. For each of the pairs of matrices that folloW,de'
Iermine
. whether it is possible to mulnp . Iy rhe fi~1 (c) (A + B)T = AT + BT then what can you conclude about the number of
A = [-~ 7. If solutions ofthe linear system Ax = b? Explain.
matrix times the second. If it is possible, perftJl1l1
the mUltiplication. 13. Let Ax = b be a linear system whose augmented
n
compute
matrix (A [h) has reduced row echelon form
1-~ ~ ~) fr
(a) 2A A=[ ~~] and B=li:]
(b) A + B
-21
I
(c) 2A -3B -2 4
(e) A B
(d) (2A)T _ (3B)T
(a)
oI 2
0
0
I
3
2
I
4 5
(g) ATBT
(I) BA ~"1? 7,n verify that
(a) 3(AB) = (3A)B = A(3B)
o
o
0 000
0 0 000
0
(h) (BA)T
(b) (i =:1 (I 2 3]
(b) (AB)' = BTAT
(a) Find all solutions to the system.
44 Chapter I Matrices and Systems of Equations
and
Qikbkj +L
n
k=!
aikCkj
But
The algebraic rules used for real nurn n n n
used. For example if a a db
• n
bers mayor may not work when matrices are
are reaJ numbers then L aik (bkj + Ckj) = L aikbkj + L aikCkj
k=! k=l k=1
. •
The first of these algebra I ttion and multiplication are both commutaUve. Proof of Let A be an m x n matrix, B an n x r matrix, and C an r x s matrix. Let D = A Band
ICru es works when I . A
an d B ; that is, we rep ace a and b by square mamces Rule 3 E = Be. We must show that DC =
AE. By the definition of matrix multiplication,
However A+B=B+A n r
f •
we hav
I
e a ready seen that matri
act deserves special emphasis.
....
IX multIplicatIon IS not commutative. This
dil = L aut» and ekj = L bklClj
IJI/II/III
i k=! 1=1
EXAMPLE I
these differences are Illustrated in Exercises I through 5 at the end of this section.
If
A2 _
-
[ 1
I :) r: :)=[~ ~)
3
A = [1 2 J, and B = [ 2 I J'
A = AAA = AA2 = [ :
:)[~ ~)=[::)
3 4 -3 2 and
and, in general,
verify that A(BC) = (AB)C and A(B + C) = AB + AC.
Solution 2,,-1
An = [ 2n-1
•
A (BC) = [I3 42 J [41 21J = [616 II5 J
(AB)C = [=46 lJ5 J [I2 0)1 = [616 115 J APPLICATION I A Simple Model for Marital Status Computations
Thus, In a certain town, 30 percent of the married women get divorced each year and 20
percent of the single women get married each year. There are 8000 married women and
2000 single women. Assuming that the total population of women remains constant,
A(BC) = [I~ Ii) == (AB)C
how many married women and how many single women will there be after 1 year?
After 2 years?
Solution
A(B + C) = [I
3 4
2) [ -13 3I) == [ I
5
7
15
J Form a matrix A as follows: The entries in the first row of A will be the percentages
of married and single women, respectively, who are married after I year. The entries
!Iillil' AB + AC = [-4-6 II5 J + [5II 42 J == [ 5I in the second row will be the percentages of women who are single after I year. Thus,
+ C) == + AC
Notation
A(B AB
• If we let x == [~~~~), the number of married and single women after I year can be
computed by multiplying A times x.
Since (AB)c == A(BC) .
s . ,~m~m~y .
. arne IStrue for a prOduct of four omit the parentheses and write A BC. The 0.70 0.20) [8000) [6000)
ISmultipli ed b . or more matrices I h . Ax == [ 0.30 0.80 2000 - 4000
T hus If. I Y Itself a number of ti '. . n t e case where an n x II matnX
k is .. Imes It IS conv . .
' a POsitiveinteger, then' ement to use exponential notation. After I year, there will be 6000 married women and 4000 single women. To find the
number of married and single women after 2 years, compute
AT
= ~AA ".A
k times 2
A x == A (Ax) ==
[0.70 0.20) [6000
0.30 0.80 4000
J ==
[5000)
5000
EXAMPLE 2 If
After 2 years, half of the women will be married and half will be single. In general, the
number of married and single women after n years can be determined by computing
Aflx. •
48 Chapter I Matrices and Systems of Equations
1.4 Matrix Algebra 49
APPLICATION 2 Ecology: Demographics of the Loggerhead Sea Turtle
If we let e, denote the average number of eggs laid by a member of stage i (i = 2, 3, 4)
The management and preservation of many wildlife species depends on our ability 00 in I year and form the matrix
model population dynamics. A standard modeling technique i to divide the life cycle
~I
of a species into a number of stages. The models assume that the population sizes fm PI ei e3
each stage depend only on the female population and that the probability of survival P2 0
L= (3)
of an individual female from one year to the next depends only on the stage of Ibe [ ~ qi P3
life cycle and not on the actual age of an individual. For example, let us consider a o q3 P4
four-stage model for analyzing the population dynamics of the loggerhead sea rurtle
(see Figure 1.4.1). then L can be used to predict the turtle populations at each stage in future years. A
matrix of the form (3) is called a Leslie matrix, and the corresponding population
model is sometimes referred to as a Leslie population model. Using the figures from
Table I, the Leslie matrix for our model is
L _
-
0.67
[ 0
0
o
0
0.7394
0.0006
0
127
o
o
0.81
79
0.8~77
I
Suppose that the initial populations at each stage were 200,000, 300,000, 500,
and 1500, respectively. If we represent these initial populations by a vector xo, the
I I[ I
Figure 1.4.1. Loggerhead Sea Turtle populations at each stage after 1 year are determined with the matrix equation
0 0 127
At each stage, we estimate the probability of survival over a l-year period. We
also estimata the ability to reproduce in terms of the expected number of eggs laidin
0.67 0.7394 0 o
79 [200,000
300,000 _ 182,000
355,820
x, = Lxo = 0 0.0006 0 o 500 - 180
[
a g~ven year. The results are summarized in Table I. The approximate ages for eacb o 0 0.81 0.8077 1,500 1,617
stage are listed In parentheses next to the stage description.
Table I (The computations have been rounded to the nearest integer.) To determine the popu-
Four-Stage Model for Loggerhead Sea Turtle Demographics lation vector after 2 years, we multiply again by the matrix L:
!I!~II~I Sta~e
Number
Description
.
A
nnua
I
E~laid X2 = Lx, = L2xo
~m~~ SUrviVOrs
. h'
rp per year
I
Eggs, hatchlings ( < I) In general, the population after k years is determined by computing Xk = Lkxo. To
2 0.67 o see longer range trends, we compute x,o, X25, and Xso. The results are summarized in
Juveniles and subadults (1-21)
3
Novice breeders (22)
0.74 o Table 2. The model predicts that the total number of breeding-age turtles will decrease
4 M 0.81 127 by 80 percent over a 50-year period.
ature breeders (23-54)
0.81 79
Table 2 Loggerhead Sea Turtle Population Projections
If d, represents the duration of h . h . for Stage Initial 10 25
that stage, then it can be h .t e I t stage and s, is the annual survivorshif rate. 50
Number population years years years
year will be s own that the proportion remaining in stage i the folloWIng
I 200,000 114,264 74,039 35,966
Pi:::::
(I-,d'-')
I
J -s./ d· s,
(11
4
2
3
300,000
500
1,500
329,212
214
1,061
213,669
139
103,795
68
and the proportion of the po ulatio . ' . !be 687 334
followmg year will be p n that will survive and move into stage I +I
A seven-stage model describing the population dynamics is presented in refer-
ence [1] to follow. We will use the seven-stage model in the computer exercises at the
(21 end of this chapter. Reference [2] is the original paper by Leslie.
50 Chapter I Matrices and Systems of Equations
1.4 Matrix Algebra 51
References
Matrix Inversion
1. Crouse, Deborah T., Larry B. Crowder, and Hal Caswell, "A Stage-Based Po~
ulation Model for Loggerhead Sea Turtles and Implication for Conservation: A real number a is said to have a multiplicative inverse if there exists a number b such
Ecology, 68(5), 1987. that ab = I. Any nonzero number a has a multiplicative inverse b = ~. We generalize
the concept of multiplicative inverses to matrices with the following definition:
2. Leslie, P. H., "On the Use of Matrices in Certain Population Mathematics
Biometrika, 33, 1945.
Definition An n x n matrix A is said to be nonsingular or invertible if there exists a matrix
B such that AB = B A = I. The matrix B is said to be a multiplicative inverse of
A.
The Identity Matrix
If Band C are both multiplicative inverses of A, then
Just as the number I acts as an identity for the multiplication of real numbers, theres
a special matnx I that acts as an identity for matrix multiplication; that is, B = BI = B(AC) = (BA)C = IC = C
Thus, a matrix can have at most one multiplicative inverse. We will refer to the multi-
IA=AI=A (41 plicative inverse of a nonsingular matrix A as simply the Inverse of A and denote it by
A-I.
forhaT n x n matrix A. It is easy to verify that, if we define I to be an n x 11 maW
Wit's on the mai di I d '
. n Iagona an 0 s elsewhere then I satisfies equation (4) foran) EXAMPLE 3 The matrices
n x n matnx A More fo II h ' .
Definition
. rrna y, we ave the follOWingdefinition:
8;j = ( I
if I = j
0 if I ¥c j
-'
[ ; i) [-~-:J
10
[~ n
As an example, let us verify equation (4) in the case n = 3. We have and
111m/I., I
[~
0
I
0 n(~ t1 (~t 14
6
I
-
4
6
[-~-:J [; 1) [~ n
10
•
I
and EXAMPLE 4 The 3 x 3 matrices
n
2
-n
0 -2
U (~ o
[32 46
o I I 001 = (34IJ
I
2 6
0 I
3
8
[~ I
0
and
[~ I
0
In general, if B is any m x n matrix . are inverses, since
and C ISany n X r matrix, then
BI = B
0
I
0
I
0
column vector of I is e. rath huchdean n-Space. The standard notation for theJ th
-n [~ n [~ ~)
be written er t an the uSual ij. Thus, the n x n identity matrixclJI -2 2 0
[~
j,
I
1- 0
I
0
= I
0 •
- (e l,e2,· .. ,en)
52 Chapter I Matrices and Systems of Equations
1.4 Matrix Algebra 53
EXAMPLE 5 The matrix The first three rules are straightforward. We leave it to the reader to verify that they are
A-I -
IO
]0 0
valid. To prove the fourth rule, we need only show that the (I, j) entries of (AB)T and
T
B AT are equal. If A is an m x n matrix, then, for the multiplications to be possible, B
has no inverse. Indeed, if B is any 2 x 2 matrix, then must have n rows. The (I, j) entry of (AB)T is the (j, I) entry of AB. It is computed
by multiplying the jth row vector of A times the zth column vector of B:
BA = ~]
Thus, BA cannot equal I. (5)
Proof The proof is by mathematical induction. In the case k = I, it follows from the defini-
tion of the adjacency matrix that aij represents the number of walks of length I from
Vi to Vj. Assume for some III that each entry of Am is equal to the number of walks
of length III between the corresponding vertices. Thus, a~") is the number of walks
of length III from Vi to V,. Now, on the one hand, if there is an edge (V" Vj l. then
v,
ai~"Ja'j = a'<;")is the number of walks of length III + 1 from Vi to Vj of the form
Figure 1.4.2.
Vi --+ ... --+ V, --+ Vj
The line segments joining the vert' On the other hand, if {V" Vj J is not an edge, then there are no walks of length III +1
Ices correspond to the edges: of this form from Vi to Vj and
~]
aij in Figure 1.4.2, we need only compute
o If there is no d '"
e ge JOInIng Vi and V,
The matrix A is called the d'
h' , a ~acencYIll , ,
grap m FIgure 1.4.2 is given by
J
Thus, the number of walks of length 3 from V3 to V5 is aj~) = 4. Note that the matrix
IIH ilJ
A=
A 3 is symmetric. This reflects the fact that there are the same number of walks of
length 3 from Vi to Vj as there are from Vj to Vi' •
56 Chapter I Matrices and Systems of Equations
1.4 Matrix Algebra 57
SECTION 1.4 EXERCISES 18. Let A be a nonsingular n x 11 matrix. Use math- 28. Let A be an m x 11 matrix. Show that ATA and AAT
1. Explain why each of the following algebraic rule ematical induction to prove that Am is nonsingular are both symmetric.
9. Let and
'---- will not work in general when the real numbers a
l~~g fl
(Am)-I = (A -I)m 29. Let A and B be symmetric n x n matrices. Prove
and b are replaced by n x 11 matrices A and B. that A B = B A if and only if A B is also symmetric.
(a) (a + b)' = a' + 2ab + b' /form = 1,2,3, ....
(b) (a + b)(a - b) = a' _ b' h 19. Let A be an 11 x II matrix. Show that if A' = 0, 30. Let A be an n x Il matrix and let
then I - A is nonsingular and (I - ,1)-1 = 1+,1.
(rill the rules in Exercise I work if a is replaced by t- thol =0 (or " B=A+AT and C=A-AT
20 Let A be an II x II matrix. Show that if AHI = 0,
...J~n n .x n matrix A and b is replaced by the" x n 10. lei A and 8 be n "1IIIIIicn. then I - A is nonsingular and
identity matrix l? (a) Show that B is symmetric and C is skew sym .
each of tho: 101..... d<tcnnine ",iJ<fh<t
metric.
3. Find nonzero 2 x 2 matrices A and B such that matn\ mu t be )1tlIlICInC or (I - ,1)-1 = I + A + A' + ... + A'
ric: (b) Show that every n x It matrix can be repre-
JAB O. = 21. Given sented as a sum of a symmetric matrix and a
14. Find nonzero matrices A, B, and C such that
(a, C =A 8 bl 0 = R= [cose -Sine) skew-symmetric matrix.
J reI £ = A8 Idl f = ~8 4 smB cosO 31. In Application 1, how many married women and
AC = BC and A oF B (e) G ... AB 8), 'H... 8 8A show that R is nonsingular and R-1 = RT. how many single women will there be after 3 years?
5. The matrix II. Let C be a non )1IIJnCIn("" n ItIlIln For rJ 22. An n x n matrix A is said to be an involution if
Ihe foil"" Iftg. dctemune bctba the P''''' lIIOIll1 A' = I. Show that if G is any matrix of the form 32. Consider the matrix
A = I: =: I mu I be )rnmctnc
A ... C C'
or COUld be ""'" )1I1IlICI/1<
II) B _ C _ C' G= Icose sin e I 1 0 J I
,~ [1
(a) 0 I I 0
smB -cose
has the property that A' = O. Is it possible for a I 0 0
nonzero symmetnc 2 x 2 matrix to have this pro
(e) D = C' rdl f. = C' C - ce I
then G is an involution. I
erty? Prove your answer P- (e) F = (/ C (I C'
23. Let u be a unit vector in lR/l (i.e., u" u = I) and let 0
0
I
0
I
1
0
6. Prov~ the asso~iative law of multiplication for 2 x 2 !fI G = (/ CH/-C') H = / - 2uuT. Show that H is an involution. (a) Draw a graph that has A as its adjacency ma-
matnces; that IS, let 12. Let
A = Iall
b12
, ... [a,a, al
a
I 24. A matrix A is said to be idempotent if A2 = A.
Show that each of the following matrices are idem-
potent:
trix. Be sure to label the vertices of the graph.
(b) By inspecting the graph, determine the number
of walks of length 2 from V, to V, and from V,
!i tl
a21 )
bn ' Sho" thai" d ... alia - n ,au'" O.1ho:n to Vs.
(a) [: ~) (c) Compute the second row of A3, and use it to
= A (BC) (c) [: 4: 4
(AB)C of each of the follOWing m;lln"", v, v,
7. Let
(a) E ;I (b) [~n II [~ n (25./Let
1
, 2
I
A be an idempotent matrix.
Al
A=( __ :
,
-!} I
2
14. Let A and B be 11 )( 11 maine . Show thai ,I (a) Show thaO
(b) Show mat I
(I + ,1)-1 = / -
- A) is
+
!A
also idempotent.
A is nonsing<Jlar and
AB=A and Bid
Compute A' and ,13 . What will A' t
urn out to be?. 26. Let D be an n x n diagonal matrix whose diagonal
8. Let then A mUM be ,"gular. VI V4
entries are either 0 or I.
I I 15. Let A be a non"ngular matm Show mal A I 6 (a) Show that D is idempotent.
2 -2 -~ -! al,o nOn"ngular and (A ,) I = A
(b) Show that if X is a nonsingular matrix and
(a) Determine
graph.
the adjacency matrix A of lhe
I I
A = -2 2 -1 -i \J 16. Prove that If A " non Ingular. then A' IS _,iP- A = X DX-I, then A is idempotent. (b) Compute ,12 What do the entries in the first
J _1 I gular and
-2 2 2-t 27. Let A be an involution matrix, and let row of A' tell you about walks of length 2 that
-~ __ ,I _.!
,
I
2
(AT) I = (A 'I' I t
start from VI?
(Him: (AB)' : BTA'.) B=2:(/+A) and C = -(/- A) (e) Compute ,13 How many walks of length 3
Compute A' and A 3
What will A'" and A"'+I 2
1~. Let A be :tOl' are there from V2 to V4? How many walks of
out to be? tum . an n x n maln~ and let 1: and y be ,,('I; Show that Band C are both idempotent and BC = length less than or equal to 3 are there from V,
:::aiR:. Show that If Ax _ Ayand f y. the1l.tb' O. to V4?
trix A mu't be \Ingular.
58 Chapter I Matrices and Systems of Equations
1.5 Elementary Matrices 59
For each of the conditional statements that follow, an- matrices A and 8 must be equal. Type I An elementary matrix of type I is a matrix obtained by interchanging two rows
swer true if the statement is always true and answer
35. If A and B are singular n x n matrices. then A + B of!.
false otherwise. In the case of a true statement, explain
is also singular.
or prove your answer. In the case of Q false statement,
give all example to show that the statement is not always 36. If A and 8 are nonsingular matrices. then (AS)'" EXAMPLE I The matrix
true. nonsingular and
In this section, we view the process of solving a linear system in terms of matrix
multi ph cations rather than row operations. Given a linear system Ax = b, we can
multiply both sides by a sequence of special matrices to obtain an equivalent syslem [
01 01 0 0r[a ll
aZI
in row echelon form, The special matrices we will use are called elementary matrices.
o 0 I a31
We WIll use them to see how to compute the inverse of a nonsingular matrix and also
to obtain an Important matnx factorization. We begin by considering
multlplymg both SIdes of a linear system by a nonsingular matrix.
Equivalent Systems
the effects of AE1 =
[
all
a21
a31
al2
a22
a32
al3]
a23
a33 [~~n V
Multiplying A on the left by EI interchanges the first and second rows of A. Right
multiplication of A by EI is equivalent to the elementary column operation of inter-
Given an m x n linear system A b '. lu'
I '. x = , we can obtain an equivalent system by IOU • changing the first and second columns. •
P ying both Sides of the equation by a nonsingular m x m matrix M:
l: quiva ent
a transform the system A - b . '. an
apply a sequence of n . x - t? a simple- form that is easier to solve, we.c is an elementary matrix of type II. If A is a 3 x 3 matrix, then
The new system will thonSlbnguflarmatnces E I, ... , Ek to both sides of the equation.
en e a the form
Ux =c E2A = rOO]
o 1 0 [all
a21
a,2
a22
al3]
a23
[ all
a21
al2
an
al3 ]
a23
where U = Ei . " EI A and c - E .. o 0 3 a31 a32 a33 3a31 3a32 3a33
alent to the original id - k'" E2EI b. The transfonmed system will be equlV
. , ProVI ed that M - E E" M IS al2
nOnsmgular, since it is a prod f :-- k . " I IS nonsmgular. However, [all al2 al3] [1 0 0] [ all 3al3 ]
. We will show next that anvor nonsmgular matrices. .
AE2 = a21 a22a23 010 = aZI a22 3a23
plished by mUltiplying A : the three elementary row operations can be aceoll!
a31 a32 a33 0 0 3 a31 a32 3a33
On t e left by a nonsingular matrix.
Elementary Matrices Multiplication on the left by Ez perfonms the elementary row operation of multiplying
the third row by 3, while multiplication on the right by E2 perfonms the elementary
If we stan with th id . column operation of multiplying the third column by 3. •
. e I entrty matrix I roW
operatIon, the resulting m t" and then perform exactly one elementary
There are three type: nfx]1Scalled an elementary matrix. f
I 0 e ementary m tri pes 0 Type III An elementary matrix of type III is a matrix obtained from J by adding a
e ementary row Operations. a ces corresponding to the three ty
multiple of one row to another row.
60 Chapter I Matrices and Systems of Equations
1.5 Elementary Matrices 61
EXAMPLE 3
ith row to the jth row, that is,
IaaI a3} I
£3 =
[a a I 0
a I ith row
is an elementary matrix of type III. If A is a 3 x 3 matrix, then £=
a m I jth row
al2 + 3a32
a22
a32
a a a
3all + a13} then E can be transformed back into 1 either by subtracting m times the Ith row from
3a21 + a23 the jth row or by subtracting m times the jth column from the ith column. Thus,
3a31 + a33
Proof
If £ is the elementary matrix of t If . .
rows, then E can be transfo d~ ormed from 1 by Interchanging the ith andJib In other words, B is row equivalent to A if B can be obtained from A by a finite
Therefore, E E = 1 and h rme E ac~ Into 1 by interchanging these same rows agaiJI. number of row operations. In particular, if two augmented matrices (A I b) and (B I c)
type II formed by multipl ence IS Its own inverse. If E is the elementary matrix of are row equivalent, then Ax = band Bx = c are equivalent systems.
~ansformed into the identit~n~~~:t~ row of 1 by a nonzero scalar a, then e canbe The following properties of row equivalent matrices are easily established:
Y I/a. Thus, Y multIplYing eJlher its Ith row or its Ith coluDIII I. If A is row equivalent to B, then B is row equivalent to A.
II. If A is row equivalent to B, and B is row equivalent to C, then A is row
equivalent to C.
Property (I) can be proved using Theorem 1.5.1. The details of the proofs of (I) and
o (II) are left as an exercise for the reader.
£-1 _ I
l/a Theorem 1.5.2 Equivalent Co~ditions for Nonsingularity
Ith row
I Let A be an n x n matrix. The following are equivalent:
o
(a) A is nonsingular.
(b) Ax = 0 has only the trivial solution O.
Finally, if E is the elementary .
(c) A is row equivalent to I.
matrix of type III • . ....
IOrmed from 1 by adding m urnes'"
62 Chapter I Matrices and Systems of Equations
1.5 Elementary Matrices 63
Proof We prove first that statement (a) implies statement (b). If A is nonsingular and xi"
EXAMPLE 4
solution of Ax = 0, then Compute A -I if
4
x = IX = (A-IA)x = A-I(Ax) = A-IO =0
Thus, Ax = 0 has only the trivial solution. Next, we show that statement (b) imple
A = {-l -2
2
statement (c). If we use elementary row operations, the system can be rransformr
Solution
into the form Ux = 0, where U is in row echelon form. If one of the diagonal e1~
ments of U were 0, the last row of U would consist entirely of O's. But then Ax =1
would be equivalent to a system with more unknowns than equations and, hence, ~
[-l -2
4
a
3 I
0
0
I
~J~ [~-}'-;
4 3 I
I
0
I
~J
-,I
Theorem 1.2.1, would have a nontrivial solution. Thus, U must be a strictly triangulr 2 3 0 0 -2 a
matrix with diagonal elements all equal to 1. It then follows that 1 is the reduced rO'l
I ;
echelon form of A and hence A is row equivalent to I. a 3
Ii
4 - \
n
4 3 I 0 2: -2: 2 -?
Finally, we will Show that statement (c) implies statement (a). If A is row equia
lent to I, there exist elementary matrices E I , £2, ... , £k such that
I 6 o 1.\ ~3
~
[~ 2
0
3
6
I
I
I
3
~ 2
0
0
6
I
2: -2:
3
I
-2:
I
I
A = Ek£k_1 '" Ell = Ek£k_1 ... £1
I I I
I 0 0 a I I
-. -!]
-2: -2: 2: I 0 -2: -2:
But since E, is invertible, i = I, ... , k, the product £k£k-I ... £1 is also invenible
Hence, A is nonsingular and ~ I I I I
0 2 0 ~ a
•
I
2: -2: -2: 0
I
A-I = (£kEk_1 '" £1)-1 = Ell £:;1 ... e;' I 0 0 6 3 0 0 I 6
1
2
Corollary 1.5.3 The system Ax = b of n linear equations in n unknowns has a unique solution if and Thus,
only if A is nonsingular. I
Ax = b
A-I =
-.
n -1]
-2:
I
I
2:
•
g
MUI:!IYin bothsides of this equation by A -I, we see that x must be equal to A -lb. EXAMPLE 5 Solve the system
. onversely, If Ax = b has a unIque solution x then we claim that A cannot be
sl~~lar. Indeed, If A were singular, then the equati~n Ax = 0 would have a solution
XI + 4X2 + 3X3 = 12
z . But this would Imply that y =
x + z is a second solution of Ax b, = since -X, - 2X2 = -12
2xI + 2X2 + 3X3 = 8
Ay = A(x + z) = Ax + Az = b + 0 = b
Therefore, if Ax = b has au' . I
Solution
mque SOIUt1On,then A must be nonsingular.
If A is nonsingular then A . . tat)' The coefficient matrix of this system is the matrix A of the last example. The solution
matrices E I, ... , E'k SUch that ts row equIvalent to I and hence there exist elemen of the system is then 5x'3 '3 x\
. rna'
.eA'be -: ~!-11 HI- [il •
lJix A into I will transfonn I int:r ~~woperatIons that transforms a nonsmgul.u:, If
we augment A by I and perf :. ThIS gIves us a method for computmg A . '10 Diagonal and Triangular Matrices
I on the augmented matrix ~nn ~ e ~Iementary row operations that transform A I~
An n x n matrix A is said to be upper triangular if au = 0 for i > j and lower
row echelon form of the au~ en Will ~ transformed into A -'. That is, the redu
tnangu
. ar I aij - 0 I'cor i < J' . Also , A is said to be triangular If 11IS either upper
I'f
mented matrix (A II) will be (IIA-I).
64 Chapter I Matrices and Systems of Equations
1.5 Elementary Matrices 65
triangular or lower triangular. For example, the 3 x 3 matrices
then it is easily verified that
3o 22 II] OJ o
[ 005 and
(
I
600
0
[1 4
I 4 3 LU -- 2
2 -3
I 5
-I
~] = A •
are both triangular, The first is upper triangular and the second is lower triangular.
A tnangular matnx may have O's on the diagonal. However, for a linear systeJl
Ax = b to be In stnct tnangular form, the coefficient matrix A must be upper triangulM The matrix L in the previous example is lower triangular with I's on the diagonal.
with nonzero diagonal entries. We say that L is unit lower triangular. The factorization of the matrix A into a product
An n x n matrix A is diagonal if a;j = 0 whenever i i= j. The matrices of a unit lower triangular matrix L times a strictly upper triangular matrix U is often
referred to as an LU factorization.
(6~~j (~~~j
To see why the factorization in Example 6 works, let us view the reduction process
are all diagonal. A diagonal matrix is both upper triangular and lower triangular. (3)
If an n x n matrix A can b d d .
operation III th '. .e re uce to strict upper triangular form using only fO\\
factorizatio ' ~n!: IS possIble to .represent the reduction process in terms of a matriJ
n. e I ustrate how this IS done in the next example.
EXAMPLE 6 Let
correspond to the row operations in the reduction process. Since each of the elementary
matrices is nonsingular, we can multiply equation (3) by their inverses.
A=(i 4 -I~ ~J
9
A = EI'E:;'E:;'U
and let us use only row operation III
[We multiply in reverse order because (E3E2E,)-' = EI' E:;' E:;'.J However, when
, i' step, We subtract 1 tim th fi to carry out the reduction process. At the firSI
, 2
first row from the third.
es erst row from th d . etbe
e secon and then we subtract tWIC
the inverses are multiplied in this order, the multipliers I", 131,132 fill in below the
diagonal in the product:
i 4
(4 5
-I
To keep track of the multiples of t
2j
2
9
~ (~
0 -9
~ ij
5
,
E-1E-'E-'
1 23-
-
[~
_
I,
~~][~~~]r~
o I 2 0 I 0 -3
o
I
and. 1 ,
3 =
2. We complete the eli he first row that were subtracted, we set 12, '" l) In general, if an n x n matrix A can be reduced to strict upper triangular form using
POSitIOn: nunatlOn process by eliminating the -9 in the (3. only row operation III, then A has an LU factorization. The matrix L is unit lower
triangular, and if i > j, then IU is the multiple of the jth row subtracted from the ith
Let I _
[g j ij ~ (~ ~ ij
5 0 0 8
row during the reduction process.
The LU factorization is a very useful way of viewing the elimination process. We
will find it particularly useful in Chapter 7 when we study computer methods for solv-
32 - -3, the mUltiple of th all
the resulting matrix U d e second row Subtracted from the third row If we C ing linear systems. Many of the major topics in linear algebra can be viewed in terms
an set .
of matrix factorizations. We will study other interesting and important factorizations
in Chapters 5 tluough 7.
o
1
-3
66 Chapter I Matrices and Systems of Equations
I.5 Elementary Matrices 67
(c) I 5~ 0~ ~1
I
2. Find the inverse of each matrix in Exercise J. For
(d) r ~0 0~ ~I 1
(a) Find elemen
= r~
mamc
i J
£,. £,. E, uchir
compute A -I and use it to
(a) find a 2 x 2 matrix X such that A X = B.
(b) if A is an n x n matrix and
(b) find a 2 x 2 matrix Y such that YA = B. where Qo, Gl, ... ,ak are scalars, then
each elementary matrix, verify that its inverse i an
E,E,£,A =U 12. Let AB = BA. (
elementary matrix of the same type.
3. For each of the following pairs of matrices, find an where U, an upper lruIngular rnatn.<. 22. Show that if A is a symmetric nonsingular matrix,
elementary matrix E such that EA = B: (b) Determme tile Ime or £1. E,. £J aod~ then A -I is also symmetric.
=
(a) A = r; -~], 1-1 ;] B =
7. Let
L E,' E, I E
Verify thaI A =L
I \\1w l)-pe of mamx"1
Solve each of the following matrix equations:
23. Prove that if A is row equivalent
row equivalent to A.
to B, then B is
(a) AX +B =C (b) XA +B =C 24. (a) Prove that iJ( A is row equivalent to Band B is
(b) A= 1-; ~ ~I'B= r ;
F-2 : ~51 A=(~ I] (c) AX +B = X (d) XA +C = X row equivalent to C, then A is row equivalent
to C.
I ~-~ ;
3 1 4 4 13. Is the transpose of an elementary matrix an elemen-
(8) Expre A • product r cl~menlo1l)matll'" (b) Prove that any two nonsingular n x n matrices
(b) Exp A I tary matrix of the same type? Is the product of two
prodLKl or elcmcnlal) ""'"
(c) A = 1, ces. elementary matrices an elementary matrix? are row equivalent.
I~-~ ;j 14. Let U and R be n x 25. Let A and B be m x n matrices. Prove that if B is
~ 8. Compute the LU f8C10llUUOOof each of !II< I> IT upper triangular matrices and
set T = UR. Show that T is also upper triangular row equivalent to A and U is any row echelon form
lowing matriee, A, then B is row equivalent to U.
B = and that '» = ujjrjj for j = 1, ... , n.
o 3 5 (8)
I~~] Ib) I-2 I2 4] 15. Let A be a 3 x 3 matrix and suppose that 26. Prove that B is row equivalent to A if and only
if there exists a nonsingular matrix M such that
4. For each of the following pairs of matrices, find an
elementary matrix E such that A E B: = r 3I 5I
[-2 I -1J 2a, + a, - 4a, =0 B=MA.
i ~1' I ~ i n
(c) Id) 4 I
(a) A = I~ B = 9. Let
iJ
-2 2 -6 -3 How many solutions will the system Ax = 0 have?
Explain. Is A nonsinguJar? Explain.
27. Is it possible for a singular matrix B to be row
equivalent to a nonsingular matrix A? Explain.
28. Given a vector x E lR'+I, the (II + I) X (11 + I)
0 16. Let A be a 3 x 3 matrix and suppose that matrix V defined by
(b) A = 1~ :], B = 1~ -;] A_
U 3
2 ~ )
(c) A= I-~ -~ ;1, (8) Verify that
2
-3)
Will the system Ax = 0 have a nontrivial solution?
ViJ={lj_1
Xi
if j = I
for j = 2, ... , 11 + 1
-1
6 1-2 Is A nonsingular? Explain your answers.
5. Let
B=I_! -~ jl A 1= [
and
Vc
matrix.
ee y
A = I~ 2I
o
41
3 ,
2 B = I~ 2
I 4)
3 ,
(I) b =
II. l.I)r
(lU) b"'I-2,1.0Ir
10. Find the inverse of each of the following maJ!i<tl'
(ill b .,dl.l.J Prove that if B is singular, then C must be singular.
[Him: Use Theorem 1.5.2.]
19. Let U be an n. x n upper triangular matrix with then
/
II -: ~)
2 6 nonzero diagonal entries.
Ii n
(b) Explain why V-I must be upper triangular.
i)
sue that
(e) [I o II (0 [2o 03 0 51 form of (A IB) is (lIC), where C = A -I B. hence V must be nonsingular,
o 0 I 0 3
68 Chapter I Matrices and Systems of Equations
1.6 Partitioned Matrices 69
For each of the following, answer true if the statement
30. If E and F are elementary matrices and G = EF. then
is always true and allswer false otherwise. In the case
then G is nonsinguiar.
of a true statement, explain or prove your answer. In the
case of a false statement, give an example to show that
the statement is not always true.
31. If A is a 4 x 4 matrix and a, + a, = a, + 2"" th<n
I n
A must be singular. and hence,
29. If A is row equivalent to I and AB = AC. then B
must equal C. 32. If A is row equivalent to both B and C, then A j,
row equivalent to B + C.
A(h b" b3) = [ _~ I ~i
In general, if A is an m x n matrix and B is an n x r matrix that has been partitioned
into columns (b, ... , b,.), then the block multiplication of A times B is given by
III Partitioned Matrices
AB = (Ab, Ab" ... , Ab,)
Often it is useful to think of a matrix as being composed of a number of submatrices.
A rnatnx C can be partitioned into smaller matrices by drawing horizontal lines be- In particular,
tween the rows and vertical lines between the columns. The smaller matrices are often
referred to as blocks. For example, let (a" ... , a,,) = A = Al = (Ae" ... , Ae,,)
Let A be an m x n matrix. If we partition A into rows, then
-2 4 I
I I 1
~-~ ~ : ~j
can be partitioned into rows as follows:
I
a,B ]
a,B
3 3 2 -] 2 AB= .
46224
One useful way of partition" . . . 31/:B
JOg a matnx is mto columns. For example, if
To illustrate this result, let us look at an example. If
B =
{-l 2 1J
2
1 4
3 1
I A = U ~J and B = [ -13 2
I
then we can partition B into three column sUbmatrices:
then
a,B = [ 1 9 -1 )
-I2 32 IJ J
B = (b, b" b3) =
{
1 4 I
a,B = [5 10 -5)
Suppose that we are given a rna . . AD a3B = [ -4 9 4)
can be viewed as a block multi li . ~nx A with three columns; then the product
result is a matrix with three b10~~~atlOn. Each block of B is multiplied by A, and the These are the row vectors of the product A B:
. Ab" Ab" and Ab3; that is,
For example, if
AB = A(b" b" b3) = (Ab, Ab" Ab
3
) AB = [;~~] = [---,;-~_1",,~_'-r-:~]':
a3B -4 9 4
Next, we consider how to compute the product A B in terms of more general par-
titions of A and B.
70 Chapter I Matrices and Systems of Equations
Thus, cij is the sum of the (i, j) entry of A, 8, and the (i, j) entry of A2B2. Therefore,
matrix, then
A= B= _B...:,,-,
[ B2, B22
J
+-B",:'",,-2S
II - s
S II - S t r - t
Case 2. If A =
then
(1;), where A, is a k x n matrix and A
2
is an (m _ k) x n matril
Let
a, A,= A2 =
a,B
B, = [B" B2 =
[~~
I B=
ak+'
ak
B==
s,»
ak+,B
It follows from case 3 that
[;~ 1 8
== f A2B
A,B J
Thus,
[at ]B
Therefore,
In general, if the blocks have the proper dimensions, the block multiplication can
be carried out in the same manner as ordinary matrix multiplication. That is, if
;I[!
I I
I I 6 4
2 I I
where
U
2 I
I I I f 18I~ 159 6
•
I
3 2
2 1 2
10 1
1~
c., = L AikBkj
k==! EXAMPLE 2 Let A be an n x n matrix of the form
The multiplication can be carried out in this manner only if the number of columasr
A;k equals the number of rows of Bkj for each k.
[ ~I
A~2]
EXAMPLE I Let
where A II is a k: x k matrix (k < n). Show that A is nonsingular if and only if A II and
A22 are nonsingular.
Solution
and If A II and A22 are nonsingular, then
o ]
An
[Aii0
[~ o ]_
[ho
In-k
0
In_k
-
]-1
-
I
~l
I I as A. Since
(i) (All A12]
in Which case
A21 A22 =
U 2
3
I
2 it follows that
BA = I = AB
I I I
Or
ItttHl
2 2
3 3 2 2
I I I 2 I
3 I I
3 2 I jJ
6
= [ I~ 9
18 15
4
6
10 In Thus,
BIIAIi = h = AIIBII
(ii)
B22A22 = I"_k = AnB22
Hence, A II and A22 are both nonsingular with inverses B'I and B22, respectively .
•
74 Chapter I Matrices and Systems of Equations
1.6 Partitioned Matrices 75
Outer Product Expansions
This representation is referred to as an outer product expansion. These types of ex-
Given two vectors x and y in IR", it is possible to perform a matrix multiplication of til: pansions play an important role in many applications. In Section 5 of Chapter 6, we
vectors if we transpose one of the vectors first. The matrix product xT y is the prodei will see how outer product expansions are used in digital imaging and in information
of a row vector (a I x n matrix) and a column vector (an n x I matrix). The resultwf retrieval applications.
be a I x I matrix, or simply a scalar:
EXAMPLE 3 Given
xy
It is also useful to mUltiply a column vector times a row vector. The matrix produd
T
matnx.
[n [I
;~~~;~~:
I 31+[~)
2 4 I)
[2
[~ 46
2
6+
9)
3 4
[28 4 4l)
16
•
8 2
x"Y2 x"y"
The product xy" is ret d h .n,
. erre to as t e outer product of x and y. The outer product ma"~
has special structure In that each of its rows is a multiple of yT and each of its column SECTION 1.6 EXERCISES
vectors ISa mUltiple of x. For example, if
1. Let A be a nonsingular n x n matrix. Perform the 4. Let
Hi,
(rJ (~J
following multiplications:
3
Note that each row is a multi I f
9 15 6 (e) [ A;' 1 [A I I
I
I
I
2
I
I
8 = [811 8l2]
We are now d p eo (3,5,2) and each column is a multiple ofx.
rea y to general" he i to ma' 2. Let 8 = ATA. Show that bij = aT aj_ 8'1 822 3 I I
trices Suppose th IZe t e Idea of an outer product from vectors 3. Let
. at we stan with . . y Wecan 3 2 2
then form a matrix pr d X T an m x n matrix X and a k x n matrix.. "5
If w e panltlOn
".
and perform the blo k o uctI": y X Into columns an d yT Into 10"of
Outer products of ve~to~~ lIphcatlon, we see that X yT can be represented as a sum A= U -: 1 and 8 = [i ~] Perform each of the following block multipIica-
tions:
(a)
(b)
Calculate Abl and Ab"
Calculate 31 Band a2B.
(a)
[~~ 1 [811
Bll
Bl2]
822
y; )
yi (e) Multiply AB, and verify that its c.olumn vee- (b) [g ~] [811
8"
81,]
8"
tors are the vectors in part (a) and Its row vee-
y~
tors are the vectors in part (b). (e) [g ~] [ B'I
B2l
812]
822
76 Chapter I Matrices and Systems of Equations
Chapter One Exercises 77
(d) [E
o
0
E
JIB',B" B"
B 12 ]
(a) Show that D = (dlle" d"e, , d••e.).
15. Let 0 be the k x k matrix whose entries are all O. 19. Let A be an n x n matrix and x E JRIl .
5. Perform each of the following block multiplica- (b) Show that AD = (dllal. d"a" , d.. a.J. I be the k x k identity matrix, and B be a k x k
tions: (3) A scalar c can also be considered as a I x I
10. Lei U be an m x m matrix, Ier V be an n x n ma- matrix with the property that B2 = O. If
trix, and let matrix C = (c), and a vector b E JRIl can be
considered as an n x I matrix B. Although the
(a) [; matrix multiplication CB is not defined, show
that the matrix product BC is equal to cb, the
where Ej is an n x It diagonal matrix with diago- determine the block form of A-' + A' + A3 scalar multiplication of c times b.
nal entries ar, U2, ... , an and 0 is the (m -n) xn 16. Let A and B be It x n matrices and define 2n x 2n (b) Partition A into columns and x into rows and
zero matrix. matrices Sand M by
1
2
I-I] -[
(a) Show that if V = (V,. V,), where V, ha"
columns. then
(c)
perform the block multiplication of A times x.
Show that
, o3 i V'£ = V, '£,
Determine the block form of S-I and use it to com-
-, , o
5
20. ]f A isannxn matrix with the property that Ax = 0
4 3 pute the block form of the product S-' MS.
(b) Show that if A = V'£VT, then A can be e- for all x E JR.', show that A = O. [Hint: Let x = e
17. Let for j = I, ... ,n.]
J
o 0 pressed as an outer product expansion of the
form A=[AII A21
A12]
Al2 21. Let Band C be n x n matrices with the property
000
that Bx = Cx for all x E JR.". Show that B = C.
00100 where Al I is a k x k nonsingular matrix. Show that
I -I 22. Consider a system of the form
A can be factored into a product of the form
o I 000 2 -2 11. Let
(d) I 0 0 0 0
3 -3
A = [All AI,]
o 0 0 0 I 4 -4 A" o
o 0 0 I 0 5 -5 where all four blocks are n x n matrices. where where A is a nonsingular n x n matrix and a, b, and
6. Given c are vectors in JRIl .
(a) If A II and A" are nonsingular, show that A
B = AliA-III and C = A22 - A2IA-II1A12 (a) Multiply both sides of the system by
must also be nonsingular and that A-I muslbe
of the form (Note that this problem gives a block matrix version
Y=1124J
2 3 j of the factorization in Exercise 17 of Section 3.)
. .
AT
A [2 AI2 M=l~ ~J o
o
0
0 000
o 0 I 0
X
L
A
=
A
S
y 0 000 0 B T and then setting
of AAT and AT A? E rm . e ock mUltJphcations Use condition (b) of Theorem 1.5.2 to show thati!
l
. xpam.
either A or B is singular, then M must be singular. If so, show how; if not, explain why .
8. Let A beanm x n matrix X . X=Z-Xn+IY
13. Let
B an m x r matrix Sh • h an n x r matrix, and
. OWL at