Computational math: Assignment 1

Similar documents
Review of Some Concepts from Linear Algebra: Part 2

Homework 1 Elena Davidson (B) (C) (D) (E) (F) (G) (H) (I)

The Singular Value Decomposition

Numerical Linear Algebra Homework Assignment - Week 2

Notes on singular value decomposition for Math 54. Recall that if A is a symmetric n n matrix, then A has real eigenvalues A = P DP 1 A = P DP T.

Math 102, Winter Final Exam Review. Chapter 1. Matrices and Gaussian Elimination

LinGloss. A glossary of linear algebra

UNIT 6: The singular value decomposition.

Maths for Signals and Systems Linear Algebra in Engineering

MATH 304 Linear Algebra Lecture 20: The Gram-Schmidt process (continued). Eigenvalues and eigenvectors.

The Singular Value Decomposition

CS 246 Review of Linear Algebra 01/17/19

Math Bootcamp An p-dimensional vector is p numbers put together. Written as. x 1 x =. x p

Linear Algebra Review. Vectors

2. Every linear system with the same number of equations as unknowns has a unique solution.

Notes on Eigenvalues, Singular Values and QR

CS 143 Linear Algebra Review

Dimensionality Reduction: PCA. Nicholas Ruozzi University of Texas at Dallas

MATH 20F: LINEAR ALGEBRA LECTURE B00 (T. KEMP)

Chapters 5 & 6: Theory Review: Solutions Math 308 F Spring 2015

Conceptual Questions for Review

ELE/MCE 503 Linear Algebra Facts Fall 2018

Math 3191 Applied Linear Algebra

1. What is the determinant of the following matrix? a 1 a 2 4a 3 2a 2 b 1 b 2 4b 3 2b c 1. = 4, then det

Properties of Matrices and Operations on Matrices

Lecture notes: Applied linear algebra Part 1. Version 2

EIGENVALUE PROBLEMS. Background on eigenvalues/ eigenvectors / decompositions. Perturbation analysis, condition numbers..

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

Linear Algebra: Matrix Eigenvalue Problems

Fall TMA4145 Linear Methods. Exercise set Given the matrix 1 2

Problem # Max points possible Actual score Total 120

Review of Linear Algebra

Linear Algebra Massoud Malek

(a) If A is a 3 by 4 matrix, what does this tell us about its nullspace? Solution: dim N(A) 1, since rank(a) 3. Ax =

Econ Slides from Lecture 7

18.06 Problem Set 10 - Solutions Due Thursday, 29 November 2007 at 4 pm in

Section 3.9. Matrix Norm

STAT 309: MATHEMATICAL COMPUTATIONS I FALL 2017 LECTURE 5

Applied Linear Algebra in Geoscience Using MATLAB

Linear Algebra. Session 12

MATH36001 Generalized Inverses and the SVD 2015

Introduction to Matrix Algebra

Chapter 7. Canonical Forms. 7.1 Eigenvalues and Eigenvectors

Chapter 7: Symmetric Matrices and Quadratic Forms

σ 11 σ 22 σ pp 0 with p = min(n, m) The σ ii s are the singular values. Notation change σ ii A 1 σ 2

MAT 610: Numerical Linear Algebra. James V. Lambers

Jim Lambers MAT 610 Summer Session Lecture 1 Notes

MATH 423 Linear Algebra II Lecture 33: Diagonalization of normal operators.

1. General Vector Spaces

Math 6610 : Analysis of Numerical Methods I. Chee Han Tan

linearly indepedent eigenvectors as the multiplicity of the root, but in general there may be no more than one. For further discussion, assume matrice

Solutions to Review Problems for Chapter 6 ( ), 7.1

Computational Methods. Eigenvalues and Singular Values

COMP 558 lecture 18 Nov. 15, 2010

Math 520 Exam 2 Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008

MATH 304 Linear Algebra Lecture 34: Review for Test 2.

Review problems for MA 54, Fall 2004.

AMS526: Numerical Analysis I (Numerical Linear Algebra)

MATH 612 Computational methods for equation solving and function minimization Week # 2

be a Householder matrix. Then prove the followings H = I 2 uut Hu = (I 2 uu u T u )u = u 2 uut u

Chap 3. Linear Algebra

Symmetric and anti symmetric matrices

Ir O D = D = ( ) Section 2.6 Example 1. (Bottom of page 119) dim(v ) = dim(l(v, W )) = dim(v ) dim(f ) = dim(v )

Linear Algebra Formulas. Ben Lee

Designing Information Devices and Systems II

Linear Algebra in Actuarial Science: Slides to the lecture

MAT Linear Algebra Collection of sample exams

The University of Texas at Austin Department of Electrical and Computer Engineering. EE381V: Large Scale Learning Spring 2013.

MATRIX ALGEBRA. or x = (x 1,..., x n ) R n. y 1 y 2. x 2. x m. y m. y = cos θ 1 = x 1 L x. sin θ 1 = x 2. cos θ 2 = y 1 L y.

