

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Instructor: Emre Mengi
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.
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.
, 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 .)
(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;