Chapter 1-Linear Equations and Matrices
Chapter 1-Linear Equations and Matrices
Chapter 1-Linear Equations and Matrices
Linear Equations
and Matrices
. The equation
(I )
which expresses the real or complex quantity b in tcrms of the unknowns X I , X2,
.. • , X" and the real or complex constants (II. (12 • ... • (In, is called a linear equa-
tion. In many applications we are given b and must find numbers Xl. Xl . ... . X"
satisfying (I).
A solution to Iinea.r Equation (I) is a sequence of /I numbers SI.,f2.. .,f".
which has the propeny that ( I) is satisfied when XI = ,fl, -'"2 = S2, . .. ,X" = s" are
substituted in (1). Thus XI = 2, X2 = 3. and XJ = - 4 is a solution to the linear
equation
because
6(2) - 3(3) + 4( - 4) ~ - 13.
More generall y, a system of III linear equations in /I unknowns, Xl, -'"2 .. . .. X".
or a linear system, is a set of III linear equations each in n unknowns. A linear
I
2 Chapler 1 Linear Equations and Matrices
(2)
I.n (2) the (Ii) are known constants. Given values of hi. h 2 • ...• h",. we want to find
values of XI. X2 . .. .. x " that will satisfy each equation in (2).
A solution to linear system (2) is a sequence of 1/ numbers SI. S2. . . SII'
which has the property that each equation in (2) is satisfied when XI = .1"1. X2 = .\·2 ,
.... x" = .f" are substituted .
If the linear system (2) has no solution, it is ~aid to be inconsistent: if it has
a solution. it is called consistent. If b l = h2 = = b", = 0, then (2) is
called a homogeneous system. Note that XI = x? = = x" = 0 is always
a solution to a homogeneous system; it is called the trivial solution. A solution
to a homogeneous system in which not all of XI. X2 • ... • XII are zero is called a
nontrivial solution.
Consider another system of r linear equations in 1/ unknowns:
We say that (2) and (3) are equivalent if they both have exactly the same solutions.
The linear system
EXAMPLE 1
XI - 3X2 = - 7
(4)
2xI + X2 = 7
8x, - 3X2 = 7
3x, - = 0
2tl (5)
IOXI - 21:2 = 14
also has only the solution XI = 2 and X2 = 3. Thus (4) and (5) are equivalent. •
To find a solutio n to a linear system, we shall use a technique called the
method of elimination:
1.1 Systems of linear Equations 3
Agai n. we decide to eliminate x. We add (-2) times the fi rst equation to the
second one, obtai ning
0 = 21.
which makes no sense. This means that (7) has no solutio n: it is inconsistent We
could have come to the same conclusion from observing that in (7) the left side of
the second equation is twice the len side of the fi rst equatio n, but the right side of
the second equation is not twice the ri ght side of the fi rst equation . •
4 Chapler 1 Linear Equations and Matrices
To eliminate x, we add (- 2) times the first equation to the second one and (- 3)
times the fi rst equation to the third one, obtaini ng
- 7)' - 4 z= 2
(9)
- 5)' - IOz = - 20.
Th is is a system of two equations in the unknow ns.v and z. We multiply the second
equation of (9) by (- tl. yieldi ng
- 7y - 4z= 2
)' + 2z = 4,
which we write. by interchanging equations. as
y + 2z= 4
( 10)
- 7y - 4z= 2.
We now eliminate y in ( 10) by adding 7 times the first equation to the second one,
to obtai n
10z = 30.
z= 3. ( II )
Substituting this value of z into the first equation of (10), we find that y = - 2.
Then substituting these values of y and z into the first equation of (8), we find that
x = I. We observe further that our elimi nation procedure has actually pnxluced
the linear system
x + 2y + 3:; = 6
)' 1 2;: = 4 (12)
:; = 3,
obtained by using the first equations of (8) and (10) as well as (II). The importance
o f this procedure is thaI, although the linear systems (8) and (12) are equi valent.
(12) has the advantage that it is easier to solve. •
Eliminating x, we add (-2) times the first equation to the second equation to get
-3)' + 3z = [ 2. ( 14)
)' =z - 4.
where z can be any real number. The n from the fi rst equation of ( [ 3),
x = -4 - 2y + 3;:
= - 4 - 2(z - 4) + 3z
= z + 4.
Thus a solution to the linear system (13) is
x = z +4
Y= z- 4
z = any real number.
This means that the linear system (13) has infinitely many solutions. Evcry time
we assign a value to z we obtain another solution to ( 13). Thus, if z = I, then
x = 5. y = - 3. and
.r = 2, y = - 6. and z = -2
is another solutio n.
•
These examples suggest that a li near system may have a unique solution, no
solution, or infi ni tely many solutions.
Consider next a li near system of two eq uations in the unknowns x and y:
(JIX + (J2)' = el
(15)
blx + b 2)' = C2 ·
The graph o f each o f these equations is a straight line. which we denote by il and
£2, respectively. If x = .\'1,)' = .f! is a solution to the linear system (15). then the
point (.1'1. S2) lies on both lines i l and i 2 . Conversely, if the point (.fl. Sl) lies on
both li nes i l and £2, then x = .1"[, )' = .\. ! is a solution to the linear system (15).
Thus we are led geometrically to the same three possibilities mentioned previously.
See Figure I. [.
Next. consider a linear system o f three equations in the unknowns x. y, and z:
The graph of each o f these equations is a plane. denoted by PI. P2, and P3, re-
specti vely. As in the case of a linear system of two equations in two unknowns.
6 Chapler 1 Linear Equation s and Matrices
I,
I,
- 7"+---'__- < ---\1--\--" ---+7"'---- "
I, I,
FIGURE 1. 1
the linear system in (16) can have infini tely many solutions, a unique solution, or
no solution. These situations are illustrated in Figure 1.2. For a more concrete
ill ustration of some of the possible cases, consider that two intersecting walls and
the ceiling (planes) of a room intersect in a unique point, a corner of the room,
so the li near system has a unique solution. Next, think of the planes as pages of
a book. Three pages of a book (held open) intersect in a straight line, the spine.
Thus, the linear system has infi ni tely many solutions. On the other hand, when the
book is closed, three pages of a book appear to be parallel and do not intersect, so
the linear system has no solution.
p,/ P,
V
./
p;/
FIGURE 1.2
by
8 Chapler 1 Linear Equation s and Matrices
Key Terms
Linear equation Consistent system Unique solution
Solulion of a linear equation Homogeneous system No solution
Li near system Trivial solution Infinitely many solutions
Unknowns Nontri vial sol ution Manipulations on linear systems
Inconsistent system Equivalent systems Method of elimination
M.M Exercises
x+ 2y=10
3x + (6+1»), = 30.
(a ) Determine a particular value of I so that the system
has infinitely man y solutions.
(b ) Determine a particular value of I so that the system
has a unique solution.
(e) How m:my different values of I can be selected in
part (b)?
18. Is every homogeneous linear system always consistent?
Explain.
19. Given the linear system
2.1"+3), - z =O
x - 4)' +5z =0.
1.2 Matrices 11
m Matrices
(I)
.....- ith row
thejth column of A is
Lei
EXAMPLE 1
A= [ [
- \
2
0 n B= [ I+ i
2 - 3i
4;
- 3 .
1 C ~ Hl
D~ [i 0
- \ n E ~ [3]. F ~ [- \ 0 2] .
EXAMPLE 2 •
T he II-vector all of whose entries are zero is denoted by O.
Observe that if A is an II x /I matrix, then the rows of A are I x II matrices and
the columns of A are II x I matrices. The set o f all /I-vectors with real entries is
denoted by R". Simi larly, the set of all II-vectors with complex entries is denoted
by en.
14 Chapter 1 Linear Equations and Matrices
Two III x /I matrices A = [ai) ] and B = [hi) ] are equ al if they agree entry by
DEFINITION 1.2
entry. that is, ifaij = bij fori = 1.2, . .. . 111 and j = 1. 2 . .. . . 11.
The matrices
EXAMPLE 7
~ [~ ~]
2
B x
)' -4
• Matrix Operations
Matrix Addition
If A = [aij ] and B = [bij ] arc both 11/ x /I maITiec;, then thc s um A + B is an m xn
DEFINITION 1.3
matrixC = [Ci j ] dcfined by Ci j = aij+ hij .i = L2 .. .. . m;j = 1. 2 . . 11.
Thus, to obtain Ihc sum of A and B, we merely add corresponding entries.
Lei
EXAMPLE 8
A = [~
- 2
-I !] ond B= [~
2
3 -~]
Then
A+B =
[I +0 - 2+ 2 3+
2+ 1 - I + 3 4 + (- 4)
1] [I = 3
0
2 ~]
We now make the convention that when A + B is written, both A and B are of
the same size.
Scalar Multiplication
If A = [aij ] is an m x /I ma trix and r is a real number, then the scalar multi ple of
DEFINITION 1.4
A by r, rA. is them x /I mat ri x C = [cij J. whe recij = rai j , i = 1. 2 . .. .. II! and
j = 1. 2 . .. .. II ; that is, the mat ri x C is obtained by multiplying each entry of A
by r.
We have
EXAMPLE 10
_, [4
- 7
- 2
- 3
- 3]
2
~ [ (-2)(4)
( - 2)(7)
(- 2)( - 2)
(- 2)( - 3)
(-2)(- 3)]
(- 2)(2)
=
[ -8
- [4
4
6 -:1
Thus far, addi ti on of matrices has been dcJined for only two matrices. Our
•
work with matrices will call for addi ng more than two mat rices. Theorem 1.1
in Section 1.4 shows that addit ion of matrices satis fies the associative propert y:
A + ( 8 + C) ~ (A + B)+ C.
If A and B are 11/ x II matrices. we wri te A + (- 1) 8 as A - 8 and call thi s
the difl'erence between A and B .
Lei
EXAMPLE 11
A= [~
3
2
and 8~ [2 3
- I
5
Then
A_ B= [2 - 2 3+ 1 4 -8]
3 .
4- 3 2- 5 -3
•
1.2 Matrices 17
3
0
2
[ I
- 3
3 5] 2I[ 5
4 - 6
2
2
- 2 - 3 - I -2
Using scalar multiplication and matrix addition, we can compute each o f these
linear combinations. Verify that the results of such computations are, respectively,
-10
[-; 8 ""2¥]. [-17 16].
-5 - ""2
ond
[-046]
0.4 .
3.08
•
DEFINITION 1.5
If A = J,
[aij ] is an 11/ x II matrix, then the t r anspose of A. AT = [a~ is the
n x matrix defined by {I~ = {I jl ' Thus the transpose of A is obtained from A by
11/
Lei
EXAMPLE 15
[~ [ -~ ~].
-2
A = 5
2 - 3
1.2 Matrices 19
T hen
H~l U n
3
AT = BT = - I
- 2 2
C
T
= [~ -3
2
-n DT =
Hl and £T = [2 - I 3]'
•
Key Terms
Matrix EqU3J mmrices Difference of matrices
Rows /l-vector (or vector)
Columns Rn , c n
Size of a matrix 0, zero vector Linear combination
Square matrix Coefficients
Main diagonal Matrix addition Transpose
Element or entry of a matrix Scalar multiple
NU Exercises
l. LeI
A = [~
and
n
4. If
c~
["c -+b
d
<+d]
(/ - b =
[4 [0
A = [~
2
:1 B~ [i n
~ [~ -2]4 .
lJ
- I
c D = [~
~ [~
-4
E I
2 J F ~ [-4 :]
2
20 Chapter 1 Linear Equations and Matrices
",ul 0 ~ [~ ~ ~]
6. If possible. compute the indicated linear combination:
(a) C + £and£+C (b) A+B
(e) D- F (d ) -3C - 50
(e) 2C - 3£ (I) 2B + F
7. If possible. compute the indicated linear combination:
(a) 3D+2F (b ) 312A) and 6A
(e) 3A + 2A and 5A
(d ) 2(D + F) and 2D + 2F
(e) (2 +3) Dand2D+3D
(I) 3( B + D)
8. Ifpossible. compute the following:
(a) A T and (AT)T
(b) (C + £)T and CT + £T
(e) (2D + 3fY (d ) D _ D T
(e) 2AT + B (I) (3 D - 2F)T
9. If possible. compute the following:
(a) (2A) T (b) (A _ B )T
(e) (3 B T _ 2A) T (d) (3 A T _ 5B T ,r
(e) (_ A )T and _ (A T) (I) (C + E + F T)T
10. Is the matnx . [' 0]. 0 2 ..
a lmear combmatlOn of the matn - .
OJ
1 and ['0 OJ
0 ? Ju,tl.fy your answer.
.
II. Is the matnx [' '].
0 - 3 . . of the ma-
a hnear comblllatlOn
.
Inces
[, O] [' 0] .
0 1 and 0 0 ? Justify your answer.
12. Let
o
2
2 ,
2
Matrix Multiplication
[ ~;]
at]
ll2
a= . and b =
[
a" b"
is defined as
"
a· b = lllb t +a2b2 + . .. +all b., = L a,b, .·
,=1
is
Solution
We have
a - b = 4x +2+6 =-4
4x+8 =-4
x = - 3.
•
11 0.."." , li»u ' ........... M",';. "
•-' .,
, , ,
'" • , ,'.
~ ~,~
,~.-"
-,~ '
• -'
•
• • • '. '. '.
"
~
,t~
"
'
'"
.. 'j "
"
"
j
-~ "I "" ~ .... ' - '.
""",. u
,- "-,,,
<i h , ~ ",'''''
". ''" ,.,..... ,,"
_~""
. . . ...... ,..,'_a-""" .. . ,._ '-'.
"
. ...., , , " " _ ' "
- , ,~ ,
~'"'"
........". c•
,. ,, , :1 .-1'-; ,I -~ .
1.3 Matrix Multiplication 23
A B AB
III Xp p X n m X"
FIGURE 1.5
ltd sizeofAB
Then
AB = [ (1)(- 2) + (2)(4) + (-1 )(2) (1 )(5) + (2)( -3) + (- 1)( 1) ]
(3)( - 2) + (1 )(4) + (4)(2) (3)(5) + (1)(- 3) + (4)( 1)
~~J
LeI
= [:
•
EXAMPLE S
h [~ -~ -n ond B ~ [; -~] .
- 2 2
Compute the (3 . 2) entry of A B.
Solution
If A B = C, then the (3. 2) entry of A B is C32, which is (row3(A» T , co12( B ). We
now have
[-n~-5 •
Let
EXAMPLE 6
3 ]
1
ond
B~ m
.
ItAB = [ 12
6,] findxand y .
Solution
We have
Then
2 + 4x +3y = 12
y = 6.
so x = - 2 and y = 6.
•
24 Chapter 1 Linear Equations and Matrices
Lei
EXAMPLE 9
Then
A~ [
- I
1
~] on" B= [~ :1
AB =[
-2
2
~] while BA = [ I
- I
7]
3 .
Thus AB =1= BA .
•
1.3 Matrix Multiplication 25
LeI
EXAMPLE 11
A ~
[
-~
I
: '] and B ~
[
-2
3
3
2
4]
I .
•
Remark If u and v are II-vectors (II x matrices), then it is easy to show by
matrix multiplication (Exercise 4 I) that
u. v = uTv.
(112
a,,,] ["] [(WW'(A »" ,c' ]
Ac =
[""{/~iI
{/21 a"
{/m2
(/ 2n
(11~"
C2
;"
(row2(A»T
= (row",(~»T . c
(2)
a"e, +a"" + ... + a,,,,,, ]
{/21CI + (122C2 + . .. + {/ln C"
[
{/"IICI + (1",2C2 + .. + {/",,,C,,
This last expression can be written as
CI
[a~'1::::] [:::]{/1~2
+C1
-
+ " ' +C
"
[::::]
{/I~" (3)
Thus the product Ac o f an III x 11 matrix A and an 'I x 1 matrix c can be written as
a linear combination of the columns of A, where the coetlicients are the entries in
the matrix c.
Let
EXAMPLE 12
A = [! - I
2
-3]
-2
and
Ac = [~ - I
2
columns of matrix A, where the coefficients arc the entries in the jl h column of
matrix B:
AB ~ [;
- I
!] [-~
5
3
2
4] - [: l~
I - 17 7
6]
l~ .
•
• Linear Systems
(II !
[ U" U,,, ]
U [b'h2. ] .
{/2J (121 {/2"
A ~ x ~ b =
Then
::;:
Ax =
[ (I,~, I
a,"] [X']
a,"
(lmn
x,
J."
(5)
all \"1 + (l12X2 + .+ (l1"J." ]
all \"1 + (lnX2 + .+ (l2"J."
[
a",lxI + (1",2 tl + + (I"", J."
The entries in the product A x at the end of (5) are merely the left sides of the
equations in (4). Hence the linear system (4) can be wrillen in matri x form as
A x = b.
The matrix A is called the coefticient matrix o f the linear system (4), and the
matrix
(Ill al"
[ a"
(121 (122 ail, : h,
h2 ]
b l = b 2 = ... = bIll =0
in (4), the linear system is called a homogeneous system . A homogeneous system
can be written as
A x = O.
Letting
1.3 Matrix Multiplication 29
[-~ 0
3
2
-4
2 n •
The maTrix
EXAMPLE 15
[~ ~l
- I 3
0 2 ,
[~;: ] + .
= \1
[::::]
amJ
+ \~
{1m 2
+.x" [:::::]
(lmlt
Conversely, an equation of the form in (6) always describes a linear system of the
fonn in (4).
Key Terms
Dot product (inner product) Coefficient matrix
Matrix~vector product Augmented matrix
.i' Exercises
(b ) ,~ [ =;J b ~ [_;]
(cJ
,~ ul b ~m 5. Detennine values of x and y so that v • w = 0 and v· u =
(c) , ~m b ~n] 8. F;od ,II ,,'," of, '" ' '0< U·U~
50. wh,,, U~ [!1
(d ) ,~ [H b ~m 9. F;od,1I "',,,of, ,",b" ,., ~ ,. wh", , ~ [-1].
1.3 Matrix Multiplication 31
10, lelA = [~ 2
-I 17. "'A ~ H n,"dB ~ [: -; :j
Compu te th e following entries of A8 :
IfA8 = [~]'findXand Y, (a) Ihe (1. 2) entry (b) the (2. 3) entry
CO/u;der t"e/ollowing matrices/or £\'l' l t';se,Y II t"mugh 15: C<) Ihe (3, I ) entry Cd) the (3. 3) c ntry
~ [~ 2 ,,-=[-I~ ~2] .
-4 20. If A is Ihe matrix in Example 4 :md 0 is Ihe 3 x 2 matrix
I
E
n
11. If possible, co mpute the following:
(11111 e"cry onc of whose entries is zero, compute AD.
111 £urc:i,\'e,\' 2J (/1Il122 , 11'1
~]
- I
(a) A B (b) BA (e) F T[ 2
(d) C 8 + 0 (e) A8 + D 1. whcre 0 1
= OO -2
12. If possible, compUle the following:
(a) OA +8 (b) £C (e) CE all(/
Cd) £8 + F (e) FC + f) o - I
3 -3
13, If possible, compute the following:
2 5
(a) FD - 3B ( b) AB - 2D
2 1. Using the methexl in Example 11. co mpute the following
[e) F T8 +0 (d) 2F - 3( A£)
columns of A8 :
(e) 80 + A£ (a) thc first column (b) the third column
14. If po~ib l e. compute the following: 22. Using the methexl in Example II . compute the following
(a) A( BD) ( b ) ( AB ) I> co lumn.~o f AB :
(e) A (C+ E ) (d ) AC + A£ (a) the second column (b) the fourth column
(e) (2A8 )T and 2( A8 )T ( 0 A(C - 3 £ ) 23, Let
IS. If possible, compute the followin g:
(a) AT (b l ( AT)T
(e) (A8) T (d) B1' A T
-;] [I -I]
16. Le I A = [1 2 -3 ],8 = [ - 1 4 2].and
-2
C = [ -3 0 I]. If possible. compute the following :
4 8 = ~ ~ .
(a) AB T (b) CA T (e) (HA T) C o -2
Cd ) A T 8 (e) CC T (0 CTC
Express th e columns of A 8 as linear combinations of the
(g) 8 /' CAA T columns of A.
32 Chapter 1 Linear Equations and Matrices
25. LetA=[~
-3
2 :l,"dB~
(, ) Verify lhal A B = 331 + 5a 2 + 2 3 ) , where
m 3j is the
33. Write the following linear system in matrix fonn:
hi
3x 2
+ 112 = 0
+ x] =O
jlh column of A for j = 1.2.3. hi - X2 = 0
. B = [(roW1(A))B] ,
34. Write the linear system whose augmented matri x is
n
(b) Venfyth:llA ( () .
row: A) B
U
1
26. (, ) Find a value of r so that A 8 T = 0, where (, ) - I 0
A = [r 1 - 2] and B = [I 3 - IJ. -,
,
3
[-~ n
(b) Gille an alternative way to write this product.
27. Find a value of r and a \lalue of ~' so that A S T = D. where - I 0
A=[l r l]andB=[ -2 2 .r]'
(b )
1 -, 3
0 0 0
35. How are the linear systems obtained in Exercise 34 re-
lated?
36. Write each of the following linear systems as a linear
combination of the columns of the coefficient matrix:
(a) 3xI + 21"1 + Xl - 4
XI - _11+4x; = -2
(b) - XI + Xz = 3
2xI - _I! = - 2
3xI + _I! = I
37. Write each of the following linear combinations of
columns as a linear system of the form in (4):
,:]
if h is a linear combination of the columns of A:
-3 2 7 8
1 o o 2
.
[ (, )
3 o 3 6
.
Tr(A). is defined as the sum of all elements on the main
diagolwl of A. Tr(A) = LUil Show each of the follow-
;=1
mg:
(a) Tr(cA) = c Tr(A). where c is a real number
(b) T r(A + B) = Tr(A) + Tr ( B )
(e) Tr(AB) = Tr(BA)
(d ) Tr(AT) = Tr(A)
(e) Tr(A T A) 2: 0
44. Compute the trace (see Exercise 43) of each of the fol-
lowing matrices:
(a) [~ ~J
Ie) [~ ~] !
45. Show Ihal there :Ire no 2 x 2 matrices A and B such that
AB - BA=[~ ~l
34 Chapter 1 Linear Equations and Matrices
for any lit x /I matri x A. The matrix 0 is called the lit x /I zero matrix .
(d) For each lit x /I matrix A, there is a unique lit x n matrix D such that
A +D = O. (2)
o = [~ ~l
EXAMPLE 1 'f
A = [ 42 - 3
'] '
then
(A + 8 )C = AC + Be.
(c) Lf A , B , and C arc matrices of the appropriate sizes. then
C(A + B) = CA + C R. (3)
36 Chapter 1 Linear Equations and Matrices
•
Lc<
EXAMPLE 3
[~
- I
ond
A = [~ -3
2
!l B ~ 2
0
2
- I n
~ [~ ~]
0
-3
e 0
Then
3
-3 !l[~ 3 ~] ~ [43 30 5~
~ [~ -4 2 16
A( B e) ]
3 12
and
0
(AB )e ~ -I I~*
6
['9 - 8
16
0 ~] ~ [43 30 56]8 . •
-3
-8
0 3 12
16
LeI
EXAMPLE 4
Then
A = [~
-I n 3 -:1
2
B= [~
0
ond e~ U
-I~l
(A + BK = [~ 2
2
4l[~ ~] ~ [18 0]
I 3 - I 12 3
1.4 Algebraic Properties of Matrix Operations 37
•
Let
EXAMPLE S
A = [~ -3
2
!] ond
Then
2(3A) = 2[ I ~ -9
6 9] [2412
12 =
12
- 18 2418] = 6A .
We also have
A(2B) = [~ - 3
2 - 10
o
16] ~ 2(A B',I.
26
Scalar mult iplication can be used to change the size of entries in a matrix to meet
•
EXAMPLE 6
prescribed properties. Let
Then for k = ~ ,the largest entry o f kA is I . A lso if the entries of A re present the
volume of products in gallons, for k = 4, kA gives the volume in quarts. •
38 Chapter 1 Linear Equations and Matrices
LeI
EXAMPLE 7
A _ [ 1 23 ]
- -2 0 1
and B ~[3 - I ']_
3 2-[
Then
Also,
Now
LeI
•
EXAMPLE 8
AT ~U -l] and
2
2
T hen
•
We also note two other peculiarities of matrix multiplication. If {/ and IJ are
real numbers, then ab = 0 can hold only if a or b is zero. However, this is
not true for matrices.
If
[ 4 -6]
EXAMPLE 9
A = [ 2I '4 ] ond B= -2 3 '
If
[-' 7]
EXAMPLE 10
ond c= 5 - I .
then
Key Terms
Properties of matrix :lddition Properties of scalar multiplication
Zero matrix Properties of transpose
-e-
Properties of matrix multiplication
Exercises
I. Prove Theorem 1.I(b). I I. Find two unequal 2 x 2 m:ltrices A and B such that
2. Prove Theorem 1.I (d).
3. Verify Theorem 1.2(a) for the following matrices:
All - [~ ~l
12. Find two different 2 x 2 matrices A such that A" = O.
[~
-I 3
A= B~ 13. Prove Theorem 1.3(a).
[ 1 - 3
14. Prove Theorem 1.3(b"1.
-a
15. Verify Theorem 1.3(b) for r 4. s - 2. and A
and
[~
4. Prove Theorem 1.2(b) and (c) 16. Prove Theorem 1.3(c).
5. Verify Theorem I.I(c) lor the following matrices: 17. Ver ify Theorem l.3(c) lor r = - 3.
[~ "~[~ [ ~ ;].
-3 1
A= - I -;] 3 and B~
-2 1
C = [ _~ -!]. 18. Prove Theorem 1.3(d·..
19. Verify Theorem 1.3(d) for the following m:ltrices:
6. Let A = [aij ] be the I! x matrix defined by (Iii = k
/I
.
a I x II! matrix. Prove that
CA = L:>iAj.
j= l
A2 = [~ ~l
1.4 Algebraic Properties of Malrix Operations 41
23. Determi ne a scalar , such that All: = ' x. whe re (l.") For any seal:!r" show that 'X I is a solution.
(d) For any scalars r and J, show that ' XI + .I'X~ is a
solution.
37. Show that if All: = II has more than one solution, then
it has infi nitely many solu tions. (H illl: If Xl and X2 are
solut ions. l."onsidcr Xl = ' X I + J X2' where, + s = I.)
24. that if Ax = r x for" x 1/ matrix A. II X I mat ri x
PrO\'c 38. Show th:lt if X I and X2 are solutions to the linear system
x. and Sl:alar r, thcn Ay = ,y, where y = sx for any Ax = b. then X I - X2 is a solution to the associated ho-
scalar s. mogeneous system Ax = O.
25. l)etennine a Sl:alar .f such Ihal AZx = s x when Ax = r x .
26. Pro\'e 1llCOrem 1.4(a).
27. Prove Theorem I .4(h) and (d).
28. Verify Theorem 1.4(a), (b), ;llId (d) for
A = [~ 3 _;]. 8 = [ _~ 2
-']
5 .
fmd r = - 4.
29, Verify Theore m IA(c) for
3
B= [' -']
~ ~.
30. Le t
LeI
EXAMPLE 1
Then A, B, and l, are diagonal matrices; Band 13 are scalar matrices: and I) is
the 3 x 3 ide ntity matrix. •
A P= A·A··· · ·A.
~
I' factor.
Fm no nneg>lTive inTegers p ,inri (/ , The f>lmili>lr law, of exponenTs fm The real num-
bers can also be proved for matrix multiplication of a square matrix A (Exercise 8):
(ABV = AI'BI'
The malrix
EXAMPLE 2
is lower triangular. •
Un
2
EXAMPLE 3
A ~ 4
S
is a symmetric matri x.
•
EXAMPLE 4
B ~ [-~ -n, ,
- 3
2
0
4
' kew 'ymmell'e mo,,'x. •
if A is symmetric or skew ~y m
metric, then A is a square matrix. If A is a symmetric matrix, then the entries of A
are symmetric with respect to the main diagonal of A. A lso, A is symmetric if and
only if a ;j = a j; , and A is skew symmetric if and only if aij = - a j; . Moreover, if
A is skew symmetric, then the entries on the main diagonal of A are all zero. An
important property of symmetric and skew symmetric matrices is the following: If
A is an /I x /I matrix, then we can show that A = S + K , where S is symmetric
and K is skew symmetric. Moreover, this decomposition is unique (Exercise 29) .
• Partition ed Matrices
If we start Ollt with an 11/ x /I matrix A = [a j) ] and then cross out some, blll not
aiL of its rows or columns. we obtain a submatrix of A.
Lei
EXAMPLE 5
~]
2 3
4 - 3 .
o S -3
44 Chapter 1 Linear Equations and Matrices
If we cross out the second row and third column, we get the submatrix
2
o
•
A matrix can be panitioned into submatrices by drawing hori zontal lines be-
tween rows and vertical lines between columns. Of course, the partitioning can be
carried out in many different ways.
The mati ix
EXAMPLE 6
;:;:c~;: ] ~"
(/12 i(/IJ
A ~ [a" __ an~?3_~_a23 (134
(/21
(/31
(/4 1 a42
i a33
: {/4J
i A" (115
(144 : (145
[ AI2 ~,, ]
A22 A"
(I)
I
b 11 bn i bD b l4
b21 bn i 1m b",
B ~ b JI b J2 i b JJ b J4 B"
B2\ B" ]
:~: .
b 41 b 42 : b43 b" _B31
----------f--
b 5J b 52 : b53 b"
(All B\ I + AI2B21 +
A\3BJ1 ) (A l1 B I2 .41 2B22 + +
ADBJ2)]
AB = -------------------------------- - - - - - - - - - - - - - - - -----------------
[ (AIIB I I I AnBl! I AnB31) (Ali BI l -1 AnBll I AnB3l)
1.5 Special Types of Matrices and Parti tioned Matrices 45
Lei
EXAMPLE 8
A" ]
An
and let
Then
where ell should be AII BI I + A1 2B21. We verify thai ell is this expression as
follows:
~ [! ~]
3
= Cli.
12
•
This method of multiplying partitioned matrices is also known as block mul·
tiplication.
Lei
EXAMPLE 9
- I 0]. a nd D = [:
8
7
-4]
5 .
46 Chapter 1 Linear Equations and Matrices
Then we have
[B 9
6
8
7
-4] 5 .
8
7
- I
•
• Nonsinguiar M atrices
Remark In Theorem 2.1 I, Section 2.3. we show that if AB = In, then BA = In.
Thus, to verify that B is an inverse of A. we need verify only that AB = In.
EXAMPLE 10
LetA=
[23]
2 2 andB = [-I ']
I _~ .SinceAB = BA = /2 ,weconcludcthat
B is an inverse of A.
•
Thearem 1.5 The inverse of a matrix. if it exists, is unique.
1.5 Special Types of Matrices and Parti tioned Matrices 47
LeI
EXAMPLE 11
A = [~ ~].
If A -1 exists, let
so that
a+2,
[ 3a+4c
"+2d]
3b+4d =
['
0
0]
I .
Equating corresponding entries of these two matrices, we obtain the linear systems
a+2c = I b+2d = O
"nd
3a+4c = O 3b+4d = 1.
A
_1 _[-2 ,]
- J J'
LeI
:2 -'1
•
EXAMPLE 12
so that
0+2, "+2dl ~[ 1 OJ.
[ 2o+4c 2h+4d 0 I
Equating corresponding entries of these two matrices, we obtain the linear systems
a + 2c = I h+2d = O
and
2a+4c = O 2h+4t1 = 1.
These linear sysu::ms ha ve no solutions, so our a~sumplion Ihal A-I exisls is in-
correct. Thus A is singular. •
Theorem 1.6 If A and B are both nonsingu lar /I x /I matrices, then A B is nonsingular and
(A B )-I = B -IA- I .
. •
Theorem 1.8 If A is a nonsingu lar matrix, then AT is nonsingular and (A -ll = (AT)-I .
If
EXAMPLE 13
1.5 Special Types of Matrices and Parti tioned Matrices 49
A
_, _[-2 ,]
- 3 1
2" -2:
Also (verify),
and
A
_, [-2- t,] .
= ~
If
52 Chapter 1 Linear Equations and Matrices
Key Terms
Diagonal ma tri x Symmetric matrix Nonsingul:lr (invertible) matrix
Identity matrix Skew symmetric matrix Inverse
Powers of a matrix Submatrix Singular (noninvertible) matrix
Upper triangular matrix Partitioning Properties of nomingular matrices
Lower triangular matrix Partitioned matrix Line:lr system with nonsingular coefficient matrix
_ , . Exercises
I. (a) Show th:lt if A is any III )( n matrix. then I", A = A 12. For a nonsingul:lr matrix A and a nonneg:ltive integer p .
and A I" = A. show that ( A P) - I = (A- I)".
(b) Show that if A is an II x I! scalar matrix. then 13. For a nonsingular matrix A :lnd nonzero scabr k. show
A = r I. for some real number r. that (kA) - 1 = t A- 1.
2. Prove that the sum. product, and scalar multiple of diag. 14. (a) Show that every sC:llar matrix is symmetric.
onal. scabr. and upper (lower) tri,lIlgular matrices is di· (b) Is every scalar ma trix nonsingular? Expbin.
agonal. scalar, and upper (lower) triangular, respectively. (e) Is every diagonallll:ltrix a scalar matrix? Exp bin.
3, Prove: If A and 8 are I! x II diagonal matrices. then 15. Find a 2 x 2 matrix 8 f- o and B f- I! such that
AB = BA.
4. Let AS= BA . where A = [ '2 ']
1 . How m:lny such matn.·
ces S are there?
-3
2
16. Find a 2 x 2 matrix B f- o and B f- 12 such that
o AB=BA. Where A= [~ ']
1 . How many such matn.·
Verify that A + 8 and A B are upper triangu lar. ces B are there?
5. Describe:lll matrices that are both upper :lnd lower trian· 17. Prove or disprove: For any 11 XII matrix A. A T A = AA T.
gular. 18. (a) Show tlwt A is symmetric if and only if (Ii) = {I i i
furalli.j.
6. LetA=[~ ~~]and S =[~ -~lcomputeeach (b) Show that A is skew symmetric if and only if a ij =
of the following: - a ii foralli.j.
(, ) A' (b ) 8 3 (c) ( AS )! (e) Show that if A is skew symmetric. then the elements
on the main diagonal of A are all zero.
[i H :]
0 0
7. Lo< A ~
-l] and S
0
19. Show that if A is a symmetric matrix. then A T is sym-
metric.
Compute e:lch of the following: 20. Describe all skew syr.lmetric scalar m:l trices.
(a) A 3 (b ) S ! «) (A 8 )3 21. Show that if A is any III x n matrix. then AA T and A T A
alC SY IllIllCtllC.
8. Let p and q be nonnegative integers and let A be:l square
matrix. Show th:lt 22. Show that if A is any I! x I! matrix . then
(a ) A + A T is symmetric.
(b) A - A T is skew symmetric.
9. If AS = BA and p is a nonnegative integer. show that 23. Show that if A is a symmetric m:ltrix, then A I, k
{AB )P = A PB ". 2.3 ..... is symmetric.
10. If p is a nonneg:ltive integer and e is a scalar. show that 24. Let A and S be symmetric m:ltrices.
(eA)!' =e PA ". (a) Show that A + B is symmetric.
II. For:l square ma tri x A and:l nonnegative integer p. show (b) Show that AS i. symmetric if and only if AS
[hat ( A T)" = (AI,)T. SA .
1.5 Special Types of Matrices and Pa rtitioned Matrices 53
25. (a) Show that ir A is an upper triangular matrix. then Find the solutio n x.
AT is lower triangular. 38. The linear system A ~ .~ = b is such that A is nonsingular
(b) Show that if A is a lower triangular matrix. then AT wi lh
is upper lriangul:lr.
26. If A is a skew symmetric m.atrix. whal Iype of malrix is
AT? Justify your answer. Find the solution x.
27. Show that if A is skew sym m~t ric, then the elements on 39. The linear system AT x = h is such that A is nonsingular
lhe main dia gonal of A are all 1.ero. wit h
28. Show that if A is skew symllletric, the n A' is skew sy m·
metri c for any positive odd inlCger k. Al= [~ ~] and b =[ _~] .
29. Show 1hat if A is an It x II ma\Jix. then A = S + K . where Find the solution x.
S is sy mmetric and K is skew sy mmetric. A lso show that
40. The linear system C T Ax = b is such that A and C are
this decomposition is unique. (Hilll : Use Exercise 22.)
nonsingular. wi th
30. Let
: -n·
Find the matrices Sand K desc ribed in Exercise 29.
Find the solution x.
n
33. Find the inverse of each of the following matrices:
42. Find t...."O 2 x 2 singula r matrices whose sum is nonsin·
(a) A = [! ;] (b) A = [~ gular.
34. If A is a nonsingul ar matrix whose inverse is [~ :l 43. Find twO 2 x 2 nonsUlgular matrices whose sum ii sin·
gular.
44. Pro\'e Corollary I. L
fi nd A.
35. If 45. Pro\'e Theorem 1.7.
46. Prove Ihal if one row (column) o f the n X II matrix A con·
and 1 sists e nti rely of zeros. lhen A is singular. ( Hinl : Assume
B- -- [ 3'
lhal A is nonsingular; that is, th ere exists an /I x /I matrix
B such lhm AB = BA = I". E~labli s h aconlradiclion.)
fi nd (AB )- I.
47. Prove: If A is a diagona l illlitrix with nonzero di·
36. Suppose that
agonal el11ries {/11.{/ll ••••• II" • • then A is nonsingu·
A-
I
=[: ~l lar and A- I is a dillgonal malrix Wilh diagonal en tries
1 / 11 1 1. l / lIll ..... 1/,,"".
Solve the linear system Ax = h for each of the following
o
matrices b:
48. Lo< A = [~ -3
o
49. For an /I x /I diagonal matrix A whose diagonal entries
37. The linear sys te m AC x II is such that A and Care
arc lIll' li n . .... a,,", compute AI' for a nonnegative inte·
nonsi ngul ar with
ge r fJ.
50. Show Ihat if A B AC and A is nonsin~ular. then
1J =c.
54 Chapter 1 li near Equations and Matrices
nlatrix H. then H = O.
A= [i -3
3
AJ~
1 3 4
2 3 - I
3 2 1
-I 3 2
II - I
2
3
4
5
1]
>eo
-:]
2 3 4
8 = [j 5
1
2
3
4
3
4
2
2
5
6
3
7
1
.
:
55
Matrix Transformations
R2 denotes the set of all 2-vectors and RJ denotes the set of all
3-vcctors. It is convenient 10 represent the clements of R2 and R3 geometrically
as directed line segments in a rectangular coordinate system.·
The veclOr
x ~ [~.l
in R2 is represented by the directed li ne segment shown in Figure 1.6. The veclOr
56 Chapter 1 Linear Equations and Matrices
z-axis
y-axis
y (x. y)
/ (X_y_ Z)
- - - - -;;f- - + - -_ x_axis
-::::/tco~=---+---:;?)c,-- )'-axis
--x-_____
o
x-axis
,
"
., ., .,
-2 0
, a )'
"
EXAMPLE 2
(a) Let I be the matrix transformation defi ned by
f(U)~[~ ~]U
The imageof ll = [ -~J is
.
and the Image 0 1 2 .[,] . ['0] ..
TS 5 (venly).
I(u) = Au .
[-n"[~] ("rify) •
Observe that if A is an III x /I matrix and f: R" -'jo R'" is a matrix transfor-
mation mapping R" into R'" that is defi ned by I(u) = Au, then a vector w in R'"
is in the range of I onl y if we can find a vector v in R" such that f( v ) = w.
58 Chapter 1 Linear Equations and Matrices
EXAMPLE 3
Let A = [ - 2I '3] and consIder
. . transfonnatlOn
the matnx . defined by feu) = Au.
Determine if the vector w = [ _ ~] is in the range of f.
Solution
The question is equi valent to asking whether there is a vector v = [ :' ] such that
f( v ) = w. We have 2
Av -- [ - 2vl
" +"'] -w-[ 4]
+3V2 - - - I
VI + 2V2 = 4
- 2vl + 3V2 = - 1.
Solving this linear system of equations by the familiar method of elimination. we
get VI = 2 and V2 = I (verify). Thus w is in the range of f. In particular, if
v= [~llhen f( v) = w. •
.
LeI f: R2 -+ R2 be the matrix transfonnation de fined by
EXAMPLE 4
(x. )')
Then
(x.y.:) L
"
o y
FIGURE 1.11 x
Figure 1.11 shows the effect of this matrix transformation, which is called projec-
tion into the xy-plane. (Warning: Carefully note the axes in Figure 1.11 .)
Observe that if
No" thm the im'ge of the 3-vwm v [~] ""de< the m,,,ix """,fotm"ion
g: R J -+ R J defi ned by
•
Lei f: RJ -+ R·1 be Ihe matrix transfonnation defi ned by
EXAMPLE 6
' 0 0]
fe u ) =
[DO,
a r a lI .
~
(""'d
o Y ko - -Y
, (x.)' 0)
FIGURE 1.13
II(U) = 2u, and Fi gure 1.14(b) shows the vector 12(u) = ~ u . Thus di lation
stretches a vector, and contraction shrinks it. Similarly, we can define the matrix
transformation g: R2 -)0 R2 by
oy-=- - - - - - -y
,.
P'(x' . y')
ft" )
\ P(x . y)
"
-,rl''''''-'------ "
FIGURE 1. 15 Rotation
Letting r denote thc length of Ihc di rected line segment from 0 10 P , we see
rrom Figure I. J 5(a) that
on"
By the formulas for the sine and cosine of a sum of angles, the equatio ns in (2)
become
Substitllling the expression in (1) into the last pair of equations, we obtain
Equation (3) gives the coordinates o f p i in tenns of those of p, and (4) expresses
the coordinates of P in tenns o f those of p ' .
(5)
It then follows that the vector fe u ) is represented by the directed line segment
from 0 to the point p i Thus, rotation counterclockwise through an angle c/J is a
matrix transformation. •
Key Terms
Matrix transfonnation Image Dilation
Mapping (function) Reflection Contraction
Range Projection Rotation
.,.W Exercises
III £Tercises I Ihmugh 8, skl'fch u alld ils image IIlIder each 4. r: R 2 --;. R" is a counterclockwise rotation through ~ rr
girer: malrix lrall.iformalioll f.
radians; u = [ =~]
5. f: R2 _ R2 defined by
" ~[ -;J
, ,'_ .'-..,
'([;11-[: :] [;1 .. [:]
, ...' ..'- .
~,_ _
11:11·1; ::111 .. 1;1
. ""... " , "O f , ' _ , '., .. _ "
_;c__ _ ,., , .. , _,. .....
" H] ,•. []
" .. [;]
"
::::1:·