Math 221: LINEAR ALGEBRA 8-3. Positive Definite Matrices Le Chen 1 - - PowerPoint PPT Presentation

math 221 linear algebra
SMART_READER_LITE
LIVE PREVIEW

Math 221: LINEAR ALGEBRA 8-3. Positive Definite Matrices Le Chen 1 - - PowerPoint PPT Presentation

Math 221: LINEAR ALGEBRA 8-3. Positive Definite Matrices Le Chen 1 Emory University, 2020 Fall (last updated on 08/27/2020) Creative Commons License (CC BY-NC-SA) 1 Slides are adapted from those by Karen Seyffarth from University of Calgary.


slide-1
SLIDE 1

Math 221: LINEAR ALGEBRA

§8-3. Positive Definite Matrices

Le Chen1

Emory University, 2020 Fall

(last updated on 08/27/2020) Creative Commons License (CC BY-NC-SA) 1Slides are adapted from those by Karen Seyffarth from University of Calgary.

slide-2
SLIDE 2

Positive Definite Matrices

Definition

An n × n matrix A is positive definite if it is symmetric and has positive eigenvalues, i.e., if λ is a eigenvalue of A, then λ > 0. det Let denote the (not necessarily distinct) eigenvalues of . Since is symmetric, is orthogonally diagonalizable. In particular, , where diag . Similar matrices have the same determinant, so det det Since is positive defjnite, for all , ; it follows that det , and therefore is invertible.

slide-3
SLIDE 3

Positive Definite Matrices

Definition

An n × n matrix A is positive definite if it is symmetric and has positive eigenvalues, i.e., if λ is a eigenvalue of A, then λ > 0.

Theorem

If A is a positive definite matrix, then det(A) > 0 and A is invertible. Let denote the (not necessarily distinct) eigenvalues of . Since is symmetric, is orthogonally diagonalizable. In particular, , where diag . Similar matrices have the same determinant, so det det Since is positive defjnite, for all , ; it follows that det , and therefore is invertible.

slide-4
SLIDE 4

Positive Definite Matrices

Definition

An n × n matrix A is positive definite if it is symmetric and has positive eigenvalues, i.e., if λ is a eigenvalue of A, then λ > 0.

Theorem

If A is a positive definite matrix, then det(A) > 0 and A is invertible.

Proof.

Let λ1, λ2, . . . , λn denote the (not necessarily distinct) eigenvalues of A. Since A is symmetric, A is orthogonally diagonalizable. In particular, A ∼ D, where D = diag(λ1, λ2, . . . , λn). Similar matrices have the same determinant, so det(A) = det(D) = λ1λ2 · · · λn. Since A is positive defjnite, λi > 0 for all i, 1 ≤ i ≤ n; it follows that det(A) > 0, and therefore A is invertible.

slide-5
SLIDE 5

Theorem

A symmetric matrix A is positive definite if and only if xTA x > 0 for all

  • x ∈ Rn,

x = 0.

slide-6
SLIDE 6

Theorem

A symmetric matrix A is positive definite if and only if xTA x > 0 for all

  • x ∈ Rn,

x = 0.

Proof.

Since A is symmetric, there exists an orthogonal matrix P so that PTAP = diag(λ1, λ2, . . . , λn) = D, where λ1, λ2, . . . , λn are the (not necessarily distinct) eigenvalues of A. Let

  • x ∈ Rn,

x = 0, and define y = PT

  • x. Then
  • xTA

x = xT(PDPT) x = ( xTP)D(PT x) = (PT x)TD(PT x) = yTD y. Writing yT =

  • y1

y2 · · · yn

  • ,
  • xTA

x =

  • y1

y2 · · · yn

  • diag(λ1, λ2, . . . , λn)

     y1 y2 . . . yn      = λ1y2

1 + λ2y2 2 + · · · λny2 n.

slide-7
SLIDE 7

Proof (continued).

(⇒) Suppose A is positive defjnite, and x ∈ Rn, x =

  • 0. Since PT is invertible,
  • y = PT

x = 0, and thus yj = 0 for some j, implying y2

j > 0 for some j.

