Chapter 2-NEW
Chapter 2-NEW
Chapter 2-NEW
MATRICES
2.1 Operations with Matrices
2.2 Properties of Matrix Operations
2.3 The Inverse of a Matrix
2.4 Elementary Matrices
2.5 Applications of Matrix Operations
row: m
column: n
size: m×n
j-th column vector
c1 j
c
cj 2j
column matrix
c
mj
Square matrix: m=n
If A [aij ]nn
Then Tr ( A) a11 a22 ann
1 2 3
A c1 c2 c3
4 5 6
1 2 3
c1 , c2 , c3
4 5 6
Ex 1: (Equal matrix)
1 2 a b
A B
3 4 c d
If A B
Then a 1, b 2, c 3, d 4
Ex 2: (Matrix addition)
1 2 1 3 1 1 2 3 0 5
0 1 1 2 0 1 1 2 1 3
1 1 1 1 0
3 3 3 3 0
2 2 2 2 0
Ex 3: (Scalar multiplication and matrix subtraction)
1 2 4 2 0 0
A 3 0 1 B 1 4 3
2 1 2 1 3 2
Size of AB
n
where cij aik bkj ai1b1 j ai 2b2 j ain bnj
k 1
Notes: (1) A+B = B+A, (2) AB BA
Elementary Linear Algebra: Section 2.1, p.42 & p.44 11/75
Ex 4: (Find AB)
1 3
3 2
A 4 2 B
4 1
5 0
Sol:
(1)( 3) (3)( 4) (1)( 2) (3)(1)
AB (4)( 3) (2)( 4) (4)( 2) (2)(1)
(5)( 3) (0)( 4) (5)( 2) (0)(1)
9 1
4 6
15 10
a11 a12 a1n x1 b1
a a22 a2 n x2 b2 Single matrix equation
21
Ax b
m n n 1 m 1
A x b
Elementary Linear Algebra: Section 2.1, p.45 13/75
Partitioned matrices:
submatrix
a11 a12 a13 a14
A11 A12
A a21 a22 a23
a24
A21 A22
a31 a32 a33 a34
1 2 3 x1 0 1 2 3
A 4 5 6, x x2 , b 3, c1 4, c2 5, c3 6
7 8 9 x3 6 7 8 9
x1 2 x2 3 x3 1 2 3 0
Ax 4 x1 5 x2 6 x3 x1 4 x2 5 x3 6 3 b
7 x1 8 x2 9 x3 7 8 9 6
1 2 3 0 1
14 1 5 (1) 6 3 (one solution : x 1, i.e. x1 1, x2 1, x3 1)
7 8 9 6 1
17/75
2.2 Properties of Matrix Operations
Three basic matrix operators:
(1) matrix addition
(2) scalar multiplication
(3) matrix multiplication
Zero matrix: 0 mn
Identity matrix of order n: I n
If A, B, C M mn , c, d : scalar
Then (1) A+B = B + A
(2) A + ( B + C ) = ( A + B ) + C
(3) ( cd ) A = c ( dA )
(4) 1A = A
(5) c( A+B ) = cA + cB
(6) ( c+d ) A = cA + dA
Notes:
(1) 0m×n: the additive identity for the set of all m×n matrices
(2) –A: the additive inverse of A
A AT a 1, b 2, c 3
Note: AAT is symmetric
Three
situations:
(1) If m p, then AB is defined, BA is undefined.
2 1 1 3 0 7
BA
0 2 2 1 4 2
Note: AB BA
2 4 1 2 2 4
BC
2 3 1 2 1 2
So AC BC
But A B
31/75
2.3 The Inverse of a Matrix
Inverse matrix:
Consider A M nn
If there exists a matrix B M nn such that AB BA I n ,
Ex 2: (Find the inverse of the matrix)
1 4
A
1 3
Sol:
AX I
1 4 x11 x12 1 0
1 3 x
21 x22 0 1
x11 4 x21 x12 4 x22 1 0
x 3 x
11 21 x12 3 x22 0 1
Thus
x11
1
x12 3 4
X A ( AX I AA -1
)
x21 x22 1 1
Sol:
1 1 0 1 0 0
A I 1 0 1 0 1 0
6 2 3 0 0 1
1 1 0 1 0 0
r12( 1 ) r13( 6 )
1 1 0 1 0 0
0 1 1 1 1 0 0 1 1 1 1 0
6 2 3 0 0 1 0 4 3 6 0 1
1 1 0 1 0 0 1 1 0 1 0 0
r3( 1)
(4)
r23
0 1 1 1 1 0
0 1 1 1 1 0
0 0 1 2 4 1 0 0 1 2 4 1
[ I A1 ]
(2) Ak AA
A (k 0)
k factors
(3) Ar A s Ar s r , s : integers
( Ar ) s Ars
d1 0 0 d1k 0 0
0 d 0 k
0 d2 0
( 4) D 2
Dk
0 0 k
d n 0 0 dn
k factors
1 1 1
(3) cA is invertible and (cA) A , c 0
c
(4) AT is invertible and ( AT ) 1 ( A1 )T
( AB) 1 B 1 A1
Pf:
( AB)( B 1 A1 ) A( BB 1 ) A1 A( I ) A1 ( AI ) A1 AA1 I
( B 1 A1 )( AB) B 1 ( A1 A) B B 1 ( I ) B B 1 ( IB) B 1 B I
If AB is invertible, then its inverse is unique.
So ( AB ) 1 B 1 A1
Note:
A1 A2 A3 An 1 An1 A31 A21 A11
Elementary Linear Algebra: Section 2.3, p.68 41/75
Thm 2.10 (Cancellation properties)
If C is an invertible matrix, then the following properties hold:
(1) If AC=BC, then A=B (Right cancellation property)
(2) If CA=CB, then A=B (Left cancellation property)
Pf:
AC BC
( AC )C 1 ( BC )C 1 (C is invertible , so C -1 exists)
A(CC 1 ) B(CC 1 )
AI BI
A B
Note:
If C is not invertible, then cancellation is not valid.
Elementary Linear Algebra: Section 2.3, p.69 42/75
Thm 2.11: (Systems of equations with unique solutions)
If A is an invertible matrix, then the system of linear equations
Ax = b has a unique solution given by
x A1b
Pf: Ax b
A1 Ax A1b ( A is nonsingular)
Ix A1b
x A1b
If x1 and x2 were two solutions of equation Ax b.
then Ax1 b Ax2 x1 x2 (Left cancellation property)
This solution is unique.
Elementary Linear Algebra: Section 2.3, p.70 43/75
Note:
For square systems (those having the same number of equations
as variables), Theorem 2.11 can be used to determine whether the
system has a unique solution.
Note:
Ax b (A is an invertible matrix)
A
| b A1 A | A1b I | A1b
A 1
A | b1 | b2 | | bn I | A1b1 | | A1bn
A1
46/75
2.4 Elementary Matrices
Row elementary matrix:
An nn matrix is called an elementary matrix if it can be obtained
from the identity matrix In by a single elementary operation.
Three row elementary matrices:
(1) Rij rij ( I ) Interchange two rows.
(2) Ri( k ) ri( k ) ( I ) (k 0) Multiply a row by a nonzero constant.
(3) Rij( k ) rij( k ) ( I ) Add a multiple of a row to another
row.
Note:
Only do a single elementary row operation.
1 0 0 1 0 0
(d ) 0 0 1 (e) 1 0 ( f ) 0 2 0
0 1 0 2 1
0 0 1
No (Use two elementary
Yes (r23 ( I 3 )) Yes (r12(2) ( I 2 ))
row operations)
1 0 0 1 0 4 1 1 0 4 1 1 1
1
6 4 0 1 3 2 (r2 2 ( A) R2 2 A)
( ) ( )
(b) 0 0 0 2
0 2
0 1 0 1 3 1 0 1 3 1
1 0 0 1 0 1 1 0 1
(c) 2 1 0 2 2 3 0 2 1 (r12( 2 ) ( A) R12(5) A)
0 0 1 0 4 5 0 4 5
0 0 12
Elementary Linear Algebra: Section 2.4, p.76 51/75
0 1 0 0 1 3 5 1 3 0 2
A1 r12 ( A) E1 A 1 0 0 1 3 0 2 0 1 3 5
0 0 1 2 6 2 0 2 6 2 0
( 2 )
1 0 0 1 3 0 2 1 3 0 2
A2 r 13 ( A1 ) E2 A1 0 1 0 0 1 3 5 0 1 3 5
2 0 1 2 6 2 0 0 0 2 4
1
( ) 1 0 0 1 3 0 2 1 3 0 2
A3 r3 2 ( A2 ) E3 A2 0 1 0 0 1 3 5 0 1 3 5 B
1 0 0 2 4 0 0 1 2
0 0
2
row-echelon form
1
( )
B E3 E2 E1 A or B r 3
2
(r13( 2 ) (r12 ( A)))
B Ek Ek 1 E2 E1 A
Notes:
(1) ( Rij ) 1 Rij
1
( )
(2) ( Ri( k ) ) 1 R i
k
1 0 0 1 0 0
E2 0 1 0 R13( 2 ) (R ( 2 ) 1
13
1
) E 0 1 0 R13( 2 ) (Elementary Matrix)
2
2 0 1 2 0 1
1 0 0 1
( )
1
( ) 1 0 0
) E 0 1 0 R3 (Elementary Matrix)
2 1 1 ( 2)
E3 0 1 0 R3 2 (R 3 3
0 0 12 0 0 2
1 2
A
3 8
Sol:
1 2 r1( 1) 1 2 r12( 3 ) 1 2
A
3 8 3 8 0 2
1
( )
r2 2 1 2 r21( 2 ) 1 0
I
0 1 0 1
1
( )
( 2 )
Therefore R21 R R12( 3) R1( 1) A I
2
2
1 0 1 0 1 0 1 2
3 1 0 2 0 1
0 1
Note:
If A is invertible
Then Ek E3 E2 E1 A I
A1 Ek E3 E2 E1
Ek E3 E2 E1[ AI ] [ I A1 ]
A 1 2 1 2 U
r12(-1)
1 0 0 2
R12( 1) A U
( 1) 1 1 0
L (R 12 ) R (1)
12
1 1
A ( R13( 2 ) ) 1 ( R23
( 4 ) 1
) U LU
L ( R13( 2 ) ) 1 ( R23
( 4 ) 1 ( 4 )
) R13( 2 ) R23
1 0 0 1 0 0 1 0 0
0 1 0 0 1 0 0 1 0
2 0 1 0 4 1 2 4 1
Ax b If A LU , then LUx b
Let y Ux, then Ly b
Two steps:
(1) Write y = Ux and solve Ly = b for y
1 0 0 y1 5 y1 5
0 1 0 y2 1 y2 1
2 4 1 y3 20 y3 20 2 y1 4 y2
20 2(5) 4(1) 14
Elementary Linear Algebra: Section 2.4, p.81 64/75
(2) Solve the following system Ux y
1 3 0 x1 5
0 1 3 x2 1
0 0 14 x3 14
So x3 1
x2 1 3 x3 1 (3)(1) 2
x1 5 3 x2 5 3(2) 1
Thus, the solution is
1
x2
1
66/75