113 年 國立成功大學電機工程學系碩士班已組《線性代數》

📄 試題原卷 免費註冊後即可對照原始考卷 PDF免費註冊

第 1 題30 分

  1. (30 pts, 3pts each) Mark each statement True or False (2 pts for correct answer). Justify each answer (1 pts).
    a. If U is m×nm \times n with orthogonal columns, then UUTxUU^T x is the orthogonal projection of xx onto Col UU.
    b. If B is m×nm \times n and xx is a unit vector in Rn\mathbb{R}^n, then ∥Bx∥≤σ1\|Bx\| \le \sigma_1, where σ1\sigma_1 is the first singular value of B.
    c. A singular value decomposition of an m×nm \times n matrix B can be written as B=PEQB = PEQ, where P is an m×mm \times m orthogonal matrix, Q is an n×nn \times n orthogonal matrix, and Σ\Sigma is an m×nm \times n "diagonal" matrix.
    d. If W is a subspace, then ∥projWv∥2+∥v−projWv∥2=∥v∥2\|\text{proj}_W v\|^2 + \|v - \text{proj}_W v\|^2 = \|v\|^2.
    e. A least-squares solution of Ax=bAx = b is the vector Ax^A\hat{x} in Col AA closest to bb, so that ∥b−Ax^∥≤∥b−Ax∥\|b - A\hat{x}\| \le \|b - Ax\| for all xx.
    f. The normal equations for a least-squares solution of Ax=bAx = b are given by x^=(ATA)−1ATb\hat{x} = (A^TA)^{-1}A^Tb.
    g. If A is row equivalent to the identity matrix II, then A is diagonalizable.
    h. Each eigenvector of an invertible matrix A is also an eigenvector of A−1A^{-1}.
    i. If A is m×nm \times n and the linear transformation x↦Axx \mapsto Ax is onto, then rank A=m\text{rank } A = m.
    j. A change-of-coordinates matrix is always invertible.

登入後即可作答並保存紀錄。

這一題的完整詳解

本題評量線性代數中投影、特徵值、奇異值分解、最小平方法與座標變換等核心定理。

各小題逐題解析

a. False
若 m×nm \times n 矩陣 UU 的行向量僅為相互正交(orthogonal columns)而非正規正交(orthonormal columns),其長度不一定為 1。投影至行空間 Col U\text{Col } U 的正交投影矩陣為:

P=U(UTU)−1UTP = U(U^T U)^{-1}U^T

僅當 UU 的行向量為正規正交集時,UTU=InU^T U = I_n,投影矩陣才簡化為 UUTUU^T。若未正規化,例如取 U=(20)U = \begin{pmatrix} 2 \\ 0 \end{pmatrix},則 UUTx=(4000)xUU^T x = \begin{pmatrix} 4 & 0 \\ 0 & 0 \end{pmatrix} x,顯然不是長度不變的正交投影。

b. True
設 BB 之奇異值分解為 B=UΣVTB = U\Sigma V^T。因正交矩陣保持向量範數,令 y=VTxy = V^T x,當 ∥x∥=1\|x\| = 1 時,∥y∥=1\|y\| = 1。因此:

∥Bx∥2=∥Σy∥2=∑i=1r(σiyi)2≤σ12∑i=1ryi2≤σ12∥y∥2=σ12\|Bx\|^2 = \|\Sigma y\|^2 = \sum_{i=1}^r (\sigma_i y_i)^2 \le \sigma_1^2 \sum_{i=1}^r y_i^2 \le \sigma_1^2 \|y\|^2 = \sigma_1^2

故 ∥Bx∥≤σ1\|Bx\| \le \sigma_1,敘述正確。

c. True
奇異值分解保證任意 m×nm \times n 矩陣 BB 皆可分解為 B=UΣVTB = U\Sigma V^T(或題意記為 PEQPEQ),其中 PP 為 m×mm \times m 正交矩陣,QQ 為 n×nn \times n 正交矩陣,Σ\Sigma(或 EE)為 m×nm \times n 主對角線包含奇異值的廣義對角矩陣,形式完全相符。

d. True
根據正交分解定理,任意向量 vv 可唯一分解為 v=v^+zv = \hat{v} + z,其中 v^=projWv∈W\hat{v} = \text{proj}_W v \in W 且 z=v−projWv∈W⊥z = v - \text{proj}_W v \in W^{\perp}。因兩向量正交(v^⋅z=0\hat{v} \cdot z = 0),由畢氏定理可得:

