Ch2 Matrices
Ch2 Matrices
Taiwan FCU
CHAPTER 2
MATRICES
2.1 Operations with Matrices
2.2 Properties of Matrix Operations
2.3 The Inverse of a Matrix
row: m
column: n
size: m×n
2
Trace(跡數):
If A [ aij ]nn
1 2 3
A c1 c2 c3
4 5 6
1 2 3
c1 , c2 , c3
4 5 6
5
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
7
Matrix subtraction(矩陣相減):
A B A (1)B
Size of AB
n
where cij aikbkj ai1b1 j ai 2b2 j ainbnj
k 1
Ex 5: Matrix Multiplication
11
a11 a12 a1n x1 b1
a a22 a2 n x2 b2 Single matrix equation
21
A xb
m n n 1 m 1
A x b
12
Ex 6: Solving a System of Linear Equations
Department of Electrical Engineering
Elementary Linear Algebra: Section 2.1, p.45
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
16
17
If A, B, C M mn , c, d : scalar
Then (1) A+B = B + A Commutative property of addition
18
20
Matrix:
AB BA
m n n p
Three situations:
(1) If m p, then AB is defined , BA is undefined.
(2) If m p, m n, then AB M mm , BA M nn (Sizes are not the same)
(3) If m p n, then AB M mm , BA M mm
(Sizes are the same, but matrices are not equal)
21
Note: AB BA
22
Matrix:
AC BC C0
(1) If C is invertible, then A = B
23
24
25
26
(3) (cA)T c( AT )
(4) ( AB )T BT AT ( ABC)T ?
28
Ex:
1 2 3
If A a 4 5 is symmetric, find a, b, c?
b c 6
Sol:
1 2 3 1 a b
T
A a 4 5 AT 2 4 c
A A
a 2, b 3, c 5
b c 6 3 5 6 29
A AT a 1, b 2, c 3
31
A | I Gauss
I | A1
- Jordan Eliminatio n
Check: AA 1 A1 A I
Ex 2: (Find the inverse of the matrix)
1 4
A
1 3
Ex 3: (Find the inverse of the following matrix)
1 1 0
A 1 0 1
6 2 3
Ex 4: (Show that the matrix has no inverse
1 2 0
A 3 1 2
34
2 3 2
Department of Electrical Engineering
Elementary Linear Algebra: Section 2.3, pp.63-64
Power of a square matrix(矩陣幕次):
(1) A0 I
(2) Ak
AA
A (k 0)
k factors
(3) Ar As Ar s r , s : integers
( Ar ) s Ars
d1 0 0 d1k 0 0
0 d 0
0 d 2k 0
(4) D 2
Dk
0 0 k
d n 0 0 dn
35
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)
39
This solution is unique.
Department of Electrical Engineering
Elementary Linear Algebra: Section 2.3, p.70
Note:
For square systems (those having the same number of equations
as variables which means the same coefficient matrix A),
Theorem 2.11 can be used to determine whether the system has a
unique solution.
40
41