Linear Algebra Foundation based Homework Problems - Positive defnite matrices

About Linear Algebra Foundation


Positive Definite Matrices

A matrix ARn×nA \in \mathbb{R}^{n \times n} is positive semi-definite (PSD), denoted A0A \succeq 0, if A=ATA = A^T and xTAx0x^T A x \geq 0 for all xRnx \in \mathbb{R}^n. A matrix AA is positive definite, denoted A0A \succ 0, if A=ATA = A^T and xTAx>0x^T A x > 0 for all x0x \neq 0, that is, all non-zero vectors xx. The simplest example of a positive definite matrix is the identity II (the diagonal matrix with 1s on the diagonal and 0s elsewhere), which satisfies xTIx=x2=_i=1nxi2x^T I x = \|x\|^2 = \sum\_{i=1}^{n} x_i^2.

(a) Let zRnz \in \mathbb{R}^n be an n-vector. Show that A=zzTA = zz^T is positive semidefinite.

(b) Let zRnz \in \mathbb{R}^n be a non-zero n-vector. Let A=zzTA = zz^T. What is the null-space of AA? What is the rank of AA?

(c) Let ARn×nA \in \mathbb{R}^{n \times n} be positive semidefinite and BRm×nB \in \mathbb{R}^{m \times n} be arbitrary, where m,nNm, n \in \mathbb{N}. Is BABTBAB^T PSD? If so, prove it. If not, give a counterexample with explicit A,BA, B.

Solutions

Problem 2(a)

To solve problem (a), we need to show that the matrix A=zzTA = zz^T is positive semidefinite (PSD). A matrix AA is positive semidefinite if, for any vector xRnx \in \mathbb{R}^n, the following condition is satisfied:

xTAx0x^T A x \geq 0

Here are the steps to show that A=zzTA = zz^T is PSD:

  1. Apply the definition: For any vector xx, we need to consider xTAxx^T A x and show that this is always greater than or equal to 0.

  2. Substitute AA with zzTzz^T: We have xTAx=xT(zzT)xx^T A x = x^T (zz^T) x.

  3. Use matrix multiplication: Remember that matrix multiplication is associative, so we can rearrange the multiplication as (xTz)(zTx)(x^T z)(z^T x).

  4. Recognize the dot product: The term (xTz)(x^T z) is a dot product of xx and zz, which gives a scalar. Let's denote it as cc, so c=xTzc = x^T z and cc is a real number since it's a scalar.

  5. Express cc as a scalar multiplication: We now have c(zTx)c(z^T x), which is the same as c2c^2 because zTxz^T x will also give the same dot product as xTzx^T z.

  6. Conclude the proof: We know that c2c^2 is always non-negative for any real number cc, and hence xTAx=c20x^T A x = c^2 \geq 0.

So, we have shown that for any vector xx, xTAxx^T A x is always non-negative, hence A=zzTA = zz^T is positive semidefinite.

Problem 2(b)

Problem (b) asks for the null-space and the rank of the matrix A=zzTA = zz^T, where zz is a non-zero nn-vector.

Here's how to solve it:

  1. Null-space: The null-space (or kernel) of AA consists of all vectors xx such that Ax=0Ax = 0. So we need to solve zzTx=0zz^T x = 0 for xx.

    Since zz is non-zero, zzTzz^T is a rank-1 matrix (because each row is a multiple of zz), and the only vector that gets mapped to the zero vector by zzTzz^T is a vector orthogonal to zz. Therefore, the null-space is the set of all vectors that are orthogonal to zz.

  2. Rank: The rank of a matrix is the dimension of the column space (the space spanned by its columns). Since A=zzTA = zz^T has each column as a multiple of zz, and zz is non-zero, the column space is the line through zz (and the origin). Therefore, the rank of AA is 1, because there is only one linearly independent column in AA.

So the null-space of AA is the (n1)(n-1)-dimensional subspace of Rn\mathbb{R}^n orthogonal to zz, and the rank of AA is 1.

Problem 2(c)

To solve problem (c), we are asked to determine if the matrix BABTBAB^T is positive semidefinite (PSD) given that AA is PSD and BB is arbitrary, where ARn×nA \in \mathbb{R}^{n \times n} and BRm×nB \in \mathbb{R}^{m \times n}.

Here's how to approach the problem:

  1. Use the definition of a PSD matrix: A matrix CC is PSD if for any vector xx, xTCx0x^T C x \geq 0.

  2. Apply this definition to BABTBAB^T: Let yy be any vector in Rm\mathbb{R}^m, then we need to show that yT(BABT)y0y^T (BAB^T) y \geq 0.

  3. Expand using matrix multiplication: The expression becomes yTBABTyy^T BAB^T y.

  4. Rearrange the expression: Since matrix multiplication is associative, we can write this as (BTy)TA(BTy)(B^T y)^T A (B^T y).

  5. Recognize that BTyB^T y is a vector in Rn\mathbb{R}^n: Let's denote z=BTyz = B^T y, which is a valid vector in Rn\mathbb{R}^n since BB has nn columns.

  6. Apply the fact that AA is PSD: Since AA is PSD, it follows that for any vector zz, zTAz0z^T A z \geq 0.

  7. Conclude the proof: Since z=BTyz = B^T y and zTAz0z^T A z \geq 0 for any yy, we can conclude that yT(BABT)y=(BTy)TA(BTy)0y^T (BAB^T) y = (B^T y)^T A (B^T y) \geq 0 for any yy. Thus, BABTBAB^T is PSD.

So, regardless of what BB is, as long as AA is PSD, the matrix BABTBAB^T will also be PSD. This is because the product zTAzz^T A z will always be non-negative due to the properties of AA, and zz is simply the result of transforming yy by BTB^T, which does not affect the non-negativity of zTAzz^T A z.