∥projWv∥2+∥v−projWv∥2=∥v∥2\|\text{proj}_W v\|^2 + \|v - \text{proj}_W v\|^2 = \|v\|^2

e. False
最小平方法解(least-squares solution)被定義為使得誤差 ∥b−Ax∥\|b - Ax\| 最小的未知向量 x^\hat{x} 本身,而非其在行空間中的投影向量 Ax^A\hat{x}。題幹敘述「A least-squares solution ... is the vector Ax^A\hat{x}」混淆了「解向量 x^\hat{x}」與「投影向量 Ax^A\hat{x}」,故為錯誤。

f. False
最小平方法解之正規方程(normal equations)之標準形式為矩陣方程組:

ATAx^=ATbA^T A\hat{x} = A^T b

題幹給出的式子 x^=(ATA)−1ATb\hat{x} = (A^TA)^{-1}A^Tb 僅在 ATAA^TA 可逆(即 AA 之行向量線性獨立)時才成立。若 AA 之行向量線性相依,ATAA^TA 不可逆,正規方程依然存在無限多解,但不能寫為求逆形式;且正規方程指稱的是該方程組本身而非單一解公式。

g. False
矩陣 AA 列等價(row equivalent)於單位矩陣 II,僅代表 AA 為可逆矩陣(Invertible)。但可逆矩陣不一定可對角化。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 2 題16 分

  1. (16 pts, 8 pts each) Let T: Rn→Rm\mathbb{R}^n \to \mathbb{R}^m be a linear transformation.
    a. What is the dimension of the range of T if T is a one-to-one mapping? Explain.
    b. What is the dimension of the kernel of T if T maps Rn\mathbb{R}^n onto Rm\mathbb{R}^m? Explain.

登入後即可作答並保存紀錄。

這一題的完整詳解

本題考查線性轉換的性質,特別是關於 one-to-one (單射) 和 onto (滿射) 的條件與維度關係。

核心觀念:線性轉換的核空間 (kernel) 與值域 (range) 的維度,以及維度定理 (rank-nullity theorem)。

詳解:
a. 單射 (One-to-one Mapping):
一個線性轉換 T:V→WT: V \to W 是單射,若且唯若其核空間 (kernel) 只包含零向量,即 ker(T)={0}\text{ker}(T) = \{0\}。
根據維度定理 (Rank-Nullity Theorem),對於一個線性轉換 T:V→WT: V \to W,有 dim⁡(V)=dim⁡(ker(T))+dim⁡(range(T))\dim(V) = \dim(\text{ker}(T)) + \dim(\text{range}(T))。
在本題中,線性轉換是 T:Rn→RmT: \mathbb{R}^n \to \mathbb{R}^m。
如果 T 是單射,則 dim⁡(ker(T))=0\dim(\text{ker}(T)) = 0。
將此代入維度定理:n=0+dim⁡(range(T))n = 0 + \dim(\text{range}(T))。
因此,dim⁡(range(T))=n\dim(\text{range}(T)) = n。
答案:nn。

b. 滿射 (Onto Mapping):
一個線性轉換 T:V→WT: V \to W 是滿射,若且唯若其值域 (range) 是整個對應域 W,即 range(T)=W\text{range}(T) = W。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 3 題16 分

  1. (16 pts, 8 pts each)
    a. In the vector space of all real-valued functions, find a basis for the subspace spanned by
    {sin⁡t,sin⁡2t,sin⁡tcos⁡t}\{ \sin t, \sin 2t, \sin t \cos t \}.
    b. The set B={1−t,t−t2,2−2t−6t2}B = \{1 - t, t - t^2, 2 - 2t - 6t^2\} is a basis for P2P_2. Find the coordinate vector of p(t)=3+t−6t2p(t) = 3 + t - 6t^2 relative to B.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題考查兩個概念:

  1. 三角函數是否互相線性獨立,以及如何找出一組基底。
  2. 多項式相對於指定基底的座標向量。

若向量組 {v1,v2,…,vk}\{v_1,v_2,\dots,v_k\} 線性獨立,則其張成空間的基底就是這組向量本身;若其中有向量可由其他向量線性表示,則可將其刪除。


解題方法

(a)找出函數子空間的一組基底

題目給定的函數集合為

{sin⁡t,sin⁡2t,sin⁡tcos⁡t}.\{\sin t,\sin 2t,\sin t\cos t\}.

利用倍角公式