Find the solution set of 2x 3y = 5. Answer: We solve for x = (5 + 3y)/2. Hence the solution space consists of all vectors of the form

Maths for Signals and Systems Linear Algebra in Engineering

The Singular Value Decomposition and Least Squares Problems

Math 407: Linear Optimization

ORTHOGONALITY AND LEAST-SQUARES [CHAP. 6]

Math 4A Notes. Written by Victoria Kala Last updated June 11, 2017

Linear Algebra & Geometry why is linear algebra useful in computer vision?

1. Let m 1 and n 1 be two natural numbers such that m > n. Which of the following is/are true?

Problem Set (T) If A is an m n matrix, B is an n p matrix and D is a p s matrix, then show

Math 18, Linear Algebra, Lecture C00, Spring 2017 Review and Practice Problems for Final Exam

AN ELEMENTARY PROOF OF THE SPECTRAL RADIUS FORMULA FOR MATRICES

1. Linear systems of equations. Chapters 7-8: Linear Algebra. Solution(s) of a linear system of equations (continued)

Linear Algebra V = T = ( 4 3 ).

Appendix A: Matrices

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

Lecture 10 - Eigenvalues problem

Stat 159/259: Linear Algebra Notes

The Singular Value Decomposition (SVD) and Principal Component Analysis (PCA)

Review of some mathematical tools

AMS526: Numerical Analysis I (Numerical Linear Algebra)

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

1 Last time: least-squares problems

Lecture 15, 16: Diagonalization

Linear Algebra Primer

Applied Mathematics 205. Unit V: Eigenvalue Problems. Lecturer: Dr. David Knezevic

Basic Calculus Review

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

HOMEWORK PROBLEMS FROM STRANG S LINEAR ALGEBRA AND ITS APPLICATIONS (4TH EDITION)

MA 265 FINAL EXAM Fall 2012

I. Multiple Choice Questions (Answer any eight)

Transcription:

Computational math: Assignment 1 Thanks Ting Gao for her Latex file 11 Let B be a 4 4 matrix to which we apply the following operations: 1double column 1, halve row 3, 3add row 3 to row 1, 4interchange columns 1 and 4, 5subtract row from each of the other rows, 6replace column 4 by column 3, 7delete column 1 (a) Write the result as a product of eight matrices (b) Write it again as a product ABC of three matrices Solution: (a) (b) 1 1 0 0 0 1 1 0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 1 0 1 0 0 0 1 1 1 0 0 1 1 0 0 1 0 1 1 0 1 0 0 0 1 0 0 0 0 1 B 1 0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 1 1 0 0 0 B 0 0 0 1 0 0 0 1 0 0 0 1 1

