Docsity

Lecture Notes for Matrices | Elementary Linear Algebra | MATH 290, Study notes of Linear Algebra

Toggle sidebar
bg1
Chapter 2
Matrices
2.1 Operations with Matrices
Homework: §2.1 (page 56): 7, 9, 13, 15, 17, 25, 27, 35, 37, 41, 46, 49,
67
Main points in this section:
1. We define a few concept regarding matrices. This would include
addition of matrices, scalar multiplication and multiplication of
matrices.
2. We also represent a system of linear equation as equation with
matrices.
41
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e

Partial preview of the text

Download Lecture Notes for Matrices | Elementary Linear Algebra | MATH 290 and more Study notes Linear Algebra in PDF only on Docsity!

Chapter 2

Matrices

2.1 Operations with Matrices

Homework: §2.1 (page 56): 7, 9, 13, 15, 17, 25, 27, 35, 37, 41, 46 , 49,

Main points in this section:

  1. We define a few concept regarding matrices. This would include

addition of matrices, scalar multiplication and multiplication of

matrices.

  1. We also represent a system of linear equation as equation with

matrices.

42 CHAPTER 2. MATRICES

In this section, we will do some algebra of matrices. That means, we

will add, subtract, multiply matrices. Matrices will usually be denoted

by upper case letters, A, B, C,.... Such a matrix

A =

a 11 a 12 a 13 · · · a 1 n

a 21 a 22 a 23 · · · a 2 n

a 31 a 32 a 33 · · · a 3 n

am 1 am 2 am 3 · · · amn

is also denoted by [aij ].

Remark. I used parentheses in the last chapter, not a square brackets.

The textbook uses square brackets.

Definition 2.1.1 Two matrices A = [aij ] and B = [bij ] are equal if

both A and B have same size m × n and the entries

aij = bij f or all 1 ≤ i ≤ m and 1 ≤ j ≤ n.

Read [Textbook, Example 1, p. 47] for examples of unequal matrices.

Definition 2.1.2 Following are some standard terminologies:

  1. A matrix with only one column is called a column matrix or

column vector. For example,

a =

is a column matrix.

  1. A matrix with only one row is called a row matrix or row vec-

tor. For example

b =

[

]

is a row matrix.

44 CHAPTER 2. MATRICES

Definition 2.1.4 Let A = [aij ] be an m × n matrix and c be a scalar.

We define Scalar multiple cA of A by c as the matrix of same size

given by

cA = [caij ].

  1. For a matrix A, the negative of −A denotes (−1)A. Also A−B :=

A + (−1)B.

  1. Let c = 11 and

A =

 ,^ B^ =

Then, with c = 11 we have

cA = 11

Likewise, A − B = A + (−1)B =

  1. Read [Textbook, Example 3, p. 49] for more such computations.

2.1. OPERATIONS WITH MATRICES 45

2.1.3 Matrix Multiplication

The textbook gives a helpful motivation for defining matrix multipli-

cation in page 49. Read it, if you are not already motivated.

Definition 2.1.5 Suppose A = [aij ] is a matrix of size m × n and

B = [bij ] is a matrix of size n × p. Then the product AB = [cij ] is a

matrix size m × p where

cij := ai 1 b 1 j + ai 2 b 2 j + ai 3 b 3 j + · · · + ainbnj =

n ∑

k=

aikbkj.

  1. Note that number of columns (n) of A must be equal to number

of rows (n) of B, for the product AB to be defined.

  1. Note the number of rows of AB is equal to is same as that (m) of

A and number of columns of AB is equal to is same as that (n)

of B.

  1. Read [Textbook, Example 4-5, p.51-52]. I will workout a few

below.

Exercise 2.1.6 (Ex. 12, p. 57) Let

A =

 ,^ B^ =

Compute AB abd BA. We have

AB =

2.1. OPERATIONS WITH MATRICES 47

Compute AB and BA, if definded.

Solution Note AB is not defined, because size of A is 2 × 5 and size

of B is 2 × 2. But BA is defined and we have BA =

[

1 ∗ 1 + 6 ∗ 6 1 ∗ 0 + 6 ∗ 13 1 ∗ 3 + 6 ∗ 8 1 ∗ (−2) + 6 ∗ (−17) 1 ∗ 4 + 6 ∗ 20

]

[

]

2.1.4 Systems of linnear equations

Systems of linear equations can be represented in a matrix form. Given

a system of liner equations

a 11 x 1 + a 12 x 2 + a 13 x 3 + · · · + a 1 nxn = b 1

a 21 x 1 + a 22 x 2 + a 23 x 3 + · · · + a 2 nxn = b 2

a 31 x 1 + a 32 x 2 + a 33 x 3 + · · · + a 3 nxn = b 3

am 1 x 1 + am 2 x 2 + am 3 x 3 + · · · + amnxn = bm

we can write this system in the matrix form as

