Docsity

Study Guide for Week 3 in Math 170A: Cholesky Decomposition and Positive Definite Matrices, Assignments of Mathematics

Toggle sidebar
bg1
Instructor: Emre Mengi
Math 170A (Winter 2009)
Study Guide for Week 3
Before attempting homework 3 please make sure that you have understood the topics listed be-
low. We mainly focused on the Cholesky decomposition (section 1.4 in the textbook) during the
third week. The first midterm will be held next Wednesday, Jan 28th during the lecture. Sections
1.1-4 and 2.5 from your textbook as well as additional material covered in class (concerning the
sensitivity analysis and IEEE floating point arithmetic) are included in the midterm. For a precise
description of the topics please go over the study guides provided at the beginning of homeworks
1-3. Please also make sure to solve the first three homeworks before the midterm. You should
expect questions similar to the homework questions in the midterm.
•Definitions of symmetric and positive definite matrices (lecture 7, section 1.4 - pages 32-33)
•The fact that any symmetric positive definite matrix Ahas a unique Cholesky decomposition
in the form A=RTRwhere Ris square and upper triangular with positive diagonal entries.
(lecture 7, section 1.4 - page 34 -Thm 1.4.7)
•Computation of the Cholesky factorization (lectures 7-8, section 1.4 - pages 35-38)
•Flop count for the computation of the Cholesky factorization (lecture 8, section 1.4 - pages
40-41)
•Cholesky factorization to solve symmetric positive definite linear systems (lecture 8, section
1.4 - pages 38-39)
•The fact that (i) a non-symmetric matrix or (i) a symmetric matrix that is not positive
definite does not have a Cholesky factorization (lecture 8, section 1.4 - this is a corollary of
Theorem 1.4.4)
Homework 3 (due on January 30th, Friday by 3pm)
In Matlab question (question 3) attach the Matlab outputs. Also please include a print-out
of your Matlab code for the Cholesky factorization.
1. Consider the diagonal matrices
D1=2 0
0 3 , D2=2 0
0−3,and D3=−2 0
0−3
(a) By inspection indicate which of the matrices D1,D2,D3are positive definite? For each
of these matrices (i) if the matrix is positive definite, give the Cholesky factorization
or (ii) if the matrix D1(similarly D2or D3) is not positive definite, provide a nonzero
vector x∈R2such that xTD1x≤0 (xTD2x≤0 or xTD3x≤0).
(b) Give a complete characterization of n×npositive definite diagonal matrices in terms
of the diagonal entries dii, i = 1, . . . , n.
pf3

Partial preview of the text

Download Study Guide for Week 3 in Math 170A: Cholesky Decomposition and Positive Definite Matrices and more Assignments Mathematics in PDF only on Docsity!

Instructor: Emre Mengi

Math 170A (Winter 2009)

Study Guide for Week 3 Before attempting homework 3 please make sure that you have understood the topics listed be- low. We mainly focused on the Cholesky decomposition (section 1.4 in the textbook) during the third week. The first midterm will be held next Wednesday, Jan 28th during the lecture. Sections 1.1-4 and 2.5 from your textbook as well as additional material covered in class (concerning the sensitivity analysis and IEEE floating point arithmetic) are included in the midterm. For a precise description of the topics please go over the study guides provided at the beginning of homeworks 1-3. Please also make sure to solve the first three homeworks before the midterm. You should expect questions similar to the homework questions in the midterm.

  • Definitions of symmetric and positive definite matrices (lecture 7, section 1.4 - pages 32-33)
  • The fact that any symmetric positive definite matrix A has a unique Cholesky decomposition in the form A = RT^ R where R is square and upper triangular with positive diagonal entries. (lecture 7, section 1.4 - page 34 -Thm 1.4.7)
  • Computation of the Cholesky factorization (lectures 7-8, section 1.4 - pages 35-38)
  • Flop count for the computation of the Cholesky factorization (lecture 8, section 1.4 - pages 40-41)
  • Cholesky factorization to solve symmetric positive definite linear systems (lecture 8, section 1.4 - pages 38-39)
  • The fact that (i) a non-symmetric matrix or (i) a symmetric matrix that is not positive definite does not have a Cholesky factorization (lecture 8, section 1.4 - this is a corollary of Theorem 1.4.4)

Homework 3 (due on January 30th, Friday by 3pm) In Matlab question (question 3 ) attach the Matlab outputs. Also please include a print-out of your Matlab code for the Cholesky factorization.

  1. Consider the diagonal matrices

D 1 =

[

]

, D 2 =

[

]

, and D 3 =

[

]

(a) By inspection indicate which of the matrices D 1 , D 2 , D 3 are positive definite? For each of these matrices (i) if the matrix is positive definite, give the Cholesky factorization or (ii) if the matrix D 1 (similarly D 2 or D 3 ) is not positive definite, provide a nonzero vector x ∈ R^2 such that xT^ D 1 x ≤ 0 (xT^ D 2 x ≤ 0 or xT^ D 3 x ≤ 0).

(b) Give a complete characterization of n × n positive definite diagonal matrices in terms of the diagonal entries dii, i = 1,... , n.

(c) Let A be any n × n symmetric matrix. Show that if A is positive definite, then det(A) > 0.(Hint : Use the Cholesky factorization of A.)

(d) Let A be any n × n symmetric matrix. Suppose also that det(A) > 0. Is A necessarily a positive definite matrix? Justify your answer. (Hint : Consider the matrices D 1 , D 2 , D 3 .)

  1. (Modified from Exercise 1.4.22, Textbook) Determine whether or not each of the following matrices has a Cholesky factorization. If the matrix has a Cholesky factorization, calculate the Cholesky factorization by hand.

A =

 B =

C =

 D =

  1. Given a positive definite symmetric n × n matrix A. The most commonly employed method to solve the linear system Ax = b is as follows.
    1. Compute the Cholesky factorization A = RT^ R.
    2. Let ˆx := Rx. Solve the lower triangular system RT^ ˆx = b by forward substitution.
    3. Solve the upper triangular system Rx = ˆx by back substitution.

(a) Write a Matlab function to compute the Cholesky factorization of a positive definite symmetric matrix A. Your matlab function must take a positive definite symmetric matrix A and return the Cholesky factor R. Your Matlab code should look like

function R = cholesky(A)

[n,n1] = size(A);

if n ~= n error(’A must be square’); end

R = zeros(n,n);

return;