0% found this document useful (0 votes)
678 views192 pages

Linear Algebra 200 Problems

Uploaded by

xiaotianxue84
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
678 views192 pages

Linear Algebra 200 Problems

Uploaded by

xiaotianxue84
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

線性代數200問題集

周志成∗
2012.12.24

這份問題集彙整自2009 年 3 月至 2012 年 12 月刊登於 「線代啟示錄† 」 的 200 個每週問


題。 本題集收錄的問題來源甚廣, 有我過去教學使用的演習題, 美國麻省理工學院的考題, 台
灣各大學的研究所入學試題, 以及多本參考書籍的練習題‡ 。 這些問題大都具有解釋基本觀念
或彰顯實用技巧的作用, 部分問題可能超越一般基礎線性代數水平, 但我相信演練略為艱深
的問題不僅可以刺激思考活動, 鍛鍊推理解析力, 也有鞏固核心觀念的效果。
為方便查閱, 本題集按 「線性方程式與矩陣代數」,「向量空間」,「線性變換」,「內積空間」,
「行列式」,「特徵分析」 與 「二次型」 編排, 但一些綜合問題不易切割, 此時便依解題過程所最
需要聯繫的概念和方法歸類。 由於時間倉促, 未及逐題校閱, 內容或有錯誤, 期待讀者提出批
評與改進意見, 來日再版時將一併訂正。


作者任教於國立交通大學電機工程系

http://ccjou.wordpress.com

見參考文獻

1
線性方程式與矩陣代數
Problem 1

In each part solve the matrix equation for X.

(a)  
−1 0 1 



 1 2 0
X 1 1 0= .
  −3 1 5
3 1 −1

(b) AXB = C given that


   
1 4   8 6 −6



 2 0 0 



A =  −2 3 , B= , C= 6 −1 1 .
  0 1 −1  
1 −2 −4 0 0

Solution

(a) 因為未知矩陣 X 出現於係數矩陣的左邊, 我們可以將整個矩陣方程式轉置以便得出


如 Ax = b 的線性方程基本形式:
   
−1 1 3 1 −3
   
  T  
 0 1 1 X =  2 1 。
   
1 0 −1 0 5
此矩陣方程式等價於二個係數矩陣相同的線性方程式, 將方程式等號右端的兩個常數
向量併入 3 × 3 階係數矩陣, 再以消去法將 3 × 5 階增廣矩陣化簡至最簡列梯形陣
式 (reduced row echelon form), 如此一來只需要進行一回計算程序便可解出二方
程式。 消去法的化簡過程如下:
     
−1 1 3 1 −3 −1 1 3 1 −3 1 −1 −3 −1 3
     
     
 0 1 1 2 1  0 1 1 2 1 0 1 1 2 1
     
1 0 −1 0 5 0 1 2 1 2 0 1 2 1 2
     
1 −1 −3 −1 3 1 −1 0 −4 6 1 0 0 −1 6
     
     
0 1 1 2 1 0 1 0 3 0 0 1 0 3 0 。
     
0 0 1 −1 1 0 0 1 −1 1 0 0 1 −1 1

2
最簡列梯形矩陣的右末二行即為 X T 的解, 取轉置可得
 
−1 3 −1
X= 。
6 0 1

(b) 首先判斷出 X 是 2 × 2 階矩陣, 直覺的做法是設 X 的 4 個未知元為 x, y, z, w, 進


行二次矩陣乘法運算將 AXB = C 乘開, 改寫成標準形式的線性方程式後再以消去
法求解。 不過, 這樣做會產生 9 個一次方程式, 計算時很容易出錯。

另一個方法是將求解程序分解成二個步驟, 令 Y = XB, 由方程式 AY = C 先解出


Y , 然後由方程式 XB = Y 解出 X 。 以下說明第二個做法。 為求解 Y , 類似題 (a)
的做法, 我們可以一次解出三個方程式, 利用消去法化簡增廣矩陣 [ A C ], 得到
   
1 4 8 6 −6 1 4 8 6 −6
   
   
 −2 3 6 −1 1  0 11 22 11 −11 
   
1 −2 −4 0 0 0 −6 −12 −6 6
   
1 4 8 6 −6 1 0 0 2 −2
   
   
 0 1 2 1 −1   0 1 2 1 −1  。
   
0 0 0 0 0 0 0 0 0 0
 
I2 D
將最簡列梯形矩陣用分塊矩陣表示為  , 並設 E 為消去法所執行過所有的
0 0
基本矩陣乘積, 由分塊矩陣乘法可得
 
h i h i I2 D
E A C = EA EC =  。
0 0
     
I2 I2 Y
上式指出 EA =  , 因此 EC = EAY =  Y =  , 但上面的分塊
0 0 0
 
D
乘積顯示 EC =  , 這說明了分塊 D 即為 Y , 因此
0
 
0 2 −2
Y = 。
2 1 −1

3
接下來的工作是求解方程式 XB = Y 。 將方程式轉置可得 B T X T = Y T , 同樣以消
去法化簡增廣矩陣 [ B T Y T ], 過程如下:
     
2 0 0 2 1 0 0 1 1 0 0 1
     
     
0 1 2 1 0 1 2 1  0 1 2 1 。
     
0 −1 −2 −1 0 −1 −2 −1 0 0 0 0
 
0 1
與前一個步驟的道理相同, 由得出的分塊可知 X T =  , 所以
2 1
 
0 2
X= 。
1 1

Problem 2

Let  
4 8 12 −8
 
 
 1 2 −3 4 
A=

.

 2 3 2 1 
 
−3 −1 1 −4
Determine the LU decomposition P A = LU , where P is the associated permuta-
tion matrix.

Solution

我們設計一個演算流程來紀錄高斯消去法的執行過程與結果, 包括下三角形矩陣 L = [lij ]


所儲存的乘數 lij , i > j, 排列矩陣 P 的列排序, 以及上三角形矩陣 U = [uij ], i ≤ j 。 方
法是在最右側加入一行代表列排序, 初始值設為 (1, 2, 3, 4), 並於消去法產生的梯形矩陣零
元位置填入取代運算所使用的乘數, 在該元底下加註一直線以利辨識。 注意, 消去法的取代

4
和縮放運算不會計算代表列排序的最右行與儲存的乘數 (即加註底線的元), 詳細過程如下:
   
4 8 12 −8 1 1 2 −3 4 2
   
   
 1 2 −3 4 2   4 8 12 −8 1 
   
   
 2 3 2 1 3   2 3 2 1 3 
   
−3 −1 1 −4 4 −3 −1 1 −4 4
   
1 2 −3 4 2 1 2 −3 4 2
   
   
 4 0 24 −24 1   2 −1 8 −7 3 
   
   
 2 −1 8 −7 3   4 0 24 −24 1 
   
−3 5 −8 8 4 −3 5 −8 8 4
   
1 2 −3 4 2 1 2 −3 4 2
   
   
 2 −1 8 −7 3   2 −1 8 −7 3 
   。
   
 4 0 24 −24 1   4 0 24 −24 1 
   
−3 −5 32 −27 4 −3 −5 4/3 5 4
所以得到
     
1 0 0 0 1 2 −3 4 0 1 0 0
     
     
 2 1 0 0   0 −1 8 −7   0 0 1 0 
L= , U =  , P =  。
     
 4 0 1 0   0 0 24 −24   1 0 0 0 
     
−3 −5 4/3 1 0 0 0 5 0 0 0 1

Problem 3

An n × n matrix A is called idempotent if A2 = A.

(a) Show that if A is idempotent and invertible, then A = I.

(b) Describe all 2 × 2 real idempotent matrices.

(c) If A is idempotent, find the inverse of I − cA (if possible) for some scalar c.

5
Solution

(a) 令 A − A2 = 0 左乘 A−1 便有 A−1 (A − A2 ) = A−1 A − A−1 AA = I − A = 0,


得出 A = I 。

(b) 2 × 2 階矩陣的秩可能為 2, 1, 0, 以下分別考慮這三種狀況。

若 rankA = 2, A 是可逆的, 由題 (a) 可知 A = I 。

若 rankA = 1, A 總是可寫成 A T 2 T uvT , 比較兩式得知 u,


 = uv , 而且
 A = uv  
2 2 4 −6
v 要滿足 vT u = 1, 例如, u =  , v =  , A =  。
1 −3 2 −3
若 rankA = 0, 顯然 A = 0。

(c) 由於 A2 = A, 矩陣 A 的二次多項式總能變換為一次多項式, 可以嘗試計算

(I − cA)(I − dA) = I − cA − dA + cdA2 = I + (cd − c − d)A。

c
若 cd − c − d = 0, 即 d = c−1 , 解出逆矩陣

c
(I − cA)−1 = I − A,
c−1

此式成立的條件為 c 6= 1。 

Problem 4

Answer the following questions.

(a) Show that if A and A + B are invertible, then I + BA−1 is also invertible.

(b) If A, B, and A + B are invertible, express (A−1 + B −1 )−1 in terms of A, B,


and A + B.

(c) Suppose that a square matrix A satisfies A2 − 3A + I = 0. Find the inverse


of A.

(d) Suppose that I + A is invertible and B = (I + A)−1 (I − A). Show that


I + B is also invertible.

6
Solution

(a) 我們可以試探性地令矩陣 I + BA−1 與某些矩陣相乘, 以得出單位矩陣。 依序右乘 A


及 (A + B)−1 , 那麼 (I + BA−1 )A(A + B)−1 = (A + B)(A + B)−1 = I, 得到
(I + BA−1 )−1 = A(A + B)−1 。

(b) 可設法將矩陣加法 A−1 +B −1 表示成數個可逆矩陣的乘積, 再運用逆矩陣性質 (XY Z)−1 =


Z −1 Y −1 X −1 來完成計算。 經過初步嘗試後發現

A−1 (A + B)B −1 = (I + A−1 B)B −1 = B −1 + A−1 。

應用上述逆矩陣乘積性質得

(A−1 + B −1 )−1 = B(A + B)−1 A。

(c) 將單位矩陣 I 從給出的方程式 A2 − 3A + I = 0 移至等號的一端, 另一端可提出公


因子 A, 即得
I = −A2 + 3A = A(−A + 3I),

所以 A−1 = 3I − A。

(d) 首先要知道關鍵在於去除等式 B = (I + A)−1 (I − A) 裡面的 (I + A)−1 , 可直接


於上式左端通乘 I + A, 就得到 (I + A)B = I − A, 整理為 AB + A + B = I, 接
著進行因式分解以分離出 I + B, 於是有 (I + A)(I + B) = 2I, 由此解出
1
(I + B)−1 = (I + A)。
2


Problem 5

Let x be a vector in R3 satisfying xT x = 1.

(a) Find a vector x such that


   
1
3 1
   
(I3 − 2xxT ) 
 2   
3
 =  0 .
   
2
3 0

7
(b) If possible, find a vector x such that
   
−1 1
   
(I3 − 2xxT ) 
   
3  =  0 .
   
−2 0

Otherwise, give a reason why there is no such x.

Solution

我們使用符號運算來考慮一般的情況, 先將問題重述如下: 已知 b, c ∈ R3 , 求單位向量 x


(kxk2 = xT x = 1) 使滿足 (I − 2xxT )b = c。 乘開得到

(I − 2xxT )b = b − 2(xT b)x = c。

方程式中出現了二個未知向量 x, 表面上似乎增加求解的困難度。 由於 b, c 是已知的, 移項


改寫為 2(xT b)x = b − c, 可知 x 與 b − c 共線, 因此設 x = k(b − c), 再代回上面的
方程式得到
2k2 (b − c)T b(b − c) = b − c。

又因 x 不為零向量, 亦即 b 6= c, 上式等價於 2k2 (b − c)T b = 1, 且若 (b − c)T b > 0,


便有
1
k = ±p ,
2(b − c)T b
於是解出
1
x = ±p (b − c)。
2(b − c)T b
另外, 此題要求 xT x = 1, 因此 b, c 必須滿足 2(b − c)T b = (b − c)T (b − c), 乘開整
理得到條件 kbk = kck。

3
(a) 首先查驗 kbk = kck = 1, 再將數值代入計算得到 k = ± 2 , 因此
 
−1
1 



x = ±√  1  。
3 
1

(b) 因為 kbk = 14, 而 kck = 1, 這不符合解存在的必要條件, 故此題無解。 

8
Problem 6

Let B be a skew-symmetric matrix, B T = −B. If

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

prove that A is an orthogonal matrix.

Solution

利用已知 B T = −B, 計算

T
AT = (I + B)(I − B)−1

= (I − B T )−1 (I + B T )

= (I + B)−1 (I − B)。

因為 (I − B)(I + B) = (I + B)(I − B),

AT A = (I + B)−1 (I − B)(I + B)(I − B)−1

= (I + B)−1 (I + B)(I − B)(I − B)−1 = I 。

證得 AT = A−1 。 

Problem 7

Suppose that A is an n × n matrix such that for some k > 0, Ak = 0. Such


matrices are called nilpotent.

(a) Show that A is not invertible.

(b) Show that I − A is invertible.

(c) If the matrices A and B commute, show that I + AB is invertible. Note


that B may not be nilpotent.

9
Solution

(a) 可以用反證法證明。 假設 A 是可逆的, 則有 AA−1 = I, 那麼

Ak (A−1 )k = (A · · · A) (A−1 · · · A−1 )


