九州大学 システム情報科学府 情報理工学専攻・電気電子工学専攻 2024年1月実施 線形代数
Author
祭音Myyura (assisted by ChatGPT 5.4 Thinking)
Description
Let A A A be an n × n n \times n n × n real matrix and x \mathbf{x} x be an n n n -dimensional nonzero real column vector. Define
R A ( x ) = x T A x ∥ x ∥ 2 , R_A(\mathbf{x})=\frac{\mathbf{x}^T A\mathbf{x}}{\|\mathbf{x}\|^2}, R A ( x ) = ∥ x ∥ 2 x T A x ,
where x T \mathbf{x}^T x T is the transpose of a vector x \mathbf{x} x . Answer the following questions.
(1) For
B = [ 2 0 1 0 1 0 1 0 2 ] and z = [ 1 1 0 ] , B=
\begin{bmatrix}
2 & 0 & 1 \\
0 & 1 & 0 \\
1 & 0 & 2
\end{bmatrix}
\quad \text{and} \quad
\mathbf{z}=
\begin{bmatrix}
1 \\
1 \\
0
\end{bmatrix}, B = 2 0 1 0 1 0 1 0 2 and z = 1 1 0 ,
find R B ( z ) R_B(\mathbf{z}) R B ( z ) .
(2) Find all the eigenvalues of B B B . For each eigenvalue of B B B , find its eigenspace.
(3) Suppose that A A A is a symmetric matrix. Show
max x ≠ 0 R A ( x ) = λ max , \max_{\mathbf{x} \neq 0} R_A(\mathbf{x})=\lambda_{\max}, x = 0 max R A ( x ) = λ m a x ,
where λ max \lambda_{\max} λ m a x is the largest eigenvalue of A A A . Use the fact that the symmetric matrix A A A has eigenvectors q 1 , … , q n ∈ R n \mathbf{q}_1,\dots,\mathbf{q}_n \in \mathbb{R}^n q 1 , … , q n ∈ R n that form an orthonormal basis of R n \mathbb{R}^n R n .
题目描述
设 A A A 为 n × n n\times n n × n 实矩阵,x \mathbf x x 为非零的 n n n 维实列向量,定义 Rayleigh 商
R A ( x ) = x ⊤ A x ∥ x ∥ 2 . R_A(\mathbf x)=\frac{\mathbf x^\top A\mathbf x}{\|\mathbf x\|^2}. R A ( x ) = ∥ x ∥ 2 x ⊤ A x .
对
B = [ 2 0 1 0 1 0 1 0 2 ] , z = [ 1 1 0 ] , B=\begin{bmatrix}2&0&1\\0&1&0\\1&0&2\end{bmatrix},
\qquad
\mathbf z=\begin{bmatrix}1\\1\\0\end{bmatrix}, B = 2 0 1 0 1 0 1 0 2 , z = 1 1 0 ,
求 R B ( z ) R_B(\mathbf z) R B ( z ) 。
求 B B B 的全部特征值以及每个特征值的特征空间。
设 A A A 为对称矩阵,证明
max x ≠ 0 R A ( x ) = λ max , \max_{\mathbf x\ne0}R_A(\mathbf x)=\lambda_{\max}, x = 0 max R A ( x ) = λ m a x ,
其中 λ max \lambda_{\max} λ m a x 是 A A A 的最大特征值。可使用如下事实:对称矩阵 A A A 存在构成 R n \mathbb R^n R n 一组标准正交基的特征向量 q 1 , … , q n \mathbf q_1,\ldots,\mathbf q_n q 1 , … , q n 。
Kai
(1)
We are given
B = [ 2 0 1 0 1 0 1 0 2 ] , z = [ 1 1 0 ] . B=
\begin{bmatrix}
2 & 0 & 1 \\
0 & 1 & 0 \\
1 & 0 & 2
\end{bmatrix},
\qquad
\mathbf{z}=
\begin{bmatrix}
1 \\
1 \\
0
\end{bmatrix}. B = 2 0 1 0 1 0 1 0 2 , z = 1 1 0 .
By definition,
R B ( z ) = z T B z ∥ z ∥ 2 . R_B(\mathbf{z})
=
\frac{\mathbf{z}^T B\mathbf{z}}{\|\mathbf{z}\|^2}. R B ( z ) = ∥ z ∥ 2 z T B z .
First compute B z B\mathbf{z} B z :
B z = [ 2 0 1 0 1 0 1 0 2 ] [ 1 1 0 ] = [ 2 1 1 ] . B\mathbf{z}
=
\begin{bmatrix}
2 & 0 & 1 \\
0 & 1 & 0 \\
1 & 0 & 2
\end{bmatrix}
\begin{bmatrix}
1 \\
1 \\
0
\end{bmatrix}
=
\begin{bmatrix}
2 \\
1 \\
1
\end{bmatrix}. B z = 2 0 1 0 1 0 1 0 2 1 1 0 = 2 1 1 .
Then
z T B z = [ 1 1 0 ] [ 2 1 1 ] = 3. \mathbf{z}^T B\mathbf{z}
=
\begin{bmatrix}
1 & 1 & 0
\end{bmatrix}
\begin{bmatrix}
2 \\
1 \\
1
\end{bmatrix}
=
3. z T B z = [ 1 1 0 ] 2 1 1 = 3.
Also,
∥ z ∥ 2 = 1 2 + 1 2 + 0 2 = 2. \|\mathbf{z}\|^2
=
1^2+1^2+0^2
=
2. ∥ z ∥ 2 = 1 2 + 1 2 + 0 2 = 2.
Therefore,
R B ( z ) = 3 2 . R_B(\mathbf{z})
=
\frac{3}{2}. R B ( z ) = 2 3 .
Hence,
R B ( z ) = 3 2 . \boxed{R_B(\mathbf{z})=\frac{3}{2}}. R B ( z ) = 2 3 .
(2)
To find the eigenvalues, solve
det ( B − λ I ) = 0. \det(B-\lambda I)=0. det ( B − λ I ) = 0.
We have
B − λ I = [ 2 − λ 0 1 0 1 − λ 0 1 0 2 − λ ] . B-\lambda I
=
\begin{bmatrix}
2-\lambda & 0 & 1 \\
0 & 1-\lambda & 0 \\
1 & 0 & 2-\lambda
\end{bmatrix}. B − λ I = 2 − λ 0 1 0 1 − λ 0 1 0 2 − λ .
Thus,
det ( B − λ I ) = ( 1 − λ ) det [ 2 − λ 1 1 2 − λ ] . \det(B-\lambda I)
=
(1-\lambda)
\det
\begin{bmatrix}
2-\lambda & 1 \\
1 & 2-\lambda
\end{bmatrix}. det ( B − λ I ) = ( 1 − λ ) det [ 2 − λ 1 1 2 − λ ] .
Now compute the 2 × 2 2\times 2 2 × 2 determinant:
det ( B − λ I ) = ( 1 − λ ) ( ( 2 − λ ) 2 − 1 ) . \det(B-\lambda I)
=
(1-\lambda)\left((2-\lambda)^2-1\right). det ( B − λ I ) = ( 1 − λ ) ( ( 2 − λ ) 2 − 1 ) .
Since
( 2 − λ ) 2 − 1 = ( 2 − λ − 1 ) ( 2 − λ + 1 ) = ( 1 − λ ) ( 3 − λ ) , (2-\lambda)^2-1
=
(2-\lambda-1)(2-\lambda+1)
=
(1-\lambda)(3-\lambda), ( 2 − λ ) 2 − 1 = ( 2 − λ − 1 ) ( 2 − λ + 1 ) = ( 1 − λ ) ( 3 − λ ) ,
we get
det ( B − λ I ) = ( 1 − λ ) 2 ( 3 − λ ) . \det(B-\lambda I)
=
(1-\lambda)^2(3-\lambda). det ( B − λ I ) = ( 1 − λ ) 2 ( 3 − λ ) .
Therefore,
( 1 − λ ) 2 ( 3 − λ ) = 0. (1-\lambda)^2(3-\lambda)=0. ( 1 − λ ) 2 ( 3 − λ ) = 0.
So the eigenvalues are
λ = 1 , 3 . \boxed{\lambda=1,3}. λ = 1 , 3 .
The eigenvalue λ = 1 \lambda=1 λ = 1 has algebraic multiplicity 2 2 2 , and the eigenvalue λ = 3 \lambda=3 λ = 3 has algebraic multiplicity 1 1 1 .
Eigenspace for λ = 3 \lambda=3 λ = 3
Solve
( B − 3 I ) x = 0. (B-3I)\mathbf{x}=0. ( B − 3 I ) x = 0.
We have
B − 3 I = [ − 1 0 1 0 − 2 0 1 0 − 1 ] . B-3I
=
\begin{bmatrix}
-1 & 0 & 1 \\
0 & -2 & 0 \\
1 & 0 & -1
\end{bmatrix}. B − 3 I = − 1 0 1 0 − 2 0 1 0 − 1 .
Let
x = [ x y z ] . \mathbf{x}
=
\begin{bmatrix}
x \\
y \\
z
\end{bmatrix}. x = x y z .
Then the system is
Hence,
z = x , y = 0. z=x,
\qquad
y=0. z = x , y = 0.
Therefore,
x = [ x 0 x ] = x [ 1 0 1 ] . \mathbf{x}
=
\begin{bmatrix}
x \\
0 \\
x
\end{bmatrix}
=
x
\begin{bmatrix}
1 \\
0 \\
1
\end{bmatrix}. x = x 0 x = x 1 0 1 .
So the eigenspace corresponding to λ = 3 \lambda=3 λ = 3 is
E 3 = span { [ 1 0 1 ] } . \boxed{
E_3=
\operatorname{span}
\left\{
\begin{bmatrix}
1 \\
0 \\
1
\end{bmatrix}
\right\}
}. E 3 = span ⎩ ⎨ ⎧ 1 0 1 ⎭ ⎬ ⎫ .
Eigenspace for λ = 1 \lambda=1 λ = 1
Solve
( B − I ) x = 0. (B-I)\mathbf{x}=0. ( B − I ) x = 0.
We have
B − I = [ 1 0 1 0 0 0 1 0 1 ] . B-I
=
\begin{bmatrix}
1 & 0 & 1 \\
0 & 0 & 0 \\
1 & 0 & 1
\end{bmatrix}. B − I = 1 0 1 0 0 0 1 0 1 .
Let
x = [ x y z ] . \mathbf{x}
=
\begin{bmatrix}
x \\
y \\
z
\end{bmatrix}. x = x y z .
The system gives
Thus,
Here x x x and y y y are free variables. Therefore,
x = [ x y − x ] = x [ 1 0 − 1 ] + y [ 0 1 0 ] . \mathbf{x}
=
\begin{bmatrix}
x \\
y \\
-x
\end{bmatrix}
=
x
\begin{bmatrix}
1 \\
0 \\
-1
\end{bmatrix}
+
y
\begin{bmatrix}
0 \\
1 \\
0
\end{bmatrix}. x = x y − x = x 1 0 − 1 + y 0 1 0 .
So the eigenspace corresponding to λ = 1 \lambda=1 λ = 1 is
E 1 = span { [ 1 0 − 1 ] , [ 0 1 0 ] } . \boxed{
E_1=
\operatorname{span}
\left\{
\begin{bmatrix}
1 \\
0 \\
-1
\end{bmatrix},
\begin{bmatrix}
0 \\
1 \\
0
\end{bmatrix}
\right\}
}. E 1 = span ⎩ ⎨ ⎧ 1 0 − 1 , 0 1 0 ⎭ ⎬ ⎫ .
(3)
Suppose A A A is a symmetric matrix.
Since A A A is symmetric, it has an orthonormal basis of eigenvectors
q 1 , q 2 , … , q n \mathbf{q}_1,\mathbf{q}_2,\dots,\mathbf{q}_n q 1 , q 2 , … , q n
for R n \mathbb{R}^n R n .
Let their corresponding eigenvalues be
λ 1 , λ 2 , … , λ n . \lambda_1,\lambda_2,\dots,\lambda_n. λ 1 , λ 2 , … , λ n .
That is,
A q i = λ i q i , i = 1 , 2 , … , n . A\mathbf{q}_i=\lambda_i\mathbf{q}_i,
\qquad i=1,2,\dots,n. A q i = λ i q i , i = 1 , 2 , … , n .
Let
λ max = max { λ 1 , λ 2 , … , λ n } . \lambda_{\max}
=
\max\{\lambda_1,\lambda_2,\dots,\lambda_n\}. λ m a x = max { λ 1 , λ 2 , … , λ n } .
Since q 1 , … , q n \mathbf{q}_1,\dots,\mathbf{q}_n q 1 , … , q n form an orthonormal basis, any nonzero vector x ∈ R n \mathbf{x}\in\mathbb{R}^n x ∈ R n can be written as
x = c 1 q 1 + c 2 q 2 + ⋯ + c n q n . \mathbf{x}
=
c_1\mathbf{q}_1+c_2\mathbf{q}_2+\cdots+c_n\mathbf{q}_n. x = c 1 q 1 + c 2 q 2 + ⋯ + c n q n .
Equivalently,
x = ∑ i = 1 n c i q i . \mathbf{x}
=
\sum_{i=1}^n c_i\mathbf{q}_i. x = i = 1 ∑ n c i q i .
Because x ≠ 0 \mathbf{x}\neq 0 x = 0 , we have
∑ i = 1 n c i 2 > 0. \sum_{i=1}^n c_i^2>0. i = 1 ∑ n c i 2 > 0.
Now compute A x A\mathbf{x} A x :
A x = A ( ∑ i = 1 n c i q i ) . A\mathbf{x}
=
A\left(\sum_{i=1}^n c_i\mathbf{q}_i\right). A x = A ( i = 1 ∑ n c i q i ) .
By linearity,
A x = ∑ i = 1 n c i A q i . A\mathbf{x}
=
\sum_{i=1}^n c_i A\mathbf{q}_i. A x = i = 1 ∑ n c i A q i .
Since
A q i = λ i q i , A\mathbf{q}_i=\lambda_i\mathbf{q}_i, A q i = λ i q i ,
we get
A x = ∑ i = 1 n c i λ i q i . A\mathbf{x}
=
\sum_{i=1}^n c_i\lambda_i\mathbf{q}_i. A x = i = 1 ∑ n c i λ i q i .
Next,
x T A x = ( ∑ i = 1 n c i q i ) T ( ∑ j = 1 n c j λ j q j ) . \mathbf{x}^T A\mathbf{x}
=
\left(\sum_{i=1}^n c_i\mathbf{q}_i\right)^T
\left(\sum_{j=1}^n c_j\lambda_j\mathbf{q}_j\right). x T A x = ( i = 1 ∑ n c i q i ) T ( j = 1 ∑ n c j λ j q j ) .
Expanding this expression gives
x T A x = ∑ i = 1 n ∑ j = 1 n c i c j λ j q i T q j . \mathbf{x}^T A\mathbf{x}
=
\sum_{i=1}^n\sum_{j=1}^n
c_i c_j \lambda_j \mathbf{q}_i^T\mathbf{q}_j. x T A x = i = 1 ∑ n j = 1 ∑ n c i c j λ j q i T q j .
Because the vectors q 1 , … , q n \mathbf{q}_1,\dots,\mathbf{q}_n q 1 , … , q n are orthonormal,
q i T q j = { 1 , i = j , 0 , i ≠ j . \mathbf{q}_i^T\mathbf{q}_j
=
\begin{cases}
1, & i=j,\\
0, & i\neq j.
\end{cases} q i T q j = { 1 , 0 , i = j , i = j .
Therefore, all cross terms vanish, and we obtain
x T A x = ∑ i = 1 n λ i c i 2 . \mathbf{x}^T A\mathbf{x}
=
\sum_{i=1}^n \lambda_i c_i^2. x T A x = i = 1 ∑ n λ i c i 2 .
Similarly,
∥ x ∥ 2 = x T x . \|\mathbf{x}\|^2
=
\mathbf{x}^T\mathbf{x}. ∥ x ∥ 2 = x T x .
Thus,
∥ x ∥ 2 = ( ∑ i = 1 n c i q i ) T ( ∑ j = 1 n c j q j ) . \|\mathbf{x}\|^2
=
\left(\sum_{i=1}^n c_i\mathbf{q}_i\right)^T
\left(\sum_{j=1}^n c_j\mathbf{q}_j\right). ∥ x ∥ 2 = ( i = 1 ∑ n c i q i ) T ( j = 1 ∑ n c j q j ) .
Using orthonormality again, we get
∥ x ∥ 2 = ∑ i = 1 n c i 2 . \|\mathbf{x}\|^2
=
\sum_{i=1}^n c_i^2. ∥ x ∥ 2 = i = 1 ∑ n c i 2 .
Therefore,
R A ( x ) = x T A x ∥ x ∥ 2 = ∑ i = 1 n λ i c i 2 ∑ i = 1 n c i 2 . R_A(\mathbf{x})
=
\frac{\mathbf{x}^T A\mathbf{x}}{\|\mathbf{x}\|^2}
=
\frac{\sum_{i=1}^n \lambda_i c_i^2}{\sum_{i=1}^n c_i^2}. R A ( x ) = ∥ x ∥ 2 x T A x = ∑ i = 1 n c i 2 ∑ i = 1 n λ i c i 2 .
Since
λ i ≤ λ max for all i , \lambda_i\leq \lambda_{\max}
\qquad
\text{for all } i, λ i ≤ λ m a x for all i ,
we have
λ i c i 2 ≤ λ max c i 2 . \lambda_i c_i^2
\leq
\lambda_{\max}c_i^2. λ i c i 2 ≤ λ m a x c i 2 .
Therefore,
∑ i = 1 n λ i c i 2 ≤ ∑ i = 1 n λ max c i 2 . \sum_{i=1}^n \lambda_i c_i^2
\leq
\sum_{i=1}^n \lambda_{\max}c_i^2. i = 1 ∑ n λ i c i 2 ≤ i = 1 ∑ n λ m a x c i 2 .
Hence,
∑ i = 1 n λ i c i 2 ≤ λ max ∑ i = 1 n c i 2 . \sum_{i=1}^n \lambda_i c_i^2
\leq
\lambda_{\max}\sum_{i=1}^n c_i^2. i = 1 ∑ n λ i c i 2 ≤ λ m a x i = 1 ∑ n c i 2 .
Since
∑ i = 1 n c i 2 > 0 , \sum_{i=1}^n c_i^2>0, i = 1 ∑ n c i 2 > 0 ,
we may divide both sides by ∑ i = 1 n c i 2 \sum_{i=1}^n c_i^2 ∑ i = 1 n c i 2 . This gives
R A ( x ) = ∑ i = 1 n λ i c i 2 ∑ i = 1 n c i 2 ≤ λ max . R_A(\mathbf{x})
=
\frac{\sum_{i=1}^n \lambda_i c_i^2}{\sum_{i=1}^n c_i^2}
\leq
\lambda_{\max}. R A ( x ) = ∑ i = 1 n c i 2 ∑ i = 1 n λ i c i 2 ≤ λ m a x .
So for every nonzero vector x \mathbf{x} x ,
R A ( x ) ≤ λ max . R_A(\mathbf{x})\leq \lambda_{\max}. R A ( x ) ≤ λ m a x .
Thus,
max x ≠ 0 R A ( x ) ≤ λ max . \max_{\mathbf{x}\neq 0} R_A(\mathbf{x})
\leq
\lambda_{\max}. x = 0 max R A ( x ) ≤ λ m a x .
Now we show that this upper bound is achieved.
Let q k \mathbf{q}_k q k be an eigenvector corresponding to the largest eigenvalue λ max \lambda_{\max} λ m a x . Then
A q k = λ max q k . A\mathbf{q}_k=\lambda_{\max}\mathbf{q}_k. A q k = λ m a x q k .
Choose
x = q k . \mathbf{x}=\mathbf{q}_k. x = q k .
Then
R A ( q k ) = q k T A q k ∥ q k ∥ 2 . R_A(\mathbf{q}_k)
=
\frac{\mathbf{q}_k^T A\mathbf{q}_k}{\|\mathbf{q}_k\|^2}. R A ( q k ) = ∥ q k ∥ 2 q k T A q k .
Using
A q k = λ max q k , A\mathbf{q}_k=\lambda_{\max}\mathbf{q}_k, A q k = λ m a x q k ,
we get
R A ( q k ) = q k T λ max q k ∥ q k ∥ 2 . R_A(\mathbf{q}_k)
=
\frac{\mathbf{q}_k^T \lambda_{\max}\mathbf{q}_k}{\|\mathbf{q}_k\|^2}. R A ( q k ) = ∥ q k ∥ 2 q k T λ m a x q k .
Thus,
R A ( q k ) = λ max q k T q k ∥ q k ∥ 2 . R_A(\mathbf{q}_k)
=
\frac{\lambda_{\max}\mathbf{q}_k^T\mathbf{q}_k}{\|\mathbf{q}_k\|^2}. R A ( q k ) = ∥ q k ∥ 2 λ m a x q k T q k .
Since
q k T q k = ∥ q k ∥ 2 , \mathbf{q}_k^T\mathbf{q}_k
=
\|\mathbf{q}_k\|^2, q k T q k = ∥ q k ∥ 2 ,
we have
R A ( q k ) = λ max . R_A(\mathbf{q}_k)
=
\lambda_{\max}. R A ( q k ) = λ m a x .
Therefore, the maximum value is actually attained, and we conclude that
max x ≠ 0 R A ( x ) = λ max . \boxed{
\max_{\mathbf{x}\neq 0} R_A(\mathbf{x})=\lambda_{\max}
}. x = 0 max R A ( x ) = λ m a x .