sin⁡2t=2sin⁡tcos⁡t,\sin 2t=2\sin t\cos t,

因此

sin⁡tcos⁡t=12sin⁡2t.\sin t\cos t=\frac12\sin 2t.

所以 sin⁡tcos⁡t\sin t\cos t 可由 sin⁡2t\sin 2t 線性表示,原集合所張成的空間為

span⁡{sin⁡t,sin⁡2t,sin⁡tcos⁡t}=span⁡{sin⁡t,sin⁡2t}.\operatorname{span}\{\sin t,\sin 2t,\sin t\cos t\} = \operatorname{span}\{\sin t,\sin 2t\}.

接著確認 sin⁡t\sin t 與 sin⁡2t\sin 2t 線性獨立。假設存在常數 c1,c2c_1,c_2,使得

c1sin⁡t+c2sin⁡2t=0c_1\sin t+c_2\sin 2t=0

對所有實數 tt 成立。

取 t=π2t=\frac{\pi}{2},得到

c1sin⁡π2+c2sin⁡π=0⟹c1=0.c_1\sin\frac{\pi}{2}+c_2\sin\pi=0 \quad\Longrightarrow\quad c_1=0.

再取 t=π4t=\frac{\pi}{4},得到

c2sin⁡π2=0⟹c2=0.c_2\sin\frac{\pi}{2}=0 \quad\Longrightarrow\quad c_2=0.

因此 sin⁡t\sin t 與 sin⁡2t\sin 2t 線性獨立,所以所求基底為

{sin⁡t,sin⁡2t}.\boxed{\{\sin t,\sin 2t\}}.

(b)求多項式相對於 BB 的座標向量

給定基底

B={1−t, t−t2, 2−2t−6t2},B=\{1-t,\ t-t^2,\ 2-2t-6t^2\},

以及

p(t)=3+t−6t2.p(t)=3+t-6t^2.

設 p(t)p(t) 相對於基底 BB 的座標為

[p(t)]B=[c1c2c3].[p(t)]_B= \begin{bmatrix} c_1\\ c_2\\ c_3 \end{bmatrix}.

依照座標向量的定義,

p(t)=c1(1−t)+c2(t−t2)+c3(2−2t−6t2).p(t)=c_1(1-t)+c_2(t-t^2)+c_3(2-2t-6t^2).

展開右側:

c1(1−t)+c2(t−t2)+c3(2−2t−6t2)c_1(1-t)+c_2(t-t^2)+c_3(2-2t-6t^2) =(c1+2c3)+(−c1+c2−2c3)t+(−c2−6c3)t2.=(c_1+2c_3)+(-c_1+c_2-2c_3)t+(-c_2-6c_3)t^2.

與

p(t)=3+t−6t2p(t)=3+t-6t^2

比較各次方係數,得到方程組

{c1+2c3=3,−c1+c2−2c3=1,−c2−6c3=−6.\begin{cases} c_1+2c_3=3,\\ -c_1+c_2-2c_3=1,\\ -c_2-6c_3=-6. \end{cases}

由第三式可得

c2+6c3=6⟹c2=6−6c3.c_2+6c_3=6 \quad\Longrightarrow\quad c_2=6-6c_3.

由第一式可得

c1=3−2c3.c_1=3-2c_3.

代入第二式:

−(3−2c3)+(6−6c3)−2c3=1,-(3-2c_3)+(6-6c_3)-2c_3=1,

整理得

3−6c3=1,3-6c_3=1,
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 4 題20 分

  1. (20 pts) Find the Singular Value Decomposition of A=(1101−11)A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \\ -1 & 1 \end{pmatrix}. That is, write A=UΣVTA = U\Sigma V^T.

登入後即可作答並保存紀錄。

這一題的完整詳解

【答案】

U=(131216130−2613−1216),Σ=(300200),VT=(0110)U = \begin{pmatrix} \frac{1}{\sqrt{3}} & \frac{1}{\sqrt{2}} & \frac{1}{\sqrt{6}} \\ \frac{1}{\sqrt{3}} & 0 & -\frac{2}{\sqrt{6}} \\ \frac{1}{\sqrt{3}} & -\frac{1}{\sqrt{2}} & \frac{1}{\sqrt{6}} \end{pmatrix}, \quad \Sigma = \begin{pmatrix} \sqrt{3} & 0 \\ 0 & \sqrt{2} \\ 0 & 0 \end{pmatrix}, \quad V^T = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}

詳解