| {z } | {z }
k k
−1 −1
= |A ·{z
· · A}(AA )A
| · · A−1}
·{z
k−1 k−1

= Ak−1 (A−1 )k−1 。

重複上述步驟可歸納得 Ak (A−1 )k = AA−1 = I 。 但已知 Ak = 0, 因此 (A−1 )k


不可能存在, 出現了矛盾的結果, 顯然最初的假設是錯的。

另一個做法是運用行列式性質直接證明。 計算 Ak 的行列式值

det(Ak ) = det(A) · · · det(A) = det(A)k 。


| {z }
k

由於 det(Ak ) = det(0) = 0, 可知 det(A) = 0, 證得 A 不是可逆的。

(b) 直接求出 I − A 的逆矩陣便可以證明此命題成立。 問題的重心在於存在 k > 0, 使


Ak = 0, 我們於是產生了聯繫 Ak 與 I − A 的想法。 注意以下的因式分解公式:

1 − xk = (1 − x)(1 + x + x2 + · · · + xk−1 ),

對應的矩陣多項式則為

I − Ak = (I − A)(I + A + A2 + · · · + Ak−1 )。

從已知條件 Ak = 0 推得 (I − A)(I + A + A2 + · · · + Ak−1 ) = I, 這表明 I − A


是可逆的, 而且
(I − A)−1 = I + A + A2 + · · · + Ak−1 。

(c) 可以運用題 (b) 的方法。 當 k 是奇數時, 考慮下面的因式分解公式:

1 + xk = (1 + x)(1 − x + x2 − · · · + xk−1 )。

10
應用於矩陣的情況, 也就有

I + (AB)k = (I + AB)(I − AB + (AB)2 − · · · + (AB)k−1 )。

剩下的工作是計算 (AB)k 。 因為問題給出 BA = AB, 就有

(AB)k = AB(AB)k−1 = A(BA)B(AB)k−2

= A(AB)B(AB)k−2 = A2 B 2 (AB)k−2 。

繼續重複上述步驟可歸納出 (AB)k = Ak B k , 但 Ak = 0, 所以 (AB)k = 0, 故


推知 I + AB 是可逆的。 如果滿足 Ak = 0 的 k 是偶數, 可令 m = k + 1, 則
(AB)m = (AB)k (AB) = 0, 將上述論證的 k 改為 m, 再分解 I + (AB)m 為因
式, 仍然可以證明原命題成立。 

Problem 8

Let A be an n × n matrix. If A2 = 0, show that I − A is nonsingular.

Solution

最直接的方法是求出 I − A 的逆矩陣, 利用已知條件可得

(I − A)(I + A) = I − A2 = I 。

因此, (I − A)−1 = I + A。 第二個做法是從子空間著手, 如果能證得 I − A 的零空間


僅包含零向量, 即證出所求。 設 (I − A)x = 0, 亦即 x = Ax, 等號兩邊同乘 A, 就有
Ax = A2 x = 0, 推知 x = 0。 此外, 還可以利用特徵值來證明: 若 I − A 不包含零特徵
值, 則 I − A 是可逆的。 設 Ax = λx, 則 A2 x = λ2 x = 0, 因為 x 6= 0, 得知 λ = 0, A
的所有特徵值為 0, 稱為冪零矩陣。 計算 (I − A)x = x − λx = x, 可知 I − A 有重複 n
次的特徵值 1, 因此為可逆矩陣。 

Problem 9

Let A be an n by n real symmetric matrix, and s(A) be the sum of all entries of
A. Prove that
(s(A))2
s(A2 ) ≥ .
s(In )

11
Solution

展開 A2 並將所有元加總,
X n
n X
n X
s(A2 ) = aik akj 。
i=1 j=1 k=1

已知 A 是對稱矩陣, 對於任意 i, k, aik = aki , 交換加總順序就得到


 
n
X Xn X n
s(A2 ) =  aki akj 
k=1 i=1 j=1

n n
! n 
X X X
= aki  akj 
k=1 i=1 j=1
n n
!2
X X
= aki
k=1 i=1
Xn
= ρ2k 。
k=1
Pn
上式中我們令 ρk = i=1 aki 。 利用 Cauchy-Schwarz 不等式,
n n
!2
X 1 X (s(A))2
ρ2k ≥ ρk = 。
n s(In )
k=1 k=1

另外也可以使用精簡的符號推導, 令 1 = (1, 1, . . . , 1), 則

s(A2 ) = 1T A2 1 = 1T AT A1 = (A1)T (A1) = kA1k2 。

利用 Cauchy-Schwarz 不等式,

(s(A))2 = (1T A1)2 ≤ k1k2 · kA1k2 = nkA1k2 。

合併上面兩式即證得所求。 

Problem 10

Let A and B be n × n matrices. Prove that if AB = 0, then for every positive


integer k,
trace(A + B)k = traceAk + traceB k .

12
Solution

考慮展開式
(A + B)k = Ak + kAk−1 B + · · · + kAB k−1 + B k 。

注意, (A + B)k 包含四種不同類型的項, 即 Ak , B k , Am B k−m, 以及 B m Ak−m , m ≥ 1。


因為 AB = 0, 可知 Am B k−m = Am−1 (AB)B k−m−1 = 0。 利用跡數性質 trace(XY ) =
trace(Y X), 其中 XY 和 Y X 為方陣, 就有

trace(B m Ak−m ) = trace(Ak−m B m ) = trace0 = 0。

對上面展開式等號兩邊取跡數可得

trace(A + B)k = trace(Ak + B k ) = traceAk + traceB k 。

最後一個步驟使用了矩陣加法的跡數性質, trace(X + Y ) = traceX + traceY , X 和 Y


為方陣。 

Problem 11

For n × n matrices A and B, the commutator of A and B is defined by [A, B] ≡


AB − BA. Show that

(a) [A, B]T = [B T , AT ]

(b) [A, [B, C]] + [B, [C, A]] + [C, [A, B]] = 0

(c) trace[A, B] = 0

(d) [A, B] is never similar to the identity matrix.

(e) If the diagonal entries of A are all equal to zero, then there exists matrices
U and V such that A = [U, V ].

Solution

(a) 代入計算並展開

[A, B]T = (AB − BA)T = B T AT − AT B T = [B T , AT ]。

13
(b) 直接計算

[A, [B, C]] + [B, [C, A]] + [C, [A, B]] = A(BC − CB) − (BC − CB)A

+ B(CA − AC) − (CA − AC)B

+ C(AB − BA) − (AB − BA)C

= 0。

(c) 利用跡數性質計算

trace[A, B] = trace(AB − BA) = trace(AB) − trace(BA)

= trace(BA) − trace(BA) = 0。

(d) 利用題 (c) 結果, trace[A, B] = 0, 但 traceI = n 6= 0, 推知 [A, B] 和 I 的特徵


值不相同, 故 [A, B] 不相似於 I 。

(e) 如不加入限制直接解方程式 A = [U, V ] = U V − V U , 可以想像其過程十分繁雜。


先選擇一種特殊形式的 U 矩陣, 例如下面的主對角矩陣
 
1
 
 
 2 
U = 。
.. 
 . 
 
n

以元為計算單位展開 A = [U, V ] = U V − V U , 比較等號兩邊得到

aij = ivij − vij j = (i − j)vij 。

因此若 i 6= j, 可設 vij = aij /(i − j), 若 i = j, 則 vij = 0。 

Problem 12

Consider the following linear equations

x + (λ − 1)y + (λ − 2)z = 2

λx + (2λ − 2)y + (λ − 2)z = λ + 1

(λ2 − 2λ)x + λz = −2λ.

14
Find the real values of λ such that this system of equations satisfies the following
conditions.

(a) The system has no solution.

(b) The system has a unique solution.

(c) The set of solutions is a line in R3 .

(d) The set of solutions is a plane in R3 .

Solution

寫出增廣矩陣並進行消去法, 可得
 
1 λ−1 λ−2 2
 
 
 λ 2λ − 2 λ − 2 λ + 1
 
λ2 − 2λ 0 λ −2λ
 
1 λ−1 λ−2 2
 
 
 0 −λ2 + 3λ − 2 −λ2 + 3λ − 2 −λ + 1
 
λ2 − 2λ 0 λ −2λ
 
1 λ−1 λ−2 2
 
 
0 −(λ − 1)(λ − 2) −(λ − 1)(λ − 2) −λ + 1  。
 
0 −λ(λ − 1)(λ − 2) −λ(λ − 1)(λ − 3) 2λ(λ − 1)

注意 3 × 3 階係數矩陣行列式為

1 λ−1 λ−2 1 λ−1 λ−2


2
0 −(λ − 1)(λ − 2) −(λ − 1)(λ − 2) = λ(λ − 1) (λ − 2) 0 1 1
0 −λ(λ − 1)(λ − 2) −λ(λ − 1)(λ − 3) 0 λ−2 λ−3

= −λ(λ − 1)2 (λ − 2)。

15
當 λ 不等於 0, 1, 或 2 時, 係數矩陣可逆, 方程組有唯一解。 以下分開討論係數矩陣不可逆
的情況。 若 λ = 0, 增廣矩陣為
 
1 −1 −2 2
 
 
0 −2 −2 1 ,
 
0 0 0 0

故解為一直線。 若 λ = 1, 增廣矩陣為
 
1 0 −1 2
 
 
0 0 0 0 ,
 
0 0 0 0

故解為一平面。 若 λ = 2, 增廣矩陣為
 
1 1 0 2
 
 
0 0 0 −1 ,
 
0 0 2 4

方程組無解。 解答如下:

(a) λ = 2。

(b) λ 不等於 0, 1, 2。

(c) λ = 0。

(d) λ = 1。 

Problem 13

Suppose A is m × m, U is m × n, V is n × m, and  D is n× n. The following


A U
questions relate to the inverse of the block matrix  .
V D

(a) Suppose A is invertible. Find W , X, Y , and Z satisfying


    
W 0 A U I Y
  = m .
X In V D 0 Z

16
 
Im Y
(b) Suppose Z is invertible. Find the inverse of  .
0 Z
 
A U
(c) Use the results of (a) and (b) to compute the inverse of  . To have
V D
this result, what assumptions of the matrix invertibility should be made?

(d) An alternative way to derive the inverse of a block matrix is to start with
    
Im X ′ A U Z′ 0
  = .
0 W′ V D Y ′ In

Follow the steps described in (a), (b),


 (c) and
 then derive a new formula
A U
for the inverse of the block matrix  . By equating the (1,1) entry
V D
of the obtained inverse and that obtained in (c), show that

(A − U D−1 V )−1 = A−1 + A−1 U (D − V A−1 U )−1 V A−1 .

(e) By the formula in (d), derive a formula for (A + uvT )−1 .

(f) By the formula in (d), show that

(A + U BV )−1 = A−1 − A−1 U (I + BV A−1 U )−1 BV A−1 .

Solution

(a) 給出的矩陣方程式其用意在於將分塊矩陣轉換為上三角形矩陣, 因此不難解出其中的


未知分塊。 以分塊矩陣乘法展開, 得到以下四式:

W A = Im

XA + In V = 0

WU = Y

XU + In D = Z 。

17
已知 A 是可逆矩陣, 可依序解出

W = A−1

X = −V A−1

Y = A−1 U

Z = D − V A−1 U 。

(b) 類似一般矩陣性質, 分塊上三角矩陣的逆矩陣仍為分塊上三角矩陣, 故考慮


    
Im Y Im P Im 0
  = 。
0 Z 0 Q 0 In
展開後, 由分塊矩陣的第二行取出等式:

Im P + Y Q = 0

ZQ = In 。

因 Z 是可逆的, 便有 Q = Z −1 , P = −Y Q = −Y Z −1 , 所求的逆矩陣為
 −1  
I Y I −Y Z −1
 m  = m 。
0 Z 0 Z −1

(c) 由題 (a) 可知以下關係式:


    
A−1 0 A U Im A−1 U
  = 。
−V A−1 In V D 0 D − V A−1 U
利用題(b) 求得之上三角形分塊矩陣的逆矩陣公式, 將上式同時左乘等號右端矩陣之
逆矩陣, 便得到
 −1  −1  
A U Im A−1 U A−1 0
  ! =   
V D 0 D−VA U −1 −V A −1 In
  
Im −A−1 U (D − V A−1 U )−1 A−1 0
=  
0 −1
(D − V A U ) −1 −V A −1 In
 
A−1 + A−1 U (D − V A−1 U )−1 V A−1 −A−1 U (D − V A−1 U )−1
= ,
−1 −1
−(D − V A U ) V A −1 −1
(D − V A U )−1

此式成立的條件是 A 和 D − V A−1 U 都是可逆的。

18
(d) 設 D 是可逆的, 重複前題的步驟可得另一分塊逆矩陣, 如下:
 −1
A U
 
V D
 
−1
(A − U D V )−1 −1 −1
−(A − U D V ) U D −1
= 。
−1 −1
−D V (A − U D V )−1 −1 −1 −1 −1
D V (A − U D V ) U D + D −1

此式與題 (c) 的逆矩陣相等, 比較 (1,1) 元即可得所求公式。

(e) 設 D = −1, U = u, V = vT , 代入題 (d) 給出的公式, 可知

(A + uvT )−1 = A−1 + A−1 u(−1 − vT A−1 u)−1 vT A−1


A−1 uvT A−1
= A−1 − 。
1 + vT A−1 u
上式成立的要件是純量 1 + vT A−1 u 不得為零。

(f) 設 B = −D −1 , 亦即 D = −B −1 , 再代入題(d) 的公式, 便有

(A + U BV )−1 = A−1 − A−1 U (B −1 + V A−1 U )−1 V A−1 。

由等式 B(B −1 + V A−1 U ) = I + BV A−1 U , 可得 (B −1 + V A−1 U )−1 = (I +


BV A−1 U )−1 B, 故

(A + U BV )−1 = A−1 − A−1 U (I + BV A−1 U )−1 BV A−1 。

注意, 此公式假設 A 和 I + BV A−1 U 是可逆矩陣。 

Problem 14

Suppose A and B are n × n matrices, and B is not nilpotent. If AB + BA = 0,


then AX + XA = B has no solution. Note that an n × n matrix A is called
nilpotent if Ak = 0 for some positive integer k.

Solution

令 k 為任意正整數, 重複使用 2k − 1 次 AB = −BA, 可得

AB 2k−1 = (AB)B 2k−2 = −BAB 2k−2 = B 2 AB 2k−3 = · · · = −B 2k−1 A。

19
接者使用反證法, 如果 B = AX + XA, 利用上式就有

B 2k = (AX + XA)B 2k−1 = AXB 2k−1 + XAB 2k−1 = AXB 2k−1 − XB 2k−1 A。

計算

traceB 2k = trace(AXB 2k−1 − XB 2k−1 A)

= trace(AXB 2k−1 ) − trace(XB 2k−1 A)

= trace(AXB 2k−1 ) − trace(AXB 2k−1 ) = 0。

令 B 的特徵值為 λi , i = 1, 2, . . . , n, 根據跡數 (trace) 與特徵值關係, 就有


n
X
traceB 2k = λ2k
i = 0。
i=1

因為 k 是任意正整數, 這說明 λi = 0, i = 1, 2, . . . , n, 換句話說, B 為冪零矩陣, 這與原


命題矛盾。 

Problem 15

If b = (1, 3, 0, 2)T and the general solution to Ax = b is


     
1 1 2
     
     
x =  1 +α 2  + β 2 ,
     
−1 0 −1

where α and β are free parameters, determine the matrix A.

Solution

因為 b 是 4 維向量, x 是 3 維向量, 即知 A 是 4 × 3 階矩陣。 由給出的通解可得


     
  1   0   0
1   1   2  
   
3  
 0    0

         
。
A 1  =  , A 2  =  , A 2  = 
  0
   0   0


−1   0   −1  
2 0 0

20
將上面三式合併成一矩陣方程:
 
  1 0 0
1 1 2  
  
 3 0 0


  
A 1 2 2 = ,
   0 0 0 

−1 0 −1  
2 0 0

由此解出
   
1 0 0  −1 1 0 0
 



 1 1 2 

 −2
 1 −2
 3 0 0 

  3 0 0 


A=

 1 2
 2  =
 
 −1 1 0 
 0 0 0    0 0 0   
  −1 0 −1   2 −1 1
2 0 0 2 0 0
 
−2 1 −2
 
 
 −6 3 −6 
=
 。

 0 0 0 
 
−4 2 −4

Problem 16

Let A and B be n × n matrices, and X = A + B and Y = A − B. If X and Y


are nonsingular, show that
 −1  
A B X −1 + Y −1 X −1 − Y −1
  = 1 .
B A 2 X −1 − Y −1 X −1 + Y −1

Solution

考慮    

A B P Q I 0
  = ,
B A R S 0 I
乘開後可得

AP + BR = I, AQ + BS = 0, BP + AR = 0, BQ + AS = I 。

21
令第一式加上第三式, 可得 (A + B)(P + R) = I, 故 P + R = (A + B)−1 = X −1 。 令
第一式減去第三式, 可得 (A − B)(P − R) = I, 故 P − R = (A − B)−1 = Y −1 。 由以
上導出兩式可解出
1 1
P = (X −1 + Y −1 ), R = (X −1 − Y −1 )。
2 2
運用相同方法, 由第二式與第四式亦可解出
1 1
Q = (X −1 − Y −1 ), S = (X −1 + Y −1 ),
2 2
故證得所求。 

Problem 17

Let A be an m × n matrix. Suppose Ax = b has solutions x1 , . . . , xn , for some


b 6= 0.

(a) Show that c1 x1 + · · · + cn xn is a solution to Ax = b if and only if c1 + · · · +


cn = 1.

(b) Show that if d1 x1 + · · · + dn xn = 0 then d1 + · · · + dn = 0.

Solution

(a) 設 c1 x1 + · · · + cn xn 是 Ax = b 的一個解, 則

A(c1 x1 + · · · + cn xn ) = A(c1 x1 ) + · · · + A(cn xn ) = b。

因為 A(ci xi ) = ci (Axi ) = ci b, i = 1, . . . , n, 可得 (c1 + · · · + cn )b = b。 已知


b 6= 0, 推論 c1 + · · · + cn = 1。 反過來說, 若 c1 + · · · + cn = 1, 就有

A(c1 x1 + · · · + cn xn ) = c1 Ax1 + · · · + cn Axn = (c1 + · · · + cn )b = b,

證得 c1 x1 + · · · + cn xn 也是 Ax = b 的一個解。

(b) 設 d1 x1 + · · · + dn xn = 0, 代入 Ax = b, 可知

A(d1 x1 + · · · + dn xn ) = d1 Ax1 + · · · + dn Axn = (d1 + · · · + dn )b,

但 A(d1 x1 + · · · + dn xn ) = A0 = 0, 證得 d1 + · · · + dn = 0。 

22
Problem 18

Let A be the n × n matrix


 
1 1 ··· 1 0
 
 
1 1 · · · 0 1
 
. .. .. .. 
A =  .. . . . .
 
 
1 0 · · · 1 1
 
0 1 ··· 1 1

Find the inverse of A.

Solution

將 A 改寫為
  
0 0 ··· 0 1 0 1 ··· 1 1
  
  
0 0 · · · 1 0 1 0 · · · 1 1
  
. . .. ..   .. .. . . .. .. 
A =  .. .. . . . . .  = P B,
 . .

 
  
0 1 · · · 0 0 1 1 · · · 0 1
  
1 0 ··· 0 0 1 1 ··· 1 0

其中 P −1 = P , 故 A−1 = B −1 P −1 = B −1 P 。 再將 B 寫成 B = E − I, 其中 E
的所有元都等於 1。 因為 E 2 = nE, 就有 BE = (E − I)E = E 2 − E = (n − 1)E,
   
1 1
即 B n−1 E = E 。 上式等號兩邊同減 B, 就有 B n−1 E − I = E − B = I, 解出
1
B −1 = n−1 E − I, 於是得到
 
1 1
A−1 = E−I P = E − P,
n−1 n−1
或明確地表示如下: 
2−n
−1

n−1 若 i + j = n + 1,
(A )ij =
1

n−1 其他情況。


Problem 19

Let A and B be n × n matrices. If AB − BA = A, show that A is singular.

23
Solution

使用反證法。 假設 A 可逆, 等式 AB − BA = A 兩邊右乘 A−1 可得 ABA−1 − B = In 。


上式等號兩邊取跡數 (trace), 左邊為 trace(ABA−1 ) − traceB = trace(BA−1 A) −
traceB = 0, 右邊是 traceIn = n, 但 n > 0, 這造成矛盾, 證得 A 不可逆。 

Problem 20

Let A and B be n × n matrices. Prove the following statements.

(a) If AB = A + B, then AB = BA.

(b) If AB = A − B, then AB = BA.

Solution

(a) 若 AB = A + B, 則 (A − I)(B − I) = AB − A − B + I = I, 也就有


(A − I)(B − I) = (B − I)(A − I), 展開等號兩邊即證得 AB = BA。

(b) 若 AB = A − B, 則 (A + I)(I − B) = −AB + A − B + I = I, 也就有


(A + I)(I − B) = (I − B)(A + I), 展開等號兩邊即證得 AB = BA。 

Problem 21

Let A and B be n × n idempotent matrices, i.e., A2 = A and B 2 = B. Show that


AB = BA = 0 if and only if A + B is idempotent.

Solution

因為 A2 = A 且 B 2 = B, 可知

(A + B)2 = A2 + AB + BA + B 2 = A + AB + BA + B 。

利用此結果進行下列推導。
(⇒) 若 AB = BA = 0, 立得 (A + B)2 = A + B, 故 A + B 是冪等 (idempotent) 矩
陣。
(⇐) 若 (A + B)2 = A + B, 則 AB + BA = 0, 即 AB = −BA。 再考慮

AB = A2 B = A(AB) = A(−BA) = −(AB)A = (BA)A = BA2 = BA,

24
因此推得 AB = BA = 0。 

Problem 22

Let A be an n × n matrix. If A3 = 2I, show that B = A2 − 2A+ 2I is nonsingular.

Solution

由 A3 = 2I 可知 A 可逆, 運用上式將 B 分解如下:

B = A2 − 2A + 2I = A2 − 2A + A3 = A(A2 + A − 2I) = A(A + 2I)(A − I)。

另外,
I = A3 − I = (A − I)(A2 + A + I),

由此可知 A − I 可逆。 再使用

10I = A3 + 8I = (A + 2I)(A2 − 2A + 4I),

故知 A + 2I 可逆。 綜合以上結果即證得 B = A(A + 2I)(A − I) 可逆。 

Problem 23

Let A, B and C be n × n matrices such that ABC = 2I. Show that

B 3 (CA)3 = 8I.

Solution

寫出 ABC = (AB)C = 2I, 即知 CAB = C(AB) = 2I, 由此可推得 BCA =


B(CA) = 2I 。 重覆利用上式可化簡得

B 3 (CA)3 = BBBCACACA = BB(BCA)CACA

= BB(2I)CACA = 2BBCACA = 2B(BCA)CA

= 2B(2I)CA = 4(BCA) = 4(2I) = 8I 。

25
Problem 24

Let A and B be 2 × 2 real matrices. If A2 + B 2 = AB and BA = 0, prove that


AB = 0.

Solution

利用已知 BA = 0, 條件式 A2 = AB − B 2 右乘 A 可得 A3 = ABA − B 2 A = 0; 同


理, 條件式左乘 B 即得 B 3 = 0。 所以 A 和 B 是冪零 (nilpotent) 矩陣, 所有特徵值皆為
零, 故二階方陣 A 和 B 的特徵多項式同為 p(t) = t2 。 利用 Cayley-Hamilton 定理, 可
知 p(A) = A2 = 0, p(B) = B 2 = 0, 因此證明 AB = A2 + B 2 = 0。 

Problem 25

Let A and B be n × n nonsingular matrices such that ABA = B and BAB = A.


Prove that A2 = B 2 and A4 = B 4 = I.

Solution

由已知 ABA = B 和 BAB = A 可知 AB = BA−1 且 AB = B −1 A, 故 BA−1 =


B −1 A, 等號兩邊左乘 B, 右乘 A, 即得 B 2 = A2 。 再將 B = ABA 代入 A = BAB, 可

A = BAB = (ABA)AB = (AB)A2 B = (B −1 A)A2 B = B −1 A3 B,

因此 BA = A3 B 。 使用 BA = A−1 B, 就有 A−1 B = A3 B, 故 A−1 = A3 , 即 A4 = I 。


由 B 4 = A4 , 可得 B 4 = I 。 

26
向量空間
Problem 26

Let A and B be n × n involutory matrices, i.e., A2 = B 2 = I. Show that

C(AB − BA) = C(A − B) ∩ C(A + B),

where C(X) denotes the column space of X.

Solution

由給出等式觀察出 A − B 和 A + B 為主要物件, 利用已知條件 A2 = B 2 = I, 可得

(A − B)(A + B) = A2 − BA + AB − B 2 = AB − BA

(A + B)(A − B) = A2 + BA − AB − B 2 = BA − AB 。

上面兩式指出 C(AB − BA) ⊆ C(A − B) 且 C(AB − BA) ⊆ C(A + B), 也就有


C(AB − BA) ⊆ C(A − B) ∩ C(A + B)。 另一方面, 令 v ∈ C(A − B) ∩ C(A + B), 亦
即存在表達式 v = (A − B)x 和 v = (A + B)y, 第一式左乘 A + B, 第二式左乘 A − B,
可得

(A + B)v = (BA − AB)x

(A − B)v = (AB − BA)y。

將兩式相加, 2Av = (AB − BA)(y − x), 再利用 A2 = I, 小心進行代數操作, 可得

1
v = A2 v = A(AB − BA)(y − x)
2
1
= (ABA − A2 B)(x − y)
2
1
= (ABA − BA2 )(x − y)
2
1
= (AB − BA)A(x − y)。
2

這指出 v ∈ C(AB − BA), 得知 C(A − B) ∩ C(A + B) ⊆ C(AB − BA), 故證得原命


題。 

27
Problem 27

Let    


 1 0 


    
 
 0   
  0 
S= 
,



 .



  1   −1 

    


 −2 
2 
Find an extension vector set T from R4 so that S ∪ T form a basis for R4 .

Solution

使用嘗試錯誤法並不難求出一組基底, 但問題在於如何以系統化方式計算擴展向量集 T 。 想
法是藉助列梯形矩陣分辨線性獨立向量的能力, 將標準基底向量 e1 , . . . , e4 併入給定的向
量集 S 構成一增廣矩陣 A, 再將 A 化簡至列梯形矩陣, 如下:
   
1 0 1 0 0 0 1 0 1 0 0 0
   
   1
 0 0 0 1 0 0   0 1 1 0 0 2

   。
   
 1 −1 0 0 1 0   0 0 0 1 0 0 
   
−2 2 0 0 0 1 0 0 0 0 1 12

此結果顯示 A 的第 1, 2, 4, 5 行是線性獨立的, 故擴展向量集可為


   


 0 0 

    
 1 
   
  0 
T =  ,   。
   


 0   1 
 
   


 0 
0 

Problem 28

Suppose A is a 3 × 4 matrix. The block matrix [ A I3 ] is reduced by row


operations to  
1 2 1 0 2 −1 0
 
 
 0 0 0 1 −1 1 0 .
 
0 0 0 0 1 −2 1

28
(a) Find a basis for the row space of A.

(b) Find a basis for the nullspace of A.

(c) Find a basis for the left nullspace of A.

(d) Find a basis for the column space of A.

Solution

為方便推理, 我們考慮一般的情況。 設 A 為 m × n 階矩陣, 又設 m × m 階矩陣 E 代表


消去法所執行的基本矩陣乘積, 因此有
h i h i h i
E A Im = EA EIm = R E ,

其中 m × n 階矩陣 R = EA 為 A 的最簡列梯形矩陣。 當 A 的秩等於 r 時, 記為


rankA = r, 在不失一般性原則下, 以分塊形式將 R 表示如下:
 
Ir F
R= ,
0 0
 
E1
r × (n − r) 階分塊 F 由對應非軸行的係數所構成。 令 E =  , E1 為 r × m 階,
E2
E2 為 (m − r) × m 階, 化簡後的分塊矩陣可以進一步分解為
 
h i Ir F E1
R E = 。
0 0 E2

以此題給出的數值為例, rankA = 2,
   
2 1 2 −1 0 h i
F =  , E1 =  , E2 = 1 −2 1 。
0 0 −1 1 0

注意, 分塊 F 和 E2 為描述矩陣 A 的四個基本子空間提供的充分的資訊。

(a) 列運算不改變矩陣的列空間, 因此 C(AT ) = C(RT ), 由於 R 的非零列是線性獨立


的, 因此可以作為 A 的列空間基底向量, 亦即分塊 [ Ir F ] 的列。 故此題答案為
[1, 2, 1, 0]T , [0, 0, 0, 1]T 。

29
(b) 列運算不改變矩陣的零空間, 齊次方程式 Ax = 0 和 Rx = 0 有相同的解集合, 故
其零空間相同 N (A) = N (R)。 由已知的 R 矩陣, 可確定零空間矩陣 (nullspace
matrix) 為  
−F
N = ,
In−r
滿足 RN = 0。 由於 N 的行向量是線性獨立的, A 的零空間基底可為 N 的行向量。
由給出的 R 可知  
−2 −1
 
 
 1 0
N = 。
 
 0 1
 
0 0

所以 A 的零空間基底包含向量 [−2, 1, 0, 0]T , [−1, 0, 1, 0]T 。

(c) 矩陣 A 其左零空間中的向量 y 滿足 AT y = 0 或 yT A = 0T 。 因為
   
E1 I F
EA =  A =  r  = R,
E2 0 0

便有 E2 A = 0, 這說明了 E2 的各列都屬於 AT 的零空間, 又由於基本矩陣乘積 E


是可逆的, 故包含線性獨立的列, E2 的列便可組成 AT 的零空間基底。 此題答案為
[1, −2, 1]T 。

(d) 列運算改變了矩陣的行空間, C(A) 6= C(R), 由最簡列梯形矩陣 R 不可能推論出 A


的行空間, 但從題 (c) 得到的左零空間 N (AT ) 仍提供足夠的資訊以描述 C(A)。 設矩
陣 B 其各列為 AT 的零空間基底向量, 由題 (c) 得知 B = E2 , 也就有 C(B T ) =
N (AT ), 利用子空間的正交互補關係, C(A) = N (AT )⊥ 和 C(B T )⊥ = N (B),
可推知 C(A) = N (B), 表明了 A 的行空間其實就是 B 的零空間。 由前題結果,
B = [ 1 −2 1 ], B 已經為最簡列梯形陣式, 其零空間由 [2, 1, 0]T 和 [−1, 0, 1]T
所擴張而成, 此即為 A 的行空間基底向量。

30
另一個做法是直接求矩陣 A, 不過這個方法的計算量稍大。 由式 EA = R, 同時左乘
E −1 得到 A = E −1 R, 如下:
    
1 1 0 1 2 1 0 1 2 1 1
    
    
A =  1 2 0  0 0 0 1  =  1 2 1 2 。
    
1 3 1 0 0 0 0 1 2 1 3

最簡列梯形矩陣 R 的第 1, 4 行為軸行, 可知 A 的第 1, 4 行可為行空間基底: [1, 1, 1]T


和 [1, 2, 3]T 。 

Problem 29

Consider the following matrices:


   
1 5 1 1 4 −4
   
   
A =  2 6 0  , B =  4 6 −8  .
   
1 7 2 0 5 −4

Determine if A and B have the same column space, row space, nullspace, or left
nullspace.

Solution

若 A 列等價於 B, 則 A 和 B 有相同的最簡列梯形矩陣 (reduced row echelon form),


因此有相同的列空間與零空間。 同樣道理, 若 AT 列等價於 B T , 則 AT 和 B T 有相同的最
簡列梯形矩陣, 也有相同的行空間與左零空間。 分別以基本列運算化簡 A, B 得到
     
3
1 5 1 1 5 1 1 0 −2
     
     1 
A  0 −4 −2   0 1 12   0 1 
2 
    
0 2 1 0 0 0 0 0 0
     
1 4 −4 1 4 −4 1 0 − 54
     
     
B  0 −10 8   0 1 − 54   0 1 − 45 。
     
0 5 −4 0 0 0 0 0 0

31
A 和 B 的最簡列梯形矩陣不同, 推知 C(AT ) 6= C(B T ), N (A) 6= N (B)。 再計算化簡
AT , B T :
     
1 2 1 1 2 1 1 0 2
     
T      
A  0 −4 2   0 1 − 12   0 1 − 21 
     
0 −2 1 0 0 0 0 0 0
     
1 4 0 1 4 0 1 0 2
     
BT
     
 0 −10 5   0 1 − 12   0 1 − 12  。
     
0 8 −4 0 8 −4 0 0 0
AT 和 B T 的最簡列梯形矩陣相同, 推知 C(A) = C(B), N (AT ) = N (B T )。 

Problem 30

If possible construct a 3 × 3 real matrix A with the following properties:

(a) A is a symmetric matrix. Its row space is spanned by the vector [1, 1, 2]T
and its column space is spanned by the vector [1, 2, 3]T .

(b) All three of these equations have no solution but A 6= 0:

Ax = e1 , Ax = e2 , Ax = e3 ,

where e1 = [1, 0, 0]T , e2 = [0, 1, 0]T , e3 = [0, 0, 1]T .

(c) The vector [1, 1, 1]T is in the row space of A but the vector [1, −1, 0]T is not
in the nullspace of A.

Solution

(a) 矩陣 A 的列空間以及行空間僅由一個向量擴張而成, 表示 rankA = 1。 任意秩為 1


的矩陣可表為 A = uvT , 由給出的向量可知
   
1 1 1 2
   
   
A = k  2 [ 1 1 2 ] = k  2 2 4  ,
   
3 3 3 6

其中 k 6= 0, 所以不存在滿足此條件的對稱矩陣。

32
(b) 只要設法使 e1 , e2 , e3 都不在 A 的行空間內即可, 例如,
 
1 1 1
 
 
A =  1 1 1 。
 
1 1 1

(c) 矩陣的零空間和列空間正交, 但因為 [1, 1, 1]T 正交於 [1, −1, 0]T , 列空間不能僅由
[1, 1, 1]T 擴張而成, 否則 [1, −1, 0]T 便於零空間內, 這與題意不符。 克服此障礙的方
式是讓列空間再增加一個不與 [1, −1, 0]T 正交的基底向量, 例如,
 
1 1 1
 
 
A=0 1 1 ,
 
0 0 0

此矩陣的零空間由向量 [0, −1, 1]T 所擴張, 不包含 [1, −1, 0]T 。 

Problem 31

Suppose that U and W are two subspaces in R4 . The subspace U is spanned


by u1 = [1, 1, 0, 0]T and u2 = [1, 0, 1, 0]T , and the subspace W is spanned by
w1 = [0, 1, 0, 1]T and w2 = [0, 0, 1, 1]T .

(a) Find a basis for the sum U + W .

(b) Find a basis for the intersection U ∩ W .

(c) Explain why the following relation is correct:

dimU + dimW = dim(U + W ) + dim(U ∩ W ).

Solution

(a) 令矩陣 A 的行向量依序為 u1 , u2 , w1 , w2 , 則子空間之和 U + W = span(U ∪ W )


即為 A 的行空間。 以下使用標準程序找尋 A 的行空間基底, 以消去法化簡得到梯形

33
陣式:
   
1 1 0 0 1 1 0 0
   
   
1 0 1 0  0 −1 1 0 
A=







0 1 0 1 0 1 0 1
   
0 0 1 1 0 0 1 1
   
1 1 0 0 1 1 0 0
   
   
0 −1 1 0  0 1 −1 0 
   ,
   
0 0 1 1 0 0 1 1
   
0 0 1 1 0 0 0 0

得知 U + W 的基底向量為 A 的軸行, 即 1, 2, 3 行:
     
1 1 0
     
     
1 0 1
 ,  ,  。
     
0 1 0
     
0 0 1

(b) 最簡單計算子空間交集 U ∩ W 的做法是求題 (a) 的 A 之零空間 N (A)。 任何


x ∈ N (A) 滿足 Ax = 0, 或寫成向量方程式

x1 u1 + x2 u2 + x3 w1 + x4 w2 = 0。

進一步將 ui 和 wi 分離:

x1 u1 + x2 u2 = −x3 w1 − x4 w2 。

等號左邊的向量屬於 U , 而等號右邊的向量屬於 W , 所以此向量屬於 U ∩ W 。 由題


(a) 結果, 可繼續化簡 A 至最簡列梯形矩陣, 如下:
     
1 1 0 0 1 0 1 0 1 0 0 −1
     
     
 0 1 −1 0  0 1 −1 0  0 1 0 1
     。
     
0 0 1 1 0 0 1 1 0 0 1 1
     
0 0 0 0 0 0 0 0 0 0 0 0

34
由最簡列梯形矩陣得知 A 的零空間由 [1, −1, −1, 1]T 擴張, 子空間交集 U ∩ W 的
基底向量也就是
     
1 1 0
     
     
1 0  1
1 · u1 + (−1) · u2 =   −   = 
     。

 0   1   −1 
     
0 0 0

(c) 題 (a) 與題 (b) 結果提供了 U + W 和 U ∩ W 的維度, rankA = dim(U + W ),


dimN (A) = dim(U ∩ W )。 A 的行向量總數為 dimU + dimW , 從秩–零度定理推
知 dimN (A) + rank(A) = dimU + dimW , 因此證得

dimU + dimW = dim(U + W ) + dim(U ∩ W )。

Problem 32

Let W1 and W2 be two subspaces in vector space V . Show that the following two
statements are equivalent.

(a) W1 ∩ W2 = {0}.

(b) dim(W1 + W2 ) = dimW1 + dimW2 .

Solution

(a) ⇒ (b)
若 (a) 成立, 設 {x1 , . . . , xm } 為 W1 的一組基底, {y1 , . . . , yn } 為 W2 的一組基底, 因
為 W1 ∩ W2 = {0}, 向量集 {x1 , . . . , xm , y1 , . . . , yn } 構成 W1 + W2 的一組基底, 所
以 dim(W1 + W2 ) = m + n = dimW1 + dimW2 。
(b) ⇒ (a)
利用反證法, 若 (b) 成立且假設 W1 ∩ W2 6= {0}。 設 {z1 , . . . , zk } 為 W1 ∩ W2 的一組基
底, 將向量集 {z1 , . . . , zk } 擴增成 W1 和 W2 的基底, 分別為 {z1 , . . . , zk , x1 , . . . , xm } 和

35
{z1 , . . . , zk , y1 , . . . , yn }, 因此 dimW1 = k+m, dimW2 = k+n, 而 dim(W1 +W2 ) =
k + n + m。 當 k > 0, 就有

dim(W1 + W2 ) < dimW1 + dimW2 。

這與 (b) 矛盾, 因此必定有 k = 0, 這指出 W1 ∩ W2 = {0}。 

Problem 33

Prove that the intersection of three 6-dimensional subspaces in R8 is not the


single point {0}.

Solution

想法是先限制二個子空間交集的維度, 然後延伸推論出三個子空間交集維度的範圍。 令 U ,
V , W 為 R8 內的子空間, 且 dimU = dimV = dimW = 6。 因為 U + V 仍屬於 R8 ,
便有 dim(U + V ) ≤ 8, 再由關係式

dim(U + V ) = dimU + dimV − dim(U ∩ V ),

得知 6 + 6 − dim(U ∩ V ) ≤ 8, 所以 dim(U ∩ V ) ≥ 4, 同理可以得到 dim(V ∩ W ) ≥ 4。


再次引用前述性質

dim((U ∩ V ) + (U ∩ W )) = dim(U ∩ V ) + dim(U ∩ W ) − dim(U ∩ V ∩ W ),

但是 (U ∩ V ) + (U ∩ W ) ⊆ U , 故 dim((U ∩ V ) + (U ∩ W )) ≤ 6, 因此

dim(U ∩ V ) + dim(U ∩ W ) − dim(U ∩ V ∩ W ) ≤ 6。

引用 dim(U ∩ V ) ≥ 4, dim(V ∩ W ) ≥ 4, 上面不等式就為

dim(U ∩ V ∩ W ) ≥ dim(U ∩ V ) + dim(U ∩ W ) − 6 ≥ 4 + 4 − 6 = 2,

從而得知 U , V , W 的交集不可能為零向量。 

36
Problem 34

Let    
2 −4 3 1 2 0
   
   
A=2 2 0 , B=5 4 6 .
   
1 −5 3 0 3 −3

(a) Find the intersection of the nullspace of A and the nullspace of B.

(b) Find the intersection of the column space of A and the column space of B.

Solution
 
A
(a) 設 x ∈ N (A) ∩ N (B), 因此有 Ax = 0 與 Bx = 0, 合併二式成為  x =
B
   
0 A
 , 零空間交集 N (A) ∩ N (B) 即為分塊矩陣   的零空間。 以消去法化簡
0 B
分塊矩陣至最簡列梯形矩陣, 如下:
       
2 −4 3 1 2 0 1 2 0 1 0 0
       
       
2 2 0 2 2 0 0 −2 0 0 1 0
       
       
 1 −5 3  1 −5 3 0 −7 3 0 0 1
       。
       
1 2 0  2 −4 3 0 −8 3 0 0 0
       
       
5 4 6 5 4 6 0 −6 6 0 0 0
       
0 3 −3 0 3 −3 0 3 −3 0 0 0

分塊矩陣的秩與其行數相等, 這說明 A 的零空間與 B 的零空間交集為 {0}。

(b) 行空間的交集較為困難求得, 原因是行空間可以由許多不同的基底擴張而成, 因此最


直覺的解法是將行空間改以零空間形式表示。 先將矩陣 A, B 的行空間轉換為矩陣
D, E 的零空間, 再按題 (a) 方式求其交集。 以 N (AT ) 的基底向量設為 D 的列, 便
有 C(DT ) = N (AT ), 利用子空間的正交互補關係 C(A) = N (AT )⊥ , 故 C(A) =
C(D T )⊥ = N (D)。 同理, 以 N (B T ) 的基底向量設為 E 的列, 則有 C(B) =

37
N (E)。 以下分別將 AT 與 B T 的零空間找出:
       
1
2 2 1 2 2 1 1 1 2 1 0 1
       
T        
A =  −4 2 −5  0 6 −3  0 1 − 12  1
 0 1 −2 
       
3
3 0 3 0 −3 2 0 0 0 0 0 0
       
5
1 5 0 1 5 0 1 5 0 1 0 2
       
BT =  2 4
     1   1 
3  0 −6 3  0 1 −2  0 1 −2 。
       
0 6 −3 0 6 −3 0 0 0 0 0 0
 
D
取整數可設 D = [ −2 1 2 ], E = [ −5 1 2 ]。 下一步是計算分塊矩陣  
E
的零空間, 以消去法進行化簡, 可得
       
−2 1 2 −2 1 2 1 0 0 1 0 0
       。
−5 1 2 −3 0 0 −2 1 2 0 1 2

D 與 E 的零空間交集由向量 [0, −2, 1]T 所擴張, 這便是 A 和 B 行空間其交集的


基底向量。 

Problem 35
 
E1
Suppose A is m by n, and rankA = r. Let E =   be a nonsingular matrix
E2
such that  
B
EA =   ,
0
where B is r by n, and B is in row echelon form. Prove that C(A) = N (E2 ),
where C(A) is the column space of A, and N (E2 ) is the nullspace of E2 .

Solution

欲證明
  C(A)  =N (E2 ), 我們可以分別證明 C(A) ⊂ N (E2 ) 和 N (E2 ) ⊂ C(A)。 由
E B
 1  A =  , 得知 E2 A = 0, A 的行向量屬於 E2 的零空間, 故 C(A) ⊂ N (E2 )。
E2 0

38
設 b ∈ N (E2 ), 就有     
E1 bE1 c
Eb =   b =   =  ,
E2 E2 b 0
h i
其中 c = E1 b 是 r-維向量。 考慮增廣矩陣 A b , 則
 
h i h i B c
E A b = EA Eb =  。
0 0
h i
上式給出 rank A b = rankA = r, 故方程式 Ax = b 是一致的, 因此 b ∈ C(A), 這
證明了 N (E2 ) ⊂ C(A)。 

Problem 36

Let A be an n by n nilpotent matrix of index k, i.e., k is the smallest positive


integer such that Ak = 0. If x is a vector such that Ak−1 x 6= 0, show that the
set {x, Ax, A2 x, . . . , Ak−1 x} is linearly independent.

Solution

考慮向量集的線性組合

c1 x + c2 Ax + · · · + ck Ak−1 x = 0。

將上式左乘 Ak−1 , 利用性質 Aj = 0, j ≥ k, 就有

c1 Ak−1 x + c2 Ak x + · · · + ck A2k−2 x = c1 Ak−1 x = 0。

由已知 Ak−1 x 6= 0 斷定 c1 = 0, 因此

c2 Ax + c3 A2 x + · · · + ck Ak−1 x = 0。

再將上式左乘 Ak−2 , 同樣可以推論 c2 = 0, 就得到

c3 A2 x + · · · + ck Ak−1 x = 0。

重複進行上述步驟可以證得 ci = 0, i = 1, . . . , k。 

39
Problem 37

Let {v1 , . . . , vn } be a basis for a vector space V and n ≥ 2. Is the set

{v1 + v2 , v2 + v3 , . . . , vn−1 + vn , vn + v1 }

also a basis for V ?

Solution


c1 (v1 + v2 ) + c2 (v2 + v3 ) + · · · + cn (vn + v1 ) = 0,

展開整理成

(c1 + cn )v1 + (c1 + c2 )v2 + · · · + (cn−1 + cn )vn = 0。

於是有以下齊次線性方程組: c1 + cn = 0, c1 + c2 = 0, . . ., cn−1 + cn = 0, ci 存在非平


凡解的充要條件為

1 0 0 ··· 0 1
1 1 0 ··· 0 0
0 1 1 ··· 0 0 n+1
.. .. .. . . .. .. = 1 + (−1) = 0。
. . . . . .
0 0 0 ··· 1 0
0 0 0 ··· 1 1

若 n 為偶數, ci 有不全為零解, 給出的向量集不可作為 V 的基底; 若 n 為奇數, ci = 0,


i = 1, . . . , n, 向量集可為 V 的基底。 

Problem 38

Vandermonde matrices are descirbed by


 
1 x1 x21 · · · x1n−1
 
1 x2 x22 · · · x2n−1 
 
V =  .. .. .. . . ..  ,

. . . . . 
 
1 xm x2m · · · xm n−1

40
in which xi 6= xj , for all i 6= j. Show that if n ≤ m, the columns of V are linearly
independent.

Solution

考慮齊次方程   
  c0 0
1 x1 x21 · · · x1n−1    
   c  0
  
n−1   1 
 
1 x2 x22 · · · x2    
  c2  = 0
 
。
 .. .. .. . . ..  
. . . . .    
.  .
  ..   .. 
1 xm x2m · · · n−1
xm    
cn−1 0
對於 i = 1, 2, . . . , m, 也就有

c0 + c1 xi + c2 x2i + · · · + cn−1 xin−1 = 0。

這指出多項式
p(x) = c0 + c1 x + c2 x2 + · · · + cn−1 xn−1

有 m 個相異根, xi , i = 1, 2, . . . , m。 根據代數學基本定理, (n − 1) 階多項式 p(x) 至多


存在 (n − 1) 個相異根, 但已知 n ≤ m, 上述齊次方程成立的條件必須是 c0 = c1 = · · · =
cn−1 = 0, 因此證得 V 的行向量是線性獨立的。 

Problem 39

If A is an m × n matrix and B is an n × p matrix, prove that

rankA + rankB − n ≤ rankAB.

This is called Sylvester’s inequality.

Solution

我們從秩–零度定理下手, 即 dim N (A) = n − rankA。 如果能夠證明

rankB − rankAB ≤ dim N (A),

41
等於證得給出的命題為真。 關鍵想法是要聯繫 rankB 和 rankAB, 考慮這個情境: 設線
性轉換 T : C(B) → Cm , 也就是說 T 的定義域為 C(B), 對於 x ∈ C(B), 其像為
T (x) = Ax, 也可以說 T (y) = ABy, 但 y ∈ Cp 。 秩–零度定理的線性轉換語言陳述為

dim ima(T ) + dim ker(T ) = dim C(B),

但是 dim ima(T ) = dim C(AB) = rankAB, 且 dim C(B) = rankB, 可推知

dim ker(T ) = rankB − rankAB 。

然而 C(B) ⊆ Cn , 轉換 T 的核僅為 A 其零空間 N (A) 的部分集合 (子空間), 故


dim ker(T ) ≤ dimN (A), 因此得證。 

Problem 40

Suppose A is an m × n matrix.

(a) Prove that there exist an m × m invertible matrix P and an n × n invertible


matrix Q such that  
Ir 0
P AQ =  ,
0 0
where r is the rank of A.

(b) Suppose that A with rank r can be factorized as


 
Ir 0
A=U  V,
0 0

where U is an m × m invertible matrix and V is an n × n invertible matrix.


Decribe the column space of A and the row space of A in terms of U and
V.

Solution

(a) 對矩陣 A 執行消去法化簡至最簡列梯形矩陣, 設 m × m 階可逆矩陣 P 為所執行過


所有基本矩陣的乘積, 再於化簡所得矩陣右乘一排列矩陣使其軸行全部移動至最左邊,

42
因為 rankA = r, 故得到
 
Ir F
P AS =   = R,
0 0

其中 S 是 n × n 階排列矩陣, 注意 P 和 S 都是可逆的。 接著再對 n × m 階矩


陣 RT 進行列運算化簡, 設 n × n 階可逆矩陣 T T 表示執行過的基本矩陣乘積, 因
rankRT = r, 就有
   
Ir 0 Ir 0
T T RT = T T  =  = JT 。
FT 0 0 0

上式結果 J T 為 n×m 階矩陣, 由 J = RT , 再將 R = P AS 代入得到 P AST = J,


令 Q = ST , 故 P AQ = J, 此即為所求。

(b) 將 U 和 V 矩陣切割為適當分塊便可以清楚地描述 A 的行空間和列空間, 如下:


 
h i V1
U = U1 U2 , V =  。
V2

分塊 U1 包含 U 的前 r 個行向量, V1 包含 V 的前 r 個列向量, 因此 A 即為
  
h i Ir 0 V
A = U1 U2   1  。
0 0 V2

考慮矩陣 A 的第一種形式:
 
h i Ir 0 h i
A= U1 U2   V = U1 0 V,
0 0

因 V 是可逆的, C(V ) = Cn , 所以 A 的行空間基底由 U1 的行向量構成。 從第二種


形式:     
Ir 0 V1 V1
A=U  =U ,
0 0 V2 0
因 U 是可逆矩陣, C(U ) = Cm , 故 A 的列空間基底由 V1 的列形成。 

Problem 41

Let A be an n × n matrix. Prove that there is an invertible matrix B such that


BA is a projection.

43
Solution

設 A 的行空間 C(A) 維度為 r, 則零空間 N (A) 維度為 n − r 。 令 {x1 , . . . , xr } 為


A 的行空間基底, 將此基底擴充為 Cn 的基底: {x1 , . . . , xr , xr+1 , . . . , xn }。 因為任一
i = 1, . . . , r, xi ∈ C(A), 我們可以找到 yi 使得 Ayi = xi 。 再設 {yr+1 , . . . , yn } 為
零空間 N (A) 基底, 下面我們證明 {y1 , . . . , yn } 為線性獨立集, 故可為 Cn 基底。 考慮
c1 y1 + · · · + cn yn = 0, 因為 yi ∈ N (A), i = r + 1, . . . , n, 就有
n
! r r
X X X
A ci yi = ci Ayi = ci xi = 0。
i=1 i=1 i=1

但 x1 , . . . , xr 為 C(A) 的基底向量, 因此是線性獨立集, 推知 c1 = · · · = cr = 0,


也就有 cr+1 yr+1 + · · · + cn yn = 0, 又因為 yr+1 , . . . , yn 為 N (A) 的基底, 可斷定
cr+1 = · · · = cn = 0。 現在我們有兩組 Cn 基底: {x1 , . . . , xn } 和 {y1 , . . . , yn }。 令可
逆矩陣 B 滿足 Bxi = yi , i = 1, . . . , n。 對於 i = 1, . . . , r, BAyi = Bxi = yi , 對於
i = r + 1, . . . , n, BAyi = B0 = 0, 證得 BA 為一投影矩陣。 

Problem 42

Let A and B be n by n matrices. If AB = 0, show that the dimension of the


nullspace of BA is at least n/2.

Solution
h i
令 B = b1 · · · bn , bj ∈ Cn , 已知條件可寫為
h i h i
AB = A b1 · · · bn = Ab1 · · · Abn = 0,

得知 bj ∈ N (A), j = 1, . . . , n, 亦即 C(B) ⊆ N (A), 就有 rankB ≤ dim N (A)。 由秩–


零度定理, rankA + dim N (A) = n, 可推出 rankB ≤ n − rankA, 又因為 rank(BA) ≤
min{rankA, rankB}, 就有

rank(BA) ≤ min{rankA, n − rankA}。

上式指出 rank(BA) ≤ n/2, 再使用秩–零度定理, 可得

dimN (BA) = n − rank(BA) ≥ n/2。

44
Problem 43

Let A be an n by n matrix of the form


 
D 0
A=P  P −1 ,
0 0

where P and D are n × n and r × r, r ≤ n, nonsingular matrices, respectively.


Prove the following statements.

(a) There exists a nonsingular matrix B such that A2 = BA.

(b) rankA = rankA2

(c) The column space of A and the nullspace of A are disjoint, i.e., C(A) ∩
N (A) = {0}.

Solution

(a) 設計以下的分塊乘法
     
2
D 0 D 0 D 0
A2 = P   P −1 = P   P −1 P   P −1 = BA,
0 0 0 D 0 0
 
D 0
上式中 B = P   P −1 是可逆的。
0 D

(b) 證明 (a) ⇒ (b)。 因為可逆矩陣不改變矩陣秩, rankA2 = rank(BA) = rankA。

(c) 證明 (b) ⇒ (c)。 設 rankA = rankA2 , 由秩-零度定理可知 dimN (A) = dimN (A2 )。
又因為 N (A) ⊆ N (A2 ), 故 N (A) = N (A2 )。 設 x ∈ C(A)∩N (A), 就有 Ax = 0
且存在 y 使得 x = Ay, 則

Ax = A(Ay) = A2 y = 0。

推論 y ∈ N (A2 ) = N (A), Ay = 0, 所以 x = 0。 

45
Problem 44

Let A and B be nonsingular n × n matrices. Prove that

rank(A − B) = rank(A−1 − B −1 ).

Solution

關鍵在於聯繫 A − B 和 A−1 − B −1 , 觀察後不難得到下式:

B −1 − A−1 = B −1 (A − B)A−1 。

已知 A−1 和 B −1 是可逆的, 就有 rank(B −1 − A−1 ) = rank(A − B), 矩陣與非零常數


相乘不改變矩陣秩, 故 rank(A−1 − B −1) = rank(B −1 − A−1 ), 證得原命題。 補充解釋為
何與可逆矩陣相乘不改變原矩陣的秩。 設 A 為 m × m 階可逆矩陣, B 為 m × n, 有這個事
實: AB 和 B 的零空間相同, N (AB) = N (B)。 證明如下: 若 Bx = 0, 顯然 ABx = 0。
反之, 若 ABx = 0, 同時左乘 A−1 , 就有 A−1 ABx = Bx = 0。 再來利用秩–零度定理可
得 rank(AB) = n − dimN (AB), rankB = n − dimN (B), 故 rank(AB) = rankB 。
另一方面, 若 BA 是合法運算, 且 A 是可逆的, 則利用上述結果以及 rankAT = rankA,
就有 rank(BA) = rank(BA)T = rank(AT B T ) = rankB T = rankB 。 

Problem 45

Suppose A and B are n × n matrices and A is nonsingular. Let B = A − U QV ,


where U is n × p, Q is p × m, and V is m × n. Show that if B is nonsingular then
I − V A−1 U Q is nonsingular, and vice versa.

Solution

若 B 是可逆的, 利用反證法, 假設 y 6= 0 且 (I − V A−1 U Q)y = 0。 令 x = A−1 U Qy,


則 V x = y, 這指出 x 6= 0。 將上式左乘 A, 就有 Ax = U Qy, 因此

Bx = Ax − U QV x = Ax − U Qy = 0。

這與原假設 B 是可逆矩陣矛盾, 可知 I − V A−1 U Q 的零空間不含非零向量, 故 I −


V A−1 U Q 是可逆的。

46
若 I − V A−1 U Q 是可逆的, 仍使用反證法, 假設有 x 6= 0 使得 Bx = 0, 就有
Ax = U QV x。 左乘 A−1 , 可得 x = A−1 U QV x = A−1 U Qy。 將上面結果代入以下算

(I − V A−1 U Q)y = y − V x = 0。

因為 I − V A−1 U Q 是可逆的, 必定有 y = 0, 也就有 V x = 0, 這又使 Ax = Bx +


U QV x = 0, 與 A 是可逆矩陣矛盾, 推知 B 的零空間不含非零向量, B 是可逆的。 

Problem 46

Let A and B be n × n matrices. Prove that rankA = rankAB if and only if


   
A 0 A 0
rank   = rank  .
B In In B

Solution

重排序矩陣的行列不改變矩陣秩, 因此
     
A 0 0 A In B
rank   = rank   = rank   = n + rankA。
B In In B 0 A
上面最後一個步驟由計算軸列數而得。 矩陣乘以一可逆矩陣也不改變矩陣秩, 可得
      
A 0 I B I 0 I B
rank   = rank  n  = rank  n  n 
In B A 0 −A In A 0
 
In B
= rank   = n + rankAB 。
0 −AB
比較上面兩式即證得所求。 

Problem 47

Suppose A is an m × n real matrix.

(a) If AT Ax = 0, show that Ax = 0.

(b) Show that A and AT A have the same nullspace.

(c) Show that A and AT A have the same row space, and thus rankA = rankAT A.

47
Solution

(a) 左乘 xT 於 AT Ax = 0, 即得 xT AT Ax = (Ax)T Ax = kAxk2 = 0, 推知 Ax =


0。 另一個做法是利用子空間的交集關係, 由 AT (Ax) = 0 可知 Ax ∈ N (AT ), 但
是 Ax 屬於行空間 C(A), 再利用子空間互補關係 N (AT ) ∩ C(A) = {0} 可確定
Ax = 0。

(b) 若 x ∈ N (A), 即 Ax = 0, 也就有 AT Ax = AT 0 = 0, 這指出 x ∈ N (AT A),


因此 N (A) ⊆ N (AT A)。 題 (a) 已說明 N (AT A) ⊆ N (A), 故推論得 N (A) =
N (AT A)。

(c) 矩陣的列空間為其零空間的正交互補, 即 C(AT ) = N (A)⊥ , C(AT A) = N (AT A)⊥ 。


利用題 (b) 結論 N (A) = N (AT A), 可得 C(AT ) = C(AT A), 也因此 rankA =
dimC(AT ) = dimC(AT A) = rankAT A。 

Problem 48

(a) Suppose A is an n by n matrix of rank r. Show that A may be written as


a sum of rank-one matrices:

A = x1 yT1 + · · · + xr yTr ,

where xi and yi , i = 1, . . . , r, are n-dimensional vectors.

(b) Suppose B is an n by n matrix of the form

B = x1 yT1 + · · · + xr yTr .

If n-dimensional vectors x1 , . . . , xr are independent, what conditions of yi ’s


must be satisfied so that the rank of B is r?

(c) Suppose X is a 3 × 2 matrix, and Y is a 2 × 5 matrix. How many possible


dimensions of the nullspace of XY are there?

48
Solution

(a) 矩陣 A 的行空間基底向量數是 r, 令 A 的行空間基底為線性獨立向量集合 {x1 , . . . , xr },


則 A 的每一行 aj 都可用唯一方式表示為此基底向量的線性組合。 對於 j = 1, . . . , n,
便有唯一確定的 yij ’s 使

aj = y1j x1 + · · · + yrj xr 。

以行作為計算單位來實現矩陣乘法, 表現形式如下:
 
y11 · · · y1n
h i h i 
 . .. .. 
A= a1 · · · an = x1 · · · xr  .. . . 。
 
yr1 · · · yrn
將上式右邊的權重矩陣以其列向量表示, 再以行-列相乘展開, 可得
 
yT1
h i 
 .. 
A = x1 · · · xr  .  = x1 yT1 + · · · + xr yTr 。
 
yTr

(b) 將基底向量 {x1 , . . . , xr } 擴充為 n-維向量空間的基底: {x1 , . . . , xr , xr+1 , . . . , xn },


B 於是可寫為
 
yT
 .1 
 . 
 . 
 
h i
 yTr


B= x1 · · · xr xr+1 . . . xn   = XY 。
 T 
0 
 
 .. 
 . 
 
0T
n × n 階矩陣 X 由 n 個基底向量構成, 因此是可逆的。 任意矩陣 Y 與可逆矩陣 X
相乘並不改變其秩, 故 rankB = rankY 。 為滿足條件 rankB = r, 矩陣 Y 的前 r
個列 (亦即非零列) 必須是線性獨立的, 即 y1 , . . . , yr 為一組線性獨立向量。

(c) 將矩陣 XY 的各行視為 X 的行向量之線性組合, 3 × 2 階矩陣 X 僅有 2 行, 因此


不論任何 Y , 總有 0 ≤ rankXY ≤ 2。 矩陣 XY 為 3 × 5 階, 利用秩-零度定理推
得 dimN (XY ) = 5 − rankXY , 故 dimN (XY ) 可能為 3, 4, 5。 

49
Problem 49

Suppose A is an m × n real matrix with full row rank, i.e., rankA = m. Which of
the following equations always have a solution (possibly infinitely many) for any
legal b?

(a) Ax = b

(b) AT x = b

(c) AT Ax = b

(d) AAT x = b

(e) AT Ax = AT b

(f) AAT x = Ab

Solution

(a) Ax = b 總是有解, 因為 dimC(A) = rankA = m, 所以 C(A) = Rm 。

(b) AT x = b 可能沒有解, 因為 dimC(AT ) = rankA = m, 但 b 可以是 Rn 中的任


意向量。 當 n > m 時, AT 的行空間 (維度為 m) 未能充滿整個 Rn 空間。

(c) AT Ax = b 可能無解, 推論如下: 因為 N (A) = N (AT A), 其互補空間亦相等, 即


N (A)⊥ = N (AT A)⊥ , 也就是 C(AT ) = C(AT A)。 由題 (b), dimC(AT A) =
dimC(AT ) = m, 因此得知 n × n 階矩陣 AT A 的行空間是 Rn 空間內維度為 m
的子空間。

(d) AAT x = b 恆有唯一解, AAT 是 m×m 階矩陣, 由題 (c) 可知 C(AAT ) = C(A),


即 dimC(AAT ) = dimC(A) = m, AAT 是滿秩, 故為可逆矩陣。

(e) AT Ax = AT b 總是有解的, 利用題 (a) 結果, 任何 Ax = b 的解也必為 AT Ax =


AT b 的解。

(f) AAT x = Ab 有唯一解, 直接利用題 (d), 矩陣 AAT 是可逆的。 

50
Problem 50

Suppose v1 , v2 , v3 are linearly dependent and v2 , v3 , v4 are linearly independent.

(a) Show that v1 is a linear combination of v2 and v3 .

(b) Show that v4 is not a linear combination of v1 , v2 , and v3 .

Solution

(a) 因為 v1 , v2 , v3 線性相依, 即知存在不全為零的 c1 , c2 , c3 使得 c1 v1 + c2 v2 +


c3 v3 = 0。 若 c1 = 0, 則 c2 或 c3 不為零, 也就是說 v2 和 v3 線性相依。 但這與
v2 , v3 , v4 是線性獨立集矛盾, 故推論 c1 6= 0。 向量 v1 可表示為 v2 和 v3 的線性
組合, 如下:
1
v1 = − (c2 v2 + c3 v3 )。
c1

(b) 假設 v4 可表示為 v1 , v2 和 v3 的線性組合, 令 v4 = d1 v1 + d2 v2 + d3 v3 。 代入


(a) 的 v1 表達式, 則 v4 可表示為 v2 和 v3 的線性組合。 但這與 v2 , v3 , v4 是線
性獨立集矛盾, 因此得證。 

Problem 51

Let A be an n × n matrix. If rankA = rankA2 , show that N (A) = N (A2 ), i.e.,


Ax = 0 and A2 x = 0 have the same solution space.

Solution

若 x ∈ N (A), 即 Ax = 0, 則 A2 x = A(Ax) = 0, 這說明 N (A) ⊆ N (A2 )。 利用


已知條件 rankA = rankA2 , 以及秩-零度定理 rankA + dim N (A) = n 和 rankA2 +
dim N (A2 ) = n, 可得 dim N (A) = dim N (A2 ), 也就證明 N (A) = N (A2 )。 

Problem 52

Let A be an n × n matrix and v1 , . . . , vn ∈ Cn be linearly independent. Show


that A is nonsingular if and only if Av1 , . . . , Avn are linearly independent.

51
Solution

若 A 是可逆矩陣, 考慮
c1 Av1 + · · · + cn Avn = 0。

左乘 A−1 即得 c1 v1 + · · · + cn vn = 0。 因為 v1 , . . . , vn 為一線性獨立集, 可知 c1 =
· · · = cn = 0, 因此證明 Av1 , . . . , Avn 線性獨立。 另一方面, 若 A 不可逆, 則存在
x = d1 v1 + · · · + dn vn 6= 0 使得 Ax = 0。 換句話說, d1 , . . . , dn 不全為零, 且

A(d1 v1 + · · · + dn vn ) = d1 Av1 + · · · + dn Avn = 0,

這指出 Av1 , . . . , Avn 線性相依。 

Problem 53

Let V be the solution space of

x1 + x2 + · · · + xn = 0

and W be the solution space of

x1 = x2 = · · · = xn ,

where xi ∈ R, i = 1, . . . , n. Show that V ⊕ W = Rn .

Solution

欲證明 V ⊕ W = Rn , 只需要證明 dim V + dim W = n 且 V ∩ W = {0} 即可。 第一式


x1 + x2 + · · · + xn = 0 包含 n 個未知變數, 故 dim V = n − 1。 第二組線性方程的解為
x1 = x2 = · · · = xn = α, 故 dim W = 1。 再將 x1 = x2 = · · · = xn = α 代入第一式,
就有 α + α + . . . + α = 0, 得到 α = 0, 即證明 V ∩ W = {0}。 

Problem 54

Let A be an n × n matrix. Show that

N (A) ⊆ C(I − A)

and
N (I − A) ⊆ C(A).

52
Solution

令 x 為一 n 維向量, 利用下列關係式進行推論:

x = Ax + (I − A)x。

若 x ∈ N (A), 即 Ax = 0, 則 x = (I − A)x, 這說明 x ∈ C(I − A)。 若 x ∈ N (I − A),


即 (I − A)x = 0, 則 x = Ax, 推論 x ∈ C(A)。 

Problem 55

Let T be an n × n upper triangular matrix. Show that λ appears one the diagonal
of T precisely dim N ((T − λI)n ) times, where N (A) denotes the nullspace of A.

Solution

設 n × n 階上三角形矩陣 T 有 m 個主對角元 λ, 則 T − λI 有 m 個主對角元 0, 也就


是說 T − λI 有 n − m 個非零主對角元, 所以 rank(T − λI) = n − m。 根據秩-零度定
理, rank((T − λI)n ) = n − dim N ((T − λI)n ), 接下來只要證明 rank((T − λI)n ) =
rank(T − λI) 即可證得 m = dim N ((T − λI)n )。 將上三角形矩陣 T − λI 分解為
T − λI = D + U , 其中 D 是主對角矩陣, U 是上三角形矩陣且主對角元全部是零, 則
rank(T − λI) = rankD 。 利用二項式定理,
n  
n n n
X n
(T − λI) = (D + U ) = D + Dn−k U k 。
k
k=1

對於 k ≥ 1, Dn−k U k 的主對角元皆為零, 因此 (T −λI)n 的主對角元恰為 Dn 的主對角元,


就有 rank((T − λI)n ) = rankDn 。 明顯地, rankDn = rankD, 故 rank((T − λI)n ) =
rankD = rank(T − λI)。 

Problem 56

Let A be an n × n matrix. Show that S = {X|AX = XA}, the set of all the
matrices commuting with A, is a vector space.

53
Solution

只需要證明 S 滿足矩陣加法和純量乘法封閉性即可。 令 X, Y ∈ S, 則 AX = XA 且
AY = Y A。 計算

A(X + Y ) = AX + AY = XA + Y A = (X + Y )A,

故 X + Y ∈ S 。 對於任意純量 c,

A(cX) = c(AX) = c(XA) = (cX)A,

故 cX ∈ S 。 因此證得 S 是一向量空間。 

Problem 57

Let A1 , A2 , . . . , Am be n × n matrices. If A1 A2 · · · Am = 0, prove that

rankA1 + rankA2 + · · · + rankAm ≤ (m − 1)n.

Solution

設 A 和 B 為 n × n 階矩陣, 以下不等式成立:

rank(AB) ≥ rankA + rankB − n。

重複利用上述性質, 可得

rank(A1 A2 · · · Ak ) ≥ rankA1 + rank(A2 · · · Am ) − n

≥ rankA1 + rankA2 + rank(A3 · · · Am ) − 2n

≥ ···

≥ rankA1 + rankA2 + · · · + rankAm − (m − 1)n,

但已知 rank(A1 A2 · · · Am ) = rank0 = 0, 因此得證。 

54
Problem 58

Let A be an n × n complex matrix. If {y1 , . . . , yk } is a basis for the column space


of A and if {x1 , . . . , xk } is such a set of vectors of Cn that

Axi = yi , i = 1, . . . , k,

show that
span{x1 , . . . , xk } ⊕ N (A) = Cn ,

where N (A) denotes the nullspace of A.

Solution

令 {z1 , . . . , zl } 是 N (A) 的一基底。 欲證明 span{x1 , . . . , xk } ⊕ N (A) = Cn , 只要證


明 span{x1 , . . . , xk , z1 , . . . , zl } = Cn 且 {x1 , . . . , xk , z1 , . . . , zl } 是一線性獨立集即
可。 對於任一 v ∈ Cn , Av 屬於 A 的行空間 C(A)。 將 Av 表示為

Av = c1 y1 + · · · + ck yk

= c1 Ax1 + · · · + ck Axk ,

就有
A(v − c1 x1 − · · · − ck xk ) = 0。

這說明 v − c1 x1 − · · · − ck xk ∈ N (A), 故令

v − c1 x1 − · · · − ck xk = d1 z1 + · · · + dl zl ,


v = c1 x1 + · · · + ck xk + d1 z1 + · · · + dl zl ,

證得 Cn = span{x1 , . . . , xk , z1 , . . . , zl }。 再考慮 v = 0, 上式左乘 A, 即得

0 = c1 Ax1 + · · · + ck Axk + d1 Az1 + · · · + dl Azl

= c1 Ax1 + · · · + ck Axk

= c1 y1 + · · · + ck yk 。

55
因為 {y1 , . . . , yk } 是行空間 C(A) 的基底, 推論 c1 = · · · = ck = 0, 於是有

0 = d1 z1 + · · · + dl zl ,

同樣道理, 因為 {z1 , . . . , zl } 是零空間 N (A) 的基底, 可知 d1 = · · · = dl = 0, 證得


{x1 , . . . , xk , z1 , . . . , zl } 是一線性獨立集。 

Problem 59

Let A and B be m × n and p × n matrices, respectively. If rankA + rankB < n,


show that there exists a nonzero n-dimensional vector x such that Ax = 0 and
Bx = 0.

Solution

證明 N (A) ∩ N (B) 6= {0} 即證得原命題。 考慮零空間 N (A) 和 N (B) 的容斥關係,

dim(N (A) + N (B)) = dimN (A) + dimN (B) − dim(N (A) ∩ N (B))。

利用秩–零度定理, rankA + dimN (A) = n, rankB + dimN (B) = n, 即有

dim(N (A) ∩ N (B)) = n − rankA + n − rankB − dim(N (A) + N (B))。

使用已知條件 rankA + rankB < n, 而且 N (A) + N (B) 為 Cn 的子空間, 可以推論


dim(N (A) ∩ N (B)) > n − dim(N (A) + N (B)) ≥ 0. 

Problem 60

Let A and B be 5×7 and 7×6 matrices, respectively. If rankA = 3 and rankB = 5,
find all possible values of rank(AB).

Solution

我們從矩陣乘積 AB 的行空間分析著手。 因為 C(AB) ⊆ C(A), 可知 dimC(AB) ≤


dimC(A), 亦即 rank(AB) ≤ rankA。 轉置不改變矩陣秩, 就有

rank(AB) = rank(AB)T = rank(B T AT ) ≤ rankB T = rankB,

56
故得到 rank(AB) 上界:

rank(AB) ≤ min{rankA, rankB}。

矩陣乘積可視為變換 A 具有定義域 C(B), 值域 C(AB), 零空間 C(B) ∩ N (A)。 由秩–零


度定理, 可得
dimC(B) = dimC(AB) + dim(C(B) ∩ N (A)),

改寫為
rank(AB) = rankB − dim(C(B) ∩ N (A))。

但是 C(B) ∩ N (A) ⊆ N (A), 也就有 dim(C(B) ∩ N (A)) ≤ dimN (A) = n − rankA,


故得到 rank(AB) 下界:

rank(AB) ≥ rankB + rankA − n。

最後代入數值 n = 7, rankA = 3, rankB = 5, 即得 1 ≤ rank(AB) ≤ 3。 

Problem 61

If A and B are m × n and n × m matrices, respectively, such that rank(AB) = n


and (AB)2 = k(AB), where k 6= 0, show that BA = kIn .

Solution

利用矩陣乘法的矩陣秩性質, rank(XY ) ≤ min{rankX, rankY }, 即知

rank(BA) ≥ rank(A(BA)B) = rank(AB)2 = rank(AB) = n。

由此判斷 n × n 矩陣 BA 可逆。 另一方面,

(BA)3 = B(AB)2 A = B(kAB)A = k(BA)2 。

因為 BA 可逆, 故得 BA = kIn 。 

57
Problem 62

The following statements are false. For matrices of appropriate sizes, construct
a counterexample.

(a) If rankA = rankB, then rank(A2 ) = rank(B 2 ).

(b) If A2 = B 2 , then A = B or A = −B.

(c) If rank(AB) = 0, then rank(BA) = 0.

(d) If rank(AB) = 0, then rankA = 0 or rankB = 0.

Solution

(a) 從一般性質 rank(A2 ) ≤ rankA 下手。 設 A, B 為 2 × 2 階矩陣, 若 rankA =


rankB = 2, 顯然 rank(A2 ) = rank(B 2 ) = 2。 考慮 rankA
 = rankB = 1
1 0
的情況, 不難找出 A 滿足 rank(A2 ) = rankA, 如 A =  , 再設法找出
0 0
2
B 滿足 rank(B ) < rankB 。 當 C(B) ⊆ N (B),B 的行空間在零空間中, 則
0 1
B 2 = BB = 0, 就有 rank(B 2 ) = 0, 如 B =  。
0 0
 
1 0
(b) 設 A 有特徵值 λ, 則 A2 有特徵值 λ2 , 利用此性質很容易找到反例, 如 A =  ,
0 1
 
1 0
B= 。
0 −1

(c) 若 rank(AB) = 0, 則 AB
 = 0, 所以只要找出
 A, B 使得 AB = 0 且 BA 6= 0
1 −1 1 1
即可, 如 A =  , B =  。
0 0 1 1

(d) 同題 (c) 的例子。 

Problem 63

Let A be an n × n matrix. Prove that if A is idempotent, i.e., A2 = A, then


rankA + rank(A − I) = n.

58
Solution

寫出 I = A + (I − A), 等號兩邊取矩陣秩, rankI = n = rank(A + (I − A)), 利用


rank(A + B) ≤ rankA + rankB, 即得 n ≤ rankA + rank(I − A)。 再將 A2 = A 改
寫成 A(A − I) = 0, 此式可解讀為 I − A 的行空間 (值域) 屬於 A 的零空間 (核), 亦即
C(I − A) ⊆ N (A), 由秩–零度定理即得 rank(I − A) ≤ dimN (A) = n − rankA, 也就
證明了 rankA + rank(A − I) = n。 

Problem 64

Let A and B be n × n matrices, and rankA = rankB. Show that A2 B = A if and


only if B 2 A = B.

Solution

由於 A 和 B 可互換, 我們只需要證明 A2 B = A 蘊含 B 2 A = B 。 若 A2 B = A, 利用兩


矩陣乘積的秩必不大於相乘矩陣的秩, 即知

rankA = rank(A2 B) ≤ min{rank(A2 ), rankB},

而且 rank(A2 ) ≤ rankA, 故知 rank(A2 ) = rankA = rankB, 這說明 A2 , A 和 B


有相同的零空間維度。 若 Bx = 0, 則 Ax = A2 Bx = 0, A2 x = A(Ax) = 0, 因此
N (B) ⊆ N (A), N (B) ⊆ N (A2 ), 但 dimN (B) = dimN (A) = dimN (A2 ), 也就推
得 N (B) = N (A) = N (A2 )。 對於任意 y ∈ Cn , (A2 B)(Ay) = A(Ay) = A2 y, 改寫
為 A2 (BAy − y) = 0, 這指出 (BAy − y) ∈ N (A2 ), 也就有 B(BAy − y) = 0, 亦即
B 2 Ay = By。 上式對任意 n 維向量 y 皆成立, 故可推論 B 2 A = B 。 

Problem 65

Let A be an m × n matrix and B be an n × p matrix. Denote


 
In B
C= .
A 0

Show that rankC = n + rank(AB).

59
Solution

設計下列分塊矩陣乘法
     
In 0 In B In −B In 0
   = ,
−A Im A 0 0 Ip 0 −AB
  
In In −B
0
其中  和  為可逆矩陣, 故不改變矩陣秩。 等號右邊矩陣可表示為分
−A Im 0 Ip
塊直和,  
In 0
  = In ⊕ (−AB),
0 −AB
即得 rankC = rankIn + rank(−AB) = n + rank(AB)。 

Problem 66

Let T be a linear transformation on a finite-dimensional vector space V , and let


W be subspace of V . Denote

T (W ) = {T (w)| w ∈ W }.

Prove that T (W ) is a subspace of V , and

dim W = dim T (W ) + dim(Ker(T ) ∩ W ).

Solution

設 v, w ∈ W , 顯然, cv ∈ W , c 為一純量, v + w ∈ W , 就有

cT (v) = T (cv) ∈ T (W )

T (v) + T (w) = T (v + w) ∈ T (W ),

故 T (W ) 為 V 的一子空間。 設 {u1 , . . . , uk } 為 Ker(T ) ∩ W 的基底, 將此基底擴充成


W 基底 {u1 , . . . , uk , w1 , . . . , wr }。 考慮 w = c1 u1 + · · · + ck uk + d1 w1 + · · · + dr wr ,

60

T (w) = T (c1 u1 + · · · + ck uk + d1 w1 + · · · + dr wr )

= c1 T (u1 ) + · · · + ck T (uk ) + d1 T (w1 ) + · · · + dr T (wr )

= d1 T (w1 ) + · · · + dr T (wr ),

故 T (W ) = span{T (w1 ), . . . , T (wr )}。 接著我們證明 T (w1 ), . . . , T (wr ) 是線性獨立


集, 考慮 0 = d1 T (w1 ) + · · · + dr T (wr ) = T (d1 w1 + · · · + dr wr ) 推知 d1 w1 + · · · +
dr wr = 0, 因 w1 , . . . , wr 為獨立集, 必有 d1 = · · · = dr = 0, 證得

dimT (W ) = r = (k + r) − k = dimW − dim(Ker(T ) ∩ W )。

61
線性變換
Problem 67

Let V be the vector space of polynomials of degree at most 3 with real coefficients.
Let T be the map defined by

d2 f df
T (f (x)) = 2
+2 ,
dx dx

for all f (x) ∈ V .

(a) Show that T is a linear transformation.

(b) Find the matrix [T ]B and [T ]C representing T with respect to the bases
B = {1, x, x2 , x3 } and C = {1, 1+ x, 1+ x+ x2 , 1+ x+ x2 + x3 }, respectively.

(c) Find the matrix M representing the change of bases from B to C.

Solution

(a) 設 f (x), g(x) ∈ V , 則


   
d2 (f + g) d(f + g) d2 f df d2 g dg
T (f (x) + g(x)) = 2
+2 = 2
+2 + 2
+2
dx dx dx dx dx dx
= T (f (x)) + T (g(x))
 
d2 cf dcf d2 f df
T (cf (x)) = +2 =c +2 = cT (f (x)),
dx2 dx dx2 dx
這證明了 T 為線性轉換。

(b) B 的基底向量經轉換後為

T (1) = 0

T (x) = 2

T (x2 ) = 2 + 4x

T (x3 ) = 6x + 6x2 ,

62
因此 T (a + bx + cx2 + dx3 ) 可表示為矩陣乘法, 如下:
  
0 2 2 0 a
  
  
0 0 4 6  b 
[T (x)]B = [T ]B [x]B =    。
  
0 0 0 6  c 
  
0 0 0 0 d

C 的基底向量經轉換後為

T (1) = 0

T (1 + x) = 2

T (1 + x + x2 ) = 4 + 4x = 4(1 + x)

T (1 + x + x2 + x3 ) = 4 + 10x + 6x2 = −6 + 4(1 + x) + 6(1 + x + x2 ),

因此 T (s + t(1 + x) + u(1 + x + x2 ) + v(1 + x + x2 + x3 )) 可表示為


  
0 2 0 −6 s
  
  
0 0 4 4  t 
[T (x)]C = [T ]C [x]C = 
   。
 
0 0 0 6  u 
  
0 0 0 0 v

(c) 令 M 表示基底 B 至基底 C 的轉換矩陣, 而 M −1 即為基底 C 至基底 B 的轉換矩


陣。 因為 B 為標準基底, 所以
 
1 1 1 1
 
 
0 1 1 1
M −1 =
 ,

0 0 1 1
 
0 0 0 1

解得其逆矩陣為  
1 −1 0 0
 
 
0 1 −1 0
M = 。
 
0 0 1 −1 
 
0 0 0 1

63
利用 M [x]B = [x]C 和 M [T (x)]B = [T (x)]C , 可聯繫題 (b) 的兩個轉換: M [T ]B [x]B =
[T ]C M [x]B , 即 M [T ]B = [T ]C M , 或 [T ]C = M [T ]B M −1 。 驗證如下:
     
1 −1 0 0 0 2 2 0 1 1 1 1 0 2 0 −6
     
     
0 1 −1 0  0 0 4 6  0 1 1 1 0 0 4 4
   = 。
     
0 0 1 −1  0 0 0 6  0 0 1 1 0 0 0 6
     
0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0

Problem 68

Let A be an m × n matrix. Prove or disprove the following statements.

(a) If the vectors v1 , v2 , . . . , vk in Cn are linearly independent, so are Av1 ,


Av2 , . . . , Avk .

(b) If the vectors Av1 , Av2 , . . . , Avk in Cm are linearly independent, so are v1 ,
v2 , . . . , vk .

Solution

(a) 考慮極端情況 A = 0, 可知此題陳述不為真。 延伸討論, 矩陣 A 要滿足什麼條件方能


維持 Av1 , Av2 , . . . , Avk 的獨立性? 由線性獨立定義, 方程式

c1 Av1 + c2 Av2 + · · · + ck Avk = A(c1 v1 + c2 v2 + · · · + ck vk ) = 0

僅有解 c1 = c2 = · · · = ck = 0, 矩陣 A 的零空間和向量 v1 , · · · , vk 的擴張僅交


集於零向量, 或者說 v1 , · · · , vk 不屬於 A 的零空間。

(b) 利用反證法, 先假設 v1 , v2 , . . . , vk 是線性相依, 則必定存在不全為零的權重 c1 ,


c2 , . . . , ck 使得
c1 v1 + c2 v2 + · · · + ck vk = 0。

等號兩邊左乘 A,
c1 Av1 + c2 Av2 + · · · + ck Avk = 0,

這指出 Av1 , Av2 , . . . , Avk 為線性相依, 與已知條件矛盾, 故得證。 

64
Problem 69
 
1 1
Suppose [T ]E =   is the transformation matrix for a linear transformation
0 1
 
−9 −25
T with respect to the standard basis, and [T ]B =   is the transfor-
4 11
mation matrix with respect to B basis. Find a set of basis vectors of B.

Solution

設基底 B 包含2-維基底向量集 {b1 , b2 }, 令 B = [ b1 b2 ], B 的兩行向量是線性獨立,


故 B 是可逆的。 因轉換矩陣 [T ]E 滿足 T (x) = [T ]E x, 而參考基底 B 的座標向量 [x]B 又
滿足 [T (x)]B = [T ]B [x]B 。 因為 [x]B = B −1 x 且 [T (x)]B = B −1 T (x) = B −1 [T ]E x,
則 [T ]B B −1 = B −1 [T ]E , 或 B[T ]B = [T ]E B 。 設線性轉換  L(B) = B[T ]B − [T ]E B,
a b
問題即為求轉換 L 的核 (kernel), 即 L(B) = 0。 令 B =  , 代入 L(B) 並展開,
c d
可得  
−10a + 4b − c −25a + 10b − d
L(B) =  。
−10c + 4d −25c + 10d
再將此轉換改為矩陣乘法形式, 如下:
    
a −10 4 −1 0 a
    
    
 b   −25 10 0 −1  b 
L   =    。
    
 c   0 0 −10 4  c 
    
d 0 0 −25 10 d

以消去法化簡至最簡列梯形矩陣:
   
−10 4 −1 0 1 − 25 0 1
25
   
   
 −25 10 0 −1  0 0 1 − 25
   。
   
 0 0 −10 4 0 0 0 0
   
0 0 −25 10 0 0 0 0

65
零空間即為 [ 25 , 1, 0, 0]T 和 [− 25
1
, 0, 25 , 1] 的擴張, 寫回 2 × 2 階矩陣, 滿足 L(B) = 0 的
矩陣可表示為  
2 1
 5α − 25 β α
,
2
5β β
其中的兩行向量就是 B 的基底向量:
   
2 1
α − β α
 5 25 
,  。
2
5 β β
又因為 B 是可逆矩陣,
2 1
5α − 25 β α 1 2
det(B) = =− β 6= 0,
2 25
5β β
還要再加上條件 β 6= 0。 

Problem 70

Let A be a nonzero 2 × 2 matrix. Consider the following linear transformation

T (X) = AX − XA,

where X is a 2 × 2 matrix. If A is diagonalizable, prove that T is also diagonal-


izable.

Solution

設 Axi = λi xi , i = 1, 2, 因為 A 可對角化, {x1 , x2 } 為線性獨立向量集。 令 2 × 2 階矩


陣 Bij 的第 j 行等於 xi , 其餘各行為零, 則 B = {B11 , B12 , B21 , B22 } 為所有 2 × 2 階
矩陣形成的向量空間的有序基底。 計算各基底向量 Bij 的像 T (Bij ) = ABij − Bij A, 如
下:

T (B11 ) = AB11 − B11 A


 
h i h i a11 a12
= A x1 0 − x1 0  
a21 a21
h i h i
= λ1 x1 0 − a11 x1 a12 x1

= λ1 B11 − a11 B11 − a12 B12 。

66
以同樣方式可以得到

T (B12 ) = AB12 − B12 A = λ1 B12 − a21 B11 − a22 B12

T (B21 ) = AB21 − B21 A = λ2 B21 − a11 B21 − a12 B22

T (B22 ) = AB22 − B22 A = λ2 B22 − a21 B21 − a22 B22 。

所以 T 參考有序基底 B 的表示矩陣為
h i
[T ]B = [T (B11 )]B [T (B12 )]B [T (B21 )]B [T (B22 )]B
 
λ1 − a11 −a21 0 0
   
 
 −a12 λ1 − a22 0 0 λ I − AT 0
= 1

= 。
 
 0 0 λ2 − a11 −a21  0 λ2 I − AT
 
0 0 −a12 λ2 − a22

設 A 可對角化為 A = SΛS −1 , 則 cI − AT = (S T )−1 (cI − Λ)S T 也為可對角化矩陣,


因此證得所求。 

Problem 71

If {u1 , . . . , un } and {v1 , . . . , vn } are bases of Rn , and if


n
X
Auj = cij ui
i=1
Xn
Bvj = cij vi ,
i=1

what is the relation between the matrices A and B?

Solution

令 C, U , V 為 n × n 階矩陣, C = [cij ], U 的行向量為 uj , V 的行向量為 vj , j =


1, 2, . . . , n。 給出的第一個方程式可寫為矩陣乘積:
 
c11 · · · c1n
h i h i 
 .. . . .. 
A u1 · · · un = u1 · · · un  . . . ,
 
cn1 · · · cnn

67
亦即 AU = U C, 同理由第二個方程式可得 BV = V C 。 因為 U , V 的行向量都是完整基
底, U 和 V 同是可逆矩陣, 故 A 和 C 可表示為 A = U CU −1 和 C = V −1 BV , 也就有
A = U V −1 BV U −1 。 設 P = U V −1 , 得到 A = P BP −1 , A 相似於 B 。
另外一個做法是利用線性變換觀念, 關鍵想法是聯繫這二組基底向量, 設矩陣 P 表示線
性變換滿足 P vj = uj , j = 1, . . . , n, 則 Auj = AP vj 且
n n n
!
X X X
Auj = cij ui = cij P vi = P cij vi = P Bvj 。
i=1 i=1 i=1

因此對於任意 j, AP vj = P Bvj , 或 (AP − P B)vj , j = 1, 2, . . . , n, 推知 AP − P B


的零空間維度等於 n, 即 rank(AP − P B) = 0, 所以 AP = P B 。 矩陣 A, B 其實是參
考不同基底的線性變換表示矩陣, 而 P 則是這兩組基底的變換矩陣。 

Problem 72

Let B = {v1 , v2 , v3 , v4 } be a basis for a vector space V of dimension 4. Suppose


T is a linear transformation on V, and the matrix representation of T with respect
to B is  
1 2 0 1
 
 
 −1 1 3 2 
A=

.

 1 5 3 4 
 
1 −1 −3 −2

(a) Find the range and kernel of T .

(b) Find a new basis B′ for V so that the matrix representation of T with
h i
respect to B′ has the form B 0 , where B and 0 are 4 × 2 matrices.

Solution

(a) 將線性變換 T 的表示矩陣 A 化約至簡約列梯陣式:


   
1 2 0 1 1 0 −2 −1
   
   
 −1 1 3 2   0 1 1 1 
A=




,

 1 5 3 4   0 0 0 0 
   
1 −1 −3 −2 0 0 0 0

68
由此可知 A 的行空間為
   


 1 2 


    

   
 −1   1 


C(A) = span 
,
 
 ,



  1   5 

   


 
 1 −1 

且零空間為    


 2 1 

    


    
 −1   −1 

N (A) = span  ,  。
   


  1   0 

    


 
 0 1 
故線性變換 T 的值域為

R(T ) = span{T (v1 ), T (v2 )},

其中

T (v1 ) = v1 − v2 + v3 + v4

T (v2 ) = 2v1 + v2 + 5v3 − v4 ,

而 T 的核 (零空間) 為
N (T ) = span{w1 , w2 },

其中

w1 = 2v1 − v2 + v3

w2 = v1 − v2 + v4 。

(b) 考慮 V 的一組基底 B′ = {v1 , v2 , w1 , w2 }。 令 [T (v1 )]B′ = (c1 , c2 , c3 , c4 )T 和


[T (v2 )]B′ = (d1 , d2 , d3 , d4 )T , 就有

T (v1 ) = c1 v1 + c2 v2 + c3 w1 + c4 w2

= c1 v1 + c2 v2 + c3 (2v1 − v2 + v3 ) + c4 (v1 − v2 + v4 )

= (c1 + 2c3 + c4 )v1 + (c2 − c3 − c4 )v2 + c3 v3 + c4 v4

= v1 − v2 + v3 + v4 ,

69
解得 c1 = −2, c2 = 1, c3 = 1, c4 = 1。 同時,

T (v2 ) = d1 v1 + d2 v2 + d3 w1 + d4 w2

= d1 v1 + d2 v2 + d3 (2v1 − v2 + v3 ) + d4 (v1 − v2 + v4 )

= (d1 + 2d3 + d4 )v1 + (d2 − d3 − d4 )v2 + d3 v3 + d4 v4

= 2v1 + v2 + 5v3 − v4 ,

解得 d1 = −7, d2 = 5, d3 = 5, d4 = −1。 另外, T (w1 ) = T (w2 ) = 0, 所以線性


變換 T 參考基底 B′ 的表示矩陣如下:
h i
[T ]B′ = [T (v1 )]B′ [T (v2 )]B′ [T (w1 )]B′ [T (w2 )]B′
 
−2 −7 0 0
 
 
 1 5 0 0 
= 。
 
 1 5 0 0 
 
1 −1 0 0

Problem 73

Let U and W be two subspaces of a finite dimensional vector space V. The sum
U + W is called a direct sum, denoted by U ⊕ W, if every element x ∈ U + W can
be uniquely written as x = u + w, where u ∈ U and w ∈ W. Let T be a linear
transformation on V. Show that there exists a positive integer n so that

V = R(T n ) ⊕ N (T n ),

where R(T n ) and N (T n ) denote the range and kernel of T n , respectively.

Solution

若 T x = 0, 則 T 2 x = T (T x) = T (0) = 0, 即知 N (T ) ⊆ N (T 2 ), 繼續此程序可推論

N (T ) ⊆ N (T 2 ) ⊆ · · · ⊆ N (T k ) ⊆ N (T k+1 ) ⊆ · · · ,

70
但 V 為一有限維向量空間, 故必定存在一正整數 n 使得對於所有正整數 m 都有 N (T n ) =
N (T n+m )。 根據秩-零度定理 dim V = dim R(T n ) + dim N (T n ), 因此欲證明 V =
R(T n ) ⊕ N (T n ), 只須證明 R(T n ) ∩ N (T n ) = {0} 即可。 令 x ∈ R(T n ) ∩ N (T n ), 則
存在 y 使得 x = T n y 且 T n x = 0。 合併上面兩式, 0 = T n x = T n (T n y) = T 2n y, 這
說明 y ∈ N (T 2n ) = N (T n ), 所以 x = T n y = 0, 得證。 

Problem 74

Let u = (1, 1, 1, 1, 1)T . Evaluate

(I5 + 2uuT )(I5 + uuT )−1 u.

Solution

將 I5 + uuT 視為一線性變換。 考慮 u 的映射, 因為 uT u = 5, 即得

(I5 + uuT )u = I5 u + u(uT u) = 6u,

故知 I5 + uuT 將向量 u 伸長了 6 倍, 由此推論逆變換為 (I5 + uuT )−1 u = 16 u。 所以,

1 1  11
(I5 + 2uuT )(I5 + uuT )−1 u = (I5 + 2uuT ) u = u + 2u(uT u) = u。
6 6 6

另外也可以使用矩陣代數計算 (I5 + uuT )−1 u。 令 x = (I5 + uuT )−1 u, 等號兩邊同時左


乘 I5 + uuT 可得 (I5 + uuT )x = x + ku = u, 其中 k = uT x, 則 x = (1 − k)u。 將
上式代回計算 k = uT x = (1 − k)uT u = 5 − 5k, 解出 k = 56 , 故得 (I5 + uuT )−1 u =
x = (1 − k)u = 61 u。 

Problem 75

If u ∈ Rn and uT u = 3, then there exists k ∈ R such that

(In + uuT )10 = In + kuuT .

Determine the value of k.

71
Solution

我們可以視 In + uuT 為一線性變換。 考慮 u 的映射, 利用已知條件可得

(In + uuT )u = In u + u(uT u) = u + 3u = 4u,

故知變換矩陣 In + uuT 將向量 u 拉伸了 4 倍長, 繼續此過程推知 (In + uuT )10 u =


410 u。 另一方面, 等號右邊等於 (In + kuuT )u = In u + ku(uT u) = (1 + 3k)u, 即得
410 −1
410 = 1 + 3k, 解出 k = 3 。

另一個做法運用對角化。 因為 In + uuT 是實對稱矩陣, 故可正交對角化為 In + uuT =


QΛQT , 其中 QT = Q−1 。 注意 In + uuT 有特徵值 4 對應特徵向量 u, 並有 n − 1 個
特徵值 0 對應特徵空間 span{u}⊥ , 即得 Λ = diag(4, 0, . . . , 0)。 另一方面, In + kuuT
亦可正交對角化為 In + kuuT = Q · diag(1 + 3k, 0, . . . , 0) · QT 。 所以
   
410 1 + 3k
   
   
T 10
 0  T
 0  T
(In + uu ) = Q 

.. Q = Q
 
..
Q ,

 .   . 
   
0 0
410 −1
由上式可知 410 = 1 + 3k, 故 k = 3 。 

Problem 76

Let M2 (R) be the vector space of all 2 × 2 real matrices. The standard basis for
M2 (R) is given as follows:
       
1 0 0 1 0 0 0 0
E1 =   , E2 =   , E3 =   , E4 =  .
0 0 0 0 1 0 0 1

Define the linear transformation

T (X) = XA − AX,
 
1 2
where X ∈ M2 (R), and A =  .
0 1

72
(a) Find the matrix representation of T under the basis Ei , i = 1, 2, 3, 4.

(b) Find a basis for the range of T .

(c) Find a basis for the kernel of T .

Solution
 
a b
(a) 令 X =  , 展開 T (X), 如下:
c d
     
a b 1 2
1 2 a b −2c 2a − 2d
T (X) =   −  = 。
c d 0 1 0 1 c d 0 2c

將標準基底 Ei 代入計算 T (Ei ), 可得


   
0 2 0 0
T (E1 ) =   , T (E2 ) =  ,
0 0 0 0
   
−2 0 0 −2
T (E3 ) =   , T (E4 ) =  ,
0 2 0 0

所以線性變換 T 參考標準基底的表示矩陣為
 
0 0 −2 0
 
 
 2 0 0 −2 
[T ] = 
 。

 0 0 0 0 
 
0 0 2 0

(b) 對表示矩陣 [T ] 執行基本列運算, 可得下列簡化列梯形矩陣:


 
1 0 0 −1
 
 
 0 0 1 0 
 。
 
 0 0 0 0 
 
0 0 0 0
   
 0 1 −1 0 
這顯示 [T ] 的第 1 和 3 行為軸行, 故 T 的值域基底可為  ,   。
 0 0 0 1 

73
(c) 由 (b)可知 [T] 的零空間由 T T
  (0, 1, 0, 0) 和 (1, 0, 0, 1) 擴張而成, 故 T 的核基底
 0 1 1 0 
可為  ,   。 
 0 0 0 1 

Problem 77

True or false, with counterexample if false. Let T be a linear transformation on


a finite dimensional vector space V and let U and W be subspaces of V. Denote
T (U) = {T (u)|u ∈ U }.

(a) T (U ∩ W) = T (U) ∩ T (W)

(b) T (U ∪ W) = T (U) ∪ T (W)

(c) T (U + W) = T (U) + T (W)

Solution

(a) 錯誤。 雖然 T (U ∩ W) ⊆ T (U) ∩ T (W) 確實為真, 但等號不總是成立。 例如, 若 T


代表 R2 中至 x 軸的正交投影, U 是直線 y = x, W 是 x 軸, 則 T (U ∩ W) = {0},
而 T (U) ∩ T (W) = W 。

(b) 正確。 若 u ∈ U, 則 T (u) ∈ T (U) ⊆ T (U) ∪ T (W); 同樣地, 若 w ∈ W, 則


T (w) ∈ T (W) ⊆ T (U) ∪ T (W), 所以 T (U ∪ W) ⊆ T (U) ∪ T (W)。 另一方面,
T (U) ⊆ T (U ∪ W) 且 T (W) ⊆ T (U ∪ W), 也就有 T (U) ∪ T (W) ⊆ T (U ∪ W)。

(c) 正確。 任意 x ∈ U + W 可表示為 x = u + w, 其中 u ∈ U, w ∈ W, 就有


T (x) = T (u) + T (w) ∈ T (U) + T (W), 所以 T (U + W) ⊆ T (U) + T (W)。 另
一方面, 若 y ∈ T (U) + T (W), 則 y = T (u) + T (w) = T (u + w) ∈ T (U + W),
所以 T (U) + T (W) ⊆ T (U + W)。 

Problem 78

Let Pn (R) be the set of all polynomials of degree less than n with real coefficients.
Let
T (p(x)) = xp′ (x) − p(x),

74
where p(x) ∈ Pn (R).

(a) Prove that T is a linear transformation on Pn (R).

(b) Determine the range and kernel of T , i.e., R(T ) and N (T ), respectively.

Solution

(a) 設 p(x), q(x) 屬於 Pn (R), c 為一純量, 則

T ((p + q)(x)) = T (p(x) + q(x))

= x(p(x) + q(x))′ − (p(x) + q(x))

= xp′ (x) + xq ′ (x) − p(x) − q(x)

= T (p(x)) + T (q(x)),

而且

T ((cp)(x)) = T (cp(x))

= x(cp(x))′ − (cp(x))

= cxp′ (x) − cp(x)

= cT (p(x))。

因此證明 T 是一定義於 Pn (R) 的線性變換。

(b) 欲求 R(T ), 將 p(x) = a0 + a1 x + · · · + an−1 xn−1 代入 T (p(x)), 即得

T (p(x)) = x(a1 + 2a2 x + · · · + (n − 1)an−1 xn−2 ) − (a0 + a1 x + · · · + an−1 xn−1 )

= −a0 + a2 x2 + · · · + (n − 2)an−1 xn−1 ,

所以

R(T ) = {b0 + b2 x2 + · · · + bn−1 xn−2 |b0 , b2 , . . . , bn−1 ∈ R}。

欲求 N (T ), 將 p(x) = a0 + a1 x + · · · + an−1 xn−1 代入 T (p(x)) = 0, 即得

x(a1 + 2a2 x + · · · + (n − 1)an−1 xn−2 ) = a0 + a1 x + · · · + an−1 xn−1 。

比較等號兩邊係數可解出 a1 = k, k ∈ R, ai = 0 若 i 6= 1, 故 N (T ) = {kx|k ∈
R}。 

75
Problem 79

Let V be the real vector space spanned by

{1, t, t2 , t3 , t4 , et , tet , t2 et , t3 et , t4 et },

W be the subspace of V , spanned by

{1, t, t2 , et , tet , t2 et },

and V /W is the quotient space of V modulo W . Let D be the derivative on V .


Define the map G : V /W → V /W induced by D as follows:

G(x + W ) = D(x) + W,

for any x + W ∈ V /W .

(a) Show that G is well defined, i.e., G(x + W ) = G(y + W ) whenever x + W =


y + W.

(b) Show that G is a linear transformation.

(c) Show that B = {t3 + W, t4 + W, t3 et + W, t4 et + W } is a basis for V /W .

(d) Find the matrix representation of G with respect to the ordered basis B.

Solution

(a) 若 x+W = y+W , 則 (x−y) ∈ W , 然而 W 是 D 的一不變子空間, 即 D(W ) ⊆


W , 所以 D(x) − D(y) = D(x − y) ∈ W , 這表示 D(x) + W = D(y) + W , 即
G(x + W ) = G(y + W )。

(b) 設 x, y ∈ V , 則

G((x + W ) + (y + W )) = G((x + y) + W )

= D(x + y) + W

= D(x) + D(y) + W

= (D(x) + W ) + (D(y) + W )

= G(x + W ) + G(y + W )。

76
對於任意純量 c,

G(c(x + W )) = G((cx) + W )

= D(cx) + W

= cD(x) + W

= c(D(x) + W )

= cG(x + W )。

(c) 定義線性變換 Q : V → V /W 如下:

Q(x) = x + W 。

對任一 x ∈ V , 有唯一表達式

x = c1 + c2 t + c3 t2 + c4 t3 + c5 t4 + c6 et + c7 tet + c8 t2 et 。 + c9 t3 et + c10 t4 et

當 v ∈ W , Q(v) = W 。 將上式代入 Q, 可得

Q(x) = c4 Q(t3 ) + c5 Q(t4 ) + c9 Q(t3 et ) + c10 Q(t4 et )

= c4 (t3 + W ) + c5 (t4 + W ) + c9 (t3 et + W ) + c10 (t4 et + W ),

得知 B 擴張 V /W 。 再證明 B 是獨立集, 考慮

0 + W = x = c4 (t3 + W ) + c5 (t5 + W ) + c9 (t3 et + W ) + c10 (t4 + et + W )

= (c4t3 + W ) + (c5 t4 + W ) + (c9 t3 et + W ) + (c10 t4 et + W )

= (c4 t3 + c5 t4 + c9 t3 et + c10 t4 et ) + W 。

這指出 (c4 t3 + c5 t4 + c9 t3 et + c10 t4 et ) ∈ W , 也就有

c4 t3 + c5 t4 + c9 t3 et + c10 t4 et = c1 + c2 t + c3 t2 + c6 et + c7 tet + c8 t2 et

或者

c4 t3 + c5 t4 + c9 t3 et + c10 t4 et − c1 − c2 t − c3 t2 − c6 et − c7 tet − c8 t2 et = 0。

然而 {1, t, t2 , t3 , t4 , et , tet , t2 et , t3 et , t4 et } 是 V 的一組基底, 故 ci = 0, i =


1, . . . , 10, 證得 B 是獨立集。

77
(d) 計算各基底向量的像,

G(t3 + W ) = D(t3 ) + W = 3t2 + W = 0 + W

G(t4 + W ) = D(t4 ) + W = 4t3 + W = 4(t3 + W )

G(t3 et + W ) = D(t3 et ) + W = 3t2 et + t3 et + W = t3 et + W

G(t4 et + W ) = D(t4 et ) + W = 4t3 et + t4 et + W = 4(t3 et + W ) + (t4 et + W )。

所以 G 參考有序基底 B 的矩陣表示為
h i
[G]B = [G(t3 + W )]B [G(t4 + W )]B [G(t3 et + W )]B [G(t4 et + W )]B
 
0 4 0 0
 
 
0 0 0 0
=
 。

0 0 1 4
 
0 0 0 1

78
內積空間
Problem 80

Suppose W is a subspace of an inner product space V and W ⊥ is the orthogonal


complement of W in V . For any x ∈ V , show that y ∈ W is the orthogonal
projection of x onto W , i.e., x = y + y′ , for some y′ ∈ W ⊥ , if and only if for
every z ∈ W , kx − yk ≤ kx − zk.

Solution

設 y ∈ W , 且 x = y + y′ , 其中 y′ ∈ W ⊥ , 可知 x − y ∈ W ⊥ 。 對於任意 z ∈ W , 就有
y − z ∈ W , 故 hx − y, y − zi = 0, 所以

kx − zk2 = k(x − y) + (y − z)k2 = kx − yk2 + ky − zk2 ,

證得 kx − yk ≤ kx − zk。
欲證明相反方向陳述, 設 w 為 x 至 W 的正交投影且 w 6= y。 考慮 x = w + w′ , 其
中 w′ ∈ W ⊥ , 因為 y, w ∈ W , 可得

kx − yk2 = k(x − w) − (w − y)k2

= kx − wk2 + kw − yk2

≥ kx − wk2 ,

這造成矛盾, 因此證得原命題。 

Problem 81

Let {v1 , . . . , vn } be an orthonormal basis for an inner product space V over C.


If x ∈ V , show that
Pn
(a) x = i=1 hx, vi ivi

Pk 2
(b) hx, xi ≥ i=1 |hx, vi i| , 1 ≤ k ≤ n.

Note that hx, yi denotes the inner product of x and y.

79
Solution

(a) 將 x 表示為
x = c1 v1 + · · · + cn vn 。

令等號兩邊與 vi 計算內積, 因為 hvi , vj i = 1 若 i = j, hvi , vj i = 0 若 i 6= j, 就



ci = hx, vi i, i = 1, . . . , n。

(b) 將題 (a) 公式代入計算


* n n
+
X X
hx, xi = ci vi , cj vj
i=1 j=1
n X
X n
= hci vi , cj vj i
i=1 j=1
Xn
= |ci |2
i=1
Xk
≥ |ci |2 (k = 1, . . . , n)。
i=1

Problem 82

Suppose x and y are vectors in an inner product space V . Show that

|kxk − kyk| ≤ kx − yk.

This is called the backward triangle inequality.

Solution

利用三角不等式
kx + yk ≤ kxk + kyk,

改寫 kxk, 如下:
kxk = kx − y + yk ≤ kx − yk + kyk,

80
得到 kxk − kyk ≤ kx − yk。 再考慮

kyk = kx − y + xk ≤ kx − yk + kxk,

也就有 −(kxk − kyk) ≤ kx − yk。 合併上面二式即證得所求。 

Problem 83

Suppose x1 , x2 , x3 are three vectors in Rn , and xTi xj < 0, for i, j = 1, 2, 3, i 6= j.


Prove that x1 , x2 , x3 are linearly independent.

Solution

利用反證法, 假設 x, x2 , x3 是線性相依。 在不失一般性下, 設 xi , i = 1, 2, 3, 為單位向量,



x3 = c1 x1 + c2 x2 。

計算內積並使用已知條件,

xT1 x3 = xT1 (c1 x1 + c2 x2 ) = c1 + c2 xT1 x2 < 0

xT2 x3 = xT2 (c1 x1 + c2 x2 ) = c1 xT2 x1 + c2 < 0。

已知 xT1 x2 < 0, 第一式乘以 −xT1 x2 可得 −c1 (xT1 x2 ) < c2 (xT1 x2 )2 , 再合併第二式可得

c2 < −c1 xT2 x1 < c2 (xT1 x2 )2 。

所以 (xT1 x2 )2 > 1, 這與最初假設 x1 , x2 為單位向量矛盾, 證得 x1 , x2 , x3 為線性獨立。




Problem 84

Let x1 , . . . , xn be vectors in Rm , and let A = [aij ], where

aij = xTi xj ,

i, j = 1, . . . , n. Show that x1 , . . . , xn are linearly independent if and only if A is


nonsingular.

81
Solution

考慮
c1 x1 + · · · + cn xn = 0。

計算 xTi , i = 1, 2, . . . , n, 與上式乘積, 利用給出條件可得

xTi (c1 x1 + · · · + cn xn ) = c1 xTi x1 + · · · + cn xTi xn = c1 ai1 + · · · + cn ain = 0。

將這 n 個式子以矩陣乘法表示, 如下:
    
a11 · · · a1n c 0
   1  
 .. . .. ..   ..  =  ... 
.   .  
Ac =  . 。
    
an1 · · · ann cn 0

若向量集 x1 , . . . , xn 是線性獨立的, 必定有 c1 = · · · = cn = 0, 這說明 Ac = 0 存在平


凡解, 故 rankA = n, A 為可逆矩陣。 相反方向的陳述也成立。
h i
另一個做法運用 QR 分解。 設 X = x1 · · · xn , 令其 QR 分解式為 X = QR,
因為 QT Q = In ,

A = X T X = (QR)T (QR) = RT QT QR = RT R。

若 X 有線性獨立的行向量, 則 R 為可逆矩陣。 又因為 rankA = rank(RT R) = rankR,


所以 A 也是可逆的。 顯然反向陳述亦真。 

Problem 85

Let A be an n by n real matrix satisfying

(Ax)T (Ay) = xT y,

for every x, y in Rn . Show that A is an orthogonal matrix.

Solution

從給出條件 (Ax)T (Ax) = xT AT Ax = xT x 得到

xT (AT A − I)x = 0。

82
令 B = AT A − I, B 為對稱矩陣, 接著我們證明: 對於對稱矩陣 B, 任意向量 x 都滿足
xT Bx = 0, 則 B = 0。 考慮 (x + y)T B(x + y) 的展開式, 將它寫為

(x + y)T B(x + y) − xT Bx − yT By = xT By + yT Bx。

由已知條件, 上式等號左邊為零, 右邊等於 2xT By, 亦即 xT By = 0。 設 x = By 再代


回左式, 就有 kByk2 = 0, 因此 By = 0, 但 y 是任意向量, 所以必定有 B = 0, 推知
AT A = I, 即 AT = A−1 , A 為正交矩陣。 

Problem 86

Suppose Q is a 4 × 3 real matrix with orthonormal columns q1 , q2 , q3 .

(a) Suppose v is not in the column space of Q. Use Gram-Schmidt process to


obtain the fourth orthonormal vector q4 .

(b) Describe the nullspaces of Q, QT , QT Q and QQT .

(c) Suppose b = q1 + 2q2 + 3q3 + 4q4 . Find the least-squares solution to


Qx = b. What is the projection p of this b onto the column space of Q?

Solution

(a) 將向量 v 投影至 qi , i = 1, 2, 3, 的分量去除即可:

p4 = v − (vT q1 )q1 − (vT q2 )q2 − (vT q3 )q3 ,

再正規化向量: q4 = p4 /kp4 k。

(b) 因 Q = [ q1 q2 q3 ] 有線性獨立的 3 個行, Q 的零空間僅含零向量。 QT 的零空


間即為 C(Q) 的正交互補空間, 故 N (QT ) 由題 (a) 的 q4 向量所擴張成 (因 q4 與
q1 , q2 , q3 正交)。 因為 QT Q = I3 , 故其零空間為 {0}, 而 4 × 4 階矩陣 QQT 的
零空間由 q4 所擴張, 這是由於 QQT q4 = Q · 0 = 0。

83
(c) 因為 QT Q = I, 正規方程式 (normal equation) QT Qx̂ = QT b 等價於 x̂ =
QT b, 所以    
qT1 1
   
   
x̂ =  qT2  (q1 + 2q2 + 3q3 + 4q4 ) =  2  。
   
qT3 3
投影向量 p 即為 p = Qx̂ = q1 + 2q2 + 3q3 。 

Problem 87

Suppose C is an n × n real symmetric positive-definite matrix.

(a) Suppose C = B T B for some m × n matrix B. Which of the following (if


any) must be properties of B: full column rank, full row rank?

(b) Suppose A has linear independent columns, and C = B T B as in (a). In


terms of B, A, and b, write down an explicit formula for the x that minimize
(Ax − b)T C(Ax − b).

(c) Suppose that C was only positive semi-definite. Is there still a minimum
value of (Ax − b)T C(Ax − b)? Is there still a unique solution x?

Solution

(a) 因為 C 是正定矩陣, 對於任意 x 6= 0, xT Cx = xT B T Bx = kBxk



2 > 0,

1 0
 
 
故 N (B) = {0}, B 是滿行秩。 但 B 未必是滿列秩, 例如, B =  0 1 , 則
 
0 0
 
1 0
C = BT B =  。
0 1

(b) 整理算式:

(Ax − b)T C(Ax − b) = (Ax − b)T B T B(Ax − b)

= (BAx − Bb)T (BAx − Bb)

= kBAx − Bbk2 。

84
最小平方解滿足正規方程式 (BA)T (BA)x̂ = (BA)T Bb。 由已知以及題 (a), A 和
B 都是滿行秩, 因此 BA 也是滿行秩, 理由是 N (A) = {0} 且 N (B) = {0}, 若
BAx = 0, 則 Ax = 0, 又 x = 0, 故 N (BA) = {0}。 BA 有線性獨立的行, 推知
(BA)T (BA) 是可逆的, 所以最小平方解為

x̂ = (AT B T BA)−1 AT B T Bb = (AT CA)−1 AT Cb。

(c) 倘若 C 僅為半正定, 仍有 C = B T B, 且 (Ax − b)T C(Ax − b) 仍有最小值, 但


B 未必為滿行秩, 也因此最小平方解並不唯一存在。 例如, 若 C = 0, 則任何 x 都可
使 (Ax − b)T C(Ax − b) 最小化。 

Problem 88

Suppose A is an n × n real matrix.

(a) Show that AT A may be written as AT A = LLT , where L is a real lower


triangular matrix with nonnegative diagonal entries.

(b) Show that the factorization AT A = LLT , L with positive diagonal entries,
is unique if A is nonsingular. This is called the Cholesky factorization of
AT A; every positive definite matrix may be factored in this way.

Solution
h i
(a) 將矩陣 A 以 QR 形式分解為 A = QR, Q = q1 · · · qn 是 n × n 階正交
正規矩陣, R 是 n × n 階上三角形矩陣。 因為 Q−1 = QT ,
 
qT1
 h i
 . 
R = Q−1 A = QT A =  ..  a1 · · · an 。
 
qTn

矩陣 R 的主對角元為 (R)ii = qTi ai , 進行 QR 分解時可以選擇 qi 的正負符號使


(R)ii ≥ 0。 令 L = RT , 所以

AT A = (QR)T (QR) = RT QT QR = RT R = LLT 。

下三角形矩陣 L 的主對角元皆不為負。

85
(b) 當 A 是可逆時, A 的零空間僅含零向量, 對於 x 6= 0, xT AT Ax = (Ax)T (Ax) =
kAxk2 > 0, 這指出 AT A 是對稱正定矩陣。 AT A 的主對角之元皆為正值, 因為
(AT A)ii = aTi ai = eTi AT Aei > 0。 設 B = AT A, 將 B = LLT 以如下的分塊矩
陣表示
      
b11 bT21 l11 0T l11 lT21 2
l11 l11 lT21
B= =  = 。
b21 B22 l21 L22 0 LT22 l11 l21 l21 lT21 + L22 LT22

注意 b11 > 0, 由第 1 列可解出 l11 = b11 , l21 = √1 b21 , 由 (2,2) 元得到
b11
1
L22 LT22 = B22 − l21 lT21 = B22 − b21 bT21 。
b11
由於 B 是正定的, 對於任意不都為零的 x, y 就有
  
i b11 bT
21  x 
h
x yT 
b21 B22 y

= b11 x2 + 2x(bT21 y) + yT B22 y


 2
1 T 1
= b11 x − b21 y + yT B22 y − (bT y)2
b11 b11 21
 2  
1 T T 1 T
= b11 x − b y +y B22 − b21 b21 y > 0。
b11 21 b11
這說明 B22 − b111 b21 bT21 亦為對稱正定矩陣。 利用歸納法, 必定可以解出唯一的 L22
1 T
滿足 B22 − b22 b21 b21 = L22 LT22 。 

Problem 89

Suppse u and v are linear independent vectors in Rn .

(a) Find a nonzero vector w in Rn as a linear combination of u and v so that


w is perpendicular to u.

(b) Suppose u and v are two columns of A, i.e., A = [ u v ], find Q and R so


that A = QR, where Q has orthonormal columns and R is a 2 by 2 upper
triangular matrix.

(c) Let P be the orthogonal projection matrix onto the subspace spanned by
u and v. Express P in terms of Q only.

86
Solution

(a) 運用 Gram-Schmidt 正交化程序將 v 中的 u 分量去除即可。 令 w = v − cu, 按


題意 w 和 u 正交, 故 wT u = vT u − cuT u = 0, 所以 c = (vT u)/(uT u), 則
vT u
w=v− u。
uT u

(b) 由題 (a) 已知 w 和 u 正交, 再將他們正規化, 令 q1 = u/kuk, q2 = w/kwk, 此


即為 Q 的兩行, Q = [ q1 q2 ]。 接著設法將矩陣 A 的兩行表示為 q1 和 q2 的線
性組合, 設矩陣 R 的兩行為 r1 和 r2 , 以行為計算單位展開 A = QR:
h i
u = Qr1 = [ q1 q2 ]r1 = u w r1
kuk kwk
h i
v = Qr2 = [ q1 q2 ]r2 = u w r2 ,
kuk kwk
   
kuk ckuk
分別可解出 r1 =  , r2 =  , 其中 c = (vT u)/(uT u)。
0 kwk

(c) 投影矩陣 P 將向量投影至 A 的行空間, 利用題 (b) 的 QR 分解及性質 QT Q = I,


就有

P = A(AT A)−1 AT

= (QR)(RT QT QR)−1 (RT QT )

= (QR)(RT R)−1 (RT QT )

= Q(RR−1 (RT )−1 RT )QT

= QQT 。

Problem 90

Suppoes A, B and Q are n × n real matrices, and B = QT AQ, where Q is an


orthogonal matrix. Denote the (i, j) entry of A to be aij . Show that
X n
n X n X
X n
a2ij = b2ij .
i=1 j=1 i=1 j=1

87
Solution

執行矩陣乘法運算可得出
n X
X n
a2ij = tr(AT A),
i=1 j=1

因此問題變成證明 tr(AT A) = tr(B T B)。 因為 B = QT AQ, 且正交矩陣滿足 QT =


Q−1 , 便有 tr(B T B) = tr(QT AT QQT AQ) = tr(QT AT AQ) = tr(AT AQQT ) =
tr(AT A), 最後步驟利用了跡數的一個實用性質: 若 CD 和 DC 都是方陣, 但尺寸未必相
同, tr(CD) = tr(DC)。 

Problem 91

Suppose u1 , u2 , u3 form an orthonormal basis for R3 and v1 , v2 form an or-


thonormal basis for R2 . Let A = u1 vT1 + u2 vT2 .

(a) Show that AAT is an orthogonal projection matrix.

(b) Find the eigenvalues and corresponding eigenvectors of AAT .

(c) Show that AT A is the identity matrix.

Solution

(a) 因為 vT1 v2 = 0 且 vTi vi = 1, 計算

AAT = (u1 vT1 + u2 vT2 )(v1 uT1 + v2 uT2 ) = u1 uT1 + u2 uT2 。

AAT 是對稱的, 而且 (AAT )2 = AAT , 這是由於

(AAT )2 = (u1 uT1 + u2 uT2 )(u1 uT1 + u2 uT2 ) = u1 uT1 + u2 uT2 ,

同樣利用了 uT1 u2 = 0 且 uTi ui = 1。 任何滿足條件 P T = P 及 P 2 = P 的矩陣


便是正交投影矩陣。

(b) 投影矩陣 AAT 將 R3 空間的向量投影至 AAT 的行空間, 我們從題 (a) 知道 AAT


的行空間基底可為 {u1 , u2 }, 因此投影矩陣 AAT 不改變 u1 和 u2 , 驗證如下:

AAT u1 = (u1 uT1 + u2 uT2 )u1 = u1

AAT u2 = (u1 uT1 + u2 uT2 )u2 = u2 。

88
AAT 有特徵值 1, 1, 以及對應的特徵向量 u1 , u2 。 又由於 AAT 是實數對稱矩陣,
必定可選擇一組正交特徵向量, 因而推論 u3 也是特徵向量, 但 u3 與 AAT 的行空
間正交, 故 u3 屬於左零空間 N ((AAT )T ), 亦即 (AAT )T u3 = AAT u3 = 0。 綜
合上面的討論, AAT 的特徵值為 1, 1, 0, 而對應的特徵向量分別是 u1 , u2 , u3 。

(c) 重複利用正交正規向量的基本關係, 得出

AT A = (v1 uT1 + v2 uT2 )(u1 vT1 + u2 vT2 ) = v1 vT1 + v2 vT2 。

注意 AT Av1 = (v1 vT1 + v2 vT2 )v1 = v1 且 AT Av2 = (v1 vT1 + v2 vT2 )v2 = v2 ,
因為 v1 , v2 是 R2 的基底向量, 對於任意 x ∈ R2 總有唯一表示式 x = c1 v1 +c2 v2 ,
計算

AT Ax = AT A(c1 v1 + c2 v2 ) = c1 AT Av1 + c2 AT Av2 = c1 v1 + c2 v2 = x。

這指出對於任意 x ∈ R2 , 恆有 AT Ax = x, 由此可推論 AT A = I2 。 

Problem 92

Suppose we are given the following measurements: y = 2 at t = −1, y = 0 at


t = 0, y = −3 at t = 1, and y = −5 at t = 2.

(a) Find the best straight line fit to the above measurements.

(b) Suppose that instead of a straight line, we fit the data by a parabola:
y = c0 + c1 t + c2 t2 . Without actually solving the best parabola fit, will it
be possible to determine whether the best parabola fit has less fitting error
than that generated by the best line fit? Explain the reason.

Solution

(a) 令配適的直線為 y = c + dt, 假設給出的四組測量值滿足直線方程式, 就有

c−d = 2

c=0

c + d = −3

c + 2d = −5,

89
表示為矩陣形式 Ax = b, 其中 x = [c, d]T , 且
   
1 −1 2
   
   
1 0   0
A= 。
, b=
  

1 1   −3 
   
1 2 −5
由於此方程式並不一致, 我們改以最小平方法求解。 因為 A 的二行向量是線性獨立
的, 可順利得出最小平方解, 詳細過程如下:
   
4 2 −6
AT A =   , AT b =  。
2 6 −15

正規方程式 AT Ax̂ = AT b 即為
   
4 2 −6
  x̂ =  ,
2 6 −15

解出 x̂ = [−0.3, −2.4]T , 故最佳配適直線是 y = −0.3 − 2.4t。

(b) 由題 (a) 的最佳配適可以計算出誤差向量為


     
2 1 −1 −0.1
      
     
 0 1 0  −0.3  0.3 
e = b − Ax =  。
− =
      
 
 −3   1 1  −2.4  −0.3 
     
−5 1 2 0.1
若以二次曲線配適, 則有以下不一致的方程式 A′ x′ = b:
   
1 −1 1 2
   
   
1 0 0   0
 x =  。
   
1 1 1  −3 
   
1 2 4 −5
注意由直線配適得到的誤差向量 e 與矩陣 A′ 的第三個行向量正交:
 
1
 
h 
i 0 

  = 0。
−0.1 0.3 −0.3 0.1  
1
 
4

90
這表示誤差 e 已經與 A′ 的行空間正交, 也就是說二次曲線配適與一次曲線配適得出
的誤差相等。 

Problem 93

The trace of an n by n matrix A is defined to be the sum of its diagonal entries,


denoted by tr(A).

(a) Suppose A is an m × n matrix and B is an n × m matrix. Show by direct


calculation that tr(AB) = tr(BA).

(b) If A and B are 2 × 2 matrix such that


 
a b
AB − BA =  ,
c d

show that a + d = 0.

(c) Suppose m×n matrix A has linear independent columns, P is the projection
matrix onto the column space of A, and Q is the projection matrix onto
the left nullspace of A. Show that tr(P ) = n and tr(Q) = m − n.

Solution

(a) 對於矩陣 C, 設 (C)ij 為其第 (i, j) 元。 由跡數 (trace) 的定義得知


m
X m X
X n
tr(AB) = (AB)ii = (A)ij (B)ji
i=1 i=1 j=1
Xn X n Xm
tr(BA) = (BA)jj = (B)ji (A)ij 。
j=1 j=1 i=1

比較以上二式證得 tr(AB) = tr(BA)。

(b) 對原式等號兩端計算跡數:

tr(AB − BA) = tr(AB) − tr(BA) = 0 = a + d。

91
(c) 投影至 C(A) 的矩陣是 P = A(AT A)−1 AT , 利用題 (a) 的性質,

tr(P ) = tr(A(AT A)−1 AT ) = tr((AT A)−1 AT A) = tr(In ) = n。

因為 Q = Im − P , 就有 tr(Q) = tr(Im − P ) = tr(Im ) − tr(P ) = m − n。 

Problem 94

Suppose A is an m × n real matrix. Given some b ∈ Rm , it is known that the


equation Ax = b is solvable.

(a) Show that there is a unique vector y in the row space of A such that Ay = b.

(b) Show that among all possible solutions of Ax = b, the one in the row space
has the minimum length.

(c) Suppose A has independent rows and y is in the row space of A so that
Ay = b. Express y in terms of A and b.

Solution

(a) 設 x ∈ Rn 滿足方程式 Ax = b, 因列空間 C(AT ) 與零空間 N (A) 為正交互


補, x 可唯一分解為 x = y + z, 其中 y ∈ C(AT ), z ∈ N (A)。 代入方程式
Ax = A(y + z) = Ay + Az = Ay = b, 所以 y 亦為方程式的解。

假設 y, y′ ∈ C(AT ) 皆為方程式的解, 即 Ay = b, Ay′ = b, 將兩式相減可得


A(y − y′ ) = 0, 由此知 y − y′ ∈ N (A), 但是 y 和 y′ 的線性組合仍於列空間中,
因此 y − y′ ∈ C(AT ), 故 y − y′ ∈ N (A) ∩ C(AT ) = {0}, 必有 y′ = y, 證得列
空間內的解是唯一的。

(b) 承題 (a), 方程式有解 x = y + z, 其中 y ∈ C(AT ), z ∈ N (A), 且 y 是唯一存在。


因 y 和 z 是正交的, 解的長度為 kxk2 = (y + z)T (y + z) = kyk2 + kzk2 ≥ kyk2 ,
等號發生於 z = 0。

(c) 因為 A 有線性獨立的列, 列空間的任何向量 y 可以用唯一方式表示為 A 的列空列向


量之線性組合: y = AT c, c 為權重向量。 考慮方程式 Ay = AAT c = b 的求解問

92
題, 因 rankAAT = rankAT = m, AAT 是滿秩, 於是有唯一解 c = (AAT )−1 b,
亦即 y = AT (AAT )−1 b 滿足 Ay = b。 

Problem 95

Let W = span{1, x} ⊂ P2 , where P2 is a vector space of polynomials of degree


at most 2 has the standard inner product for p, q ∈ P2 as follows:
Z 1
hp, qi = p(x)q(x)dx.
0

Compute the orthogonal complement W ⊥ .

Solution

設 p(x) = a0 + a1 x + a2 x2 ∈ W ⊥ , 必定有 p(x) ⊥ 1 和 p(x) ⊥ x, 亦即


Z 1 Z 1 Z 1 Z 1
0 = hp, 1i = (a0 + a1 x + a2 x2 )1dx = a0 1dx + a1 xdx + a2 x2 dx
0 0 0 0
Z 1 Z 1 Z 1 Z 1
2 2
0 = hp, xi = (a0 + a1 x + a2 x )xdx = a0 xdx + a1 x dx + a2 x3 dx。
0 0 0 0

積分後可得下列線性方程
1 1
a0 + a1 + a2 = 0
2 3
1 1 1
a0 + a1 + a2 = 0。
2 3 4
解出 a0 = 61 α, a1 = −α, a2 = α, 其中 α 是自由變數, 得到
 
1
p(x) = α − x + x2 。
6

所以, W ⊥ = span 16 − x + x2 。 

Problem 96

Let C[0, 1] be the space of continuous functions on the interval [0, 1] with the
inner product defined by
Z 1
hf, gi = f (x)g(x)dx.
0

Let P2 = span{1, x, x2 }. Apply the Gram-Schmidt algorithm to the basis 1, x, x2


to obtain an orthonormal basis for P2 .

93
Solution

令 u1 = 1, u2 = x, u3 = x2 。 Gram-Schmidt 正交化程序如下:

v1 = u1 = 1
hv1 , u2 i 1/2 1
v2 = u2 − v1 = x − 1=x−
hv1 , v1 i 1 2
hv1 , u3 i hv2 , u3 i
v3 = u3 − v1 − v2
hv1 , v1 i hv2 , v2 i
 
1/3 1/12 1 1
= x2 − 1− x− = x2 − x + 。
1 1/12 2 6

再將 v1 , v2 , v3 予以標準化:

1 1
q1 = p v1 = v1 = 1
hv1 , v1 i 1
   
1 1 1 √ 1
q2 = p v2 = p x− =2 3 x−
hv2 , v2 i 1/12 2 2
   
1 1 2 1 √ 2 1
q3 = p v3 = p x −x+ =6 5 x −x+ 。
hv3 , v3 i 1/180 6 6

Problem 97

Let C[0, 1] be the space of continuous functions on the interval [0, 1] with the
inner product defined by
Z 1
hf, gi = f (x)g(x)dx.
0

Find the closet straight line to f (x) = x2 over 0 ≤ x ≤ 1.

Solution

令 p = x2 , v1 = 1, v2 = x, 最近似直線 g(x) = c1 + c2 x 滿足下列正規方程式 (normal


equation):

hv1 , p − c1 v1 − c2 v2 i = 0

hv2 , p − c1 v1 − c2 v2 i = 0。

94
將上面兩式展開整理成矩陣方程, 如下:
    
hv , v i hv1 , v2 i c hv , pi
 1 1   1 =  1 ,
hv2 , v1 i hv2 , v2 i c2 hv2 , pi

計算可得     
1 1
1 2  c1 
 = 3 ,
1 1 1
2 3 c2 4

解出 c1 = − 16 , c2 = 1, 故最近似直線是 g(x) = x − 61 。 

Problem 98

Let X be a subspace of an inner product space V. Prove the following statements.

(a) X ∩ X ⊥ = {0}

(b) X + X ⊥ = V

(c) dim X + dim X ⊥ = dim V

(d) (X ⊥ )⊥ = X

Solution

(a) 令 x ∈ X 且 x ∈ X ⊥ , 則 hx, xi = 0, 所以 x = 0。

(b) 令 n = dim V 。 若 X = {0} 或 X = V, 顯然有 X + X ⊥ = V 。 以下考慮


dim V = k 且 0 < k < n。 令 {x1 , . . . , xk } 為 X 的一組標準正交 (orthonormal)
基底。 對於任一 v ∈ V, 寫出 x = c1 x1 + · · · + ck xk , 其中 ci = hxi , vi, 則
y = v − x 正交於 X 。 證明如下: 對於每一 i = 1, . . . , k,
* k
+
X
hxi , yi = xi , v − cj xj
j=1
k
X
= hxi , vi − cj hxi , xj i
j=1

= ci − ci = 0,

95
得知 y 正交於所有基底向量 x1 , . . . , xk , 因此 y ∈ X ⊥ 。 所以, 任一 v ∈ V 皆可分
解成 v = x + y, 其中 x ∈ X , y ∈ X ⊥ , 證得 V = X + X ⊥ 。

(c) 由 (b) 可知 dim V = dim(X + X ⊥ ), 由 (a) 可知 dim(X + X ⊥ ) = dim X +


dim X ⊥ 。

(d) 利用 (c) 恆等式: dim X + dim X ⊥ = dim V, 將 X 取代為 X ⊥ , 就有 dim X ⊥ +


dim(X ⊥ )⊥ = dim V, 立得 dim(X ⊥ )⊥ = dim X 。 若 x ∈ X , 則 x ⊥ X ⊥ , 這意
味 X ⊆ (X ⊥ )⊥ 。 但子空間 X 和 (X ⊥ )⊥ 有相同的維度, 因此證明 (X ⊥ )⊥ = X 。

Problem 99

Let A and B be an m × n and m × p real matrices, respectively. If N (AT ) ⊆


N (B T ), prove that C(B) ⊆ C(A).

Solution

因為 N (AT ) ⊆ N (AT ) + N (B T ), 利用集合容斥性質即得 (N (AT ) + N (B T ))⊥ ⊆


N (AT )⊥ , 其中 ⊥ 代表正交補集。 同樣地, (N (AT ) + N (B T ))⊥ ⊆ N (B T )⊥ , 合併以上
結果可得
(N (AT ) + N (B T ))⊥ ⊆ N (AT )⊥ ∩ N (B T )⊥ 。

已知 N (AT ) ⊆ N (B T ), 就有 N (AT )+N (B T ) = N (B T ), 因此 N (B T )⊥ ⊆ N (AT )⊥ ∩


N (B T )⊥ 。 最後將子空間正交補集關係 N (AT )⊥ = C(A) 和 N (B T )⊥ = C(B) 代入上
式, 即得 C(B) ⊆ C(A) ∩ C(B), 故可推論 C(B) ⊆ C(A)。 

Problem 100

An n × n Householder matrix H has the form H = I − 2uuT , where kuk = 1. Let


x, y be nonzero vectors in Rn . If kxk = kyk, show that there exists a Householder
matrix H such that Hx = y.

Solution

令 H = I − 2uuT , 其中 kuk = 1, 且 Hx = y, 也就有

Hx = (I − 2uuT )x = x − 2(uT x)u = y,

96
亦即
2(uT x)u = x − y。

觀察出

(x − y)T (x + y) = xT x + xT y − yT x − yT y = kxk2 − kyk2 = 0。

若 x 6= y, 令 u = x−y
kx−yk , 改寫 x = 21 [(x − y) + (x + y)], 乘開確認

(x − y)T
2(uT x)u = [(x − y) + (x + y)]u = kx − yku = x − y。
kx − yk

若 x = y, 則任意選擇單位長向量 u ∈ span{x⊥ } 使得 uT x = 0。 

Problem 101

Let A = [aij ] be an n × n matrix such that aij = 1 or −1 for every i, j, and all
rows are mutually orthogonal. If A has an p × q submatrix whose entries are all
1, show that pq ≤ n.

Solution

令 P 和 Q 分別代表 A 的 p × q 子陣的列行指標集合, 對於所有 i ∈ P , j ∈ Q, aij = 1。


P
將 A 的各列表示為行向量 r1 , . . . , rn , 並設 x = [xj ] = i∈P ri 。 因為 A 的各列彼此正
交, 可知
!T  
X X X
kxk2 = ri  rj  = rTi ri = pn。
i∈P j∈P i∈P
P
但是 xj = i∈P aij , 推論

n n
!2
X X X
2
kxk = x2j = aij
j=1 j=1 i∈P
!2 !2
X X X X
= aij + aij
j∈Q i∈P j ∈Q
/ i∈P
!2
X X X
2
= p + aij ≥ p2 q 。
j∈Q j ∈Q
/ i∈P

合併以上結果即得 pn ≥ p2 q, 也就有 n ≥ pq 。 

97
Problem 102

Let V be a finite dimensional inner product space, and X and Y be two subspaces
of V. If dim X < dim Y, show that there exists a nonzero vector y in Y such that
y is orthogonal to all vectors in X .

Solution

為簡化符號, 令 dim V = n, dim X = p, dim Y = q, 且 q > p。 利用子空間維度的容斥


關係, 可得

dim(X ⊥ + Y) = dim X ⊥ + dim Y − dim(X ⊥ ∩ Y) ≤ n。

因為 dim X ⊥ = n − p, 可得

dim(X ⊥ ∩ Y) ≥ (n − p) + q − n = q − p > 0。

這說明 X ⊥ ∩ Y =
6 {0}, 亦即存在 y 6= 0 使得 y ∈ Y 且 y ∈ X ⊥ ; 也就是說, 對於任何
x ∈ X , hx, yi = 0。 

Problem 103

Let X and Y be subspaces of an inner product space V. Show that

(a) (X + Y)⊥ = X ⊥ ∩ Y ⊥ ,

(b) (X ∩ Y)⊥ = X ⊥ + Y ⊥ .

Solution

(a) 利用集合的容斥性質, 由 X ⊆ X +Y 可得 (X +Y)⊥ ⊆ X ⊥ 。 同樣道理, (X +Y)⊥ ⊆


Y ⊥ , 合併以上結果即得到 (X + Y)⊥ ⊆ X ⊥ ∩ Y ⊥ 。 接者考慮相反方向關係, 若
z ∈ X ⊥ ∩ Y ⊥ , 則對於任意 x ∈ X , y ∈ Y, hz, xi = 0 且 hz, yi = 0。 換句話說,
對於任意 u ∈ X + Y, 必有 hz, ui = 0, 證得 X ⊥ ∩ Y ⊥ ⊆ (X + Y)⊥ 。

(b) 利用題 (a) 結果, 將 X 和 Y 分別以 X ⊥ 和 Y ⊥ 取代, 即有 (X ⊥ + Y ⊥ )⊥ =


(X ⊥ )⊥ ∩ (Y ⊥ )⊥ = X ∩ Y 。 

98
Problem 104

Let T be a linear transformation on an inner product space V, satisfying

hT (x), yi = − hx, T (y)i .

If λ is a real eigenvalue of T , show that λ = 0.

Solution

令 λ 為線性變換 T 的一特徵值, 對應的特徵向量為 x, 則 hT (x), xi = − hx, T (x)i 蘊


含 hλx, xi = − hx, λxi。 根據內積性質, hλx, xi = λ̄ hx, xi 且 hx, λxi = λ hx, xi。 由於
x 6= 0, 故得 λ + λ̄ = 0, 這說明 λ = 0 若 λ 為實數。 

99
行列式
Problem 105

Explain why the following determinant is equal to zero:

0 0 0 a14 a15
0 0 0 a24 a25
0 0 0 a34 a35 .
a41 a42 a43 a44 a45
a51 a52 a53 a54 a55

For an n by n matrix A = [aij ], what is the smallest m × m zero principal


submatrix, aij = 0, i, j = 1, . . . , m, making det A = 0?

Solution

行列式的前三個行向量為線性相關, 所以行列式等於零; 也就是說, 如果零主子陣 「太大」, 將


使行列式為零。 當零主子陣為 m × m 階時, 有 m 個 n-維向量擠在維度是 n − m 的子空
間中, 這 m 個向量要為獨立的條件是必須有足夠的活動空間, 亦即 n − m ≥ m; 反過來
說, 如果 m > n − m, 則此 m 個向量必定是線性相關, 因此使行列式為零的最小 m 值為
⌈ n+1
2 ⌉。 

Problem 106

Let An be the tridiagonal n × n matrix with 2’s on the main diagonal, 1’s imme-
diately above the main diagonal, 3’s immediately below the main diagonal, and
0’s everywhere else:  
2 1 0 0 ... 0
 
 
3 2 1 0 ... 0
 
 
0 3 2 1 ... 0
An = 

.

0 0 3 2 ... 0
 
 .. .. .. .. . . .. 
. . . . . .
 
0 0 0 0 ... 2

100
(a) Explicitly calculate detAn , for n = 1, 2, 3, 4, and express detAn in terms of
detAn−1 and detAn−2 .

(b) Derive the formula for detAn .

Solution

(a) 前面幾個低階行列式可以很容易求出

detA1 = det[2] = 2

2 1
detA2 = =1
3 2

2 1 0
2 1 1 0
detA3 = 3 2 1 =2 −3
3 2 3 2
0 3 2

= 2detA2 − 3detA1 = 2 · 1 − 3 · 2 = −4

2 1 0 0
2 1 0 1 0 0
3 2 1 0
detA4 = =2 3 2 1 −3 3 2 1
0 3 2 1
0 3 2 0 3 2
0 0 3 2

= 2detA3 − 3detA2 = 2 · (−4) − 3 · (1) = −11。

由此可歸納得到 detAn 的遞迴公式

detAn = 2detAn−1 − 3detAn−2 。

(b) 將題 (a) 的遞迴公式寫成矩陣形式:


    
detAk+2 2 −3 detAk+1
 =  。
detAk+1 1 0 detAk
 
detAk+1
令 uk =  , A 為上式的係數矩陣, 便有差分方程式 uk+1 = Auk , 初
detAk
始值為 u1 = [1, 2]T 。 將矩陣 A 正交化為 A = SΛS −1 , S 和 Λ 分別為特徵向量矩

101
陣和特徵值矩陣:
      
2 −3 λ1 λ2 λ1 0 1 −λ
A= =   √1  2
,
1 0 1 1 0 λ2 2 2i −1 λ1
√ √
其中 λ1 = −1 + 2i, λ2 = −1 − 2i。 差分方程式的解為 un = An−1 u1 , 計算
矩陣的冪
  
 
λ1 λ2 λ1n−1 0
1 1 −λ2
An−1 =   √  
1 1 0 λ2n−1 2 2i −1 λ1
 
1  λn1 − λn2 −λn1 λ2 + λ1 λn2
= √ 。
2 2i λn−1 − λn−1 −λn−1 λ2 + λ1 λn−1
1 2 1 2

再將初始值 u1 和得到的 An−1 代入 un = An−1 u1 可得出解

1
detAn = √ (λ1n−1 − λ2n−1 − 2λ1n−1 λ2 + 2λ1 λ2n−1 )。
2 2i

Problem 107

Calculate the determinant of the following 6 × 6 matrix:


 
1 1 1 1 0 1
 
 
1 0 1 1 1 1
 
 
0 1 1 1 1 1
A= 
.

1 1 1 1 1 0
 
 
1 1 0 1 1 1
 
1 1 1 0 1 1

102
Solution

觀察發現給出的矩陣每一列及每一行僅含一零元, 於是將 A 改寫為排列矩陣 P 和矩陣 B


的乘積, 而 B 的主對角元皆為零, 如下:
  
0 0 0 0 1 0 0 1 1 1 1 1
  
  
0 1 0 0 0 0  1 0 1 1 1 1
  
  
1 0 0 0 0 0  1 1 0 1 1 1
A = PB =   。
  
0 0 0 0 0 1  1 1 1 0 1 1
  
  
0 0 1 0 0 0  1 1 1 1 0 1
  
0 0 0 1 0 0 1 1 1 1 1 0

排列矩陣 P 其列次序為 521634, 經過 3 次列交換可轉換為單位矩陣, 因此 detP = −1。 將


矩陣 B 改寫成 B = uuT − I, 其中 u = [1, 1, 1, 1, 1, 1]T , 而 6 × 6 階方陣 uuT 的每一
個元皆為 1。 因 uuT 為對稱矩陣, 必可找出互為正交的完整特徵向量集合。 計算 (uuT )u =
(uT u)u = 6u, 令 v ∈ Span{u}⊥ , 則 uT v = 0, 因此有 (uuT )v = (uT v)u = 0。
因為 dimSpan{u}⊥ = 5, 矩陣 uuT 的特徵值為 6, 0, 0, 0, 0, 0, 得知 B 的特徵值則為
5, −1, −1, −1, −1, −1, 故 detB = −5, 所以 detA = (detP )(detB) = (−1)(−5) =
5。 

Problem 108

Let  
A B
P = ,
C D
where A, B, C, D are n × n matrices. If D is invertible and CD = DC, show that

detP = det(AD − BC).

Solution

分塊矩陣的行列式有一個有效而實用的性質: 三角形分塊矩陣的行列式等於主對角分塊行列
式的乘積。 因此, 若三角形分塊矩陣的主對角分塊都是單位矩陣 (其階數未必相同), 則行列
式值為 1。 為利用上述性質, 我們設計一個矩陣乘法運算: 令 P 和一個主對角為單位矩陣的

103
三角形分塊矩陣相乘, 並使其乘積亦為三角形分塊矩陣, 下為一例:
    
A B In 0 A − BD−1 C B
  = 。
C D −D−1 C In 0 D

三角形分塊其 (2,1) 元設為 −D−1 C 的目的是使矩陣乘積也為三角形分塊矩陣。 剩下來的


工作是計算矩陣的行列式, 利用前述性質, 等號左邊的行列式為

A B In 0
· = detP · detIn · detIn = detP,
C D −D −1 C In

等號右邊的行列式則為

A − BD−1 C B
= det(A − BD−1 C) · detD
0 D

= det(AD − BD−1 CD)

= det(AD − BD−1 DC)

= det(AD − BC)。

我們使用了已知條件 CD = DC 。 上面左右兩端的兩行列式相等, 於是得證。 

Problem 109

Let A and B be m × m and n × n matrices, respectively. Derive a formula for


0 A
det  .
B C

Solution

考慮下面的分塊矩陣乘法
    
0 A 0 In A 0
  = 。
B C Im 0 C B

計算等號兩邊行列式, 利用矩陣乘積行列式可乘性質, 可得

0 A 0 In A 0
= 。
B C Im 0 C B

104
執行 m + n 次列交換運算, 每次列交換改變行列式正負符號, 因此

0 In Im 0
= (−1)m+n = (−1)m+n 。
Im 0 0 In

因為下三角形分塊矩陣的行列式等於主對角分塊行列式乘積, 也就有

A 0
= (detA)(detB),
C B

所以
0 A
= (−1)m+n (detA)(detB)。
B C


Problem 110

Let A and B be n by n matrices over C. Prove that

A B
= det(A + B) det(A − B).
B A

Solution

設 (A + B)x = λx, (A − B)y = µy, 則


         
A B x x A B y y
   = λ ,    = µ 。
B A x x B A −y −y
 
A B
上兩式指出方陣   包含 A + B 的特徵值 λ 和 A − B 的特徵值 µ, 因此存在以下
B A
特徵多項式關係:

A − tIn B
= det ((A + B) − tIn ) det ((A − B) − tIn ) 。
B A − tIn

代入 t = 0 即證得所求。 

105
Problem 111

Suppose A and B are n × n real matrices. Let


 
A B
C= .
−B A

Show that detC ≥ 0.

Solution

設計分塊矩陣乘法
     
I iI A B I −iI A − iB 0
   = ,
0 I −B A 0 I −B A + iB

其中 i = −1。 等號兩邊同時計算行列式, 因為

I iI I −iI
= 1, = 1,
0 I 0 I

就有

A B A − iB 0
=
−B A −B A + iB

= det(A + iB) det(A + iB)

= det(A + iB) det(A + iB) ≥ 0。

Problem 112
 
A B
Suppose A, B, C and D are n × n matrices. If rank   = n, show that
C D

|A| |B|
= 0.
|C| |D|

106
Solution

分開兩個情況討論。 若 A 是可逆的, 則 rankA = n, 考慮


    
I 0 A B A B
  = 。
−CA−1 I C D 0 D − CA−1 B
所以 D−CA−1 B = 0, 亦即 D = CA−1 B 。 上式等號兩邊同時計算行列式, 可得 detD =
(detC)(detA−1 )(detB), 也就有 |A| · |D| = |B| · |C|。 若 A 不可逆, 只要證明 detB = 0
或 detC = 0 即可。 若 B 為可逆矩陣, rankB = n, 就有
    
I 0 A B A B
  = ,
−DB −1 I C D C − DB −1 A 0
推知 C = DB −1 A, 故 detC = (detD)(detB −1 )(detA) = 0。 

Problem 113

Suppose A and B are n by n orthogonal matrices such that

detA + detB = 0.

Prove that det(A + B) = 0.

Solution

利用行列式性質

det(A + B) = det(A + B)T = det(AT + B T )。

等號兩邊分別左乘 detA 和 detB, 使用行列式可乘公式和正交矩陣關係, 可得

(detA) det(A + B) = (detA) det(AT + B T ) = det(AAT + AB T ) = det(I + AB T )

(detB) det(A + B) = det(BAT + BB T ) = det(BAT + I)T = det(I + AB T )。

將兩式相減, 就有
(detA − detB) det(A + B) = 0。

若 det(A + B) 6= 0, 則 detA = detB 。 由已知 detA + detB = 0 可推得 detA = 0, 這


與 A 是正交矩陣矛盾, 所以必定有 det(A + B) = 0。 

107
Problem 114

Suppose A and B are n × n matrices satisfying AB = −BA.

(a) Find the flaw in the statement: Taking determinants gives (detA)(detB) =
−(detB)(detA), so either A or B must have zero determinant. Thus AB =
−BA is only possible if A or B is singular.
   
a b s t
(b) In the case of n = 2, let A =  , B =  . Express the relation
c d u v
AB + BA = 0 in the form of matrix equation Cx = 0, where C is a 4
by 4 matrix, and x = [s, t, u, v]T . Find the determinant of C, and identify
the condition for detC = 0. If B 6= 0, find all possible 2 × 2 A’s and B’s
satisfying AB + BA = 0.

Solution

(a) 注意, 行列式並非矩陣的線性運算。 若 A 是 n × n 階矩陣, det(kA) = kn detA, 所


以 det(−BA) = det(−B)(detA) = (−1)n (detB)(detA)。 因此當 n 是偶數時,
此題陳述並不為真。

(b) 將 A, B 以給出的矩陣形式代入, 並展開 AB + BA = 0, 可以得到


     
a b s t s t a b
  +  
c d u v u v c d
 
2as + bu + ct at + bv + bs + dt
=  = 0。
au + cs + cv + du ct + bu + 2dv

設 x = [s, t, u, v]T , 上式等價於


    
2a c b 0 s 0
    
    
 b a+d 0 b  t   0 
Cx =    =   。
    
 c 0 a + d c  u   0 
    
0 c b 2d v 0

108
執行標準的行列式計算程序, 先以列運算初步化簡 C, 再以共因子展開, 計算如下:

2a c b 0 2a 0 0 −2d
b a+d 0 b b a+d 0 b
detC = =
c 0 a+d c c 0 a+d c
0 c b 2d 0 c b 2d

a+d 0 b b a+d 0
= 2a 0 a+d c + 2d c 0 a+d 。
c b 2d 0 c b

剩下來的計算並不困難, 持續以共因子展開並重組化簡, 最終可以得到結果:

detC = 2a [(a + d)(2d(a + d) − bc) − bc(a + d))] − 2d [2bc(a + d)]

