Download pdf - 1.2 Matrices

Transcript
Page 1: 1.2 Matrices

Matrices

Definition. A π’Ž Γ— 𝒏 size matrix 𝑨 is a rectangular array of π‘š βˆ™ 𝑛 real (or

complex) numbers arranged in π‘š horizontal rows and 𝑛 vertical columns

𝐴 =

[

π‘Ž11 π‘Ž12β‹― π‘Ž1𝑗 β€¦π‘Ž1𝑛

π‘Ž21 π‘Ž22β‹― π‘Ž2𝑗 β€¦π‘Ž2𝑛

…………………… . .π‘Žπ‘–1 π‘Žπ‘–2β‹― π‘Žπ‘–π‘— β€¦π‘Žπ‘–π‘› ………………… . .

π‘Žπ‘š1 π‘Žπ‘š2β‹― π‘Žπ‘šπ‘— β€¦π‘Žπ‘šπ‘›]

𝑖 π‘‘β„Ž π‘Ÿπ‘œπ‘€ (1)

j th column

We shall say that 𝐴 is π‘š by 𝑛 (written π‘š Γ— 𝑛 ). If π‘š = 𝑛, we say that 𝐴 is

a square matrix of order 𝑛 and the numbers π‘Ž11 , π‘Ž22, … , π‘Žπ‘›π‘› are elements of

the main diagonal of 𝐴. We refer to the π‘Žπ‘–π‘—, as 𝑖, 𝑗 th element of 𝐴 and we

often write (1) as

𝐴 = [π‘Žπ‘–π‘—].

Example 1. Let 𝐴 = [ 1 2 3βˆ’1 0 1

], 𝐡 = [1 42 βˆ’3

], 𝐢 = [ 1βˆ’1 2

], 𝐷 = [1 1 02 0 13 βˆ’1 2

].

Then 𝐴 is a 2 Γ— 3 matrix with

π‘Ž11 = 1 π‘Ž12 = 2 π‘Ž13=3

π‘Ž21 = βˆ’1 π‘Ž22 = 0 π‘Ž23=1;

𝐡 is a 2 Γ— 2 matrix with

𝑏11 = 1 𝑏12 = 4

𝑏21 = 2 𝑏22 = βˆ’3 ;

Page 2: 1.2 Matrices

𝐢 is a 3 Γ— 1 matrix; 𝐷 is a 3 Γ— 3 matrix. In 𝐷, the elements 𝑑11 =

1, 𝑑22 = 0, 𝑑33 = 2 form the main diagonal.

Any 1 Γ— 𝑛 size matrix is called row-vector, any 𝑛 Γ— 1 size matrix is called

column-vector or simply are called a 𝑛 βˆ’vector.

Example 2. 𝑒 = [1 2 βˆ’ 1 0 ] is 4-vector and 𝑣 = [ 1βˆ’1 3

] is 3-vector.

Definition. A square matrix 𝐴 = [π‘Žπ‘–π‘—] for which every term off the main

diagonal is zero, that is π‘Žπ‘–π‘— = 0 for 𝑖 β‰  𝑗, is called diagonal matrix.

Example 3. 𝐺 = [ 4 0 0 1

], 𝐻 = [βˆ’3 0 00 βˆ’2 00 0 4

] are diagonal matrix.

Definition. A diagonal matrix 𝐴 = [π‘Žπ‘–π‘—] for which π‘Žπ‘–π‘— = 𝑐 for 𝑖 = 𝑗 and π‘Žπ‘–π‘— = 0

for β‰  𝑗 , is called a scalar matrix.

Example 4. The following are scalar matrices: J = [ βˆ’2 0 0 βˆ’ 2

],

I3 = [1 0 00 1 00 0 1

] .

Definition. Two π‘š Γ— 𝑛 matrix 𝐴 = [π‘Žπ‘–π‘—] and 𝐡 = [𝑏𝑖𝑗] are said to be equal if

π‘Žπ‘–π‘— = 𝑏𝑖𝑗 , that is if corresponding elements are equal.

Page 3: 1.2 Matrices

Example 5. The matrices: A = [1 2 βˆ’12 βˆ’3 40 βˆ’4 5

] and B = [1 2 𝑀2 π‘₯ 4𝑦 βˆ’4 𝑧

] are

equal if 𝑀 = βˆ’1, π‘₯ = βˆ’3, 𝑦 = 0 π‘Žπ‘›π‘‘ 𝑧 = 5.

Definition. If 𝐴 = [π‘Žπ‘–π‘—] and 𝐡 = [𝑏𝑖𝑗] are π‘š Γ— 𝑛 matrices, then the sum of 𝐴

and 𝐡 is the π‘š Γ— 𝑛 matrix 𝐢 = [𝑐𝑖𝑗] , defined by

𝑐𝑖𝑗 = π‘Žπ‘–π‘— + 𝑏𝑖𝑗 .

That is, C is obtained by adding the corresponding elements of A and B.

Example 6. Let 𝐴 = [ 1 βˆ’ 2 42 βˆ’ 1 3

] and 𝐡 = [ 0 2 βˆ’ 41 3 1

].

Then 𝐴 + 𝐡 = [ 1 + 0 βˆ’ 2 + 2 4 + (βˆ’4)2 + 1 βˆ’ 1 + 3 3 + 1

] = [1 0 0 3 2 4

].