本題評量線性代數中奇異值分解(Singular Value Decomposition, SVD)的計算程序。
給定矩陣 AA 為 3×23 \times 2 矩陣:

A=(1101−11)A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \\ -1 & 1 \end{pmatrix}

需將其分解為 A=UΣVTA = U\Sigma V^T,其中 UU 為 3×33 \times 3 正交矩陣,Σ\Sigma 為 3×23 \times 2 對角矩陣,VV 為 2×22 \times 2 正交矩陣。


步驟 1:計算 ATAA^T A 並求其特徵值與右奇異向量 VV

計算矩陣乘積 ATAA^T A:

ATA=(10−1111)(1101−11)=(1+0+11+0−11+0−11+1+1)=(2003)A^T A = \begin{pmatrix} 1 & 0 & -1 \\ 1 & 1 & 1 \end{pmatrix} \begin{pmatrix} 1 & 1 \\ 0 & 1 \\ -1 & 1 \end{pmatrix} = \begin{pmatrix} 1+0+1 & 1+0-1 \\ 1+0-1 & 1+1+1 \end{pmatrix} = \begin{pmatrix} 2 & 0 \\ 0 & 3 \end{pmatrix}

ATAA^T A 為對角矩陣,其特徵值按由大到小排序為:

λ1=3,λ2=2\lambda_1 = 3, \quad \lambda_2 = 2

奇異值為特徵值的正平方根:

σ1=3,σ2=2\sigma_1 = \sqrt{3}, \quad \sigma_2 = \sqrt{2}

求對應的單位特徵向量(即 VV 的行向量):

  • 對於 λ1=3\lambda_1 = 3:
(ATA−3I)v1=(−1000)(v11v12)=(00)  ⟹  v1=(01)(A^T A - 3I)v_1 = \begin{pmatrix} -1 & 0 \\ 0 & 0 \end{pmatrix} \begin{pmatrix} v_{11} \\ v_{12} \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix} \implies v_1 = \begin{pmatrix} 0 \\ 1 \end{pmatrix}
  • 對於 λ2=2\lambda_2 = 2:
(ATA−2I)v2=(0001)(v21v22)=(00)  ⟹  v2=(10)(A^T A - 2I)v_2 = \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix} \begin{pmatrix} v_{21} \\ v_{22} \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix} \implies v_2 = \begin{pmatrix} 1 \\ 0 \end{pmatrix}

因此右奇異矩陣 VV 與其轉置 VTV^T 為:

V=[v1 v2]=(0110),VT=(0110)V = [v_1 \ v_2] = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \quad V^T = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}

步驟 2:建構奇異值矩陣 Σ\Sigma

Σ\Sigma 為 3×23 \times 2 矩陣,主對角線置入降序奇異值:

Σ=(σ100σ200)=(300200)\Sigma = \begin{pmatrix} \sigma_1 & 0 \\ 0 & \sigma_2 \\ 0 & 0 \end{pmatrix} = \begin{pmatrix} \sqrt{3} & 0 \\ 0 & \sqrt{2} \\ 0 & 0 \end{pmatrix}

步驟 3:計算左奇異向量矩陣 UU

前兩行向量由 ui=1σiAviu_i = \frac{1}{\sigma_i} A v_i 決定:

  • 對於第一行向量 u1u_1:
u1=13(1101−11)(01)=13(111)=(131313)u_1 = \frac{1}{\sqrt{3}} \begin{pmatrix} 1 & 1 \\ 0 & 1 \\ -1 & 1 \end{pmatrix} \begin{pmatrix} 0 \\ 1 \end{pmatrix} = \frac{1}{\sqrt{3}} \begin{pmatrix} 1 \\ 1 \\ 1 \end{pmatrix} = \begin{pmatrix} \frac{1}{\sqrt{3}} \\ \frac{1}{\sqrt{3}} \\ \frac{1}{\sqrt{3}} \end{pmatrix}
  • 對於第二行向量 u2u_2:
u2=12(1101−11)(10)=12(10−1)=(120−12)u_2 = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 & 1 \\ 0 & 1 \\ -1 & 1 \end{pmatrix} \begin{pmatrix} 1 \\ 0 \end{pmatrix} = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 \\ 0 \\ -1 \end{pmatrix} = \begin{pmatrix} \frac{1}{\sqrt{2}} \\ 0 \\ -\frac{1}{\sqrt{2}} \end{pmatrix}
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 5 題18 分

  1. (18 pts) Find a least-squares solution (8 pts) and its least-squares error (10 pts) of Ax=bAx = b, where A=(1−2−122−4)A = \begin{pmatrix} 1 & -2 \\ -1 & 2 \\ 2 & -4 \end{pmatrix} and b=(130)b = \begin{pmatrix} 1 \\ 3 \\ 0 \end{pmatrix}.