= 4a(a + d)(ad + d2 − bc) − 4bcd(a + d)

= 4(a + d)(a2 d + ad2 − abc − bcd)

= 4(a + d)2 (ad − bc)。

當 a + d = 0 或 ad − bc = 0 時, detC = 0。 此即為矩陣 A 必須滿足的條件, 當


C 的行列式為零時, C 的零空間存在非平凡解 x 6= 0, 而這些非平凡解 x 即構成對
應的 B 矩陣。 

Problem 115

Suppose A = [aij ] is an n × n matrix. Let adjA denote the adjoint of A; that is,
adjA is the n × n matrix whose (i, j)-entry is the cofactor (−1)i+j detAji of aji ,
where Aji is the submatrix obtained from A by deleting the j-th row and the i-th
column. Prove the following statements.

(a) det(adjA) = (detA)n−1

(b) adj(adjA) = (detA)n−2 A

(c) adj(AB) = (adjB)(adjA)

(d) adjAT = (adjA)T

109
(e) adj(kA) = kn−1 adjA

(f) adj(SAS −1 ) = S(adjA)S −1 for nonsingular S.

(g) If A is symmetric, so is adjA.

(h) If A is upper triangular, so is adjA.

Solution

伴隨矩陣 adjA 有幾個重要的性質:

