跳到主要内容

九州大学 システム情報科学府 情報理工学専攻・電気電子工学専攻 2024年1月実施 線形代数

Author

祭音Myyura (assisted by ChatGPT 5.4 Thinking)

Description

Let AA be an n×nn \times n real matrix and x\mathbf{x} be an nn-dimensional nonzero real column vector. Define

RA(x)=xTAxx2,R_A(\mathbf{x})=\frac{\mathbf{x}^T A\mathbf{x}}{\|\mathbf{x}\|^2},

where xT\mathbf{x}^T is the transpose of a vector x\mathbf{x}. Answer the following questions.

(1) For

B=[201010102]andz=[110],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},

find RB(z)R_B(\mathbf{z}).

(2) Find all the eigenvalues of BB. For each eigenvalue of BB, find its eigenspace.

(3) Suppose that AA is a symmetric matrix. Show

maxx0RA(x)=λmax,\max_{\mathbf{x} \neq 0} R_A(\mathbf{x})=\lambda_{\max},

where λmax\lambda_{\max} is the largest eigenvalue of AA. Use the fact that the symmetric matrix AA has eigenvectors q1,,qnRn\mathbf{q}_1,\dots,\mathbf{q}_n \in \mathbb{R}^n that form an orthonormal basis of Rn\mathbb{R}^n.

题目描述

AAn×nn\times n 实矩阵,x\mathbf x 为非零的 nn 维实列向量,定义 Rayleigh 商

RA(x)=xAxx2.R_A(\mathbf x)=\frac{\mathbf x^\top A\mathbf x}{\|\mathbf x\|^2}.
  1. B=[201010102],z=[110],B=\begin{bmatrix}2&0&1\\0&1&0\\1&0&2\end{bmatrix}, \qquad \mathbf z=\begin{bmatrix}1\\1\\0\end{bmatrix},
    RB(z)R_B(\mathbf z)
  2. BB 的全部特征值以及每个特征值的特征空间。
  3. AA 为对称矩阵,证明
    maxx0RA(x)=λmax,\max_{\mathbf x\ne0}R_A(\mathbf x)=\lambda_{\max},
    其中 λmax\lambda_{\max}AA 的最大特征值。可使用如下事实:对称矩阵 AA 存在构成 Rn\mathbb R^n 一组标准正交基的特征向量 q1,,qn\mathbf q_1,\ldots,\mathbf q_n

Kai

(1)

We are given

B=[201010102],z=[110].B= \begin{bmatrix} 2 & 0 & 1 \\ 0 & 1 & 0 \\ 1 & 0 & 2 \end{bmatrix}, \qquad \mathbf{z}= \begin{bmatrix} 1 \\ 1 \\ 0 \end{bmatrix}.

By definition,

RB(z)=zTBzz2.R_B(\mathbf{z}) = \frac{\mathbf{z}^T B\mathbf{z}}{\|\mathbf{z}\|^2}.

First compute BzB\mathbf{z}:

Bz=[201010102][110]=[211].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}.

Then

zTBz=[110][211]=3.\mathbf{z}^T B\mathbf{z} = \begin{bmatrix} 1 & 1 & 0 \end{bmatrix} \begin{bmatrix} 2 \\ 1 \\ 1 \end{bmatrix} = 3.

Also,

z2=12+12+02=2.\|\mathbf{z}\|^2 = 1^2+1^2+0^2 = 2.

Therefore,

RB(z)=32.R_B(\mathbf{z}) = \frac{3}{2}.

Hence,

RB(z)=32.\boxed{R_B(\mathbf{z})=\frac{3}{2}}.

(2)

To find the eigenvalues, solve

det(BλI)=0.\det(B-\lambda I)=0.

We have

BλI=[2λ0101λ0102λ].B-\lambda I = \begin{bmatrix} 2-\lambda & 0 & 1 \\ 0 & 1-\lambda & 0 \\ 1 & 0 & 2-\lambda \end{bmatrix}.

Thus,

det(BλI)=(1λ)det[2λ112λ].\det(B-\lambda I) = (1-\lambda) \det \begin{bmatrix} 2-\lambda & 1 \\ 1 & 2-\lambda \end{bmatrix}.

Now compute the 2×22\times 2 determinant:

det(BλI)=(1λ)((2λ)21).\det(B-\lambda I) = (1-\lambda)\left((2-\lambda)^2-1\right).