Ax = b

where

A =

a 11 a 12 a 13 · · · a 1 n

a 21 a 22 a 23 · · · a 2 n

a 31 a 32 a 33 · · · a 3 n

am 1 am 2 am 3 · · · amn

, x =

x 1

x 2

x 3

xn

, b =

b 1

b 2

b 3

bn

Clearly, A is the coefficient matrix, x would be called the unknown (or

variable) matrix (or vector) and b would be called the constant vector

(or matrix).

48 CHAPTER 2. MATRICES

  1. With

a 1 =

a 11

a 21

a 31

am 1

, a 2 =

a 12

a 22

a 32

am 2

, · · · aj =

a 1 j

a 2 j

a 3 j

amj

, · · · an =

a 1 n

a 2 n

a 3 n

amn

we can write (or think)

A =

[

a 1 a 2 · · · aj · · · an

]

as a matrix of matrices.

  1. The above system of linear equations can be (re)writeen as

x 1 a 1 + x 2 a 2 + · · · + xj aj + · · · + xnan = b.

We say, b is a linear combination of the column metrices (or

vectors) a 1 , a 2 ,... , an with coefficents x 1 , x 2 ,... , xn.

  1. So, the solutions of the above system are precisely those c 1 ,... , cn

such that b is a linear combination of the vectors a 1 , a 2 ,... , an

with coefficents c 1 , c 2 ,... , cn.

Exercise 2.1.9 (Ex. 34 (changed), p. 58) Consider the system of

equation:

x 1 +x 2 − 3 x 3 = − 1

−x 1 +2x 2 = 1

x 1 − 2 x 2 +x 3 = 2

Write this system in the matrix-form Ax = b and solve matrix equation

for x.

Solution: The equation reduces to

x 1

x 2

x 3

50 CHAPTER 2. MATRICES

Equating respective entries:

2 a +3b = 3

a +b = 17

2 c +3d = 4

c +d = − 1

The augmented matrix of the system:

Use TI-84 to reduce it to the Gauss-Jordan form:

     

1 0 0 0 48

Looking at the corresponding to this matrix, we get

a = 48, b = − 31 , c = − 7 , d = 6 and

[

a b

c d

]

[

]

2.2. PROPERTIES OF MATRIX OPERATIONS 51

2.2 Properties of Matrix operations

Homework: §2.2 (page 70): 1, 3, 7, 9, 15, 17, 21, 23, 29, 31, 35, 37,

39, 43, 57, 59

Main points in this section:

  1. We write down some of the properties of matrix addition and

multiplication.

  1. We define transpose of a matrix.
  2. We start writing some proofs.

2.2. PROPERTIES OF MATRIX OPERATIONS 53

  1. We have A + (−A) = Omn
  2. If cA = Omn, then either c = 0 or A = 0.

We say, on the set of all m×n matrices, Omn is an additive identity

(property (1)), and (−A) is the additive inverse of A (property (2))

2.2.1 Properties of matrix multiplication

Theorem 2.2.3 (Mult-Properties) Let A, B, C be three matrices

(of varying sizes) so that all the products below are defined and c be a

scalars. Then

  1. AB 6 = BA Failure of Commutativity of multiplication

  2. (AB)C = A(BC) Associativity of multiplication

  3. (A + B)C = AC + BC Lef t − Distributivity of multiplication

  4. A(B + C) = AB + AC Right − Distributivity of multiplication

  5. c(AB) = (cA)B an Associativity

In (1), by AB 6 = BA, we mean AB is not always equal to BA.

Proof. We will only prove (4). In this case, let A be a matrix of size

m × n and then B, C would have to be of same size n × p. Write

A =

a 11 a 12 a 13 · · · a 1 n

a 21 a 22 a 23 · · · a 2 n

a 31 a 32 a 33 · · · a 3 n

am 1 am 2 am 3 · · · amn

54 CHAPTER 2. MATRICES

and

B =

b 11 b 12 b 13 · · · b 1 p

b 21 b 22 b 23 · · · b 2 p

b 31 b 32 b 33 · · · b 3 p

bn 1 bn 2 bn 3 · · · bnp

, C =

c 11 c 12 c 13 · · · c 1 p

c 21 c 22 c 23 · · · c 2 p

c 31 c 32 c 33 · · · c 3 p

cn 1 cn 2 cn 3 · · · cnp

Therefore, A(B + C) =

a 11 a 12 a 13 · · · a 1 n

a 21 a 22 a 23 · · · a 2 n

a 31 a 32 a 33 · · · a 3 n

am 1 am 2 am 3 · · · amn

b 11 + c 11 b 12 + c 12 b 13 + c 13 · · · b 1 p + c 1 p

b 21 + c 21 b 22 + c 22 b 23 + c 23 · · · b 2 p + c 2 p

b 31 + c 31 b 32 + c 32 b 33 + c 33 · · · b 3 p + c 3 p