A(adjA) = (adjA)A = (detA)I 。

若 A 是可逆的, adjA = (detA)A−1 。 若 A 不可逆, 則 adjA 也不可逆, 若 rankA = n−1,


rank(adjA) = 1, 又若 rankA < n − 1, rank(adjA) = 0, 亦即 A = 0, 證明從略。

(a) 若 A 是可逆矩陣, 利用上述性質計算


det(adjA) = det (detA)A−1 = (detA)n det(A−1 )

= (detA)n (detA)−1 = (detA)n−1 。

若 A 不可逆, detA = 0, det(adjA) = 0, 上式仍成立。

(b) 若 A 是可逆的, 利用前述伴隨矩陣性質, 將 A 取代為 adjA, 就有

adj(adjA) = det(adjA)(adjA)−1 。

上式中, (adjA)−1 = ((detA)A−1 )−1 = (detA)−1 A, 再利用題 (a) 結果, 可得

adj(adjA) = (detA)n−1 (detA)−1 A = (detA)n−2 A。

若 A 不可逆, 由前述 rank(adjA) 性質, 不難證明 rank(adj(adjA)) = 0, 也就有


adj(adjA) = 0。

(c) 先考慮 A, B 都是可逆的情況, 將 AB 代入上述伴隨矩陣性質,

