Professional Documents
Culture Documents
工程數學-線性代數
(Engineering Mathematics-Linear Algebra)
Lecture 2
• Vector (向量)
(1) Row vector (列向量): a 1×n matrix, e.g., [a1, a2, …, an]
a1
(2) Column vector (行向量): a n×1 matrix , e.g., a
2 Rn 歐幾里德 n 度空間
(Euclidean n-space)
a
n
NCUEE, Jim-Wei Wu, 110_1 3
a11 a12 a1n a1 P43
a a22 a2 n a
A 21
A 2 or A = (a1, a2, ..., an)
a
m1 am 2 amn a
m
a) The ith row vector of a m×n matrix A : i (ai1 , ai 2 , , ain )
a
Example 1
3 2 5
A
1 8 4
and a1 (3, 2, 5), a 2 ( 1, 8, 4)
A = (a1, a2, a3) =
NCUEE, Jim-Wei Wu, 110_1 4
P44
Definition of Equal (相等的)
Two m×n matrices A and B are said to be equal if aij = bij for
each i and j.
𝑎11 𝑎12 𝑎13 𝑏11 𝑏12 𝑏13
𝐴= 𝑎 𝐵=
需相同維度 21 𝑎22 𝑎23 𝑏21 𝑏22 𝑏23
Example : 1 2 4 1
a12 then A
2 3 4 5
4 8 2
If A
6 8 10 12 24 6
and 3 A
18 24 30
NCUEE, Jim-Wei Wu, 110_1 5
P44
Definition of Matrix Addition (矩陣加法)
If A = (aij) and B = (bij) are both m×n matrices, then the sum A+B is
the m×n matrix whose (i, j) entry is aij+bij for each ordered pair (i, j).
需相同維度
a12+b12 = 4
Example :
2×3 matrix A 2×3 matrix B
3 2 1 2 2 2 5 4 3
4 5 6 1 2 3 5 7 9
3×1 matrix A 3×1 matrix B
2 8 6
1 3 4
8 2 10
NCUEE, Jim-Wei Wu, 110_1 6
P45
Matrix Multiplication (矩陣乘法)
CASE 1 : One Equation in N Unknowns
• For a linear equation of n unknowns of the form:
a1x1 + a2x2 + ... + anxn = b
x1
If we let A = [a1, a2, ..., an] and x = x2
x
Ax = a x + a x + . . . + a x
1 1 2 2 n n n
Example : 3x1 + 2 x2 + 5 x3 = 4
x1
Ax 3 2 5 x2 3 x1 2 x2 5 x3 = 4
x3
NCUEE, Jim-Wei Wu, 110_1 7
P46
CASE 2 M Equations in N Unknowns
• Consider a m×n linear system
coefficient matrix
NCUEE, Jim-Wei Wu, 110_1 8
P47
Example :
x1
4 2 1 x 4 x1 2 x2 x3
A , x Ax
5 3 7 2
1
5 x 3 x 7 x3
x3
2
Example :
3 1 3 2 1 4 2
2
A 2 5 , x Ax 2 2 5 4 24
4
4 2 2 4 16
4 2
3×2 matrix 2×1 matrix 3×1 matrix
If a1, a2, …, an are vectors in Rm and c1, c2, …, cn are scalars, then
a sum of the form
c1a1 + c2a2 + . . . + cnan
is said to be a linear combination of the vectors of a1, a2, …, an.
• A linear system is :
2 x1 3 x2 2 x3 5 2 3 2 5
x1 x2 x3
5 x1 4 x2 2 x3 6 5 4 2 6
We choose x1 = 2, x2 = 3, and x3 = 4
2
5 2 3 2
6 2 5 3 4 4 2 x 3 是線性系統的解
4
是三個column vectors的線性組合
NCUEE, Jim-Wei Wu, 110_1 11
P49
Theorem 1.3.1
A linear system Ax = b is consistent if and only if b can be written
as a linear combination of the column vectors of A.
Example :
x1 2 x2 1 1 2 x1 2 x2
x1 x2
2 x1 4 x2 1
2 1
4 2 x 4 x 2
由於向量
1 不能寫成column vector
1 2 的線性組合
1 找不到(𝑥1 , 𝑥2 )可以滿足
2 4
3 × 2 matrix
2 × 3 matrix
3 2
2 1 3
If A 2 4 and B
4 1 6
1 3
3 (2) (2) 4 3 1 (2) 1 3 3 ( 2) 6
AB 2 (2) 4 4 2 1 4 1 23 46
1 (2) (3) 4 1 1 (3) 1 1 3 (3) 6
14 1 3
𝐴𝐵 = 3 × 3 matrix
12 6 30
𝐵𝐴 = 2 × 2 matrix
14 2 15 NCUEE, Jim-Wei Wu, 110_1 13
矩陣乘法不符合交換律 P51
Note :
Multiplication of matrices is not commutative (i.e., AB ≠ BA).
Example :
1 1 1 1
If A and B
0 0 2 2
1 1 1 1 3 3
then AB 2
0 0 2 0 0
1 1 1 1 1 1
and BA 0
2 2 0 2 2
Hence, AB BA.
NCUEE, Jim-Wei Wu, 110_1 14
P51
Example :
3 4 1 3 2 1
If A , B , C
1 2 2 1 3 2
3 4 7 7 10 11
then A BC
1 2 1 4 0 6
9 12 1 3 10 15
and 3 A B + =
3 6 2 1 5 7
2 3 4 0 1 2 AT = A
1 0 , 1 1 2
Example: ,
0 4 3 1 5
4 5 3 2 2 3 symmetric matrix
1. A + B = B + A 6. (ab)A = a(bA)
2. (A + B) + C = A + (B + C) 7. a(AB) = (aA)B = A(aB)
3. (AB)C = A(BC) 8. (a + b)A = aA + bA
4. A(B + C) = AB + AC 9. a(A+B) = aA + aB
5. (A + B)C = AC + BC
B+C
AC A(B + C) = AB + AC
Notation (記號):
• If A is an n×n matrix and k is a positive integer (正整數):
Ak
AA A
k times
1 1 1 1 1 1 2 2
If A , A
2
1 1 1 1 1 1 2 2
1 1 2 2 4 4
A AAA AA
3 2
1 1 2 2 4 4
Ak
AA A 2 𝑘−1
= 𝑘−1 2𝑘−1
k times 2 2𝑘−1
NCUEE, Jim-Wei Wu, 110_1 23
P67
I=
Example :
1 0 0
0 1 0 is a 3×3 identity matrix
0 0 1
1 0 0 3 4 1 3 4 1
0 1 0 2 6 3 2 6 3 ( IA A)
0 0 1 0 1 8 0 1 8
3 4 1 1 0 0 3 4 1
2 6 3 0 1 0 2 6 3 ( AI A)
0 1 8 0 0 1 0 1 8
Example :
1 0
The matrix A has no inverse.
0 0
1 b11 b12
Sol: Let A B
21 22
b b
then
I
b11 b12 1 0 b11 0 1 0
BA
b21 b22 0 0 b21 0 0 1
Note
• If A1, A2,…, Ak are all nonsingular n × n matrices, then
the product A1A2…Ak is nonsingular and
(A1A2…Ak)–1 = Ak–1… A2–1A1–1
NCUEE, Jim-Wei Wu, 110_1 29
P70
The Transpose of a Matrix (矩陣轉置)
Rules of Transposes
1. (AT)T = A
2. (aA)T = aAT
3. (A + B)T = AT + BT
4. (AB)T = BTAT
Why :
A is m × n matrix AB is m × r matrix
BTAT is r × m matrix
B is n × r matrix (AB)T is r × m matrix
Q&A?