bn 1 + cn 1 bn 2 + cn 2 bn 3 + cn 3 · · · bnp + cnp

which is

n k=

a 1 k(bk 1 + ck 1 )

n k=

a 1 k(bk 2 + ck 2 ) · · ·

n k=

a 1 k(bkp + ckp) ∑n

k=1 a^2 k(bk^1 +^ ck^1 )^

∑n

k=1 a^2 k(bk^2 +^ ck^2 )^ · · ·^

∑n

k=1 a^2 k(bkp^ +^ ckp) ∑n

k=1 a^3 k(bk^1 +^ ck^1 )^

∑n

k=1 a^3 k(bk^2 +^ ck^2 )^ · · ·^

∑n

k=1 a^3 k(bkp^ +^ ckp)

∑n

k=1 amk(bk^1 +^ ck^1 )^

∑n

k=1 amk(bk^2 +^ ck^2 )^ · · ·^

∑n

k=1 amk(bkp^ +^ ckp)

56 CHAPTER 2. MATRICES

Remark. For matrices A, B, C as in the theorem so that all the mul-

tiplications in the associative law (2) are defined. Then the expres-

sion ABC would mean (AB)C or A(BC). It is well defined, because

(AB)C = A(BC) by associatieve property(2) of matrix multiplication.

Reading assignment

  1. [Textbook, Example 3, p. 64] to ’experience’ that associativity

(property 2) works.

  1. [Textbook, Example 4, p. 64] to see examples that commutativity

for multiplication fails (property 1).

  1. [Textbook, Example 5, p. 65] to see examples that cancellation

fails. That means, examples AB = AC for nonzero A, B, C with

B 6 = C. This makes solving matrix equation like AX = AC, dif-

ferent from solving equation in real numbers, like ax = c.

Theorem 2.2.4 Let In denote the square matrix of order n whose

main diagonal entries are 1 and all the entries are zero. So,

In =

, I 3 =

 , I 4 =

Let A be an m × n matrix. Then

ImA = A and AIn = A.

Because of these two properties, In is called the identity matrix of

order n.

Proof. Easy.

2.2. PROPERTIES OF MATRIX OPERATIONS 57

Reading assignment

  1. [Textbook, Example 6, p. 66]
  2. [Textbook, Example 7, p. 66], just to get used to computing A

r .

Following the definition 1.1.2 in item (4) we gave a classification of

system of equation, which we state as a theorem and prove as follows.

Theorem 2.2.5 Let Ax = b be a linear system of m equations in n

unknowns. Then exactly one of the follwoing is true:

  1. The system has no solution.
  2. The system has exactly one solution.
  3. The system has infinitely many solutions.

Proof. If the system has no solution or have exactly one solution,

then there is nothing to prove. So, assume, it has at least two distinct

solutions x 1 , x 2. So, Ax 1 = b and Ax 2 = b. Subtracting the second

from the first, we have A(x 1 − x 2 ) = 0. Write y = x 1 − x 2.

Then y 6 = 0 and Ay = 0. So, for any scalar c, we have

A(x 1 + cy) = Ax 1 + A(cy) = b + (Ac)y = b + c(Ay) = b + c 0 = b.

So, x 1 +cy is a solution, for each scalar c (and they are all distinct). So,

the system has infinitely many solutuions. This completes the proof.

2.2.2 Transpose of a matrix

Definition 2.2.6 The transpose of a matrix A is obtained by writ-

ing the rows as columns (and/or writing the columns as rows). The

transpose of A is denoted bt A

T

. So, for the matrix

2.2. PROPERTIES OF MATRIX OPERATIONS 59

Exercise 2.2.9 (Ex. 8, p. 70) Let

A =

 ,^ B^ =

Then

  1. Solve X = 3A − 2 B

Solution: In this case

X = 3A − 2 B = 3

 −^2

which is

  1. Solve 2X = 2A − B.

Solution: We have

2 X = 2A−B = 2

OR

2 X =

Divide by 2 (i.e. multiply by

1 2

), we have

X =

60 CHAPTER 2. MATRICES

  1. Solve 2X + 3A = B.

Solution: We have 2X + 3A = B. Subtracting 3A from both

sides, 2X = B − 3 A. So,

2 X = B − 3 A =

 −^3

Divide by 2 (i.e. multiply by

1 2

), we have

X =

Exercise 2.2.10 (Ex. 10-changed, p. 70) Let

A =

[

]

, B =

[

]

, C =

[

]

Compute C(BA) and A(BC), if defined.

Solution: Note A(BC) is not defined because A has 3 column and BC

has two rows. We compute C(BA). We have C(BA) = (CB)A and

CB =

[

] [

]

[

]

So, C(BA) = (CB)A

[

] [

]

[

]

Exercise 2.2.11 (Ex. 18, p. 70) Let

A =

[

]

, B =

[

]