adj(AB) = (det(AB))(AB)−1 = (detA)(detB)B −1 A−1 = (adjB)(adjA)。

110
若 A 或 B 不可逆, 將 A, B 分別以 A + ǫI 和 B + ǫI 替換, 上式便為

adj((A + ǫI)(B + ǫI)) = (adj(B + ǫI))(adj(A + ǫI))。

利用連續性, 當 ǫ → 0, 上式趨於前面得到的可逆矩陣的關係式。

(d) 由伴隨矩陣定義可知 adjAT 的 (i, j) 元為 (−1)i+j detATji 也就是 (−1)i+j detAij ,


此即為 (adjA)T 的 (i, j) 元。

(e) 因為 (−1)i+j det(kAji ) = (−1)i+j kn−1 detAji 得知此題陳述為真。

(f) 由題 (c),

adj(SAS −1 ) = (adjS −1 )(adjA)(adjS)

= (detS −1 )S(adjA)(detS)S −1

= S(adjA)S −1 。

(g) 由題 (d) 得知 (adjA)T = adjAT = adjA, 因 AT = A。

(h) 設 A 為上三角形矩陣, aij = 0, i > j 。 伴隨矩陣 adjA 的 (i, j) 元為 (−1)i+j detAji ,


以共因子展開不難確認當 i > j, 子矩陣 Aji 不可逆, 即 detAji = 0。 

Problem 116

Suppose A is an n × n matrix. What are the possible values of the rank of adjA?

Solution

我們分開幾種 rankA 的可能情況。 若 rankA = n, A 是可逆矩陣, det(A) 6= 0, 則伴隨


矩陣 adjA = det(A)A−1 也是可逆的, 故 rank(adjA) = n。 當矩陣 A 不為可逆時, 我們
直接計算矩陣的秩。 利用兩矩陣之積的伴隨矩陣性質 adjEA = (adjA)(adjE), 並設 E 為
基本矩陣, 因為 E 是可逆的, adjE 也是可逆矩陣。 推知基本運算不會改變矩陣的秩, 也不
改變伴隨矩陣的秩, 亦即 rank(adjEA) = rank(adjA)。 令 n × n 階矩陣 R 為 A 的最簡
列梯形矩陣, 於是有 rank(adjR) = rank(adjA)。 考慮以分塊形式表示的最簡列梯形矩陣

111
 
Ir F
R= , 當 rankR = r = n − 1 時, 由 adjR 的定義得到
0 0
 
0 0 ··· 0
 
 
 0 0 ··· 0 
adjR =  . . . . 。
 
 .. .. . . .. 
 
0 0 ··· 1

adjR 僅有一非零列, 因此 rank(adjR) = 1。 當 rankR = r < n − 1 時, R 的線性獨立列


和行的總數小於 n − 1, 就有 adjR = 0, 故 rank(adjR) = 0。 總結以上結果, rank(adjA)
共有 3 種可能: 0, 1, 以及 n。 

Problem 117

Consider the following linear equation:


    
A u x b
  = ,
vT d xn+1 bn+1

where A is a nonsingular n × n matrix, and u, v, and b are vectors in Rn .

(a) Find an n × n matrix n


 Y and a vector z in R so that multiplying both sides
Y 0
of the system by   yields an equivalent echelon form, i.e.,
zT 1
    
Y 0 A u In ∗
  = ,
zT 1 vT d 0T ∗

where ∗ means arbitrary vector or scalar.


 
A u
(b) Show that the determinant of   has the form
vT d

A u
= d (detA) − vT (adjA)u.
vT d

112
(c) Show that the determinant of A + uvT has the formula

det(A + uvT ) = detA + vT (adjA)u.

(d) Show that if d − vT A−1 u 6= 0, then the solution of the system is given by

x = A−1 (b − xn+1 u),


bn+1 − vT A−1 b
xn+1 = .
d − vT A−1 u

Solution

(a) 直接將分塊矩陣乘開, 得到下式:

Y A = In

zT A + vT = 0T 。

由第一式可知 Y = A−1 , 第二式右乘 A−1 可得 zT = −vT A−1 , 解出下三角形分


塊矩陣為  
A−1 0
 。
−vT A−1 1

(b) 將題 (a) 得到的下三角形分塊矩陣和給出的係數矩陣相乘可以得到下面的梯形矩陣:


    
A−1 0 A u In A−1 u
  = 。
−vT A−1 1 vT d 0T d − vT A−1 u

因為三角形分塊矩陣其行列式等於主對角分塊行列式的乘積, 於是有

A−1 0
= detA−1 = (detA)−1 ,
−vT A−1 1

In A−1 u
= d − vT A−1 u。
0T d− vT A−1 u

由此可算出所求的行列式

A u
= (detA)(d − vT A−1 u) = d (detA) − vT (adjA)u。
vT d

113
我們使用了基本關係 A(adjA) = (adjA)A = (detA)I, 當 A 是可逆時, adjA =
(detA)A−1 。

(c) 我們可以設計以下分塊矩陣乘法以產生主對角分塊 A + uvT :


    
A u In 0 A + uvT u
  = 。
−vT 1 vT 1 0T 1

引用三角形分塊行列式為其主對角分塊行列式乘積, 可知

In 0
=1
vT 1

A + uvT u
= det(A + uvT )。
0T 1

再利用題 (b) 得到的行列式公式, 即得

A u
= detA + vT (adjA)u,
−vT 1

如此便導出關係式 det(A + uvT ) = detA + vT (adjA)u。

(d) 考慮對應給出方程式的增廣矩陣:
 
A u b
 。
vT d bn+1

將題(a) 求得的下三角分塊矩陣和上面的增廣矩陣相乘, 乘積為一梯形矩陣:


    
A−1 0 A u b In A−1 u A−1 b
  = 。
−vT A−1 1 vT d bn+1 0T d − vT A−1 u bn+1 − vT A−1 b

與原方程式等價的簡化方程式為
    
In A−1 u x A−1 b
  = ,
0T d − vT A−1 u xn+1 bn+1 − vT A−1 b

114
展開之後得到以下等價方程式:

x + A−1 uxn+1 = A−1 b

(d − vT A−1 u)xn+1 = bn+1 − vT A−1 b。

當 d − vT A−1 u 6= 0 時, 解為 x = A−1 b − A−1 xn+1 u, 而 xn+1 = (bn+1 −


vT A−1 b)(d − vT A−1 u)−1 。 

Problem 118

Suppose A and B are n by n matrices and suppose there exists a nonzero vector
x such that Ax = 0 and a vector y such that Ay = Bx. If Aj is the matrix
obtained from A by replacing its jth column by the jth column of B, show that
n
X
detAj = 0.
j=1

Solution

由已知 Ax = 0 且 x 6= 0, 因此 A 不是可逆的, 故 detA = 0, rankA < n。 若


P
rankA < n−1, 則 Aj 必包含線性相依的行向量, 因此也不為可逆, 就有 nj=1 detAj = 0。
接下來我們只需要考慮 rankA = n − 1 的情況, 此時 dimN (A) = 1, 這確定了 N (A) 必
定由 x 擴張而成。
令矩陣 C = [cij ] 的元為 A 的共因子 (cofactor), 其轉置即為伴隨 (adjoint) 矩陣,
C T = adjA。 以 Aj 的第 j 行做共因子展開, 得到

detAj = b1j c1j + b2j c2j + · · · + bnj cnj ,

因此有
n
X n
X
detAj = (b1j c1j + b2j c2j + · · · + bnj cnj ) = tr(BC T ) = tr(C T B)。
j=1 j=1

剩下的問題是證明 tr(C T B) = 0。
由關係式 AC T = C T A = (detA)I 得知 AC T = C T A = 0, 也就有 AC T B = 0,
此式表明 C T B 的每行都屬於 A 的零空間, 因此 C T B 的每個行向量都與 x 共線。 另外,

115
C T Bx = C T Ay = 0y = 0, 由於 x 擴張出 C T B 的行空間, 可推得 (C T B)2 = 0。 令
C T B 的特徵值為 λ, 則零矩陣 (C T B)2 的特徵值為 λ2 = 0, 這說明 C T B 的特徵值全都
為零, 而 tr(C T B) 為其所有的特徵值之和, 故 tr(C T B) = 0。 

Problem 119

If  
2 1 0
 
 
adjA =  4 3 2 ,
 
−2 −1 2
find A.

Solution

考慮伴隨矩陣主要關係式
A(adjA) = (det A)I 。

因為 det(adjA) = 4, adjA 可逆, 所以 A = (det A)(adjA)−1 。 下面分別求出 det A 和


(adjA)−1 。 計算上述關係式等號兩邊的行列式, 因為 A 是一 3×3 階矩陣, 可得 (det A) det(adjA) =
(det A)3 , 解出 det A = ±2 或 det A = 0 (此解與 A 可逆相矛盾)。 最後求得
 
2 − 12 1
2 

−1  
(adjA) =  −3 1 −1  ,
 
1 1
2 0 2

得到兩個答案:  
4 −1 1
 
 
A =  −6 2 −2 
 
1 0 1
或  
−4 1 −1
 
 
A= 6 −2 2 。
 
−1 0 −1


116
Problem 120

Let  
1 2 3 4 5
 
 
 6 7 8 9 10 
 
 
A =  11 12 13 14 15  .
 
 
 16 17 18 19 20 
 
21 22 23 24 25
What is det(A + I5 )?

Solution

觀察發現 A 可表示為
   
1 2 3 4 5 1 0
   
   
 6 7 8 9 10   1 5  
    1 2 3 4 5
   
A =  11 12 13 14 15  =  1 10    = U V,
    1 1 1 1 1
   
 16 17 18 19 20   1 15 
   
21 22 23 24 25 1 20
 
15 200
利用 Sylvester 行列式定理 det(I5 + U V ) = det(I2 + V U ), 因為 V U =  ,
5 50
即得
16 200
det(A + I5 ) = det(I2 + V U ) = = −184。
5 51

另一個做法: 利用特徵值之積計算行列式。 令 V U 的特徵值為 λ1 和 λ2 。 因為 A = U V


和 V U 有相同的非零特徵值, 推知 A 有特徵值 λ1 , λ2 , 0, 0, 0, 故 A + I 有特徵值 λ1 + 1,
λ2 + 1, 1, 1, 1, 就有 det(A + I5 ) = (λ1 + 1)(λ2 + 1) · 1 · 1 · 1 = λ1 λ2 + λ1 + λ2 + 1。
但是 λ1 λ2 = det(V U ) = −250, λ1 + λ2 = trace(V U ) = 65, 所以 det(A + I) =
−250 + 65 + 1 = −184。 

117
Problem 121

Find the determinant and inverse of the n × n matrix


 
a+b b ··· b
 
 
 b a + b ··· b 
..  .
 
 .. .. ..
 . . . . 
 
b b ··· a + b

Solution

令 A 代表給定的 n × n 階矩陣。 先計算 A 的行列式, 將第 2, 3, . . . , n 行減去第 1 行, 再


將第 2, 3, . . . , n 列加至第 1 列, 可得一下三角形行列式:

a+b b b ··· b a + b −a −a · · · −a
b a+b b ··· b b a 0 ··· 0
b b a + b ··· b = b 0 a ··· 0
.. .. .. .. .. .. .. .. .. ..
. . . . . . . . . .
b b b ··· a + b b 0 0 ··· a

a + nb 0 0 · · · 0
b a 0 ··· 0
= b 0 a ··· 0 ,
.. .. .. . . ..
. . . . .
b 0 0 ··· a

故 det A = an−1 (a + nb)。


另一個做法令 A = aI + bE, 其中 E 的每一元都為 1。 因為 rankE = 1, 不難得知 E
僅有一非零特徵值 n, 故 E 的特徵值為 n, 0, . . . , 0, 即知 A 有特徵值 a + nb, a, . . . , a,
也就得到 det A = (a + nb)a · · · a = an−1 (a + nb)。 若 a = 0, 則 A 不可逆。 若 a 6= 0,
b = 0, 則 A−1 = a1 I 。 以下考慮 a, b 皆不為零的情況。 因為 E 2 = nE, 可知

a + nb
AE = (aI + bE)E = aE + nbE = (a + nb)E = (A − aI),
b

118
 
1 b
上式可整理成 A aI − a(a+nb) E = I, 故得

1 b
A−1 = I− E,
a a(a + nb)

亦即  
1 b b b
− − a(a+nb) ··· − a(a+nb)
a a(a+nb) 
 b 1 b b 
 − a(a+nb) a − a(a+nb) ··· − a(a+nb) 
A−1 =
 .. .. .. ..
。

 . . . . 
 
b b 1 b
− a(a+nb) − a(a+nb) ··· a − a(a+nb)

Problem 122

Let Vn (x1 , x2 , . . . , xn ) be an n × n Vandermonde matrix of the form


 
1 x1 x21 · · · x1n−1
 
1 x2 x22 · · · x2n−1 
 
Vn (x1 , x2 , . . . , xn ) =  . .

.. . . ..  .

.
. .. . . . 
 
2
1 xn xn · · · xnn−1

For any integers a1 < a2 < · · · < an , show that

det Vn (a1 , a2 , . . . , an )
det Vn (1, 2, . . . , n)

is an integer.

Solution

利用 Vandermonde 行列式公式, 可知
Y n
Y
det Vn (1, 2, . . . , n) = (j − i) = (j − 1)!。
1≤i<j≤n j=1

令 fj 為 j 階首一 (領先係數為 1) 多項式, 如下:

fj (a) = aj + bj−1 aj−1 + · · · + b1 a + b0 ,

119
並令  
1 f1 (a1 ) f2 (a1 ) · · · fn−1 (a1 )
 
 
1 f1 (a2 ) f2 (a2 ) · · · fn−1 (a2 ) 
A = .
 。
. .. .. .. .. 
. . . . . 
 
1 f1 (an ) f2 (an ) · · · fn−1 (an )
利用行列式基本性質, 可得
Pn−2 j
1 a1 + b0 a21 + b1 a1 + b0 · · · a1n−1 + j=0 bj a1
Pn−2 j
1 a2 + b0 a22 + b1 a2 + b0 · · · a2n−1 + j=0 bj a2
det A = . .. .. .. ..
.. . . . .
P
1 an + b0 a2n + b1 an + b0 · · · ann−1 + j=0n−2
bj ajn

1 a1 a21 · · · a1n−1
1 a2 a22 · · · a2n−1
= . .
.. .. .. .. .. = det Vn (a1 , a2 , . . . , an )。
. . .
1 an a2n · · · ann−1

對於任意整數 a, 設
 
a
fj (a) = a(a − 1)(a − 2) · · · (a − j + 1) = j! · ,
j

所以 fj (a) 必包含因數 (j −1)!。 再從 det A 的第 j 行, j = 2, 3, . . . , n, 提出因數 (j −1)!,


Q
即知 det A, 也就是 det Vn (a1 , a2 , . . . , an ), 可被 nj=1 (j − 1)! 整除, 故證得所求。 

Problem 123

Let a1 and a2 be two independent vectors in R3 . Consider the parallelogram


whose adjacent sides are defined by a1 and a2 . Prove that the area of the paral-
√ h i
lelogram is given by det AT A, where A = a1 a2 .

Solution
h i
令 B = a1 a2 u , 其中 u ∈ span{a1 , a2 }⊥ , 且 kuk = 1, 則 a1 , a2 , 和 u 所張開的
平行六面體體積, 即 | det B|, 等於 a1 和 a2 所張開的平行四邊形面積。 因為 det(B T B) =

120
p
(det B T )(det B) = (det B)2 , 可知 det(B T B) 即為 a1 和 a2 所張的平行四邊形面積。
展開計算
     
aT1 aT1 a1 aT1 a2 aT1 u aT1 a1 aT1 a2 0
 h i    
B T B =  aT2  a1 a2 u =  aT2 a1 aT2 a2 aT2 u  = aT2 a1 aT2 a2 0 。
     
     
uT uT a1 uT a2 uT u 0 0 1

所以
aT1 a1 aT1 a2
det(B T B) = = det(AT A),
aT2 a1 aT2 a2
因此得證。 

Problem 124

Let An be the n × n tridiagonal matrix of the form


 
a b 0
 
 
c a b 
 
 
 c a b 
An =  .. .. ..
.

 . . . 
 
 

 c a b 

0 c a

Show that 


 an if bc = 0,

det An = (n + 1)(a/2)n if a2 = 4bc,



 (pn+1 − q n+1 )/(p − q) if a2 6= 4bc,

where √ √
a+ a2 − 4bc a− a2 − 4bc
p= , q= .
2 2

Solution

對 An 的第一列展開行列式降階運算, 可得

det An = a det An−1 − bc det An−2 。

121
若 bc = 0, 則 b = 0 或 c = 0, An 是下或上三角形矩陣, 故 det An = an 。 若 bc 6= 0, 令
p 和 q 為 x2 − ax + bc = 0 的兩根, 就有 p + q = a, pq = bc。 上面的遞歸公式可改寫如
下:

det An − p det An−1 = q(det An−1 − p det An−2 )

det An − q det An−1 = p(det An−1 − q det An−2 )。

令 αn = det An − p det An−1 , βn = det An − q det An−1 , 則 αn = qαn−1 且 βn =


pβn−1 。 因為 det A1 = a 且 det A2 = a2 − bc, 可得

α2 = (a2 − bc) − pa = a(a − p) − bc = (p + q)q − pq = q 2 。

運用同樣方式可得 β2 = p2 , 因此解出 αn = q n 和 βn = pn 。 所以,

det An − p det An−1 = q n

det An − q det An−1 = pn 。

注意, (p − q)2 = (p + q)2 − 4pq = a2 − 4bc。 若 p 6= q, 即 a2 6= 4bc, 以 n + 1 替換 n,


並將兩式相減, 即得
pn+1 − q n+1
det An = 。
p−q
若 p = q, 即 a2 = 4bc, 則

det An = p det An−1 + pn 。

使用歸納法可推得
 a n
det An = (n + 1) 。
2


122
Problem 125

Find the determinant of the following 2n × 2n matrix:


 
1 2 1 1 ··· 1 1
 
 
2 1 1 1 · · · 1 1 
 
 
1 1 1 2 · · · 1 1 
 
 
A = 1 1 2 1 · · · 1 1  .
 
 .. .. .. .. . . .. .. 
. . . . . . .
 
 
1 1 1 1 · · · 1 2 
 
1 1 1 1 ··· 2 1

Solution

矩陣 A 可分解如下:
   
0 1 0 0 ··· 0 0 1 1 1 1 ··· 1 1
   
   
1 0 0 0 · · · 0 0  1 1 1 1 · · · 1 1
   
   
0 0 0 1 · · · 0 0  1 1 1 1 · · · 1 1
   
   
A = 0 0 1 0 · · · 0 0  + 1 1 1 1 · · · 1 1 = B + E,
   
 .. .. .. .. . . .. ..   .. .. .. .. . . .. .. 
. . . . . . . . . . . . . .
   
   
0 0 0 0 · · · 0 1  1 1 1 1 · · · 1 1

 
0 0 0 0 ··· 1 0 1 1 1 1 ··· 1 1

其中 E = eeT , 2n 維向量 e 的所有元皆為 1。 利用矩陣行列式引理 (matrix determinant


lemma),
2n X
X 2n
det A = det(B + eeT ) = det B + eT (adjB)e = det B + (adjB)ij 。
i=1 j=1

矩陣 B 的行列式為其主對角分塊行列式乘積, 就有
n
0 1
det B = = (−1)n 。
1 0

伴隨矩陣 adjB 的非零元僅有 (adjB)2k,2k−1 = (adjB)2k−1,2k = (−1)n , k = 1, . . . , n。