14 Let f 1,,F 8 be a set of functions defined on the interval [1, 8 with the property that for any numbers d 1,,d 8, there exists a set of coefficients c 1,,c 8 such that 8 c j f j (i) = d i, i = 1,, 8 (a) Show by appealing to the theorems of this lecture that d 1,,d 8 determine c 1,,c 8 uniquely (b) Let A be the 8 8 matrix representing the linear mapping from data d 1,,d 8 to coefficients c 1,,c 8 What s the i,j entry of A 1? Proof (a)since any vector in C 8 can be linearly expressed by the eight vectors f j (1) f j () f j (8) where (j = 1,, 8) Thus the range of matrix f 1 (1) f (1) f 8 (1) f 1 () f () f 8 () f 1 (8) f (8) f 8 (8) contains C 8 Since this matrix belongs to C 8 8, the range of this matrix is C 8 Thus, it has full rank So it has an inverse, and therefore, any vector in C 8 can be expressed uniquely (b) A b 1 b b 8 = c 1 c c 8, f 1 (1) f (1) f 8 (1) f 1 () f () f 8 () f 1 (8) f (8) f 8 (8) c 1 c c 8 = b 1 b b 8

We can compute the linear operator A by where I is the identity matrix Hence, the i,j entry of A 1 is f j (i) FA = FAI = F(AI) = I, 3 Let A C m m be hermitian An eigenvector of A is a nonzero vector x C m such that Ax = λx for some λ C, the corresponding eigenvalue (a) Prove that all eigenvalues of A are real (b) Prove that if x and y are eigenvectors corresponding to distinct eigenvalues, then x and y are orthogonal Proof (a)since A is hermitian, we have A = A Hence for any eigenvalue λ of A and the corresponding eigenvector x, the following equation holds: λx x = (λx) x = (Ax) x = (A x) x = x Ax = x λx = λx x Since x x is a nonzero number, we obtain that λ = λ, which implies λ is real (b) Let Ax = λ 1 x and Ay = λ y, where λ 1 λ Then On the other hand, x Ay = x λ y = λ x y x Ay = x A y = (Ax) y = λ 1 x y = λ 1 x y As λ 1 λ, we have x y = 0, which implies that x and y are orthogonal 6If u and v are m vectors, the matrix A = I + uv is known as a rank-one perturbation of the identity Show that if A is nonsingular, then its inverse has the form A 1 = I + αuv for some scalar α, and five an expression for α For what u and v is A singular? If it is singular, what is null(a)? 3

Proof If A is nonsingular, then (I + uv )(I + αuv ) = I Hence, αuv + uv + uv αuv = 0 ie, (α + 1 + αv u)uv = 0 If uv = 0, A = I is a trivial case Hence, the number in the bracket should be zero ie, α = (1 + v u) 1 (v u 1) If A is singular, then Null(A) = span{u} and u 0 Thus A(ku) = 0 for any k C It implies that (k + k(v u))u = 0 Therefore v u = 1 The other method is used the results that det(a) = 1 + v u So A is singular if and only if det(a) = 0 It shows that v u = 1 To find the null(a), we first set Ax = 0 for some m-vector x Then we have (I + uv )x = 0 ie, uv x = x Since v u = 1, we can obtain x = u Therefore, null(a)={the space spanned by u} 3 Let denote any norm on C m and also the induced matrix norm on C m m Show that ρ(a) A, where ρ(a) is the spectral radius of A, ie, the largest absolute value λ of an eigenvalue λ of A Proof Let ρ(a) = λ, then there exists a corresponding eigenvector x such that Ax = λx Then, λ x = λx = Ax A x Since x = 0, we have ρ(a) = λ A 33 Vector and matrix p-norms are related by various inequalities, often involving the dimensions m or n For each of the following, verify the inequality 4

and give an example of a nonzero vector or matrix (for general m, n) for which equality is achieved In this problem x is an m-vector and A is an m n matrix (a) x x, (b) x m x, (c) A n A, (d) A m A Proof (a) x = max x i = ( max x m i ) x i = x 1 i m 1 i m For example, let x m 1 = [ 1 0 0 T, Then, x = 1 and x = 1 m (b) x = For example, let Then, x = 1 and x = m x i m ( max 1 i m x i ) = m x x m 1 = [ 1 1 1 T, Let (c) n A = n sup Ax = n sup x 1 x 1 n sup max x 1 1 i m m a ij x j a ij, a ij 0, x = naij 0, a ij = 0 Hence, n A n max ( 1 a ij ) = n max ( 1 i m n 1 i m 5 a ij x j a ij ) 1 n = A

For example, 1 1 1 0 0 0 A m n = 0 0 0 Then, A = n and A = ρ(a A) = n (d) m A = sup Ax = sup x =1 x =1 m sup ( a ij )( x j ) = x =1 m max ( 1 i m For example, a ij ) m max 1 i m a ij x j m a ij a ij = m A 1 0 0 1 0 0 A m n = 1 0 0 then, A = ρ(a A) = m and A = 1 41 Determine the SVDs of the following matrices (b) Solution: Now we want to apply the geometric interpretation to solve this SVD problem The image of the unit disk under the transformation of A is the ellipse with semi-axes [0, 1 T and [1, 0 with the lengths 3 and respectively Thus we have the U and Σ as follows U = [u 1 u = [ 0 1 1 0 6 [ 3 0, Σ = 0

To find V, we solve the two linear equations Av 1 = 3u 1,Av = u The solution is V = [v 1 v = U Thus the SVD is [ [ [ [ 0 0 1 3 0 0 1 A = = = UΣV 0 3 1 0 0 1 0 (d) Solution: A = [ 1 1 0 0 First, find the image of a unit disk after applying the transformation A: it is a degenerate ellipse, a line segment between the points (, 0) and (0, ) Thus, we get u 1 = [1 0 T and σ 1 = Since u must be perpendicular to u 1, we choose u = [0 1 T Then we solve the linear systems Av 1 = u 1,Av = 0, we have the orthonormal basis of R v 1 = ( 1, 1 ) T, v = ( 1 1, ) T V = [ 1 1 1 1, U = [ 1 0 0 1 Now we can write that A = UΣV = [ 1 0 0 1 [ 0 0 0 [ 1 1 1 1 4 Suppose A is an m n matrix and B is the n m matrix obtained by rotating A ninety degrees clockwise on paper Do A and B have the same singular values? Proof Suppose 0 0 0 1 B n m = [A m n T 0 0 1 0 1 0 0 0 and A = UΣV 7 m m A T C

where U and V are both unitary Then we have Moreover, and B = (UΣV ) T C = V Σ T U T C V V = V T V = (V V ) T = I T = I (U T C) (U T C) = C UU T C = C (UU ) T C = C C = I This implies that both V and U T C are unitary Moreover, since Σ and Σ T have the same nonnegative eigenvalues, B and A have the same singular values The other method is to show that σ is the singular value of A if and only if σ is the singular value of B First, we suppose that σ is the singular value of A, ie, Av = σu Since CB T = A, we have Av = CB T v = σu It implies that v T B = σu T C because of C T C = I Therefore σ is the singular value of B In the other way, we can also verify the results in the same manner 8