登入後即可作答並保存紀錄。

這一題的完整詳解

本題評量線性代數中矛盾方程組 Ax=bAx = b 的最小平方法解(Least-Squares Solution)與其最小平方法誤差(Least-Squares Error)計算。

給定矩陣與向量:

A=(1−2−122−4),b=(130)A = \begin{pmatrix} 1 & -2 \\ -1 & 2 \\ 2 & -4 \end{pmatrix}, \quad b = \begin{pmatrix} 1 \\ 3 \\ 0 \end{pmatrix}

步驟 1:建立正規方程(Normal Equations)

最小平方法解 x^\hat{x} 滿足正規方程 ATAx^=ATbA^T A \hat{x} = A^T b。
首先計算 ATAA^T A:

ATA=(1−12−22−4)(1−2−122−4)=(1+1+4−2−2−8−2−2−84+4+16)=(6−12−1224)A^T A = \begin{pmatrix} 1 & -1 & 2 \\ -2 & 2 & -4 \end{pmatrix} \begin{pmatrix} 1 & -2 \\ -1 & 2 \\ 2 & -4 \end{pmatrix} = \begin{pmatrix} 1+1+4 & -2-2-8 \\ -2-2-8 & 4+4+16 \end{pmatrix} = \begin{pmatrix} 6 & -12 \\ -12 & 24 \end{pmatrix}

接著計算 ATbA^T b:

ATb=(1−12−22−4)(130)=(1−3+0−2+6+0)=(−24)A^T b = \begin{pmatrix} 1 & -1 & 2 \\ -2 & 2 & -4 \end{pmatrix} \begin{pmatrix} 1 \\ 3 \\ 0 \end{pmatrix} = \begin{pmatrix} 1 - 3 + 0 \\ -2 + 6 + 0 \end{pmatrix} = \begin{pmatrix} -2 \\ 4 \end{pmatrix}

步驟 2:求解 x^\hat{x}

正規方程為:

(6−12−1224)(x^1x^2)=(−24)\begin{pmatrix} 6 & -12 \\ -12 & 24 \end{pmatrix} \begin{pmatrix} \hat{x}_1 \\ \hat{x}_2 \end{pmatrix} = \begin{pmatrix} -2 \\ 4 \end{pmatrix}

觀察係數矩陣,第二列為第一列的 −2-2 倍,方程彼此等價相依:

6x^1−12x^2=−2  ⟹  3x^1−6x^2=−1  ⟹  x^1=−13+2x^26\hat{x}_1 - 12\hat{x}_2 = -2 \implies 3\hat{x}_1 - 6\hat{x}_2 = -1 \implies \hat{x}_1 = -\frac{1}{3} + 2\hat{x}_2

令自由變數 x^2=t∈R\hat{x}_2 = t \in \mathbb{R},通解為:

x^=(−13+2tt)\hat{x} = \begin{pmatrix} -\frac{1}{3} + 2t \\ t \end{pmatrix}

題目要求尋找一個解(a least-squares solution),選取特解:

  • 若取 t=0t = 0,得 x^=(−1/30)\hat{x} = \begin{pmatrix} -1/3 \\ 0 \end{pmatrix}。
  • 若取 t=1/6t = 1/6,得 x^=(01/6)\hat{x} = \begin{pmatrix} 0 \\ 1/6 \end{pmatrix}。
    此處選取特解 x^=(01/6)\hat{x} = \begin{pmatrix} 0 \\ 1/6 \end{pmatrix}。

步驟 3:計算最小平方法誤差 ∥b−Ax^∥\|b - A\hat{x}\|

計算投影向量 Ax^A\hat{x}:

Ax^=(1−2−122−4)(01/6)=(−1/31/3−2/3)A\hat{x} = \begin{pmatrix} 1 & -2 \\ -1 & 2 \\ 2 & -4 \end{pmatrix} \begin{pmatrix} 0 \\ 1/6 \end{pmatrix} = \begin{pmatrix} -1/3 \\ 1/3 \\ -2/3 \end{pmatrix}

計算殘差向量 e=b−Ax^e = b - A\hat{x}:

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

其他考古題