合併以上結果, 即得 det A = (−1)n + 2n(−1)n = (−1)n (2n + 1)。

123
另一個做法是直接利用行列式基本性質計算化簡。 觀察出矩陣 A 的所有列總和皆為 2n+
1, 故可將第 2, 3, . . . , 2n 行加至第 1 行, 再將所得矩陣的第 2, 3, . . . , 2n 列各自減去第 1
列, 如下:

2n + 1 2 1 1 · · · 1 1 2n + 1 2 1 1 ··· 1 1
2n + 1 1 1 1 · · · 1 1 0 −1 0 0 · · · 0 0
2n + 1 1 1 2 · · · 1 1 0 −1 0 1 · · · 0 0
det A = 2n + 1 1 2 1 · · · 1 1 = 0 −1 1 0 · · · 0 0 。
.. .. .. .. . . .. .. .. .. .. .. . . . .
. . . . . . . . . . . . .. ..
2n + 1 1 1 1 · · · 1 2 0 −1 0 0 · · · 0 1
2n + 1 1 1 1 · · · 2 1 0 −1 0 0 · · · 1 0

至此即可對第 1 行展開, 再對 (2n − 1) × (2n − 1) 階新矩陣的第 1 列展開:

−1 0 0 · · · 0 0
0 1 ··· 0 0
−1 0 1 · · · 0 0
1 0 ··· 0 0
−1 1 0 · · · 0 0 . . . .
det A = (2n + 1) .. .. .. . . . . = (2n + 1)(−1) .. .. . . . .. .. 。
. . . . .. ..
0 0 ··· 0 1
−1 0 0 · · · 0 1
0 0 ··· 1 0
−1 0 0 · · · 1 0

如前述做法, (2n − 2) × (2n − 2) 階矩陣的行列式為其主對角分塊行列式乘積, 於是得到


n−1
0 1
det A = (2n + 1)(−1) = (2n + 1)(−1)(−1)n−1 = (−1)n (2n + 1)。
1 0

Problem 126

Let A and Xi , i = 1, 2, 3, 4, be 2 × 2 real matrices. If A 6= 0 and

det(A + Xi ) = det A + det Xi , i = 1, 2, 3, 4,

show that X1 , X2 , X3 , X4 are linearly dependent over R.

124
Solution

令    
a b αi βi
A= , Xi =  , i = 1, 2, 3, 4。
c d γi δi
展開已知條件
a + αi b + βi a b αi βi
= + ,
c + γi d + δi c d γi δi
可推得
dαi − cβi − bγi + aδi = 0, i = 1, 2, 3, 4。

考慮線性組合
dα − cβ − bγ + aδ = 0。

因為 A 6= 0, A 至少有一非零元, 也就是說滿足上式解空間的維度等於 3, 故存在不全為零


的實數 ci , i = 1, 2, 3, 4, 使得
         
α1 α2 α3 α 0
       4  
         
 β1   β2   β3   β4  0
     
  =  ,
c1   + c2   + c3   + c4    
 γ1   γ2   γ3   γ4  0
         
δ1 δ2 δ3 δ4 0

亦即 c1 X1 + c2 X2 + c3 X3 + c4 X4 = 0, 因此得證。 

Problem 127

Let A be an n × n real matrix. Prove the following statements.

(a) If AT = −A and n is odd, then det A = 0.

(b) If A2 + I = 0, then n is even.

Solution

(a) 若 n 為奇數, 運用行列式基本性質並代入已知條件, 可得

det A = det AT = det(−A) = (−1)n det A = − det A,

即知 det A = 0。

125
(b) 同樣運用行列式基本性質計算

(det A)2 = det(AA) = det(−I) = (−1)n det I = (−1)n 。

若 n 為奇數, 則 (det A)2 = −1, 但實矩陣行列式為實數, 證得 n 必為偶數。 

Problem 128

Let A and B be n × n real orthogonal matrices. If det A + det B = 0, show that


det(A + B) = 0.

Solution

考慮關係式 det(A + B) = det(AT + B T ), 等號兩邊分別左乘 det A 和 det B, 運用行


列式可乘公式, 並代入已知條件 AAT = I 和 BB T = I, 可得

(det A) det(A + B) = (det A) det(AT + B T ) = det(AAT + AB T ) = det(I + AB T )

(det B) det(A + B) = (det B) det(AT + B T ) = det(BAT + BB T ) = det(BAT + I)。

將上面兩式相減, 因為 det(I + AB T ) = det(I + AB T )T = det(I + BAT ), 即得

(det A − det B) det(A + B) = 0。

若 det(A + B) 6= 0, 則 det A = det B, 但已知 det A + det B = 0, 必定有 det A =


det B = 0, 亦即 A 和 B 皆不可逆, 這與 A 和 B 是實正交矩陣相矛盾, 故得證。 

Problem 129

Let A and B be n × n complex matrices, and C = AB − BA. If AC = CA and


BC = CB, prove that

(a) C is nilpotent, i.e., C m = 0 for some positive integer m.

(b) det(B + kC) = det B, for every k ∈ C.

126
Solution

(a) 首先設法建立 A, B 和 C 的關係式, 使用已知條件 C = AB − BA 和 BC = CB


可證明對於正整數 m,

AB m − B m A = mB m−1 C 。

當 m = 1 時, 上式即為 AB −BA = C 。 假設 AB k−1 −B k−1A = (k −1)B k−2 C,


同時右乘 B, 等號左邊為

AB k − B k−1 AB = AB k − B k−1 (C + BA) = AB k − B k−1 C − B k A,

等號右邊為

(k − 1)B k−2 CB = (k − 1)B k−2 (BC) = (k − 1)B k−1 C,

因此證得 AB k − B k A = kB k−1 C 。 另外也可以證明對於正整數 m,

AC m = C m A。

當 m = 1 時, 上式顯然成立。 假設 AC k−1 = C k−1A, 同時右乘 C, 即得 AC k =


C k−1 AC = C k−1 (CA) = C k A。 接下來證明 C 是冪零矩陣, 亦即 C n = 0。 令
p(t) = bn tn + · · · + b1 t + b0 為 B 的特徵多項式, 根據 Cayley-Hamilton 定理,

p(B) = bn B n + · · · + b1 B + b0 I = 0。

利用以上結果, 可得

p′ (B)C = (nbn B n−1 + · · · + 2b2 B + b1 I)C

= bn (AB n − B n A) + · · · + b2 (AB 2 − B 2 A) + b1 (AB − BA)

= A(bn B n + · · · + b1 B) − (bn B n + · · · + b1 B)A

= A(−b0 I) − (−b0 I)A

= b0 (IA − AI) = 0。

127
運用類似方式,

p′′ (B)C 2 = (n(n − 1)bn B n−2 + · · · + 2b2 I)C 2

= nbn (AB n−1 − B n−1 A)C + · · · + 2b2 (AB − BA)C

= A(nbn B n−1 + · · · + 2b2 B)C − (nbn B n−1 + · · · + 2b2 B)CA

= A(−b1 C)C − (−b1 C)CA

= b1 (C 2 A − AC 2 ) = 0,

以此類推可歸納出 p(n) (B)C n = 0。 因為 p(n) (B) = n!I, 故有 C n = 0, 也就證明


了 C 是冪零矩陣。

(b) 令 m 為一正整數使得 C m = 0 且 C m−1 6= 0。 若 B 可逆, 設 λ 為矩陣 I +


kCB −1 的一特徵值, x 6= 0 為對應的特徵向量, 即有 (I + kCB −1 )x = λx, 或
者 kCB −1x = (λ − 1)x, 等號兩邊左乘 C m−1 可得 (λ − 1)C m−1 x = 0。 如果
λ − 1 6= 0, 則 C m−1 x = 0, 因為 k 為任意數, 特徵向量 x 未必屬於 C m−1 的零
空間, 故必有 C m−1 = 0, 但這與原假設相矛盾, 所以 λ = 1。 利用行列式等於矩陣
特徵值乘積, 可知 det(I + kCB −1) = 1, 因此

det(B + kC)(det B −1 ) = det((B + kC)B −1 ) = det(I + kCB −1 ) = 1,

也就證明 det(B + kC) = det B 。 若 B 不可逆, 使用連續論證法, 將 B 替換為


B + ǫI, ǫ 是一個小正數, 則 A(B + ǫI) − (B + ǫI)A = AB − BA = C, 故 C
維持不變, 同樣可得 det(B + ǫI + kC) = det(B + ǫI), 令 ǫ → 0, 即證得所求。

Problem 130

What is the determinant of the following matrix?


 
4 0 0 0 0 3
 
 
0 4 0 0 3 0
 
 
0 0 4 3 0 0
A= 
.

0 0 3 4 0 0
 
 
0 3 0 0 4 0
 
3 0 0 0 0 4

128
Solution

利用排列矩陣 P 將 A 的列行指標重新排序, 如下:


 
4 3 0 0 0 0
 
 
3 4 0 0 0 0
 
 
T
0 0 4 3 0 0
P AP = 

,

0 0 3 4 0 0
 
 
0 0 0 0 4 3
 
0 0 0 0 3 4

其中 P 對應列指標序 (1, 6, 2, 5, 3, 4),


 
1 0 0 0 0 0
 
 
0 0 0 0 0 1
 
 
0 1 0 0 0 0
P = 。
 
0 0 0 0 1 0
 
 
0 0 1 0 0 0
 
0 0 0 1 0 0

因為 P T = P −1 , 利用行列式可乘公式, 可得 det(P AP T ) = (det P )(det A)(det P T ) =


det A。 主對角分塊矩陣 P AP T 的行列式等於主對角分塊行列式乘積, 就有

4 3 4 3 4 3
det(P AP T ) = · · = 73 = 343,
3 4 3 4 3 4

故 det A = 343。 

Problem 131

Let A and B be 4 × 4 real matrices. If det(A + iB) = 0, i = −1, show that

det(A + B) + det(A − B) = 4(det A + det B).

129
Solution

根據問題給出的行列式型態, 可令 f (x) = det(A + xB), 其中 x ∈ C。 因為 A 和 B 是四


階實方陣, f (x) 可表示為

f (x) = (det B)x4 + ax3 + bx2 + cx + det A,

其中 a, b, c 是實數。 已知 f (i) = det(A + iB) = 0, 但因為 f (x) 是實多項式, 故有共軛


根, 亦即 f (−i) = 0。 分別計算得到

f (i) = det B − ai − b + ci + det A = 0

f (−i) = det B + ai − b − ci + det A = 0。

將上面兩式相加即得 b = det A + det B, 所以

det(A + B) + det(A − B) = f (1) + f (−1)

= det B + a + b + c + det A + det B − a + b − c + det A

= 2 det A + 2 det B + 2b

= 4(det A + det B)。

Problem 132

Let f1 (x), f2 (x), . . . , fn (x) be polynomials with degree at most n − 2. For any
numbers a1 , a2 , . . . , an , prove that

f1 (a1 ) f1 (a2 ) · · · f1 (an )


f2 (a1 ) f2 (a2 ) · · · f2 (an )
.. .. .. .. = 0.
. . . .
fn (a1 ) fn (a2 ) · · · fn (an )

130
Solution

令 fi (x) = bi0 + bi1 x + · · · + bi,n−2 xn−2 , 將 n × n 階矩陣 F = [fi (aj )] 寫成下列矩陣


乘法:
 
f1 (a1 ) f1 (a2 ) · · · f1 (an )
 
 
 f2 (a1 ) f2 (a2 ) · · · f2 (an ) 
F =
 .. .. .. .. 

 . . . . 
 
fn (a1 ) fn (a2 ) · · · fn (an )
 
  1 1 ··· 1
b10 b11 · · · b1,n−2 0  
 
  a1 a2 ··· an
 

 b20 b21 · · · b2,n−2 0  
=   ... ..
.
..
.
..
.

 = BA。
 .. .. .. .. ..  
 . . . . 
.   n−2 n−2 

  a a2 n−2
· · · an 
1
bn,0 bn,1 · · · bn,n−2 0  n−1 n−1 
a1 a2 n−1
· · · an

利用矩陣乘積行列式可乘公式, 即得 det F = (det B)(det A), 但 det B = 0, 故知


det F = 0。 

Problem 133

A parallelepiped is bounded by the following six planes:

x − y − z = 0, x + y − z = 0, x − 5y + 3z = 0,
x − y − z = −4, x + y − z = 2, x − 5y + 3z = 4.

Determine the volume of the parallelepiped.

Solution

令向量 (x1 , y1 , z1 ), (x2 , y2 , z2 ), (x3 , y3 , z3 ) 分別表示此平行六面體與原點相交的三邊, 向


量端點即為平行六面體端點。 設
 
x1 x2 x3
 
 
A =  y1 y2 y3  。
 
z1 z2 z3

131
矩陣 A 的行向量所張開的平行六面體體積等於 | det A|。 利用下列方程式可解得上述向量:
    
1 −1 −1 x x2 x3 −4 0 0
  1   
    
 1 1 −1   y1 y2 y3  =  0 2 0  ,
    
1 −5 −3 z1 z2 z3 0 0 4

再由方陣乘積行列式可乘公式,

1 −1 −1 x1 x2 x3 −4 0 0
1 1 −1 · y1 y2 y3 = 0 2 0 ,
1 −5 −3 z1 z2 z3 0 0 4

計算得到 det A = 8, 此即所求。 

Problem 134

Let ai and bi , i = 1, . . . , n, be two sequences such that ai + bj 6= 0 for every i, j.


1
If Pn is the n × n matrix with (i, j) entry ai +bj , show that
Qn Qi−1
i=2 (ai − aj )(bi − bj )
det Pn = Qn j=1Qn .
i=1 j=1 (ai + bj )

Solution

先寫出行列式以便觀察,

1 1 1 1
a1 +b1 a1 +b2 ··· a1 +bn−1 a1 +bn
1 1 1 1
a2 +b1 a2 +b2 ··· a2 +bn−1 a2 +bn
.. .. .. .. ..
det Pn = . . . . . 。
1 1 1 1
an−1 +b1 an−1 +b2 ··· an−1 +bn−1 an−1 +bn
1 1 1 1
an +b1 an +b2 ··· an +bn−1 an +bn

132
1 1 1
將前 n − 1 列減去最末列, 分別由各行提出公因式 an +b1 , an +b2 , . . . , an +bn , 由各列提出
公因式 an − a1 , an − a2 , . . . , an − an−1 , 和 1, 可得

an −a1 an −a1 an −a1 an −a1