Furthermore, since all eigenvalues of A are positive, λiy2

i ≥ 0 for all i; in

particular λjy2

j > 0. Therefore,

xTA x > 0. Conversely, if whenever , choose , where is the th column of . Since is invertible, , and thus Thus and when , so i.e., . Therefore, is positive defjnite.

slide-8
SLIDE 8

Proof (continued).

(⇒) Suppose A is positive defjnite, and x ∈ Rn, x =

  • 0. Since PT is invertible,
  • y = PT

x = 0, and thus yj = 0 for some j, implying y2

j > 0 for some j.

Furthermore, since all eigenvalues of A are positive, λiy2

i ≥ 0 for all i; in

particular λjy2

j > 0. Therefore,

xTA x > 0. (⇐) Conversely, if xTA x > 0 whenever x = 0, choose x = P ej, where ej is the jth column of In. Since P is invertible, x = 0, and thus

  • y = PT

x = PT(P ej) = ej. Thus yj = 1 and yi = 0 when i = j, so λ1y2

1 + λ2y2 2 + · · · λny2 n = λj,

i.e., λj = xTA x > 0. Therefore, A is positive defjnite.

slide-9
SLIDE 9

Example (Constructing Positive Definite Matrices)

Let U be an n × n invertible matrix, and let A = UTU. Let x ∈ Rn, x = 0. Then

  • xTA

x =

  • xT(UTU)

x = ( xTUT)(U x) = (U x)T(U x) = ||U x||2. Since U is invertible and x = 0, U x = 0, and hence ||U x||2 > 0, i.e.,

  • xTA

x = ||U x||2 > 0. Therefore, A is positive definite.

slide-10
SLIDE 10

Notation

Let A =

  • aij
  • be an n × n matrix. For 1 ≤ r ≤ n, (r)A denotes the r × r

submatrix in the upper left corner of A, i.e.,

(r)A =

  • aij
  • , 1 ≤ i, j ≤ r.

(1)A,(2) A, . . . ,(n) A are called the principal submatrices of A.

slide-11
SLIDE 11

Notation

Let A =

  • aij
  • be an n × n matrix. For 1 ≤ r ≤ n, (r)A denotes the r × r

submatrix in the upper left corner of A, i.e.,

(r)A =

  • aij
  • , 1 ≤ i, j ≤ r.

(1)A,(2) A, . . . ,(n) A are called the principal submatrices of A.

Lemma

If A is an n × n positive definite matrix, then each principal submatrix of A is positive definite.

slide-12
SLIDE 12

Proof.

Suppose A is an n × n positive definite matrix. For any integer r, 1 ≤ r ≤ n, write A in block form as A =

  • (r)A

B C D

  • ,

where B is an r × (n − r) matrix, C is an (n − r) × r matrix, and D is an (n − r) × (n − r) matrix. Let y =      y1 y2 . . . yr      = 0 and let x =             y1 y2 . . . yr . . .             . Then

  • x =

0, and by the previous theorem, xTA x > 0.

slide-13
SLIDE 13

Proof (continued).

But

  • xTA

x =

  • y1

· · · yr · · ·

(r)A

B C D

         y1 . . . yr . . .           = yT

(r)A

  • y,

and therefore yT

(r)A

  • y > 0. Then (r)A is positive defjnite again by the

previous theorem.

slide-14
SLIDE 14

Cholesky factorization

Theorem

Let A be an n × n symmetric matrix. Then the following conditions are equivalent.

  • 1. A is positive definite.
  • 2. det((r)A) > 0 for r = 1, 2, . . . , n.
  • 3. A = UTU where U is upper triangular and has positive entries on its

main diagonal. Furthermore, U is unique. The expression is called the Cholesky factorization of .

slide-15
SLIDE 15

Cholesky factorization

Theorem

Let A be an n × n symmetric matrix. Then the following conditions are equivalent.

  • 1. A is positive definite.
  • 2. det((r)A) > 0 for r = 1, 2, . . . , n.
  • 3. A = UTU where U is upper triangular and has positive entries on its

main diagonal. Furthermore, U is unique. The expression A = UTU is called the Cholesky factorization of A.