Since

(2λ)21=(2λ1)(2λ+1)=(1λ)(3λ),(2-\lambda)^2-1 = (2-\lambda-1)(2-\lambda+1) = (1-\lambda)(3-\lambda),

we get

det(BλI)=(1λ)2(3λ).\det(B-\lambda I) = (1-\lambda)^2(3-\lambda).

Therefore,

(1λ)2(3λ)=0.(1-\lambda)^2(3-\lambda)=0.

So the eigenvalues are

λ=1,3.\boxed{\lambda=1,3}.

The eigenvalue λ=1\lambda=1 has algebraic multiplicity 22, and the eigenvalue λ=3\lambda=3 has algebraic multiplicity 11.

Eigenspace for λ=3\lambda=3

Solve

(B3I)x=0.(B-3I)\mathbf{x}=0.

We have

B3I=[101020101].B-3I = \begin{bmatrix} -1 & 0 & 1 \\ 0 & -2 & 0 \\ 1 & 0 & -1 \end{bmatrix}.

Let

x=[xyz].\mathbf{x} = \begin{bmatrix} x \\ y \\ z \end{bmatrix}.

Then the system is

x+z=0,-x+z=0,
2y=0,-2y=0,
xz=0.x-z=0.

Hence,

z=x,y=0.z=x, \qquad y=0.

Therefore,

x=[x0x]=x[101].\mathbf{x} = \begin{bmatrix} x \\ 0 \\ x \end{bmatrix} = x \begin{bmatrix} 1 \\ 0 \\ 1 \end{bmatrix}.

So the eigenspace corresponding to λ=3\lambda=3 is

E3=span{[101]}.\boxed{ E_3= \operatorname{span} \left\{ \begin{bmatrix} 1 \\ 0 \\ 1 \end{bmatrix} \right\} }.

Eigenspace for λ=1\lambda=1

Solve

(BI)x=0.(B-I)\mathbf{x}=0.

We have

BI=[101000101].B-I = \begin{bmatrix} 1 & 0 & 1 \\ 0 & 0 & 0 \\ 1 & 0 & 1 \end{bmatrix}.

Let

x=[xyz].\mathbf{x} = \begin{bmatrix} x \\ y \\ z \end{bmatrix}.

The system gives

x+z=0.x+z=0.

Thus,

z=x.z=-x.

Here xx and yy are free variables. Therefore,

x=[xyx]=x[101]+y[010].\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}.

So the eigenspace corresponding to λ=1\lambda=1 is

E1=span{[101],[010]}.\boxed{ E_1= \operatorname{span} \left\{ \begin{bmatrix} 1 \\ 0 \\ -1 \end{bmatrix}, \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix} \right\} }.

(3)

Suppose AA is a symmetric matrix.

Since AA is symmetric, it has an orthonormal basis of eigenvectors

q1,q2,,qn\mathbf{q}_1,\mathbf{q}_2,\dots,\mathbf{q}_n

for Rn\mathbb{R}^n.

Let their corresponding eigenvalues be

λ1,λ2,,λn.\lambda_1,\lambda_2,\dots,\lambda_n.

That is,

Aqi=λiqi,i=1,2,,n.A\mathbf{q}_i=\lambda_i\mathbf{q}_i, \qquad i=1,2,\dots,n.

Let

λmax=max{λ1,λ2,,λn}.\lambda_{\max} = \max\{\lambda_1,\lambda_2,\dots,\lambda_n\}.

Since q1,,qn\mathbf{q}_1,\dots,\mathbf{q}_n form an orthonormal basis, any nonzero vector xRn\mathbf{x}\in\mathbb{R}^n can be written as

x=c1q1+c2q2++cnqn.\mathbf{x} = c_1\mathbf{q}_1+c_2\mathbf{q}_2+\cdots+c_n\mathbf{q}_n.

Equivalently,

x=i=1nciqi.\mathbf{x} = \sum_{i=1}^n c_i\mathbf{q}_i.

Because x0\mathbf{x}\neq 0, we have

i=1nci2>0.\sum_{i=1}^n c_i^2>0.

Now compute AxA\mathbf{x}:

Ax=A(i=1nciqi).A\mathbf{x} = A\left(\sum_{i=1}^n c_i\mathbf{q}_i\right).