(a1 +b1 )(an +b1 ) (a1 +b2 )(an +b2 ) ··· (a1 +bn−1 )(an +bn−1 ) (a1 +bn )(an +bn )
an −a2 an −a2 an −a2 an −a2
(a2 +b1 )(an +b1 ) (a2 +b2 )(an +b2 ) ··· (a2 +bn−1 )(an +bn−1 ) (a2 +bn )(an +bn )
.. .. .. .. ..
det Pn = . . . . .
an −an−1 an −an−1 an −an−1 an −an−1
(an−1 +b1 )(an +b1 ) (an−1 +b2 )(an +b2 ) ··· (an−1 +bn−1 )(an +bn−1 ) (an−1 +bn )(an +bn )
1 1 1 1
an +b1 an +b2 ··· an +bn−1 an +bn
1 1 1 1
a1 +b1 a1 +b2 ··· a1 +bn−1 a1 +bn
1 1 1 1
Qn−1 a2 +b1 a2 +b2 ··· a2 +bn−1 a2 +bn
(an − ai ) .. .. .. .. ..
= Qi=1
n . . . . . 。
j=1 n + bj )
(a
1 1 1 1
an−1 +b1 an−1 +b2 ··· an−1 +bn−1 an−1 +bn

1 1 ··· 1 1

1 1 1
接著將前 n − 1 行減去最末行, 分別由各列提出公因式 a1 +bn , a2 +bn , . . . , an−1 +bn , 和 1,
由各行提出公因式 bn − b1 , bn − b2 , . . . , bn − bn−1 , 和 1, 並以共因子展開行列式, 即得
Qn−1
(an − ai )
det Pn = Qi=1
n
j=1 n + bj )
(a
bn −b1 bn −b2 bn −bn−1 1
(a1 +b1 )(a1 +bn ) (a1 +b2 )(a1 +bn ) ··· (a1 +bn−1 )(a1 +bn ) a1 +bn
bn −b1 bn −b2 bn −bn−1 1
(a2 +b1 )(a2 +bn ) (a2 +b2 )(a2 +bn ) ··· (a2 +bn−1 )(a2 +bn ) a2 +bn
.. .. .. .. ..
. . . . .
bn −b1 bn −b2 bn −bn−1 1
(an−1 +b1 )(an−1 +bn ) (an−1 +b2 )(an−1 +bn ) ··· (an−1 +bn−1 )(an−1 +bn ) an−1 +bn

0 0 ··· 0 1
1 1 1
a1 +b1 a1 +b2 ··· a1 +bn−1 1
1 1 1
Qn−1 Qn−1 a2 +b1 a2 +b2 ··· a2 +bn−1 1
i=1 (an − ai ) j=1 (bn − bj ) .. .. .. .. ..
= Qn Qn−1 . . . . .
j=1 (an + bj ) i=1 (ai + bn )
1 1 1
an−1 +b1 an−1 +b2 ··· an−1 +bn−1 1
0 0 ··· 0 1
Qn−1
j=1 (an − aj )(bn − bj )
= Qn−1 Qn det Pn−1 。
i=1 j=1 (ai + bn )(an + bj )

133
1
因為 det P1 = a1 +b1 , 根據遞迴式,
Q1
j=1 (a2 − aj )(b2 − bj )
det P2 = Q1 Q2 det P1
i=1 j=1 (ai + b2 )(a2 + bj )
Q1
j=1 (a2 − aj )(b2 − bj ) 1
= Q1 Q2
i=1
a + b1
j=1 (ai + b2 )(a2 + bj ) 1
Qi,j=1,2
i>j (ai − aj )(bi − bj )
= Q2 Q2 。
i=1 j=1 (ai + bj )

運用歸納法即得證。 

Problem 135

Suppose      
1 4 1
     
     
2 3 3
 ,
a1 =  
 ,
a2 =  
 .
a3 =  
3 2 2
     
4 1 4

If Q is an orthogonal matrix, i.e., QT = Q−1 , such that


     
b b b
 11   21   31 
     
b12  b  b 
Qa1 =   , Qa2 =  22  , Qa3 =  32  ,
     
b13  b23  b33 
     
0 0 0

find det B, where  


b11 b12 b13
 
 
B = b21 b22 b23  .
 
b31 b32 b33

134
Solution

令  
1 4 1
 
 
2 3 3
A=
 。

3 2 2
 
4 1 4
 
BT
已知條件即為 QA =  , 也就有
0
 
i BT
h
AT QT QA = B 0   = BB T 。
0

因為 QT Q = I, 利用矩陣乘積行列式可乘性質,

det(AT QT QA) = det(AT A) = det(BB T ) = (det B)(det B T ) = (det B)2 。

代入數值計算得到  
30 20 29
 
AT A = 20 30 21 ,
 
 
29 21 30

且 det(AT A) = 900, 故 det B = ±30。 

135
特徵分析
Problem 136

Let  
1 0 1 0 1
 
 
0 1 0 1 0
 
 
A = 1 0 1 0 1 .
 
 
0 1 0 1 0
 
1 0 1 0 1
Compute the eigenvalues and eigenvectors of A.

Solution

觀察發現: 若 i + j 為奇數, aij = 0, 也就是說, 若列行指標包含一奇一偶, 則所指定的元等


於零。 利用這個事實, 我們將列行指標重新命名: (1, 2, 3, 4, 5) → (1, 3, 5, 2, 4), 若按行向
量排序, 對應的排列矩陣為  
1 0 0 0 0
 
 
0 0 0 1 0
 
 
P = 0 1 0 0 0 。
 
 
0 0 0 0 1
 
0 0 1 0 0
計算可以確認  
1 1 1 0 0
 
 
1 1 1 0 0
 
P T AP = 1
 
1 1 0 0 = B 。
 
 
0 0 0 1 1
 
0 0 1 0 1
 
1 1 1  



 1 1
注意, B 是主對角分塊矩陣, B 的特徵值包含 1 1 1 的特徵值和   的特徵
  1 1
1 1 1
T
值。 排列矩陣為正交矩陣, P P = I, 故 A 相似於 B 。 相似變換不改變矩陣的特徵值, 設

136
By = λy, 等號兩邊左乘 P , 就有

P By = AP y = λP y,

得知 A 的特徵值為 x = P y。 下面推導 n 階方陣 E = [eij ], eij = 1, 的特徵值和特徵向


量。 令 n 維向量 e = (1, 1, . . . , 1), E 可以表示成 E = eeT 。 利用乘法結合律, 可得

Ee = (eeT )e = (eT e)e = ne,

因此 E 有特徵值 n, 特徵向量為 e。 子空間 span{e} 的正交互補空間維度等於 n − 1, 故


包含 n − 1 個線性獨立向量 {u1 , . . . , un−1 }, 計算

Eui = (eeT )ui = (eT ui )e = 0,

得知 E 有 n − 1 個零特徵值, 特徵向量為 ui , i = 1, . . . , n − 1。 根據上面的結果, 矩陣 A


的特徵值即為 B 的特徵值 λ1 = 3, λ2 = 0, λ3 = 0, λ4 = 2, λ5 = 0, 而 B 的特徵向量
如下:
         
1 1 1 0 0
         
         
 1   −1   1   0   0 
         
         
y1 =  1  , y2 =  0  , y3 =  −2  , y4 =  0  , y5 =  0 。
         
         
 0   0   0   1   1 
         
0 0 0 1 −1

方陣 A 的特徵向量等於 xi = P yi , i = 1, . . . , 5, 計算得出
         
1 1 1 0 0
         
         
 0   0   0   1   1 
         
         
x1 =  1  , x2 =  −1  , x3 =  1  , x4 =  0  , x5 =  0  。
         
         
 0   0   0   1   −1 
         
1 0 −2 0 0

137
Problem 137

Let      
a b c c a b c a b
     
     
A =  b c a , B =  c a b  , C = a b c  .
     
c a b a b c b c a

(a) For any scalars, a, b, and c, show that A, B, and C are similar.

(b) If BC = CB, show that A has two zero eigenvalues.

Solution

(a) 方陣 B 和 C 排列相似於 A, 運用基本列交換和行交換可得


     
a b c 0 1 0 b c a 0 0 1
     
A =  b c a = 0 0 1  c a b  1 0 0 = P T BP
     
     
c a b 1 0 0 a b c 0 1 0
     
a b c 0 0 1 c a b 0 1 0
     
A =  b c a = 1 0 0 a b c  0 0 1 = P CP T 。
     
     
c a b 0 1 0 b c a 1 0 0

(b) 若 BC = CB, 乘開後比較等號兩邊各元, 就有

a2 + b2 + c2 − ab − bc − ca = 0。

將上式乘以 (a + b + c), 化簡得

a3 + b3 + c3 − 3abc = 0。

將上面兩式代入 A 的特徵多項式, 不難驗證

t−a b c
pA (t) = b c−t a = t3 − (a + b + c)t2 。
c a t−b

138
Problem 138
 
1 0 0
 
 
Let A =  0 2 0 . Which of the following matrices are similar to A?
 
0 0 3
     
3 0 0 1 4 5 3 0 0
     
     
B1 =  0 1 0  , B2 =  0 2 6  , B3 =  7 2 0 ,
     
0 0 2 0 0 3 8 9 1
     
1 4 0 2 0 0 2 3 4
     
     
B4 =  5 2 0  , B5 =  0 1 4  , B6 =  0 2 1 .
     
0 6 3 5 6 3 0 1 2

Solution

若二 n × n 矩陣的特徵值集合同為 {λ1 , . . . , λn }, 且特徵值都相異, λi 6= λj , i 6= j, 則此


二矩陣為相似矩陣, 這是因為有相異特徵值的矩陣總是可以被對角化。 給出的主對角矩陣 A
有特徵值 1, 2, 3, 若 B 也有特徵值 1, 2, 3, 便可判斷 B 相似於 A。 利用三角形矩陣的主對
角元為其特徵值此性質, 可知 B1 , B2 , B3 與 A 相似。 B4 的特徵值為 −3, 3, 6, B5 的特
徵值為 −3, 2, 7, 故 B4 和 B5 都不相似於 A。 矩陣 B6 有特徵值 1, 2, 3, 故 B6 也相似於
A。 

Problem 139

Suppose A is an n × n real matrix.

(a) Show that A and AT have the same set of eigenvalues.

(b) If λ and µ are eigenvalues of A, with λ 6= µ, then any eigenvector of A


corresponding to λ is orthogonal to any eigenvector of AT corresponding to
µ.

139
Solution

(a) 直接比較 A 和 AT 的特徵多項式, 利用 detB T = detB 聯繫彼此關係:

det(AT − λI) = det((AT − λI)T ) = det(A − λI T ) = det(A − λI)。

二特徵多項式相等自然就有相同的解, 這表明 A 和 AT 有相同的特徵值集合。

(b) 首先就問題給出的條件作假設, 設 A 有特徵值 λ 與對應的特徵向量 x, 再設 AT 有


特徵值 µ 與對應的特徵向量 y, 於是有特徵方程式 Ax = λx, AT y = µy。 再考慮
yT Ax 的兩種計算方式:

yT Ax = yT (λx) = λ(yT x)。

注意, 我們可以對純量轉置其結果不變, yT Ax = (yT Ax)T = xT AT y, 因此

xT AT y = xT (µy) = µ(xT y)。

當 λ 6= µ 時, λ(xT y) = µ(yT x) 的充要條件是 xT y = 0, 亦即 x 和 y 互為正交,


得證。 

Problem 140

Let A be an n × n real matrix. If rankA = 1, show that either A2 = 0 or A is


diagonalizable.

Solution

對於任意 n-階實矩陣 A, 若 rankA = 1, 則存在非零向量 u 和 v 使得 A = uvT 。


令 V = span{v}, 則 dim V ⊥ = n − 1, 因此存在 n − 1 個線性獨立向量 xi ∈ V ⊥ ,
i = 1, . . . , n − 1, 滿足 Axi = uvT xi = u0 = 0, 故 A 有重複 n − 1 次零特徵值, 對應
的特徵向量為 xi , i = 1, . . . , n − 1。 另考慮 Au = uvT u = (vT u)u, 可知 A 尚有一特
徵值 vT u, 特徵向量為 u。 若 u 不屬於 V ⊥ , vT u 6= 0, A 有完整的 n 個線性獨立特徵向
量, 故為可對角化矩陣。 若 u ∈ V ⊥ , 就有 vT u = 0, A 共有重複 n 次零特徵值, 但僅有
n − 1 的線性獨立特徵向量, 故 A 不可對角化且 A2 = uvT uvT = u0vT = 0。 

140
Problem 141

Let A be an n × n real matrix, and T be the linear transformation defined by


T (A) = AT .

(a) Show that ±1 are the only eigenvalues of T .

(b) Describe the eigenvectors corresponding to each eigenvalue of T .

(c) Find an ordered basis for 2 × 2 real matrices such that the matrix repre-
sentation with respect to that basis is diagonal.

Solution

(a) 考慮特徵方程 T (A) = AT = λA, 等號兩邊取轉置, 就有 A = λAT , 合併這兩個式


子可得 A = λAT = λ2 A。 推知 λ2 = 1, 因為 A 為任意實數矩陣, λ 是實數, 解出
λ = ±1。

(b) 對應特徵值 λ = 1, AT = A, 特徵向量為對稱矩陣, 對應特徵值 λ = −1, AT =


−A, 特徵向量為反對稱 (skew-symmetric) 矩陣。

(c) 考慮 2 × 2 實矩陣的標準基底
       
 1 0 0 1 0 0 0 0 
S=  , , ,  。
 0 0 0 0 1 0 0 1 
 
a b
設A= , 線性變換 T 可表示如下:
c d
   
a b a c
T (A) = T   =  ,
c d b d

參考基底 S 的變換矩陣即為
 
1 0 0 0
 
 
0 0 1 0 
[T ]S =  。
 
0 1 0 0 
 
0 0 0 1

141
由題 (a), [T ]S 有特徵值 λ = ±1。 對應 λ = 1 的特徵向量為
     
1 0 0
     
     
0 1 0
  , x2 =   , x3 =   ,
x1 =      
0 1 0
     
0 0 1
對應 λ = −1 的特徵向量為  
0
 
 
 −1 
x4 =  。
 
 1 
 
0
選擇下列由特徵向量構成的基底即可使 T 參考該基底的表示矩陣為主對角矩陣:
       
 1 0 0 1 0 0 0 −1 
 , , ,  。
 0 0 1 0 0 1 1 0 


Problem 142

If AB = BA, show that A and B have a common eigenvector.

Solution

設 n × n 階矩陣 A 有一特徵值 λ, 且 dimN (A − λI) = k, k ≥ 1, 又設 {x1 , . . . , xk }


為特徵空間 N (A − λI) 的基底, 將這些線性獨立的特徵向量組成一 n × k 矩陣 X =
h i
x1 · · · xk , 顯然, (A − λI)X = 0。 利用已知條件 AB = BA, 計算

(A − λI)BX = ABX − λBX = BAX − λBX = B(A − λI)X = 0,

得知 BX ∈ N (A − λI), 換句話說, BX 可以表示為基底 {x1 , . . . , xk } 的線性組合,


BX = XC, C 為 k × k 階矩陣。 接下來考慮 C 的特徵方程 Cz = βz, 利用前面的結果,
可得
BXz = XCz = X(βz) = βXz,

推論 Xz 為矩陣 B 的特徵向量。 但是 Xz 是 x1 , . . . , xk 的線性組合, Xz 必定屬於特徵


空間 N (A − λI), 因此證得 A 和 B 並定有一個相同的特徵向量。 

142
Problem 143

Suppose A is an n by n real matrix with eigenvalues λ1 , . . . , λn . Note that the



eigenvalues are not necessarily real. Denote λj = aj + ibj , where i = −1. Prove
that
Pn
(a) j=1 bj = 0,
Pn
(b) j=1 aj bj = 0.

Solution

(a) 利用跡數 (trace) 與特徵值關係式, 可得


n
X n
X n
X
traceA = λj = aj + i bj 。
j=1 j=1 j=1
Pn
已知 A 為實數矩陣, traceA ∈ R, 證得 j=1 bj = 0。

(b) 為產生乘積 aj bj , 計算
n
X n
X n
X n
X
traceA2 = λ2j = a2j − b2j + 2i aj bj 。
j=1 j=1 j=1 j=1
Pn
同樣道理, 因為 A 是實數矩陣, traceA2 亦為實數, 故 j=1 aj bj = 0。 

Problem 144

Let A and B be n × n matrices satisfying AB = BA. Prove the following


statements.

(a) If λ is an eigenvalue of A, then the eigenspace corresponding to λ is invariant


under B.

(b) The column space of A and the nullspace of A are invariant under B.

Note that s subspace X is invariant under linear transformation T if T (X) ⊆ X.

143
Solution

(a) 考慮 Ax = λx, 利用已知條件,

A(Bx) = B(Ax) = B(λx) = λ(Bx),

得知 Bx 仍屬於對應 λ 的特徵空間。

(b) 設 x ∈ N (A), 亦即 Ax = 0, 計算

A(Bx) = B(Ax) = B0 = 0,

也就有 Bx ∈ N (A), 所以 N (A) 是線性映射 B 的一個不變子空間。 運用同樣方式,


設 x ∈ C(A), 必定有 y 使得 x = Ay, 則

Bx = BAy = A(By),

也就是說, Bx ∈ C(A), 故 C(A) 也為 B 的一個不變子空間。 

Problem 145

Suppose A is an n by n matrix. The adjoint of A, denoted by adjA, is defined to


be the transposed of cofactors of elements of A. Show that each eigenvector of A
is also an eigenvector of adjA.

Solution

考慮 Ax = λx 且 x 6= 0, 證明過程倚重關係式 A(adjA) = (adjA)A = (detA)I 。 若


λ 6= 0, 則  
1 detA
(adjA)x = (adjA) Ax = x,
λ λ
在此情況下, x 亦為 adjA 的特徵向量。 若 λ = 0, 則 Ax = 0, 但因 x 6= 0, 可知 A
不為可逆, 就有 detA = 0 且 rankA < n。 分開兩個情況討論: rankA < n − 1 和
rankA = n − 1。 當 rankA < n − 1, A 的線性獨立行向量總數小於 n − 1, 由 adjA 定
義可知 adjA = 0, 故 (adjA)x = 0 · x。 當 rankA = n − 1, 利用秩-零度定理推知 A 的
零空間維度是 1, 且 N (A) = Span{x}。 由 A(adjA)x = (detA)Ix = 0 · x = 0, 可推
論 (adjA)x 也屬於 N (A), 所以必定存在 µ 使得 (adjA)x = µx。 綜合以上結果, 證得不
論 λ 6= 0 或 λ = 0, A 的特徵向量 x 也是 adjA 的特徵向量。 

144
Problem 146

Assume that a 6= 0. Show that the eigenvalues and eigenvectors of the following
n by n matrix  
b a
 
 
 c b a 
 

A= .. .. .. 
. . . 
 
 

 c b a 

c b
are given by r  
c jπ
λj = b + 2a cos
a n+1
and  
(c/a)1/2 sin(1jπ/(n + 1))
 
 
 (c/a)2/2 sin(2jπ/(n + 1)) 
xj = 
 ..
,

 . 
 
(c/a)n/2 sin(njπ/(n + 1))
for j = 1, 2, . . . , n.

Solution

矩陣 A 的特徵方程式 (A − λI)x = 0 可分開表示為

cxi−1 + (b − λ)xi + axi+1 = 0,

其中 i = 1, 2, . . . , n, 且 x0 = xn+1 = 0。 將上式改寫為
 
b−λ c
xk+2 + xk+1 + xk = 0,
a a
其中 k = 0, 1, . . . , n − 1, 總計有 n 個二階差分方程式, 並包含邊界條件 x0 = xn+1 = 0。
設解為 xk = r k , 代入方程式, r 滿足
 
2 b−λ c
r + r + = 0。
a a
令上面二次方程式的二根為 r1 和 r2 , 加上 λ, 共有三個未知數。 若發生重根, r1 = r2 = r,
則 xk = c1 r k + c2 kr k , 從已知條件 x0 = xn+1 = 0 可推知 c1 = c2 = 0, 因此對任意 k,

145
都有 xk = 0, 也就是說 x 為零向量, 這與特徵向量不得為零抵觸, 得知 r1 6= r2 。 因此解為
xk = c1 r1k + c2 r2k , 由已知條件 x0 = xn+1 = 0 可得

0 = c1 + c2

0 = c1 r1n+1 + c2 r2n+1 。
 n+1
r1

解出 r2 = − cc12 = 1, 故 r1 = r2 ei2πj/(n+1) , i = −1, j = 1, 2, . . . , n。 再考慮
根與係數關係:
c
r1 r2 =
a
b−λ
r1 + r2 = − 。
a
pc iπj/(n+1) , r
pc −iπj/(n+1) ,
由第一式解得 r1 = ae 2 = ae 由第二式並利用尤拉公式 eiθ =
cos θ + i sin θ 解得
r  
c jπ
λ = b + a(r1 + r2 ) = b + 2a cos 。
a n+1
上式給出 n 個特徵值 λj , j = 1, 2, . . . , n。 對應特徵值 λj 的特徵向量 xj 其第 k 個元素
即為 xk = c1 r1k + c2 r2k , 且 c1 + c2 = 0, 將上面得到的 r1 和 r2 代入, 就有
 c k/2  
k k jkπ
xk = c1 (r1 − r2 ) = 2ic1 sin 。
a n+1
設 c1 = 1/(2i), 特徵向量便為
 
(c/a)1/2 sin(1jπ/(n + 1))
 
 
 (c/a)2/2 sin(2jπ/(n + 1)) 
xj = 
 ..
,

 . 
 
(c/a)n/2 sin(njπ/(n + 1))

證得所求。 

Problem 147

Use the Cayley-Hamilton theorem to show that if A is an n by n nonsingular


matrix, then there is a polynomial q(t), of degree at most n − 1, such that A−1 =
q(A).

146
Solution

設 A 的特徵多項式為 p(t) = det(tI − A), p(t) 是 n 次多項式, 故可表示為

p(t) = tn + an−1 tn−1 + · · · + a1 t + a0 。

因為 p(0) = a0 = detA, 已知 A 是可逆, 故 a0 6= 0。 Cayley-Hamilton 定理給出


p(A) = 0, 亦即
An + an−1 An−1 + · · · + a1 A + a0 I = 0。

將上式乘以 A−1 , 就有

An−1 + an−1 An−2 + · · · + a1 I + a0 A−1 = 0,

整理得
1 
A−1 = − An−1 + an−1 An−2 + · · · + a1 I 。
a0

1 n−1 
q(t) = − t + an−1 tn−2 + · · · + a2 t + a1 ,
a0
上式即為所求的多項式。 

Problem 148

An n by n square matrix A = [aij ] has the properties that aii = 1 and aik akj = aij
for all i, j, k. What are the eigenvalues of A?

Solution

對於任意 i, j, k, 由於 akk = 1, 已知條件即為 aik akj = aij = akk aij , 如此便有


n n n
!
X X X
aik akj = akk aij = akk aij = (trA)aij 。
k=1 k=1 k=1

上式等同於以元表示之矩陣乘法 A2 = (trA)A。 令矩陣 A 的特徵值為 λ, 利用特徵方程


式關係推知 λ2 = (trA)λ, 解出 λ = 0 或 λ = trA。 已知對於任意 k, akk = 1, 所以
trA = n。 但 trA 又為 A 的所有特徵值之和, 故推論 A 必定有 (n − 1) 個特徵值 0 與一
個特徵值 n。 

147
Problem 149

Let A be the following n × n matrix


 
0 1 0 ··· 0 0
 
 
 0 0 1 ··· 0 0 
 
 .. .. .. .. .. .. 
A= . . . . . . .
 
 
 0 0 0 ··· 0 1 
 
−a0 −a1 −a2 · · · −an−2 −an−1

Show that the characteristic polynomial of A is det(A − tI) = (−1)n p(t), where

p(t) = tn + an−1 tn−1 + · · · + a1 t + a0 .

The matrix A is known as the companion matrix of the polynomial p(t).

Solution

設計下面的 n × n 階下三角形矩陣
 
1 0 0 ··· 0
 
 
 t 1 0 ··· 0 
 
 2 
B= t t 1 ··· 0 。
 
 .. .. .. . . .. 
 . . . . . 
 
tn−1 tn−2 tn−3 ··· 1

令 C = (A − tI)B, 乘開得到
 
0 1 0 ··· 0
 
 
 0 0 1 ··· 0 
 
 .. .. .. . . .. 
C= . . . . .  ,
 
 

 0 0 0 ··· 1  
−p(t) ∗ ∗ · · · ∗

上式中 ∗ 表示某多項式。 對第一行以共因子展開計算行列式

detC = (−1)n+1 (−p(t))detIn−1 = (−1)n p(t),

148
又因為 B 為下三角形矩陣且主對角元皆為 1, 可知 detB = 1, 就有

detC = det((A − tI)B) = det(A − tI)(detB) = det(A − tI)。

Problem 150

Let A and B be n × n matrices, either real or complex. Consider a linear trans-


formation T (X) = AXB, where X is also n × n. Suppose that A has distinct
eigenvalues {λi , i = 1, 2, . . . , n} and associated eigenvectors {yi , i = 1, 2, . . . , n},
while B T has distinct eigenvalues {φj , j = 1, 2, . . . , n} and associated eigenvectors
{zj , j = 1, 2, . . . , n}. Show that the eigenvalues of T are {λi φj , i, j = 1, 2, . . . , n}
and the matrices {yi zTj , i, j = 1, 2, . . . , n} are associated linearly independent
eigenvectors.

Solution

設 X = yi zTj , 則

T (X) = Ayi zTj B = (Ayi )(B T zj )T = λi φj yi zTj = λi φj X,

因此 λi φj 確為 T (X) 的特徵值, 對應的特徵向量為 yi zTj 。 考慮


  
c11 c12 · · · c1n zT1
  
n
n X i  
X h  c21 c22 · · · c2n  zT2 
0= cij yi zTj = y1 y2 · · · yn 
 .. .. .. ..

 ..


i=1 j=1  . . . .  . 
  
cn1 cn2 · · · cnn zTn

= Y CZ T ,

其中 Y 的行向量為 yi , Z 的行向量為 zj 。 已知 A 和 B 各自有相異的特徵值, 其各自特徵


向量必定是線性獨立的, 因此 Y 與 Z T 都是可逆的, 將上式同時左乘 Y −1 , 右乘 (Z T )−1 ,
就有 C = 0, 這指出矩陣集合 {yi zTj , i, j = 1, 2, . . . , n} 是線性獨立的。

149
Problem 151

Let u and v be vectors in Rn , and let A be the square matrix uvT .

(a) What are the row space and nullspace of A in terms of u and v?

(b) Show that u is an eigenvector of A, and find the corresponding eigenvalue.

(c) Show that det(I + uvT ) = det(I + vuT ).

(d) The inverse of I + uvT has the form I + cuvT . What condition must be
satisfied so that I + uvT is invertible? And what is the value of c?

(e) What condition must be satisfied by u and v for A to be skew-symmetric


(A = −AT )?

(f) What condition must be satisfied by u and v so that A2 = A?

(g) What are the possible values of the rank of I + uvT ?

Solution

(a) 矩陣 uvT 的每行與 u 共線而每列與 v 共線, 故 A 的列空間為 v 的擴張, C(AT ) =


span{v}。 零空間是列空間的正交互補空間,N (A) = C(AT )⊥ , A 的零空間為所有
的 Rn 向量 x 滿足 vT x = 0。

(b) 由 Au = (uvT )u = (vT u)u, 可知對應的特徵值為 vT u。

(c) det(I + uvT ) = det(I + uvT )T = det(I + vuT )

(d) 直接計算矩陣乘積,

(I + uvT )(I + cuvT ) = I + uvT + cuvT + cu(vT u)vT

= I + (1 + c + cvT u)uvT 。

令上式等號右邊為單位矩陣, 若 vT u 6= −1, c = −1/(1 + vT u), I + uvT 的逆矩


陣為
uvT
(I + uvT )−1 = I − 。
1 + uT v

150
(e) 因 A 的轉置矩陣為 AT = (uvT )T = vuT , 反對稱 (skew-symmetric) 矩陣滿足
uvT = −vuT , 此結果要求 u 和 v 共線 (由題 (a)), 令 v = ku, 代回上式得到
kuuT = −kuuT , 所以 k = 0 或 u = 0, 這說明了 u 和 v 至少有一個是零向量。

(f) 因 A2 = (uvT )2 = u(vT u)vT = (vT u)uvT , 但問題限制 A2 = A, 所以一定有


vT u = 1。

(g) 若 vT u 6= −1, 則 I + uvT 是可逆的, rank(I + uvT ) = n。 但如果 vT u = −1,


考慮 (I + uvT )x = 0, 展開得到 x = −(vT x)u, 這說明 I + uvT 的零空間由 u
所擴張, 所以 dimN (I + uvT ) = 1, 故 rank(I + uvT ) = n − 1。 

Problem 152

Let A be an n by n real matrix and have eigenvalues λ1 , . . . , λn−1 , 0, so that


rankA ≤ n − 1, and suppose that the last row of A is a linear combination of the
others.

(a) If A is partitioned as  
C u
 ,
vT d
in which C is an (n − 1) × (n − 1) matrix, show that there is an (n − 1)-
dimensional vector b such that vT = bT C and d = bT u.

(b) Show that C + ubT has eigenvalues λ1 , . . . , λn−1 .

Solution

(a) 因為 A 的最底列可以表示為其他列的線性組合, 考慮以下矩陣乘法, 目的是不改變 A


的第 1 列至第 n − 1 列, 並設法藉由線性組合將最底列消去:
    
In−1 0 C u C u
  = 。
−bT 1 vT d −bT C + vT d − bT u

由題意, 必定存在 b 使乘積的最底列為零列, 亦即 vT = bT C 且 d = bT u。

151
(b) 承題 (a), 令 b 滿足此關係:
    
In−1 0 C u C u
  = ,
−bT 1 vT d 0T 0
 
In−1 0
  是基本矩陣, 故為可逆。 對給出的 A 矩陣進行以下相似轉換:
T
−b 1
      
In−1 0 C u In−1 0 C u In−1 0
   =  
T T T
−b 1 vT d b 1 0T 0 b 1
 
C + ubT u
=  = D。
0T 0

矩陣 D 相似於 A, 因此 D 和 A 有相同的特徵值, 即 λ1 , . . . , λn−1 , 0。 上三角分


塊矩陣 D 的特徵值包含主對角分塊 C + ubT 的特徵值以及主對角元 0, 由此證明
C + ubT 的特徵值即為 λ1 , . . . , λn−1 。 

Problem 153

Suppose A is a real symmetric n × n matrix.

(a) Show that the rank of A is equal to the number of nonzero eigenvalues of
A, but that this is not generally true for non-symmetric matrices.

(b) If A 6= 0, show that


(trA)2
rankA ≥ ,
tr(A2 )
with equality if and only if there is an n × r matrix U with orthonormal
columns and some a ∈ R such that A = aU U T .

Solution

(a) 首先要知道實數對稱矩陣的特徵值皆為實數, 我們總是可以選擇彼此正交且長度正規


化的特徵向量, 換言之, 實數對稱矩陣是正交可對角化。 設 n × n 階實數對稱矩陣 A
有 r 個非零特徵值 λi 6= 0, i = 1, 2, . . . , r, 而 λi = 0, i = r + 1, r + 2, . . . , n, 對

152
應的正交正規特徵向量為 ui , i = 1, 2, . . . , n。 令 U 為 n × n 階特徵向量矩陣, Λ
為 n × n 階特徵值矩陣, A 可被正交對角化:
  
λ ··· 0 uT
h i 1  1 
 . .. .  ..
A = U ΛU T = · · · un  .. . ..

u1  . 
  
0 · · · λn uTn

= λ1 u1 uT1 + · · · + λr ur uTr 。

我們將 λi = 0 的項都去除, 這是一個行-列乘積展開式, 矩陣 A 的行空間由 r 個線


性獨立的向量 u1 , . . . , ur 所擴張, 因此 rankA = r, 證明了 A 的秩等於非零特徵值
總數。 另一個想法是對 A 執行基本列運算移除可逆矩陣 U , A 列等價於 B = ΛU T ,
因此 rankA = rankB = rankB T , 繼續對 B T = UΛ 執行列運算消去
 U , 就有
0 1
rankA = rankΛ = r 。 當 A 不為對稱時, 例如, A =   有特徵值 0, 0, 但
0 0
是 rankA = 1, 上述命題對於非對稱矩陣未必成立。

(b) 承題 (a) 的設定, 因為 trA = λ1 + · · · + λr , 利用科西–舒瓦茲 (Cauchy-Schwarz)


不等式
(xT y)2 ≤ (xT x)(yT y)。

令 r-維向量 x = [λ1 , . . . , λr ]T , y = [1, . . . , 1]T , 於是


r
!2 r
X X
2
(trA) = λi ≤r λ2i = (rankA)tr(A2 ),
i=1 i=1

上式利用了 A2 的特徵值為 A 的特徵值之平方此性質。 當 A 6= 0, rankA > 0, 因此


必定存在非零特徵值, 保證 tr(A2 ) > 0, 故證得給出的不等式成立。 只在所有特徵值
都相等時, 上述不等式的左右兩邊才相等, 延續題 (a) 的結果, 若 λ1 = · · · = λr = a,
則有
 
uT
h i 1 
 .
A = a(u1 uT1 + · · · + ur uTr ) = a u1 · · · ur  ..  = aU U T 。

 
uTr

注意這裡的 U 為 n × r 階矩陣, 它包含了 r 個互為正交且正規的行向量。 

153
Problem 154

Suppose that A is an m × n matrix, B is an n × m matrix, with m ≤ n.

(a) Suppose that C is m by m, and


 E is 
n by n. Show that the eigenvalues of
C D
the triangular block matrix   are those of C together with those
0 E
of E.
   
AB 0 0 0
(b) Show that (m + n) × (m + n) matrices   and   are
B 0 B BA
similar.

(c) Show that BA has the same eigenvalues as AB, counting multiplicity, to-
gether with additional n − m eigenvalues equal to 0.

Solution

(a) 令 C 的特徵值為 λi , i = 1, 2, . . . , m, E 的特徵值為 σj , j = 1, 2, . . . , n, 分別滿


足 Cxi = λi xi , E T yj = σj yj , 其中 xi , yj 分別為 C 和 E T 的特徵向量。 考慮
      
C D xi Cxi xi
  =  = λi  
0 E 0 0 0
      
CT 0 0 0 0
  =  = σj  。
DT ET yj E T yj yj
注意  T  
C D CT 0
  = ,
0 E DT ET
 
C D
轉置矩陣與原矩陣的特徵值相同, 故分塊矩陣   有特徵值 λi , i = 1, 2, . . . , m,
0 E
與 σj , j = 1, 2, . . . , n。

154
(b) 若存在可逆矩陣 S 使 DS = SE, 則 D 和 E 是相似的。 考慮以下分塊矩陣乘法:
    
AB 0 I A AB ABA
  = 
B 0 0 I B BA
    
I A 0 0 AB ABA
  = 。
0 I B BA B BA
 
I A
分塊矩陣   其特徵值皆為 1, 因此可逆, 這證明了給出的兩分塊矩陣確實是
0 I
相似的。
   
AB 0 0 0
(c) 應用題 (a) 結果,   的特徵值即為 AB 的特徵值加上 n 個 0,  
B 0 B BA
的特徵值為 BA 的特徵值加上 m 個 0。 但由題 (b) 得知此二分塊矩陣相似, 因此
有相同的特徵值集合, 但已知 m ≤ n, 所以 n × n 階矩陣 BA 的特徵值包含來自
m × m 階矩陣 AB 的 m 個特徵值, 以及 n − m 個 0。 

Problem 155

Let  
3 1
A= .
−2 0

(a) If Ak = ck A + dk I, for k ≥ 0, find ck and dk as functions of k.

(b) Express A−1 as a linear combination of I and A.

Solution

(a) Cayley-Hamilton 定理的一個重要應用是將 n × n 階冪矩陣 Ak , k ≥ n, 以


I, A, A2 , . . . , An−1 的線性組合表示。 矩陣 A 的特徵多項式是 p(t) = t2 − 3t + 2,
根據 Cayley-Hamilton 定理, A2 − 3A + 2I = 0, 則

A2 = 3A − 2I

A3 = A(A2 ) = 3A2 − 2A = 3(3A − 2I) − 2A = 7A − 6I

A4 = A(A3 ) = 7A2 − 6A = 7(3A − 2I) − 6A = 15A − 14I 。

155
已知 Ak = ck A + dk I, 那麼 Ak+1 = ck A2 + dk A = ck (3A − 2I) + dk A =
(3ck + dk )A − 2ck I, 於是有遞迴關係

ck+1 = 3ck + dk

dk+1 = −2ck 。

初始值為 c0 = 0, d0 = 1。 將上面二式寫為矩陣形式的差分方程式:
      
ck+1 3 1 ck ck
 =   = A 。
dk+1 −2 0 dk dk

矩陣 A 可對角化為
     
3 1 1 −1 2 0 2 1
A=  = SΛS −1 =    ,
−2 0 −1 2 0 1 1 1

解出
     
ck c0 c0
  = Ak   = SΛk S −1  
dk d0 d0
    
1 −1 2k 0 2 1 0
=    
−1 2 0 1 1 1 1
 
2k − 1
= 。
−2k + 2

(b) 仍然利用 A2 − 3A + 2I = 0, 移項後 2I = −A2 + 3A = A(−A + 3I), 或


 
1
I = A (−A + 3I) ,
2

這表明了 A−1 = − 21 A + 32 I 。 另一個做法是利用題 (a) 導出的公式, 此公式不僅對


k ≥ 0 成立, 對 k = −1 也成立, 故令 k = −1, 就有 A−1 = c−1 A + d−1 I =
(2−1 − 1)A + (−2−1 + 2)I = − 21 A + 23 I 。 

156
Problem 156

Suppose a 2 by 2 real matrix has the form


 
1−a b
A= ,
a 1−b

where 0 < a ≤ 1, 0 < b ≤ 1, a + b < 2.

(a) By the eigenvalue method, show that Ak → P as k → ∞, where


 
1 b b
P = .
a+b a a

(b) Let B = A − I. By the binomial theorem, show that


1
Ak = I + [(1 + r)n − 1]B,
r
where r = −(a + b). Then, show that Ak → P , where P is given in (a).

Solution

(a) 想法是利用矩陣對角化來計算, 首先要知道 A 的特徵值及特徵向量。 不難發現 AT 有


特徵值 1, 因為     
1−a a 1 1
  = 。
b 1−b 1 1
由此可知 A 有一個特徵值為 λ1 = 1, 對應的特徵向量是 x1 = [b, a]T 。 再利用
trA = 2 − a − b = λ1 + λ2 得知另一個特徵值為 λ2 = 1 − a − b, 對應的特徵向量
為 x2 = [1, −1]T 。 接著將矩陣 A 對角化, 如下:
    
b 1 1 0 1 1
A=   1  。
a −1 0 1 − a − b a + b a −b

從已知 a + b < 2, 就有 1 − a − b > −1。 因 a > 0 且 b > 0, 1 − a − b < 1, 故


|1 − a − b| < 1。 當 k → ∞, (1 − a − b)k → 0, 所以
      
b 1 1 0 1 1 b b
Ak →    1  = 1   = P。
a −1 0 0 a + b a −b a + b a a

157
(b) 令  
−a b
B =A−I = 。
a −b

直接計算可以確認 B 2 = rB, 並歸納出 B k = r k−1 B, 其中 r = −(a + b)。 利用二


項式定理展開 Ak :
k   k  
k k
X k i
X k
A = (I + B) = B =I+ Bi
i i
i=0 i=1
" k   # " k   #
1 X k i 1 X k i
=I+ r B=I+ r −1 B
r i r i
i=1 i=0
1
= I + [(1 + r)k − 1]B 。
r

由題 (a) 我們知道 |1 + r| < 1, 因此當 k → ∞, (1 + r)k → 0, 則 Ak → I − 1r B,


整理化簡證得 P = I − 1r B 。 

Problem 157

Find eA , where  
1 2
A= .
4 3

Solution

矩陣函數的標準算法是對角化。 寫出特徵多項式

1−λ 2
det(A − λI) = = λ2 − 4λ − 5 = (λ − 5)(λ + 1),
4 3−λ

158
 
1
可知 A 有特徵值 5 和 −1, 再計算零空間 N (A − λI) 即得對應的特徵向量:  和
2
   
1 1 1
 。 將 A 對角化為 A = SΛS −1 , 其中 Λ = diag(5, −1), S =  , 則
−1 2 −1
   −1
1 1 e5 0 1 1
eA = SeΛ S −1 =    
2 −1 0 e−1 2 −1
 
1  e5 + 2e−1 e5 − e−1 
= 。
3 2e5 − 2e−1 2e5 + e−1

另一個做法是利用 Cayley-Hamiton 定理: A2 − 4A − 5I = (A − 5I)(A + I) = 0。


考慮
et = (t − 5)(t + 1)q(t) + c1 t + c0 ,

以 A 替換 t, I 替換 1, 就有 eA = c1 A + c0 I 。 將 t = 5 和 t = −1 代入 et 表達式, 可得
5c1 + c0 = e5 和 −c1 + c0 = e−1 , 解出
1 5
c1 = (e − e−1 )
6
1
c0 = (e5 + 5e−1 )。
6
所以,
  
1 1 2 1 0
eA = (e5 − e−1 )   + 1 (e5 + 5e−1 )  
6 4 3 6 0 1
 
e5 + 2e−1 e5 − e−1
1 。
= 
3 2e5 − 2e−1 2e5 + e−1

Problem 158

Let A be an n × n positive definite matrix with eigenvalues λ1 , . . . , λn . Find the


eigenvalues of  
A I
B= .
I A−1

159
Solution

運用基本列運算將 B 化簡成上三角形分塊矩陣:
      
I 0 A I A I A I
  = = 。
−A−1 I I A−1 −A−1 A + I −A−1 + A−1 0 0

考慮下列相似變換:
        
I 0 A I I 0 A I I 0 A + A−1 I
   =  = ,
−A−1 I I A−1 A−1 I 0 0 A−1 I 0 0
 
A + A−1 I
可知 B 相似於  。 所以, B 的特徵值包含主對角分塊 A + A−1 的特徵值
0 0
1
λi + λi , i = 1, . . . , n, 以及零矩陣的 n 個特徵值 0。 

Problem 159

Let A = [aij ] be an n × n matrix and


n
X
ρi (A) = |aij |, i = 1, . . . , n,
j=1
Xn
γj (A) = |aij |, j = 1, . . . , n,
i=1

ρ(A) = max {ρi (A)},


1≤i≤n

γ(A) = max {γi (A)}.


1≤j≤n

If λ is an eigenvalue of A, show that |λ| ≤ min{ρ(A), γ(A)}.

Solution

令 x = (x1 , . . . , xn )T 為對應特徵值 λ 的特徵向量, 設 M = |xi | = max{|x1 |, . . . , |xn |}。


考慮 Ax = λx 的第 i 元,

ai1 x1 + · · · + ain xn = λxi 。

160
等號兩邊取絕對值, 可得

|λ|M = |λ| · |xi | = |λxi | = |ai1 x1 + · · · + ain xn |

≤ |ai1 x1 | + · · · + |ain xn |

= |ai1 | · |x1 | + · · · + |ain | · |xn |

≤ (|ai1 | + · · · + |ain |)M

≤ ρi (A)M ≤ ρ(A)M 。

因為 x 6= 0, 可知 M > 0, 就有 |λ| ≤ ρ(A)。 注意 AT 和 A 有相同的特徵值 λ, 重複上


面的計算步驟, 可得 |λ| ≤ ρ(AT ) = γ(A)。 綜合以上結果, |λ| ≤ min{ρ(A), γ(A)}。 

Problem 160

Let A be a 3 × 3 real matrix with eigenvalues 0, 1, 2 and let u, v, w be the


corresponding eigenvectors.

(a) Find all solutions to Ax = αv + βw.

(b) Find the particular solution x in the row space of A.

Solution

(a) 因為 A 有相異特徵值 0, 1, 2, 可知對應的特徵向量 u, v, w 是線性獨立的, 故任何


x ∈ R3 皆可唯一表示成 x = c1 u + c2 v + c3 w。 利用給定條件, 可得

Ax = A(c1 u + c2 v + c3 w)

= c1 Au + c2 Av + c3 Aw

= c2 v + 2c3 w。

上式與線性方程 Ax = αv + βw 比較, 可得一特解:


β
xp = αv + w。
2
因為 Au = 0, A 的零空間 N (A) 由 u 擴張而成, 故通解為
β
x = xp + cu = αv + w + cu,
2
其中 c 是任意純量。

161
(b) 因為列空間 C(AT ) 是零空間 N (A) 的正交補集, 屬於列空間的特解必定正交於零
空間, 也就滿足下列條件:

0 = uT x
 
T β
=u αv + w + cu
2
β
= αuT v + uT w + ckuk2 ,
2

由此解出
αuT v + β2 uT w
c=− ,
kuk2
故屬於列空間的特解為

β αuT v + β2 uT w
x = αv + w− u。
2 kuk2

Problem 161

Explain what is wrong with the following arguments for Cayley-Hamilton theo-
rem: p(A) = 0, where p(λ) is the characteristic polynomial of A.

(a) “Since p(λ) = 0 for every eigenvalue λ of A, and since the eigenvalues of
q(A), q is a polynomial, are the q(λ), it follows that all eigenvalues of p(A)
are 0. Therefore, p(A) = 0.”

(b) “Since p(λ) = det(λI − A), p(A) = det(AI − A) = det(A − A) = det 0 = 0.


Therefore, p(A) = 0.”

Solution

(a) 問題出在最後一個步驟: 矩陣 p(A) 的所有特徵值為零不能保證


  rank(p(A)) = 0,
0 1
因此無法推論出 p(A) = 0, 例如, p(A) =  。
0 0

(b) 若 A 為一 n × n 階矩陣, p(λ) = det(λI − A) 代表 A 的特徵多項式, 特徵方程


p(t) = 0 的根即為 A 的特徵值。 Cayley-Hamilton 定理說: 任一方陣滿足它自己

162
的特徵方程。 我們必須先由 p(λ) = det(λI − A) 求出多項式 p(λ), 然後用此特徵
多項式建構出矩陣 p(A)。 所以, p(A) = det(AI − A) 是出於輕率的謬誤。 

Problem 162

Let A be an n × n matrix. If A has n distinct eigenvalues, show that there is a


vector x such that x, Ax, A2 x, . . . , An−1 x are linearly independent.

Solution

令 λ1 , λ2 , . . . , λn 為 n × n 階矩陣 A 的特徵值, 且 x1 , x2 , . . . , xn 為對應的特徵向量。 因


為特徵值互異, x1 , x2 , . . . , xn 構成一線性獨立集。 令

x = x1 + x2 + · · · + xn ,

就有

Ax = λ1 x1 + λ2 x2 + · · · + λn xn

A2 x = λ21 x1 + λ22 x2 + · · · + λ2n xn


..
.

An−1 x = λ1n−1 x1 + λ2n−1 x2 + · · · + λnn−1 xn 。

將上面 n 個方程式合併成矩陣形式, 如下:


 
1 λ1 λ21 · · · λ1n−1
 
1 λ2 λ22 · · · λ2n−1 
i
h i h 
x Ax A2 x ··· An−1 x = x1 x2 · · · xn  . .

.. . .

.. 
 .. .. . . . 
 
1 λn λ2n · · · λnn−1

= SC,

上式中 S 是由特徵向量 xi 構成的 n × n 階矩陣, C 是由特徵值 λi 組成的 n × n 階矩陣。


因為 S 有線性獨立的行向量, 故 S 為可逆矩陣。 注意 C 是一 Vandermonde 矩陣, 其行
列式等於
n
Y
det C = (λi − λj ),
1≤j<i≤n

163
但因為 A 有互異特徵值, det C 6= 0, 故 C 亦為可逆矩陣。 綜合以上結果, SC 是可逆的,
也就證明 x, Ax, A2 x, . . . , An−1 x 構成一線性獨立集。 

Problem 163

Find the eigenvalues of the matrix


 
2 0 2 −1
 
 
 0
2 1 −2 
A=

.

 2 1 2 0 
 
−1 −2 0 2

Solution

考慮  
0 0 2 −1
 
 
 0 0 1 −2 
B = A − 2I =  。
 
 2 1 0 0 
 
−1 −2 0 0
設 B 有特徵值 λ, 對應的特徵向量為 x, 則 Bx = (A − 2I)x = Ax − 2x = λx, 可知
A 有特徵值 λ + 2,
 對應的特徵向量為
 x。接下來的工作是解出
 B 的特徵值。 觀察出 B 具
0 C 2 −1
有分塊形式 B =  , 其中 C =  。 令 B 對應特徵值 λ 的特徵向量為
CT 0 1 −2
 
u
 , 則
v
    
0 C u u
   = λ ,
CT 0 v v

乘開可得 Cv = λu, C T u = λv。 第二式左乘 C, 再使用第一式, 即得

CC T u = λCv = λ2 u,
 
5 −4
上式說明 CC T 有特徵值 λ2 。 代入數值算出 CC T =  , 解出 λ2 = 1, 9, 立
−4 5
得 λ = ±1, ±3, 故 A 的特徵值為 −1, 1, 3, 5。 

164
Problem 164

Let x1 , x2 , . . . , xn be the eigenvectors corresponding to distinct eigenvalues λ1 , λ2 , . . . , λn


of a linear transformation. Show that x1 , x2 , . . . , xn are linearly independent.

Solution

使用數學歸納法來證明。 明顯地, x1 6= 0 構成一線性獨立集。 假設 x1 , . . . , xk−1 是線性獨


立的向量集, 考慮
c1 x1 + c2 x2 + · · · + ck xk = 0。

左乘 A, 就有

A(c1 x1 + c2 x2 + · · · + ck xk ) = c1 λ1 x1 + c2 λ2 x2 + · · · + ck λk xk = 0。

令第一式乘以 λk ,
c1 λk x1 + c2 λk x2 + · · · + ck λk xk = 0,

再將上面兩式相減, 立得

c1 (λ1 − λk )x1 + c2 (λ2 − λk )x2 + · · · + ck−1 (λk−1 − λk )xk−1 = 0。

但是 λ1 , . . . , λk 互異, 推知 c1 = c2 = · · · = ck−1 = 0, 再由第一式可推得 ck = 0, 故


x1 , x2 , · · · , xk 為一線性獨立集。 令 k = n, 即證得所求。 

Problem 165

What is the condition that a and b must satisfy so that


 
0 0 1
 
 
A = a 1 b
 
1 0 0

has three linearly independent eigenvectors?

165
Solution

寫出 A 的特徵方程式如下:

−t 0 1
2
det(A − tI) = a 1−t b = −(1 − t) (1 + t),
1 0 −t

故 A 有特徵值 1, 1, −1。 欲使 A 有三個線性獨立的特徵向量, 必須有 dim N (A − I) = 2,


亦即 rank(A − I) = 1。 利用消去法化簡 A − I:
   
−1 0 1 −1 0 1
   
   
A−I = a 0 b → 0 0 a+b ,
   
1 0 −1 0 0 0

得知 a 和 b 需滿足 a + b = 0。 

Problem 166

Let λ1 and λ2 be two eigenvalues of an n-square matrix A and let x1 and x2 be


the eigenvectors of A corresponding to λ1 and λ2 , respectively. If λ1 6= λ2 , prove
that x1 + x2 is not an eigenvector of A.

Solution

假設 A 有一特徵向量 x1 +x2 , 對應特徵值 µ, 則 A(x1 +x2 ) = µ(x1 +x2 ) = µx1 +µx2 ;


另一方面, A(x1 + x2 ) = Ax1 + Ax2 = λ1 x1 + λ2 x2 。 將上面兩式相減, 即得

(µ − λ1 )x1 + (µ − λ2 )x2 = 0,

因為 µ − λ1 6= µ − λ2 , 可推論 x1 和 x2 線性相依。 然而, 對應相異特徵值的特徵向量必


定線性獨立, 因此證得 x1 + x2 不可能是 A 的特徵向量。 

166
Problem 167

Determine the eigenvalues of the n × n matrix


 
1 1 1 ··· 1
 
 
1 −1 0 ··· 0
 
 
A = 1 0 −1 · · · 0 .
 
 .. .. .. . . .. 
. . . . . 
 
1 0 0 · · · −1

Solution
√ √
若 n = 2, A 有特徵值 2, − 2。 下面討論 n > 2 的情況。 考慮
 
n 0 0 ··· 0
 
 
0 2 1 · · · 1  
  n 0T
A2 =  0
 
1 2 · · · 1 =  ,

 ..

.. .. . . ..  0 B
. . . . .
 
0 1 1 ··· 2

其中 (n − 1) × (n − 1) 階矩陣 B 可表示為 B = In−1 + E, 矩陣 E 的所有元皆為 1。 主


對角分塊矩陣的特徵值由主對角分塊的特徵值組成, 可知 A2 的特徵值包含 n 以及 B 的所
有特徵值。 觀察出 E 有特徵向量 (1, 1, . . . , 1)T 對應特徵值 n − 1, 因為 rankE = 1, 可
知 E 還有 n − 2 個特徵值 0。 若 Ex = µx, 則 Bx = (I + E)x = (1 + µ)x, 推得 B 有
特徵值 n, 1, 1, . . . , 1, 故 A2 的特徵值為 n, n, 1, 1, . . . , 1。 若 λ2 是 A2 的特徵值, 則 A
必定有特徵值 λ 或 −λ, 剩下的問題是決定 A 的特徵值正負號。 因為矩陣跡數等於特徵值
√ √
之和, 而 traceA = −(n − 2), 由此可推論 A 的特徵值為 n, − n, −1, −1, . . . , −1。

Problem 168

Let A and B be n × n matrices such that AB = BA. If A has n distinct


eigenvalues, show that A, B, and AB are all diagonalizable.

167
Solution

設 A 有相異特徵值 λ1 , . . . , λn , 則對應的特徵向量 x1 , . . . , xn 為一線性獨立集, 故 A 可


h i
對角化為 S −1 AS = Λ, 其中 S = x1 · · · xn , Λ = diag(λ1 , . . . , λn )。 令 C =
S −1 BS, 利用 AB = BA, 就有

ΛC = (S −1 AS)(S −1 BS) = S −1 ABS = S −1 BAS = (S −1 BS)(S −1 AS) = CΛ。

由上式推知對於任意 i, j, λi cij = cij λj 。 當 i 6= j, λi 6= λj , 故必有 cij = 0, 推論 C 是


一主對角矩陣, 證得 B 可對角化。 明顯地, S −1 (AB)S = S −1 ASS −1 BS = ΛC 也是主
對角矩陣, 故 AB 亦可對角化。 

Problem 169

If the rank of the following matrix A is 3, find the value of a:


 
a 1 1 1
 
 
1 a 1 1
A= 
.

1 1 a 1
 
1 1 1 a

Solution

若 rankA = 3, 則 4 × 4 階矩陣 A 有零特徵值且相重數為 1。 剩下的工作是求出 A 的特


徵值 (表示為 a 的函數), 將 A 改寫如下:
   
a−1 0 0 0 1 1 1 1
   
   
 0 a−1 0 0  1 1 1 1
A= +  = (a − 1)I + eeT ,
   
 0 0 a−1 0  1 1 1 1
   
0 0 0 a−1 1 1 1 1

其中 e = (1, 1, 1, 1)T 。 設 eeT 的特徵值為 λ, 特徵向量為 x, 則

Ax = (a − 1)Ix + eeT x = (a − 1)x + λx = (a + λ − 1)x,

可知 A 有特徵值 a + λ − 1。 因為 (eeT )e = e(eT e) = 4e, eeT 有一特徵值 4, 對應


特徵向量 e。 由於 rank(eeT ) = 1, 根據秩–零度定理, eeT 的零空間維度等於 3, 也就是

168
說 eeT 有零特徵值且相重數為 3, 對應的特徵向量分別為 (1, −1, 0, 0)T , (0, 1, −1, 0)T ,
(0, 0, 1, −1)T 。 綜合以上結果可知 A 有特徵值 a + 3, a − 1, a − 1, a − 1, 故當 a = −3
時, rankA = 3。 

Problem 170

Let A, B, and C be m × m, n × n, and m × n matrices, respectively. If A and B


have no common eigenvalue, show that AC = CB implies C = 0.

Solution

利用等式 AC = CB, 可得

A2 C = A(AC) = A(CB) = (AC)B = (CB)B = CB 2 。

運用同樣做法可歸納出 Ak C = CB k , 其中 k 是正整數。 令 A 的特徵多項式為

p(t) = det(tI − A) = cm tm + cm−1 tm−1 + · · · + c1 t + c0 。

Cayley-Hamilton 定理給出 p(A) = 0, 也就有

0 = p(A)C = (cm Am + cm−1 Am−1 + · · · + c1 A + c0 I)C

= cm Am C + cm−1 Am−1 C + · · · + c1 AC + c0 C

= cm CB m + cm−1 CB m−1 + · · · + c1 CB + c0 C

= Cp(B)。

設 A 的特徵值為 λi , i = 1, . . . , m, 特徵多項式 p(t) 亦可表示成

p(t) = (t − λ1 )(t − λ2 ) · · · (t − λm ),

則 p(B) = (B − λ1 I)(B − λ2 I) · · · (B − λm I)。 因為 λi , i = 1, . . . , m, 不為 B 的特


徵值, 所有 B − λi I 皆可逆, 所以 p(B) 可逆, 也就證得 C = 0。 

169
Problem 171

Let A be an n × n positive definite matrix with eigenvalues λ1 , . . . , λn . Find the


eigenvalues of the following matrix:
 
A I
B= .
I A−1

Solution

設計下列相似變換:
     
I A−1 A I I −A−1 A + A−1 0
   =  = C。
0 I I A−1 0 I I 0

分塊矩陣 B 和 C 有相同的特徵值集合, 但 C 是主對角分塊矩陣, 其特徵值即為主對角分


塊 A + A−1 和 0 的特徵值聯集, 故 B 有特徵值 λi + 1/λi , i = 1, . . . , n, 以及 n 個零特
徵值。 注意 A 是正定矩陣, 可知每一 λi > 0, 因此 λi + 1/λi > 0。 

Problem 172

Find the values of a, b and c such that the following matrices are similar:
   
−5 0 0 2 0 0
   
   
A= 4 1 b , B= 0 c 0 .
   
3 2 a 0 0 −1

Solution
 
i 1 b h
因為 A 具有主對角分塊形式, 其特徵值為主對角分塊 A1 = −5 和 A2 =   的特
2 a
徵值聯集。 另一方面, A 相似於主對角矩陣 B, 可知 A 有特徵值 {2, c, −1}。 比較兩組數
組立得 c = −5, 且 2 和 −1 為分塊 A2 的特徵值, 故 traceA2 = 1 + a = 2 + (−1) = 1,
det A2 = a − 2b = 2(−1) = −2, 由此解出 a = 0, b = 1。 

170
Problem 173

Let A = [aij ] be an n × n matrix such that aij ≥ 0 for every i and j. If


Pn
j=1 aij = 1 for each i, prove that

(a) For every eigenvalue λ of A, |λ| ≤ 1.

(b) 1 is an eigenvalue of A.

(c) If A is nonsingular, then each row sum of A−1 also equals to 1.

Solution

(a) 令對應特徵值 λ 的特徵向量為 x = (x1 , . . . , xn )T , 設 |xi | = max{|x1 |, . . . , |xn |},


亦即 x 的第 i 元有最大絕對值, 顯然 xi 6= 0。 考慮 Ax = λx 的第 i 元,

ai1 x1 + · · · + ain xn = λxi 。

等號兩邊同時取絕對值, 利用已知條件可得

|λ| · |xi | = |ai1 x1 + · · · + ain xn |

≤ ai1 |x1 | + · · · + ain |xn |

≤ (ai1 + · · · + ain )|xi | = |xi |,

因此證得 |λ| ≤ 1。

(b) 令 x = (1, . . . , 1)T , 直接計算可驗證 Ax = x。

(c) 因為 A 可逆, 由 (b), Ax = x 同時左乘 A−1 , 即得 A−1 x = x, 故知 A−1 各列之


和等於 1。 

Problem 174

Let A and B be n × n nilpotent matrices. If AB = BA, prove that AB and A + B


are also nilpotent. Recall that A is nilpotent if it has no eigenvalue other than 0,
or Ak = 0 for some positive integer k.

171
Solution

因為 A 和 B 是冪零矩陣, 必有正整數 p, q 使得 Ap = B q = 0。 令 m = max{p, q}, 則


Am = B m = 0。 利用已知 AB = BA, 即得 (AB)m = Am B m = 0。 考慮
2m  
2m
X 2m
(A + B) = Ak B 2m−k 。
k
k=0

因為 max{k, 2m − k} ≥ m, 可推論 (A + B)2m = 0。 另一做法利用可交換矩陣 AB =


BA 具備同時可三角化性質, 亦即存在一可逆矩陣 P 使得 P AP −1 和 P BP −1 同為上三
角形矩陣, 其主對角元 (特徵值) 全部是零。 所以 P (AB)P −1 = (P AP −1 )(P BP −1 ) 和
P (A + B)P −1 = P AP −1 + P BP −1 亦為上三角形矩陣, 且主對角元皆為零, 因此 AB
和 A + B 的所有特徵值為零, 證得 AB 和 A + B 是冪零矩陣。 

Problem 175

Let A and B be 3 × 3 real matrices. Show that

1 
det(AB − BA) = trace (AB − BA)3 .
3

Solution

令 C = AB − BA, C 有特徵值 λi , i = 1, 2, 3。 利用跡數 (trace) 基本性質, 可得

trace(C) = trace(AB − BA) = trace(AB) − trace(BA) = 0,

即知 traceC = λ1 + λ2 + λ3 = 0。 由恆等式

λ31 + λ32 + λ33 − 3λ1 λ2 λ3 = (λ1 + λ2 + λ3 )(λ21 + λ22 + λ23 − λ1 λ2 − λ2 λ3 − λ3 λ1 )

可推得 λ31 + λ32 + λ33 = 3λ1 λ2 λ3 , 此即 traceC 3 = 3 det C 。 

Problem 176

Find all the 2 × 2 matrices A such that A2 − 3A + 2I = 0.

172
Solution

由給出條件可知 p(t) = t2 −3t+2 = (t−1)(t−2) 為 A 的一個消滅多項式 (annihilating


polynomial), 所以 A 的最小多項式 (minimal polynomial) 有以下三種可能:

(a) m(t) = t − 1, 則 m(A) = A − I = 0, 可得 A = I 。

(b) m(t) = t − 2, 則 m(A) = A − 2I = 0, 可得 A = 2I 。

(c) m(t) = (t − 1)(t − 2), 則 A 的特徵多項式為 m(t) = (t − 1)(t − 2)。 因為 A 有


相異特徵值, A 具有下列對角化形式:
 
1 0
A=P  P −1 ,
0 2

其中 P 是任意可逆矩陣。 

Problem 177

Let A = [aij ] be an n × n matrix with eigenvalues λ1 , . . . , λn . Show that


n
X n X
X n
λ2i = aij aji .
i=1 i=1 j=1

Solution

若 λ 是 A 的特徵值, 則 λ2 是 A2 的特徵值, 所以 A2 有特徵值 λ21 , . . . , λ2n , 也就有


traceA2 = λ21 + · · · + λ2n 。 另一方面, 根據跡數定義,
n
X n X
X n
traceA2 = (A2 )ii = aij aji ,
i=1 i=1 j=1

因此證得命題。 

Problem 178

An n × n complex matrix A is said to be involutory if A2 = I. If A is involutory,


prove the following statements.

173
(a) C(A − I) ⊆ N (A + I), where C(A − I) is the column space of A − I and
N (A + I) is the nullspace of A + I.

(b) rank(A + I) + rank(A − I) = n

(c) A has only eigenvalues ±1.

(d) Cn = N (A − I) ⊕ N (A + I), where N (A − I) and N (A + I) denote the


eigenspaces of 1 and −1, respectively.

(e) A is diagonalizable and similar to diag(1, . . . , 1, −1, . . . , −1).

Solution

(a) 將 A2 −I = 0 寫為 (A+I)(A−I) = 0, 對於任意 x ∈ Cn , 就有 (A+I)(A−I)x =


0, 亦即 (A − I)x ∈ N (A + I), 故得 C(A − I) ⊆ N (A + I)。

(b) 由 (a), dimC(A−I) ≤ dimN (A+I), 利用秩–零度定理 rank(A+I)+dimN (A+


I) = n, 推得 rank(A − I) + rank(A + I) ≤ n。 另一方面, 因為 A2 = AA = I,
即 A−1 = A, A 為可逆矩陣, 就有

n = rankA = rank((A + I) + (A − I)) ≤ rank(A + I) + rank(A − I)。

上面不等式成立的原因在於 C(X + Y ) ⊆ C(X) + C(Y )。 合併二不等式即證得所


求。

(c) 考慮特徵方程 Ax = λx, 左乘 A 立得 A2 x = λ2 x, 但 A2 x = Ix = x, 故知


λ2 = 1, 亦即 λ = ±1。

(d) 設 x 為任意 n 維向量, 就有

1 1 1 1
x = (x + Ax) + (x − Ax) = (I + A)x + (I − A)x。
2 2 2 2
1
然而 (I − A)(I + A) = (I + A)(I − A) = 0, 所以 2 (I + A)x ∈ N (A − I),
1
2 (I − A)x ∈ N (A + I), 由此可推論 x ∈ N (A − I) + N (A + I), 也就是
Cn = N (A − I) + N (A + I)。 對應相異特徵值的特徵空間不交集, N (A − I) ∩
N (A + I) = {0}, 也就證明了 Cn = N (A − I) ⊕ N (A + I)。

174
(e) 由 (d) 可知 A 有完整的 n 個線性獨立特徵向量, 故 A 可對角化, 由 (c) 可知 A 相
似於特徵值構成的主對角矩陣 diag(1, . . . , 1, −1, . . . , −1)。 

Problem 179

Let A be an n × n matrix. Prove that An = 0 if and only if traceAk = 0,


k = 1, 2, . . . , n.

Solution

令 A 的特徵值為 λ1 , . . . , λn , 則 An 的特徵值為 λn1 , . . . , λnn , 但 An = 0, 推知 λi = 0,


i = 1, . . . , n, 故 A 為冪零 (nilpotent) 矩陣。 對於所有 k ≥ 1, 冪矩陣 Ak 的特徵值也全
為零, 推得 traceAk = 0。 再看相反方向陳述, traceAk = 0, k = 1, . . . , n, 可表示為下列
方程組:

λ1 + λ2 + · · · + λn = 0

λ21 + λ22 + · · · + λ2n = 0


..
.

λn1 + λn2 + · · · + λnn = 0,

或寫成矩陣形式:    
1 1 ··· 1 λ1 0
    
    
 λ1 λ2 · · · λn   λ2  0
..   ..  =  ..  。
    
 .. .. ..
 . . . .   .  .
    
n−1 n−1 n−1
λ1 λ2 · · · λn λn 0
上式 n 階方陣為 Vandermonde 矩陣, 若所有特徵值彼此相異, 則 Vandermonde 矩陣是
可逆的, 因此僅存在平凡解 λ1 = · · · = λn = 0, 產生矛盾, 故推論必有相重根。 在不失一
般性情況下, 設 λ1 = λ2 , 且其餘特徵值彼此相異, 於是有下列 (n − 1) 階方程式:
    
1 1 ··· 1 2λ2 0
    
    
 λ2 λ3 · · · λn   λ3  0
..   ..  =  ..  。
    
 .. .. ..
 . . . .   .  .
    
λ2n−2 λ3n−2 · · · λnn−2 λn 0

175
按同樣方式推得 λi , i ≥ 2, 必包含相重根, 繼續下去可歸納出所有特徵值相等, 也就證明
λ1 = · · · = λn = 0。 

Problem 180

Let A = [aij ] be an n × n matrix with eigenvalues λ1 , . . . , λn . Prove that


n
X n X
X n
2
|λk | ≤ |aij |2 ,
k=1 i=1 j=1

which is also called Schur inequality.

Solution

考慮 Schur 分解定理 A = U ∗ T U , 其中 U ∗ = U −1 , T = [tij ] 為上三角形矩陣, tii = λi ,


對於任一 i = 1, . . . , n。 利用 A∗ A = U ∗ T ∗ T U , 故

trace(A∗ A) = trace(U ∗ T ∗ T U ) = trace(T ∗ T U U ∗ ) = trace(T ∗ T )。

算出
n X
X n
trace(A∗ A) = |aij |2
i=1 j=1

而且
n
X X

trace(T T ) = |λi |2 + |tij |2 。
k=1 i<j

證得 Schur 不等式成立, 等號發生於 tij = 0, i < j, 亦即 T 為主對角矩陣。 

Problem 181

Let A and B be n × n matrices and let pB (t) = det(tI − B) be the characteristic


polynomial of B. Prove that the matrix pB (A) is invertible if and only if A and
B have no common eigenvalues.

Solution

令 λ1 , . . . , λn 為方陣 A 的特徵值, 則 pB (A) 的特徵值為 pB (λ1 ), . . . , pB (λn )。 若對於


所有 i = 1, . . . , n, pB (λi ) 6= 0, 則 pB (A) 為可逆矩陣, 換句話說, λ1 , . . . , λn 不得為特
徵多項式 pB (t) 的根, 亦即不能為 B 的特徵值。 

176
Problem 182

Find an n × n matrix B with rational entries so that B is similar to


 
1−i
0 0 0 √
2

 1+i 
 √
2
0 0 0 
A=  ,

 0 −1+i

2
0 0 
 
−1−i
0 0 √
2
0

where i = −1.

Solution

考慮由 e1 = (1, 0, 0, 0) 在線性變換 A 下產生的循環子空間 span{e1 , Ae1 , A2 e1 , . . .},


直接計算可得

Ae1 = eiπ/4 e2

A2 e1 = eiπ/4 (Ae2 ) = eiπ/4 (ei3π/4 e3 ) = ei4π/4 e3

A3 e1 = ei4π/4 (Ae3 ) = ei4π/4 (ei5π/4 e4 ) = ei9π/4 e4

A4 e1 = ei9π/4 (Ae4 ) = ei9π/4 (ei7π/4 e1 ) = ei16π/4 e1 = e1 。

向量集 B = {e1 , Ae1 , A2 e1 , A3 e1 } 可作為 C4 基底, 且

A(A3 e1 ) = 1e1 + 0 · Ae1 + 0 · A2 e1 + 0 · A3 e1 。

方陣 A 參考基底 B 的表示矩陣計算如下:
 
0 0 0 1
 

i 1 
h 0 0 0
[A]B = [Ae1 ]B [A2 e1 ]B [A3 e1 ]B [A4 e1 ]B = 

,

0 1 0 0
 
0 0 1 0
此即所求之 B 矩陣。 

Problem 183

Let A be an n×n matrix. If x and y be respective right eigenvector and left eigen-
vector corresponding to a simple eigenvalue λ of A, i.e., the algebraic multiplicity
of λ is 1, show that y∗ x 6= 0.

177
Solution

設 Ax = λx, x 6= 0, λ 的相重數為 1。 利用 Schur 定理將 A 化簡為分塊上三角形矩陣:


 
λ ∗
U ∗ AU =  ,
0 B

其中 U ∗ = U −1 , U 的第一個行向量為 x/kxk, B 為 n − 1 階方陣, 且 λ 不為 B 的特徵


值。 觀察出 U ∗ AU e1 = λe1 , 標準單位向量 e1 為特徵向量, 對應特徵值 λ。 考慮
 
λ 0
(U ∗ AU )∗ = U ∗ A∗ U =  。
∗ B∗
 
0
設 U ∗ A∗ U z = λz, z 6= 0。 若 z =  , w =
6 0, 則
w
   
0 0
U ∗ A∗ U z =   =  ,
B ∗w λw

得知 λ 為 B ∗ 的特徵值, 也就是說, λ 為 B 的特徵值, 這與原命題矛盾, 故 z 的第一個元


必定不為零, 就有
(U z)∗ (U e1 ) = z∗ U ∗ U e1 = z∗ e1 6= 0。

然而 (U z)∗ A = λ(U z)∗ 且 A(U e1 ) = λ(U e1 ), 這表示 U z 和 U e1 分別為 A 的左特


徵向量和右特徵向量。 因為已經假設左特徵空間和右特徵空間維度皆為 1, 必有 y = αU z,
α 6= 0, 且 x = βU e1 , β 6= 0, 證得 y∗ x = αβz∗ e1 6= 0。 

178
二次型
Problem 184

Let A = [aij ] be an n × n complex matrix. The numerical range of A is defined


by
W (A) = {x∗ Ax|x ∈ Cn , kxk = 1}

(a) Show that W (A + cI) = W (A) + c for every c ∈ C.

(b) Show that W (cA) = cW (A) for every c ∈ C.

(c) Explain why aii ∈ W (A).

(d) Let λ be an eigenvalue of A. Explain why λ ∈ W (A).

(e) Describe W (A) if A is Hermitian.

Solution

(a) 直接計算 x∗ (A + cI)x = x∗ Ax + cx∗ x = x∗ Ax + c。

(b) 如 (a), x∗ (cA)x = c(x∗ Ax)。

(c) 設 ei 為標準單位向量, 其第 i 元等於 1, 其餘各元為零, 則 e∗i Aei = aii ∈ W (A)。

(d) 考慮 Ax = λx, 且 kxk = 1, 則 x∗ Ax = x∗ (λx) = λ ∈ W (A)。

(e) Hermitian 矩陣 A 可分解為 A = U ΛU ∗ , 其中 Λ = diag(λ1 , . . . , λn ), U ∗ =


U −1 , 則
n
X
x∗ Ax = x∗ U ΛU ∗ x = z∗ Λz = λi zi2 ,
i=1

上式中 z = U ∗ x。 注意, kzk2 = kU ∗ xk2 = x∗ U U ∗ x = kxk2 = 1, 因此 λmin ≤


z∗ Λz ≤ λmax , 其中 λmin = mini=1,...,n λi , λmax = maxi=1,...,n λ。 因為 W (A) =
W (Λ), 推得 λmin ≤ W (A) ≤ λmax 。 

179
Problem 185

Let  
I B
A= ,
BT 0
where I and B are n by n matrices. If B is nonsingular, determine the number
of positive, negative, and zero eigenvalues of A.

Solution

給出的 A 是對稱矩陣, 其特徵值必為實數。 問題只要求得到特徵值的正負, 而非大小, 我們


可以利用相合 (congruence) 變換來化簡對稱矩陣 A。 若 S −1 存在, 相合變換 S T AS 不改
變正特徵值總數, 負特徵值總數, 和零特徵值總數, 這個性質稱為 Sylvester 慣性定律 (law
of inertia)。 實際做法是設計出可逆矩陣 S 使得 S T AS 為主對角分塊矩陣, 下為一例,
     
I 0 I B I −B I 0
   = 。
−B T I BT 0 0 I 0 −B T B

主對角分塊矩陣的特徵值由各主對角分塊組成, n 階單位矩陣 I 的特徵值全是 1, n 階對稱


矩陣 −B T B 是負定矩陣。 因為 B 是可逆矩陣, 對於任意 x 6= 0, Bx 6= 0, 就有

xT (−B T B)x = −(Bx)T (Bx) = −kBxk2 < 0。

負定矩陣的特徵值都小於零。 所以, A 有 n 個正特徵值, n 個負特徵值。 

Problem 186

Suppose A is symmetric positive semi-definite. Show that there exists a unique


symmetric positive semi-definite matrix B such that B 2 = A.

Solution

設 A 為 n 階對稱半正定方陣。 將 A 對角化為 A = U ΛU ∗ , 其中 Λ = diag(λ1 , . . . , λn ),


1 √ √ 1
λi ≥ 0, i = 1, . . . , n, 且 U ∗ U = I 。 令 Λ 2 = diag( λ1 , . . . , λn ) 且 B = U Λ 2 U ∗ ,
顯然 B 是對稱半正定矩陣, 而且

1 1
B 2 = U Λ 2 U ∗ U Λ 2 U ∗ = U ΛU ∗ = A。

180
剩下只需要證明唯一性。 假設 C 為對稱半正定, 且 C 2 = B 2 = A。 因為 A 的特徵值等於
1
C 的特徵值平方, 故 C 必定可表示為 C = V Λ 2 V ∗ , V ∗ V = I 。 由 C 2 = B 2 可得

V ΛV ∗ = U ΛU ∗ 。

令 W = U ∗ V , 上式左乘 U ∗ , 右乘 V , 就有

W Λ = ΛW 。

乘開比較各元得到 W = I, 亦即 U = V , 證得 B 是唯一的。 

Problem 187

Let A be an n by n real normal matrix. A matrix is called normal if AT A = AAT .


Show that A and AT have the same nullspace and column space, i.e., N (AT ) =
N (A) and C(AT ) = C(A).

Solution

先證明 N (AT ) ⊆ N (A)。 設 x ∈ N (AT ), 即 AT x = 0, 就有 AAT x = A0 = 0,


故 x ∈ N (AAT )。 已知 AT A = AAT , 因此 x ∈ N (AT A), 即 AT Ax = 0。 計
算 xT AT Ax = (Ax)T (Ax) = kAxk2 = 0, 推知 Ax = 0。 使用同樣方式可以證得
N (A) ⊆ N (AT ), 故 N (AT ) = N (A)。
接著證明 C(AT ) ⊆ C(A)。 設 x ∈ C(AT ), 這表示存在 y 使得 x = AT y。A 是
正規矩陣, 必定存在一正交矩陣 Q 使得 AT = AQ, 因為 AT A = (AQ)(QT AT ) =
AQQT AT = AAT 。 所以 x = AT y = AQy, x ∈ C(A)。 同樣道理可以證得 C(A) ⊆
C(AT ), 故 C(AT ) = C(A)。 

Problem 188

Suppose A is a real symmetric positive definite. For every vector x, show that


xT A−1 x = maxy 2xT y − yT Ay .

181
Solution

設 A 為 n × n 階對稱正定矩陣, 令 A 正交對角化為 A = QΛQT , 其中 QT = Q−1 ,


Λ = diag(λ1 , . . . , λn ), 且每個 λi > 0。 令 z = QT x, 則

xT A−1 x = xT QΛ−1 QT x = zT Λ−1 z。

令 w = QT y, 最大化條件式亦可表示為

maxw 2zT w − wT Λw 。

將上式展開, 使用正定矩陣性質 vT Λv ≥ 0可得



2zT w − wT Λw = − zT Λ−1 z − 2zT w + wT Λw + zT Λ−1 z

= −(Λ−1 z − w)T (z − Λw) + zT Λ−1 z

= −(Λ−1 z − w)T Λ(Λ−1 z − w) + zT Λ−1 z

≤ zT Λ−1 z,

證畢。 

Problem 189

Suppose A, B, and C are n by n real matrices. For each of the following state-
ments, give an example.

(a) A and B have only positive eigenvalues, but AB has only negative eigen-
values.

(b) A, B, and C are positive definite, but ABC has only negative eigenvalues.

Solution

(a) 矩陣乘法是代數性質延伸最常出錯的地方, 矩陣乘積的特徵值正負號變化就是一例。


三角形方陣的特徵值即為其主對角元, 可以考慮
   
1 2 1 0
A= , B= 。
0 1 −2 1

182
A 和 B 的特徵值皆為 1, 1。 計算 AB 得
 
−3 2
AB =  ,
−2 1

解出特徵值 −1, −1。

(b) 正定矩陣乘積未必有正特徵值, 關鍵在於非主對角元可以為負值。 利用正定矩陣的主


子陣行列式都是正數, 考慮下面的正定矩陣
     
3 1 1 0 5 −2
A= , B =  , C =  。
1 1 0 30 −2 1

計算其乘積可得  
−45 24
ABC =  ,
−55 28
其特徵值為 −5, −12。 此例並顯示對稱矩陣乘積未必仍為對稱。 

Problem 190

If A is a 3 × 3 symmetric matrix with eigenvalues λ1 < λ2 < λ3 . Prove that if p,


q are two eigenvalues of a 2 × 2 principal submatrix of A and p ≤ q, then

λ1 ≤ p ≤ λ2 ≤ q ≤ λ3 .

Solution

三階對稱矩陣 A 必可正交對角化為 A = QΛQT , 其中 Λ = diag(λ1 , λ2 , λ3 ), Q = [qij ]


為正交矩陣 (orthogonal matrix), QT = Q−1 。 對於 t 6= λi , i = 1, 2, 3, tI − A 是可逆
的, 且
tI − A = Q(tI)QT − QΛQt = Q(tI − Λ)QT

其伴隨矩陣為
adj(tI − A) = det(tI − A)(tI − A)−1 。

注意, 對稱矩陣的主子陣亦為對稱矩陣。 設 B 為 A 的左上 2 × 2 階主子陣, 其特徵值為 p,


q, 且 p ≤ q 。 利用第一式計算 (tI − A)−1 = Q(tI − Λ)−1 QT 的 (3, 3) 元:
2
q31 q2 q2
+ 32 + 33 。
t − λ1 t − λ2 t − λ3

183
利用第二式也可得 (tI − A)−1 的 (3, 3) 元, 即 (adj(tI − A))33 / det(tI − A), 也就是
det(tI2 − B)/ det(tI − A), 因此有

det(tI2 − B) q2 q2 q2
= 31 + 32 + 33 。
det(tI − A) t − λ1 t − λ2 t − λ3

因為 p, q 是 det(tI2 − B) 的二根, 將上面的特徵多項式因式分解, 就有

(t − p)(t − q) q2 q2 q2
= 31 + 32 + 33 。
(t − λ1 )(t − λ2 )(t − λ3 ) t − λ1 t − λ2 t − λ3

設 ǫ 為正數, 若 t = λ3 + ǫ, 上式等號右邊為正, 表示 p, q 在 λ3 + ǫ 同側; 若 t = λ1 − ǫ,


上式等號右邊為負, p 和 q 也在 λ1 − ǫ 同側。 令 ǫ → 0, 綜合上面兩個結果可知 λ1 ≤ p ≤
q ≤ λ3 , 剩下只要證明 p, q 在 λ2 的兩側即可。 同樣考慮 t = λ2 + ǫ, 當 ǫ → 0, 等號右
側為正, 等號左側分母為負, 所以分子必須也為負, 這說明 p ≤ λ2 ≤ q 。 

Problem 191

Let A be an n × n real symmetric positive definite matrix. If B is an n × m real


matrix, show that B T AB is positive semidefinite. Also show that rank(B T AB) =
rankB, so that B T AB is positive definite if and only if B has rank m.

Solution

首先, 不難驗證 B T AB 是對稱的。 已知 A 是正定矩陣, 對於任意 m-維實數向量 x, 我們


有 xT B T ABx = (Bx)T A(Bx) ≥ 0, 因此得知 B T AB 是半正定矩陣。 上式的等號發生
於 Bx = 0, 所以如果 Bx 6= 0, 必有 xT B T ABx > 0。
注意, B 是 n × m 階矩陣, B T AB 是 m × m 階矩陣。 如果能證明 B T AB 和 B
有相同的零空間, 根據秩–零度定理, 便有 rank(B T AB) = rankB 。 若 Bx = 0, 很明顯,
B T ABx = 0; 反之, 若 B T ABx = 0, 則 xT B T ABx = 0, 由前面結果推知 Bx = 0。
最後我們證明若 rankB = m 則 B T AB 是正定。 若 rankB = rank(B T AB) = m,
B T AB 是滿秩, 所有特徵值皆不為零, 因此是正定矩陣, 反向陳述也同樣成立。 

Problem 192

Let A be an n × n real symmetric positive semidefinite matrix and x be an n-


dimensional real vector. Show that xT Ax = 0 if and only if Ax = 0. Conclude

184
that an n × n positive semidefinite matrix has rank n if and only if it is positive
definite.

Solution

考慮下面的二次多項式
p(t) = (x + ty)T A(x + ty),

其中 t 為實數。 已知 A 是半正定, 因此對於任意 t, p(t) ≥ 0。 將上式乘開, 因為 A 是對稱


矩陣, AT = A, 就有

p(t) = xT Ax + 2tyT Ax + t2 yT Ay。

計算微分
dp
= 2yT Ax + 2tyT Ay。
dt
dp
若常數項 xT Ax = 0, 便有 p(0) = 0。 二次多項式有唯一極值, 所以當 t = 0, dt = 0。 這
指出 yT Ax = 0, 此式對於任意 y 都成立, 故必定有 Ax = 0。 相反方向的推論十分明顯,
若 Ax = 0, 則 xT Ax = 0。 若半正定矩陣 A 是滿秩, rankA = n, 則零空間 N (A) 僅包
含零向量, 所以對於 x 6= 0, 有 Ax 6= 0, 使用上述結果得知 xT Ax > 0, 反向陳述亦同。

Problem 193

Let A be an n × n matrix. Show that A∗ A and AA∗ are unitarily similar, i.e.,
there exists a unitary matrix Q such that

AA∗ = QA∗ AQ∗ .

Note that Q is unitary if QQ∗ = Q∗ Q = I.

Solution

令 A 的奇異值分解為 A = U ΣV ∗ , 其中 Σ 為一 n × n 階實主對角矩陣, U 和 V 為 n × n
階么正 (unitary) 矩陣。 計算

A∗ A = V ΣU ∗ U ΣV ∗ = V Σ2 V ∗

185

AA∗ = U ΣV ∗ V ΣU ∗ = U Σ2 U ∗ = (U V ∗ )(V Σ2 V ∗ )V U ∗ = Q(A∗ A)Q∗ ,

其中 Q = U V ∗ 是么正矩陣, 因為 QQ∗ = U V ∗ V U ∗ = U U ∗ = I 。 

Problem 194

Find a 3 × 3 real symmetric matrix A such that the eigenvalues of A are 1, 1, and
−1, and (1, 1, 1) and (2, 1, 1) are eigenvectors corresponding to the eigenvalue 1.

Solution

令 x 為對應特徵值 −1 的特徵向量。 因為實對稱矩陣對應相異特徵值的特徵向量互為正交,


可知 x ⊥ span{(1, 1, 1)T , (2, 1, 1)T }。 令
 
1 1 1
B= ,
2 1 1

則 Bx = 0, 解出 x = α(0, 1, −1)T , 故對應特徵值 1, 1, 和 −1 的特徵向量分別是


(1, 1, 1)T , (2, 1, 1)T , 和 (0, 1, −1)T 。 寫出對角化表達式, 可得
   −1  
1 2 0 1 0 0 1 2 0 1 0 0
     
     
A= 1 1 1  0 1 0  1 1 1  = 0 0 1 。
     
1 1 −1 0 0 −1 1 1 −1 0 1 0

Problem 195

Let A, B be n × n matrices. If A is Hermitian and positive semidefinite, prove


that A2 B = B 2 A if and only if AB = BA.

Solution

因為 A 是 Hermitian 且正定, 故可對角化為 A = U DU ∗ , 其中 U 是么正 (unitary)


矩陣, U ∗ U = U U ∗ = I, 且 D = diag(λ1 , . . . , λn ), λj ≥ 0。 將分解式代入 A2 B =
B 2 A, 就有 U D2 U ∗ B = BU D2 U ∗ , 等號兩邊左乘 U ∗ , 右乘 U , 可得 D 2 (U ∗ BU ) =

186
(U ∗ BU )D 2 。 令 C = [cij ] = U ∗ BU , 就有 D 2 C = CD2 。 若能證明 DC = CD, 即
D(U ∗ BU ) = (U ∗ BU )D, 左乘 U , 右乘 U ∗ , 即證得 AB = BA。 下面證明 DC = CD:
展開 D2 C = CD2, 比較等號兩邊 (i, j) 元, 可知 λ2i cij = cij λ2j 。 若 cij 6= 0, 則 λi = λj ,
即知 λi cij = cij λj 。 若 cij = 0, 同樣有 λi cij = cij λj = 0。 因此證明 DC = CD。 

Problem 196

Let A be a 5 × 4 real matrix. If A has nonzero singular values 1, 2, 3, 4, determine


the value for each of the following functions.

(a) det(AT A)

(b) trace(AAT )

(c) dim N (AAT )

(d) max kAxk


kxk=1

Solution

設 A 的奇異值分解為 A = U ΣV T , 其中 U U T = U T U = I5 , V V T = V T V = I4 ,
 
4 0 0 0
 
 
0 3 0 0
 
 
Σ = 0 0 2 0 。
 
 
0 0 0 1
 
0 0 0 0

將奇異值分解代入計算 AT A 和 AAT , 得到以下結果:

AT A = (U ΣV T )T (U ΣV T ) = V ΣT U T U ΣV T = V ΣT ΣV T

AAT = (U ΣV T )(U ΣV T )T = U ΣV T V ΣT U T = U ΣΣT U T ,

187
其中  
  42 0 0 0 0
42 0 0 0 






  0 32 0 0 0
T
0 32 0 0  
ΣΣT =  0 0 22 0
 
Σ Σ=

,
 0 。
0 0 22 0 



   0 0 0 12 0
0 0 0 12  
0 0 0 0 0
(a)

det(AT A) = det(V ΣT ΣV T ) = (det V ) det(ΣT Σ)(det V T )

= det(ΣT Σ) = 42 · 32 · 22 · 12 = 576。

(b)

trace(AAT ) = trace(U ΣΣT U T ) = trace(ΣΣT U T U )

= trace(ΣΣT ) = 42 + 32 + 22 + 12 + 0 = 30。

(c) 利用秩–零度定理, 可知 rank(AAT ) + dim N (AAT ) = 5。 因為 U 是實正交矩陣,


因此可逆, 即知

rank(AAT ) = rank(U ΣΣT U T ) = rank(ΣΣT ) = 4。

所以, dim N (AAT ) = 5 − 4 = 1。

(d) 利用奇異值分解寫出

kAxk2 = (Ax)T (Ax) = xT AT Ax

= xT V ΣT ΣV T x = zT ΣT Σz,

上面令 z = V T x, 就有 kzk2 = zT z = xT V V T x = xT x = 1, 因此原問題又等價


於計算

max zT ΣT Σz。
kzk=1

令 z = (z1 , z2 , z3 , z4 )T , 且 z12 + z22 + z32 + z42 = 1, 可得

zT ΣT Σz = 42 z12 + 32 z22 + 22 z32 + 12 z42 ≤ 42 (z12 + z22 + z32 + z42 ) = 42 ,

等號發生於 z = (1, 0, 0, 0)T 。 所以, maxkxk=1 kAxk = 4。 

188
Problem 197

Let A and B be n × n real symmetric positive definite matrices. Find a nonzero


vector x ∈ Rn that minimizes
xT Ax
f (x) = .
xT Bx
What is the minimum value of f (x)?

Solution

實對稱正定矩陣 B 的特徵值 λi (B) 皆為正實數, 且 B 可正交對角化為 B = QDQT ,


其中 D = diag(λ1 (B), . . . , λn (B)), Q 是實正交矩陣滿足 QT = Q−1 。 令 D1/2 =
p p 
diag λ1 (B), . . . , λn (B) , 則 B 可分解為

B = QD1/2 QT QD1/2 QT = CC = C T C 。

上式中 C = QD1/2 QT 是實對稱正定矩陣, 因此可逆。 令 y = Cx, 改寫 f 如下:


xT Ax (C −1 y)T A(C −1 y) yT C −1 AC −1 y
= = 。
xT C T Cx yT y yT y
T
令 H = C −1 AC −1 , 現在問題變成求 y 6= 0 使 yyTHy
y 最小。 因為 H 也是實對稱正定矩
h i
陣, 故可正交對角化為 H = U ΛU T , 其中 U = u1 · · · un 是實正交矩陣, ui 是對應
特徵值 λi (H) 的特徵向量, Λ = diag(λ1 (H), . . . , λn (H))。 在不失一般性的原則下, 假設
λ1 (H) ≥ · · · ≥ λn (H) > 0, 令 z = U T y, 因為 U U T = I, 就有
yT Hy yT U ΛU T y zT Λz
T
= T T
= T
y y y UU y z z
λ1 (H)z1 + · · · + λn (H)zn2
2
=
z12 + · · · + zn2
λn (H)(z12 + · · · + zn2 )
≥ = λn (H)。
z12 + · · · + zn2
當 y = un , 亦即 y 為對應 H 的最小特徵值 λn (H) 的單位長度特徵向量, 這時 z =
yT Hy
U T un = (0, . . . , 0, 1)T , 即有 yT y = λn (H)。 所以, 當 x = C −1 un , 函數 f 有最小
值 λn (H)。 最後將特徵方程 Hu = λu 化簡。 使用 H = C −1 AC −1 , x = C −1 u, 就有
C −1 Ax = λCx, 上式左乘 C 即得 Ax = λC 2 x = λBx, 再左乘 B −1 , 導出

B −1 Ax = λx。

189
換句話說, 當 x 為對應 λn (B −1 A) = λn (H) 的特徵向量時, f 有最小值 λn (B −1 A)。 

Problem 198

Let A and B be n × n positive semidefinite matrices. Show that

C(AB) ∩ N (AB) = {0},

where C(AB) and N (AB) are the column space and nullspace of AB, respectively.
If B = I, it proves C(A) ∩ N (A) = {0}.

Solution

令 x ∈ C(AB) ∩ N (AB), 則存在 y 使得 x = ABy 且 ABx = 0, 合併兩式就有


ABABy = 0。 等號左乘 y∗ B, 半正定矩陣 B 可分解為 B = B 1/2 B 1/2 , B 1/2 也是半正
定, 即得

0 = y∗ BABABy = (y∗ BAB 1/2 )(B 1/2 ABy) = kB 1/2 AByk2 。

這指出 B 1/2 ABy = 0, 左乘 B 1/2 , 就有 BABy = 0。 再運用上述做法, 左乘 y∗ , 利用


A = A1/2 A1/2 可知

0 = y∗ BABy = (y∗ BA1/2 )(A1/2 By) = kA1/2 Byk2 ,

推論 A1/2 By = 0, 左乘 A1/2 , 即得 ABy = 0, 因此證明 x = 0。 

Problem 199

Let A be an n × n matrix with singular values σi , i = 1, . . . , n. Note that the


nonnegative square roots of the eigenvalues of A∗ A are called the singular values
of A. Show that

(a) A∗ has the same singular values as A.

(b) U AV has the same singular values as A, where U and V are n × n unitary
matrices.
1
(c) (A∗ A) 2 = U A for some unitary matrix U .

190
Solution

(a) 因為矩陣乘積 XY 和 Y X 有相同的特徵值, A∗ A 和 AA∗ 也有相同的特徵值, 但


A 和 A∗ 的奇異值分別為 A∗ A 和 AA∗ 的特徵值的非負平方根, 故 A∗ 和 A 有相
同的奇異值。

(b) 考慮
(U AV )∗ (U AV ) = V ∗ A∗ U ∗ U AV = V ∗ (A∗ A)V,

得知 (U AV )∗ (U AV ) 相似於 A∗ A, 所以此二矩陣有相同的特徵值, 也就表明 U AV


和 A 有相同的奇異值。

(c) 設 A 的奇異值分解為 A = W ΣV ∗ , W 和 V 為 n × n 夭正 (unitary) 矩陣,


Σ = diag(σ1 , . . . , σn ), 則

A∗ A = (V ΣW ∗ )(W ΣV ∗ ) = V Σ2 V ∗ 。

將 A 的奇異值分解代入下式,

(U A)2 = U AU A = U (W ΣV ∗ )U (W ΣV ∗ ) = (U W )Σ(V ∗ U W )ΣV ∗ 。

令么正矩陣 U = V W ∗ , 就有 V ∗ U W = I, U W = V , 因此 A∗ A = (U A)2 , 即得
證。 

Problem 200

Let A be an n × n matrix. Show that A = 0 if and only if x∗ Ax = 0 for all


x ∈ Cn .

Solution

若 A = 0, 明顯地, 任意 x 都有 x∗ Ax = 0。 下面證明反向陳述, 將 n 維標準單位向量 ei ,


i = 1, . . . , n, 取代 x, 可得 e∗i Aei = aii = 0。 再令 x = ei + cej , i 6= j, c ∈ C, 就有

(ei + cej )∗ A(ei + cej ) = aii + caij + c̄aji + cc̄ajj = 0。

由前面得到結果 aii = ajj = 0, 即知 caij + c̄aji = 0, 但 c 為任意複數, 推論 aij +aji = 0


且 aij − aji = 0, 故得 aij = aji = 0。 

191
參考文獻

台大圖書館各校研究所入學試題連結網站: http://www.lib.ntu.edu.tw/exam/default.htm

美國麻省理工學院線性代數教學網站: http://web.mit.edu/18.06/www/
參考書目:

H. Anton, C. Rorres, Elementary Linear Algebra, 8th ed., John Wiley & Sons,
New York, 2000.

S. H. Friedberg, A. J. Insel, and L. E. Spence, Linear Algebra, 4th ed., Prentice


Hall, Upper Saddle River, NJ, 2003.

P. R. Halmos, Finite-Dimensional Vector Spaces, Springer-Verlag, New York,


1958.

R.A. Horn, C. R. Johnson, Matrix Analysis, Cambridge University Press, New


York, 1985.

B. Jacob, Linear Algebra, W.H. Freeman and Company, New York, 1990.

D.C. Lay, Linear Algebra and its Applications, 3rd ed., Pearson, New York, 2006.

S. J. Leon, Linear Algebra with Applications, 5th ed., Prentice Hall, Upper Saddle
River, NJ, 1998.

C. Meyer, Matrix Analysis and Applied Linear Algebra, SIAM, Philadelphia, 2000.

G. Strang, Linear Algebra and its Applications, 3rd ed., Harcout Brace Jo-
vanovich, San Diego, CA, 1988.

G. Strang, Introduction to Linear Algebra, 3rd ed., Wellesley-Cambridge, Welles-


ley, MA, 2003.

F. Zhang, Linear Algebra: Challenging Problems for Students, Johns Hopkins


University Press, Baltimore, 1996.

F. Zhang, Matrix Theory: Basic Results and Techniques, Springer-Verlag, New


York, 1999.

192

You might also like