第二题{Positive definite matrices}
题目
A matrix A∈Rn×n is positive semi-definite (PSD), denoted A≥0, if A=AT and xTAx≥0 for all x∈Rn. A matrix A is positive definite,denoted A>0,if A=AT and xTAx>0 for all x̸=0, that is, all non-zero vectors x.The simplest example of a positive definite matrix is the identity I (the diagonal matrix with 1s on the diagonal and 0s elsewhere), which satisfies xTIx=∥x∥22=∑i=1nxi2.
第一问
Let z∈Rn be an n-vector. Show that A=zzT is positive semi-definite.
解
首先:AT=(zzT)T=zzT=A
zzT=⎣⎢⎢⎢⎡z1z2⋮zn⎦⎥⎥⎥⎤[z1z2⋯zn]=⎣⎢⎢⎢⎡z1z1z2z1⋮znz1z1z2z2z2⋮znz2⋯⋯⋱⋯z1znz2zn⋮znzn⎦⎥⎥⎥⎤
∴Aij=zizj
由第一题可知:
xTAx=∑i=1n∑j=1nAijxixj=∑i=1n∑j=1nzizjxixj=∑i=1nzixi∑j=1nzixj=(∑i=1nzixi)2≥0 for x∈Rn
所以:A is PSD。
第二问
Let z∈Rn be a non-zero n-vector. Let A=zzT . What is the null-space of A? What is the rank of A?
解
-
知识点 null-space
The nullspace of A consists of all solutions to Ax=0. These vectors x are in Rn. The nullspace containing all solutions of Ax=0 is denoted by N(A).
因为:z为非0向量,所以: Ax=0⇒zzTx=0⇒⎣⎢⎢⎢⎡z1z1z2z1⋮znz1z1z2z2z2⋮znz2⋯⋯⋱⋯z1znz2zn⋮znzn⎦⎥⎥⎥⎤x=0⇒⎣⎢⎢⎢⎡z1z10⋮0z1z20⋮0⋯⋯⋱⋯z1zn0⋮0⎦⎥⎥⎥⎤x=0⇒⎣⎢⎢⎢⎡z10⋮0z20⋮0⋯⋯⋱⋯zn0⋮0⎦⎥⎥⎥⎤x=0
可得 rank(A)=1.
可知:x1为pivot variable,其他为free variables,所以 special solutions如下:
s1=⎣⎢⎢⎢⎢⎢⎡−z2z10⋮0⎦⎥⎥⎥⎥⎥⎤
s2=⎣⎢⎢⎢⎢⎢⎡−z30z1⋮0⎦⎥⎥⎥⎥⎥⎤
⋮
sn−2=⎣⎢⎢⎢⎢⎢⎢⎢⎡−zn−100⋮z10⎦⎥⎥⎥⎥⎥⎥⎥⎤
sn−1=⎣⎢⎢⎢⎢⎢⎢⎢⎡−zn00⋮0z1⎦⎥⎥⎥⎥⎥⎥⎥⎤
A的Null Space是s1 s2到sn−1共n-1个special solutions的线性组合,即:
N(A)=c1s1+c2s2+⋯+cn−1s(n−1)=⎣⎢⎢⎢⎡−∑i=1n−1cizi+1c1z1⋮cn−1z1⎦⎥⎥⎥⎤
第三问
Let A∈Rn×n be positive semidefinite and B∈Rm×n be arbitrary, where m,n∈N. Is BABT PSD? If so, prove it. If not, give a counterexample with explicit A, B.
解
-
令C=BABT,则CT=BABT, 且C∈Rm×m.
-
令 x∈Rm, xTCx=xTBABTx=(BTx)TA(BTx) 设 y=BTx, y∈Rn, 因为 A是PSD,所以: yTAy≥0。
综合1,2,可得 C为PSD,即:BABT为PSD。