By linearity,

Ax=i=1nciAqi.A\mathbf{x} = \sum_{i=1}^n c_i A\mathbf{q}_i.

Since

Aqi=λiqi,A\mathbf{q}_i=\lambda_i\mathbf{q}_i,

we get

Ax=i=1nciλiqi.A\mathbf{x} = \sum_{i=1}^n c_i\lambda_i\mathbf{q}_i.

Next,

xTAx=(i=1nciqi)T(j=1ncjλjqj).\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).

Expanding this expression gives

xTAx=i=1nj=1ncicjλjqiTqj.\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.

Because the vectors q1,,qn\mathbf{q}_1,\dots,\mathbf{q}_n are orthonormal,

qiTqj={1,i=j,0,ij.\mathbf{q}_i^T\mathbf{q}_j = \begin{cases} 1, & i=j,\\ 0, & i\neq j. \end{cases}

Therefore, all cross terms vanish, and we obtain

xTAx=i=1nλici2.\mathbf{x}^T A\mathbf{x} = \sum_{i=1}^n \lambda_i c_i^2.

Similarly,

x2=xTx.\|\mathbf{x}\|^2 = \mathbf{x}^T\mathbf{x}.

Thus,

x2=(i=1nciqi)T(j=1ncjqj).\|\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).

Using orthonormality again, we get

x2=i=1nci2.\|\mathbf{x}\|^2 = \sum_{i=1}^n c_i^2.

Therefore,

RA(x)=xTAxx2=i=1nλici2i=1nci2.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}.

Since

λiλmaxfor all i,\lambda_i\leq \lambda_{\max} \qquad \text{for all } i,

we have

λici2λmaxci2.\lambda_i c_i^2 \leq \lambda_{\max}c_i^2.

Therefore,

i=1nλici2i=1nλmaxci2.\sum_{i=1}^n \lambda_i c_i^2 \leq \sum_{i=1}^n \lambda_{\max}c_i^2.

Hence,

i=1nλici2λmaxi=1nci2.\sum_{i=1}^n \lambda_i c_i^2 \leq \lambda_{\max}\sum_{i=1}^n c_i^2.

Since

i=1nci2>0,\sum_{i=1}^n c_i^2>0,

we may divide both sides by i=1nci2\sum_{i=1}^n c_i^2. This gives

RA(x)=i=1nλici2i=1nci2λ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}.

So for every nonzero vector x\mathbf{x},

RA(x)λmax.R_A(\mathbf{x})\leq \lambda_{\max}.

Thus,

maxx0RA(x)λmax.\max_{\mathbf{x}\neq 0} R_A(\mathbf{x}) \leq \lambda_{\max}.

Now we show that this upper bound is achieved.

Let qk\mathbf{q}_k be an eigenvector corresponding to the largest eigenvalue λmax\lambda_{\max}. Then

Aqk=λmaxqk.A\mathbf{q}_k=\lambda_{\max}\mathbf{q}_k.

Choose

x=qk.\mathbf{x}=\mathbf{q}_k.

Then

RA(qk)=qkTAqkqk2.R_A(\mathbf{q}_k) = \frac{\mathbf{q}_k^T A\mathbf{q}_k}{\|\mathbf{q}_k\|^2}.

Using

Aqk=λmaxqk,A\mathbf{q}_k=\lambda_{\max}\mathbf{q}_k,

we get

RA(qk)=qkTλmaxqkqk2.R_A(\mathbf{q}_k) = \frac{\mathbf{q}_k^T \lambda_{\max}\mathbf{q}_k}{\|\mathbf{q}_k\|^2}.

Thus,

RA(qk)=λmaxqkTqkqk2.R_A(\mathbf{q}_k) = \frac{\lambda_{\max}\mathbf{q}_k^T\mathbf{q}_k}{\|\mathbf{q}_k\|^2}.

Since

qkTqk=qk2,\mathbf{q}_k^T\mathbf{q}_k = \|\mathbf{q}_k\|^2,

we have

RA(qk)=λmax.R_A(\mathbf{q}_k) = \lambda_{\max}.

Therefore, the maximum value is actually attained, and we conclude that

maxx0RA(x)=λmax.\boxed{ \max_{\mathbf{x}\neq 0} R_A(\mathbf{x})=\lambda_{\max} }.