slide-16
SLIDE 16

Algorithm for Cholesky Factorization

Let A be a positive defjnite matrix. The Cholesky factorization A = UTU can be obtained as follows. Using only type 3 elementary row operations, with multiples of rows added to lower rows, put in upper triangular form. Call this matrix ; then has positive entries on its main diagonal (this can be proved by induction on ). Obtain from by dividing each row of by the square root of the diagonal entry in that row.

slide-17
SLIDE 17

Algorithm for Cholesky Factorization

Let A be a positive defjnite matrix. The Cholesky factorization A = UTU can be obtained as follows.

  • 1. Using only type 3 elementary row operations, with multiples of rows

added to lower rows, put A in upper triangular form. Call this matrix U; then U has positive entries on its main diagonal (this can be proved by induction on n). Obtain from by dividing each row of by the square root of the diagonal entry in that row.

slide-18
SLIDE 18

Algorithm for Cholesky Factorization

Let A be a positive defjnite matrix. The Cholesky factorization A = UTU can be obtained as follows.

  • 1. Using only type 3 elementary row operations, with multiples of rows

added to lower rows, put A in upper triangular form. Call this matrix U; then U has positive entries on its main diagonal (this can be proved by induction on n).

  • 2. Obtain U from

U by dividing each row of U by the square root of the diagonal entry in that row.

slide-19
SLIDE 19

Problem

Show that A =   9 −6 3 −6 5 −3 3 −3 6   is positive definite, and find the Cholesky factorization of A. and so det and det . Since det , it follows that is positive defjnite. Now divide the entries in each row by the square root of the diagonal entry in that row, to give and

slide-20
SLIDE 20

Problem

Show that A =   9 −6 3 −6 5 −3 3 −3 6   is positive definite, and find the Cholesky factorization of A.

Solution

(1)A =

  • 9
  • and

(2)A =

  • 9

−6 −6 5

  • ,

so det((1)A) = 9 and det((2)A) = 9. Since det(A) = 36, it follows that A is positive defjnite. Now divide the entries in each row by the square root of the diagonal entry in that row, to give and

slide-21
SLIDE 21

Problem

Show that A =   9 −6 3 −6 5 −3 3 −3 6   is positive definite, and find the Cholesky factorization of A.

Solution

(1)A =

  • 9
  • and

(2)A =

  • 9

−6 −6 5

  • ,

so det((1)A) = 9 and det((2)A) = 9. Since det(A) = 36, it follows that A is positive defjnite.

  9 −6 3 −6 5 −3 3 −3 6   →   9 −6 3 1 −1 −1 5   →   9 −6 3 1 −1 4  

Now divide the entries in each row by the square root of the diagonal entry in that row, to give and

slide-22
SLIDE 22

Problem

Show that A =   9 −6 3 −6 5 −3 3 −3 6   is positive definite, and find the Cholesky factorization of A.

Solution

(1)A =

  • 9
  • and

(2)A =

  • 9

−6 −6 5

  • ,

so det((1)A) = 9 and det((2)A) = 9. Since det(A) = 36, it follows that A is positive defjnite.

  9 −6 3 −6 5 −3 3 −3 6   →   9 −6 3 1 −1 −1 5   →   9 −6 3 1 −1 4  

Now divide the entries in each row by the square root of the diagonal entry in that row, to give U =   3 −2 1 1 −1 2   and UTU = A.

slide-23
SLIDE 23

Problem

Verify that A =   12 4 3 4 2 −1 3 −1 7   is positive definite, and find the Cholesky factorization of A. det , det , det ; by the previous theorem, is positive defjnite. and .

slide-24
SLIDE 24

Problem

Verify that A =   12 4 3 4 2 −1 3 −1 7   is positive definite, and find the Cholesky factorization of A.

Final Answer

det

  • (1)A
  • = 12, det
  • (2)A
  • = 8, det (A) = 2; by the previous theorem, A is

positive defjnite. U =   2 √ 3 2 √ 3/3 √ 3/2 √ 6/3 − √ 6 1/2   and UTU = A.