Definition. If 𝐴 = [π‘Žπ‘–π‘—] is π‘š Γ— 𝑛 matrix and π‘Ÿ is real number, then the scalar

multiple of 𝐴 by π‘Ÿ , π‘Ÿπ΄, is π‘š Γ— 𝑛 matrix 𝐡 = [𝑏𝑖𝑗], where 𝑏𝑖𝑗 = π‘Ÿπ‘Žπ‘–π‘—.

That is 𝐡 obtained by multiplying each element of 𝐴 by π‘Ÿ.

If 𝐴 = [π‘Žπ‘–π‘—] and 𝐡 = [𝑏𝑖𝑗] are π‘š Γ— 𝑛 matrices, we write 𝐴 + (βˆ’1)𝐡 as 𝐴 βˆ’ 𝐡

and call this the difference of 𝐴 and 𝐡.

Example 7. Let 𝐴 = [ 2 3 βˆ’ 54 2 1

] and 𝐡 = [2 βˆ’ 1 33 5 βˆ’ 2

].

Then 𝐴 βˆ’ 𝐡 = [2 βˆ’ 2 3 + 1 βˆ’ 5 βˆ’ 34 βˆ’ 3 2 βˆ’ 5 1 + 2

] = [0 4 βˆ’ 81 βˆ’ 3 3

].

Definition. If 𝐴 = [π‘Žπ‘–π‘—] is π‘š Γ— 𝑛 matrix, then 𝑛 Γ— π‘š matrix 𝐴𝑇 = [π‘Žπ‘–π‘—π‘‡], where

π‘Žπ‘–π‘—π‘‡ = π‘Žπ‘—π‘–

is called the transpose of 𝐴.

Page 4: 1.2 Matrices

Thus, the entries in each row of 𝐴𝑇 are the entries in the corresponding column

of 𝐴.

Example 8. Let 𝐴 = [4 βˆ’ 2 0 0 5 βˆ’ 2

] then 𝐴𝑇 = [4 0

βˆ’2 50 βˆ’2

],

𝐷 = [3 βˆ’5 1] then 𝐷𝑇 = [3

βˆ’51

].

Definition. If 𝐴 = [π‘Žπ‘–π‘—] is an π‘š Γ— 𝑝 matrix and 𝐡 = [𝑏𝑖𝑗] is 𝑝 Γ— 𝑛 matrix, then

the product of 𝐴 and 𝐡, denoted 𝐴𝐡, is the π‘š Γ— 𝑛 matrix 𝐢 = [𝑐𝑖𝑗], defined

by

𝑐𝑖𝑗 = π‘Žπ‘–1𝑏1𝑗 + π‘Žπ‘–2𝑏2𝑗 + β‹―+ π‘Žπ‘–π‘π‘π‘π‘— = βˆ‘ π‘Žπ‘–π‘˜π‘π‘˜π‘—π‘π‘˜=1 .

j th column

𝑖 π‘‘β„Ž π‘Ÿπ‘œπ‘€

[ π‘Ž11 π‘Ž12β‹― …… . π‘Ž1𝑝

π‘Ž21 π‘Ž22 … β€¦π‘Ž2𝑝

…………………… . .π‘Žπ‘–1 π‘Žπ‘–2β‹― β€¦β€¦π‘Žπ‘–π‘ ………………… . .π‘Žπ‘š1 π‘Žπ‘š2β‹― β€¦π‘Žπ‘šπ‘ ]

[ 𝑏11 𝑏12 …𝑏1𝑗 …𝑏1𝑛

𝑏21 𝑏22 …𝑏2𝑗 …𝑏2𝑛

…………………… . .…………………… . .………………… . .

𝑏𝑝1 𝑏𝑝2 …𝑏𝑝𝑗 …𝑏𝑝𝑛]

=

[

𝑐11 ……… 𝑐1𝑛

………… …𝑐𝑖1 ……𝑐𝑖𝑗 …𝑐𝑖𝑛

β€¦β€¦β€¦β€¦β€¦β€¦β€¦π‘π‘š1 β€¦β€¦π‘π‘šπ‘— β€¦π‘π‘šπ‘›]

Example 9. Let 𝐴 = [1 2 βˆ’ 13 1 4

] and 𝐡 = [βˆ’2 54 βˆ’32 1

]. Then

𝐴𝐡 = [1 2 βˆ’ 13 1 4

] [βˆ’2 54 βˆ’32 1

] =

[1 βˆ™ (βˆ’2) + 2 βˆ™ 4 + (βˆ’1) βˆ™ 2 1 βˆ™ 5 + 2 βˆ™ (βˆ’3) + (βˆ’1) βˆ™ 1

3 βˆ™ (βˆ’2) + 1 βˆ™ 4 + 4 βˆ™ 2 3 βˆ™ 5 + 1 βˆ™ (βˆ’3) + 4 βˆ™ 1]=[

4 βˆ’26 16

]

Page 5: 1.2 Matrices

The Matrix Multiplication Is Not Commutative

Matrix multiplication is a noncommutative operationβ€”i.e., it is possible

for AB = BA, even when both products exist and have the same shape.

Example 10. Let 𝐴 = [1 2

βˆ’1 3] and 𝐡 = [

2 10 1

]. Then 𝐴𝐡 = [2 3

βˆ’2 2] and

𝐡𝐴 = [2 10 1

] [1 2

βˆ’1 3] = [

1 7βˆ’1 3

].

Thus 𝐴𝐡 β‰  𝐡𝐴.


Recommended