AMS526: Numerical Analysis I (Numerical Linear Algebra)

Similar documents
AMS526: Numerical Analysis I (Numerical Linear Algebra for Computational and Data Sciences)

Draft. Lecture 01 Introduction & Matrix-Vector Multiplication. MATH 562 Numerical Analysis II. Songting Luo

b 1 b 2.. b = b m A = [a 1,a 2,...,a n ] where a 1,j a 2,j a j = a m,j Let A R m n and x 1 x 2 x = x n

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Cheat Sheet for MATH461

Jim Lambers MAT 610 Summer Session Lecture 1 Notes

MAT 610: Numerical Linear Algebra. James V. Lambers

Main matrix factorizations

Glossary of Linear Algebra Terms. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Foundations of Matrix Analysis

Math 2174: Practice Midterm 1

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

Columbus State Community College Mathematics Department Public Syllabus

Introduction to Numerical Linear Algebra II

AMS526: Numerical Analysis I (Numerical Linear Algebra)

AMS526: Numerical Analysis I (Numerical Linear Algebra)

B553 Lecture 5: Matrix Algebra Review

Preliminary/Qualifying Exam in Numerical Analysis (Math 502a) Spring 2012

G1110 & 852G1 Numerical Linear Algebra

Algebra C Numerical Linear Algebra Sample Exam Problems

ELE/MCE 503 Linear Algebra Facts Fall 2018

Solution of Linear Equations

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

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

AMS526: Numerical Analysis I (Numerical Linear Algebra)

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Review of some mathematical tools

Math 407: Linear Optimization

Linear Algebra Review. Vectors

EE731 Lecture Notes: Matrix Computations for Signal Processing

(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 =

Quantum Computing Lecture 2. Review of Linear Algebra

Matrix Algebra for Engineers Jeffrey R. Chasnov

Scientific Computing: Dense Linear Systems

SUMMARY OF MATH 1600

AMS526: Numerical Analysis I (Numerical Linear Algebra) Lecture 23: GMRES and Other Krylov Subspace Methods; Preconditioning

Notes on Eigenvalues, Singular Values and QR

Basic concepts in Linear Algebra and Optimization

Review problems for MA 54, Fall 2004.

Conceptual Questions for Review

Background Mathematics (2/2) 1. David Barber

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

MATH 315 Linear Algebra Homework #1 Assigned: August 20, 2018

Scientific Computing: Solving Linear Systems

Numerical Linear Algebra

Today s class. Linear Algebraic Equations LU Decomposition. Numerical Methods, Fall 2011 Lecture 8. Prof. Jinbo Bi CSE, UConn

Fundamentals of Engineering Analysis (650163)

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

Computational Methods CMSC/AMSC/MAPL 460. Eigenvalues and Eigenvectors. Ramani Duraiswami, Dept. of Computer Science

Eigenvalues and eigenvectors

A Review of Linear Algebra

Matrix Algebra: Summary

Lecture Notes for Inf-Mat 3350/4350, Tom Lyche

Review of Some Concepts from Linear Algebra: Part 2

CS 246 Review of Linear Algebra 01/17/19

Knowledge Discovery and Data Mining 1 (VO) ( )

Numerical Methods for Solving Large Scale Eigenvalue Problems

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Numerical Methods I: Eigenvalues and eigenvectors

Math 1553, Introduction to Linear Algebra

AM 205: lecture 8. Last time: Cholesky factorization, QR factorization Today: how to compute the QR factorization, the Singular Value Decomposition

EECS 275 Matrix Computation

This can be accomplished by left matrix multiplication as follows: I

AMS526: Numerical Analysis I (Numerical Linear Algebra for Computational and Data Sciences)

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

LinGloss. A glossary of linear algebra

EECS 275 Matrix Computation

MATH 583A REVIEW SESSION #1

Properties of Matrices and Operations on Matrices

Linear Algebra. Brigitte Bidégaray-Fesquet. MSIAM, September Univ. Grenoble Alpes, Laboratoire Jean Kuntzmann, Grenoble.

APPLIED NUMERICAL LINEAR ALGEBRA

I. Multiple Choice Questions (Answer any eight)

Math 415 Exam I. Name: Student ID: Calculators, books and notes are not allowed!

Final Review Written by Victoria Kala SH 6432u Office Hours R 12:30 1:30pm Last Updated 11/30/2015

Applied Mathematics 205. Unit II: Numerical Linear Algebra. Lecturer: Dr. David Knezevic

LINEAR ALGEBRA SUMMARY SHEET.

Applied Matrix Algebra Lecture Notes Section 2.2. Gerald Höhn Department of Mathematics, Kansas State University

AMS526: Numerical Analysis I (Numerical Linear Algebra)

MODULE 8 Topics: Null space, range, column space, row space and rank of a matrix

MAT Linear Algebra Collection of sample exams

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

MS&E 318 (CME 338) Large-Scale Numerical Optimization

Designing Information Devices and Systems II

MA 265 FINAL EXAM Fall 2012

Applied Linear Algebra in Geoscience Using MATLAB

Numerical Methods I Solving Square Linear Systems: GEM and LU factorization

Lecture Summaries for Linear Algebra M51A

MATH 2331 Linear Algebra. Section 2.1 Matrix Operations. Definition: A : m n, B : n p. Example: Compute AB, if possible.

MATCOM and Selected MATCOM Functions

18.06 Problem Set 8 - Solutions Due Wednesday, 14 November 2007 at 4 pm in

18.06SC Final Exam Solutions

Math 308 Practice Test for Final Exam Winter 2015

Numerical linear algebra

Linear Algebra and Matrix Inversion

EECS 275 Matrix Computation

Computational math: Assignment 1

MATH 31 - ADDITIONAL PRACTICE PROBLEMS FOR FINAL

Spring 2014 Math 272 Final Exam Review Sheet

course overview 18.06: Linear Algebra

MATH36001 Generalized Inverses and the SVD 2015

Transcription:

AMS526: Numerical Analysis I (Numerical Linear Algebra) Lecture 1: Course Overview & Matrix-Vector Multiplication Xiangmin Jiao SUNY Stony Brook Xiangmin Jiao Numerical Analysis I 1 / 20

Outline 1 Course Overview 2 Matrix-Vector Multiplication Xiangmin Jiao Numerical Analysis I 2 / 20

Course Description What is numerical linear algebra? Solving linear algebra problems using efficient algorithms on computers Topics: Direct and iterative methods for solving simultaneous linear equations. Matrix factorization and decomposition. Conditioning, stability, and efficiency. Computation of eigenvalues and eigenvectors Prerequisite/Co-requisite: AMS 510 (Analytical Methods for Applied Mathematics and Statistics) Programming in C (AMS 595, Fundamentals of Computing) This must NOT be your first course in linear algebra, or you will get lost Required Textbook: Numerical Linear Algebra, by Lloyd N. Trefethen and David Bau, III, SIAM, 1997, ISBN 0-89871-361-7. Reference Book (not required): Matrix Computations, 3rd edition, by Gene H. Golub and Charles F. Van Loan, John Hopkins University Press, 1996, ISBN 0-8018-5414-8. Xiangmin Jiao Numerical Analysis I 3 / 20

Why Learn Numerical Linear Algebra? Numerical linear algebra is foundation of scientific computations Many problems ultimately reduce to linear algebra concepts or algorithms, either analytical or computational Examples: Finite-element analysis, data fitting, PageRank (Google) Focus: Fundamental concepts, algorithms, and programming Xiangmin Jiao Numerical Analysis I 4 / 20

Course Outline Matrix fundamentals, multiplications, orthogonality, norms, and SVD (2.5 weeks). QR factorization, projectors, Gram-Schmidt algorithm, Householder triangulation (2 weeks). Conditioning and stability (1.5 weeks). Solution of linear system of equations, Gaussian elimination, pivoting, LU factorization, Cholesky factorization (2 weeks). Eigenvalue problems, Hessenberg tridiagonalization, Rayleigh quotient, power method, inverse power method and shifting (2.5 weeks). Iterative methods, Lanczos iteration (1 weeks). Linear algebra software packages (1 weeks). Course webpage: http://www.ams.sunysb.edu/~jiao/teaching/ams526_fall11 Note: Course schedule online is tentative and is subject to change. Xiangmin Jiao Numerical Analysis I 5 / 20

Course Policy Assignments (written or programming) Assignments are due in class one to two weeks after assigned You can discuss course materials and homework problems with others, but you must write your answers completely independently Do NOT copy solutions from any source. Do NOT share your solutions to others Exams and tests Grading All exams are closed-book However, one-page cheat sheet is allowed Assignments: 30% Two tests: 40% Final exam: 30% Xiangmin Jiao Numerical Analysis I 6 / 20

Outline 1 Course Overview 2 Matrix-Vector Multiplication Xiangmin Jiao Numerical Analysis I 7 / 20

Definition Matrix-vector product b = Ax b i = n a ij x j j=1 All entries belong to C, the field of complex numbers. The space of m-vectors is C m, and the space of m n matrices is C m n. The map x Ax is linear, which means that for any x, y C n and any α C A(x + y) = Ax + Ay, A(αx) = αax. In lecture notes, I use boldface UPPERCASE letters (such as A) for matrices and boldface lowercase letters (such as x) for vectors. Xiangmin Jiao Numerical Analysis I 8 / 20

Pseudo-Code for Matrix-Vector Product Pseudo-code for b = Ax for i = 1 to m do b(i) = 0; for j = 1 to n do b(i) = b(i) + A(i, j) x(j); end for end for Note: Pseudo-code are not real code in that they do not run on any computer. They are human readable, but they should be straightforward to convert into real computer codes in any programming languages. Xiangmin Jiao Numerical Analysis I 9 / 20

Linear Combination Alternatively, matrix-vector product can be viewed as b = Ax = n x j a j j=1 i.e., b is a linear combination of column vectors of A Two different views of matrix-vector products: 1 b i = n j=1 a ijx j : A acts on x to produce b; scalar operations; 2 b = n j=1 x ja j : x acts on A to produce b; vector operations. If A is m n, Ax can be viewed as a mapping from C n to C m Xiangmin Jiao Numerical Analysis I 10 / 20

Matrix-Matrix Multiplication If A is l m and C is m n, then B = AC is l n, with entries defined by m b ij = a ik c kj. Written in columns, we have k=1 b j = Ac j = m c kj a k. k=1 In other word, each column of B is a linear combination of the columns of A. Xiangmin Jiao Numerical Analysis I 11 / 20

Pseudo-Code for Matrix-Matrix Multiplication Pseudo-code for B = AC for i = 1 to l do for j = 1 to n do B(i, j) = 0; for k = 1 to m do B(i, j) = B(i, j) + A(i, k) C(k, j); end for end for end for Xiangmin Jiao Numerical Analysis I 12 / 20

Perspective: Vector Space A useful way in understanding matrix operations is to think in terms of vector spaces Vector space spanned by a set of vectors is composed of linear combinations of these vectors It is closed under addition and scalar multiplication 0 is always a member of a subspace Space spanned by m-vectors is subspace of C m If S 1 and S 2 are two subspaces, then S 1 S 2 is a subspace, so is S 1 + S 2, the space of sum of vectors from S 1 and S 2. Note that S1 + S 2 is different from S 1 S 2 Two subspaces S 1 and S 2 of C m are complementary subspaces of each other if S 1 + S 2 = C m and S 1 S 2 = {0}. In other words, dim(s1 ) + dim(s 2 ) = m and S 1 S 2 = {0} Xiangmin Jiao Numerical Analysis I 13 / 20

Range and Null Space Definition The range of a matrix A, written as range(a), is the set of vectors that can be expressed as Ax for some x. Xiangmin Jiao Numerical Analysis I 14 / 20

Range and Null Space Definition The range of a matrix A, written as range(a), is the set of vectors that can be expressed as Ax for some x. Theorem range(a) is the space spanned by the columns of A. Therefore, the range of A is also called the column space of A. Xiangmin Jiao Numerical Analysis I 14 / 20

Range and Null Space Definition The range of a matrix A, written as range(a), is the set of vectors that can be expressed as Ax for some x. Theorem range(a) is the space spanned by the columns of A. Therefore, the range of A is also called the column space of A. Definition The null space of A C m n, written as null(a), is the set of vectors x that satisfy Ax = 0. Entries of x null(a) give coefficient of x i a i = 0. Note: The null space of A is in general not a complementary subspace of range(a). Xiangmin Jiao Numerical Analysis I 14 / 20

Rank Definition The column rank of a matrix is the dimension of its column space. The row rank is the dimension of the space spanned by its rows. Question: Can the column rank and the row rank be different? Xiangmin Jiao Numerical Analysis I 15 / 20

Rank Definition The column rank of a matrix is the dimension of its column space. The row rank is the dimension of the space spanned by its rows. Question: Can the column rank and the row rank be different? Answer: No. We will give a proof in future lectures. We therefore simply say the rank of a matrix. Question: Given A C m n, what is dim(null(a)) + rank(a) equal to? Xiangmin Jiao Numerical Analysis I 15 / 20

Rank Definition The column rank of a matrix is the dimension of its column space. The row rank is the dimension of the space spanned by its rows. Question: Can the column rank and the row rank be different? Answer: No. We will give a proof in future lectures. We therefore simply say the rank of a matrix. Question: Given A C m n, what is dim(null(a)) + rank(a) equal to? Answer: n. Xiangmin Jiao Numerical Analysis I 15 / 20

Transpose and Adjoint Transpose of A, denoted by A T, is the matrix B with b ij = a ji Adjoint or Hermitian conjugate, denoted by A of A H, is the matrix B with b ij = ā ji Note that, (AB) T = B T A T and (AB) = B A A matrix A is symmetric if A = A T (i.e., a ij = a ji ). It is Hermitian if A = A (i.e., a ij = ā ji ) For A R m n, null(a) and range(a T ) are complementary subspaces. In addition, null(a) and range(a T ) are orthogonal to each other (to be explained later) For A C m n, null(a) and range(a ) are complementary subspaces. Xiangmin Jiao Numerical Analysis I 16 / 20

Full Rank Definition A matrix has full rank if it has the maximal possible rank, i.e., min{m, n}. Xiangmin Jiao Numerical Analysis I 17 / 20

Full Rank Definition A matrix has full rank if it has the maximal possible rank, i.e., min{m, n}. Theorem A matrix A C m n with m n has full rank if and only if it maps no two distinct vectors to the same vector. In other word, the linear mapping defined by Ax for x C n is one-to-one. Xiangmin Jiao Numerical Analysis I 17 / 20

Full Rank Definition A matrix has full rank if it has the maximal possible rank, i.e., min{m, n}. Theorem A matrix A C m n with m n has full rank if and only if it maps no two distinct vectors to the same vector. In other word, the linear mapping defined by Ax for x C n is one-to-one. Proof. ( ) Column vectors of A forms a basis of range(a), so every b range(a) has a unique linear expansion in terms of the columns of A. ( ) If A does not have full rank, then its column vectors are linear dependent, so its vectors do not have a unique linear combination. Xiangmin Jiao Numerical Analysis I 17 / 20

Full Rank Definition A matrix has full rank if it has the maximal possible rank, i.e., min{m, n}. Theorem A matrix A C m n with m n has full rank if and only if it maps no two distinct vectors to the same vector. In other word, the linear mapping defined by Ax for x C n is one-to-one. Proof. ( ) Column vectors of A forms a basis of range(a), so every b range(a) has a unique linear expansion in terms of the columns of A. ( ) If A does not have full rank, then its column vectors are linear dependent, so its vectors do not have a unique linear combination. Definition A nonsingular or invertible matrix is a square matrix of full rank. Xiangmin Jiao Numerical Analysis I 17 / 20

Inverse Definition Given a nonsingular matrix A, its inverse is written as A 1, and AA 1 = A 1 A = I. Note that (AB) 1 = B 1 A 1. (A 1 ) = (A ) 1, and we use A as a shorthand for it Xiangmin Jiao Numerical Analysis I 18 / 20

Inverse Definition Given a nonsingular matrix A, its inverse is written as A 1, and AA 1 = A 1 A = I. Note that (AB) 1 = B 1 A 1. (A 1 ) = (A ) 1, and we use A as a shorthand for it Theorem The following conditions are equivalent: (a) A has an inverse A 1, (b) rank(a) is m, (c) range(a) is C m, (d) null(a) is {0}, (e) 0 is not an eigenvalue of A, (f) 0 is not a singular value of A, (g) det(a) 0. Xiangmin Jiao Numerical Analysis I 18 / 20

Matrix Inverse Times a Vector When writing x = A 1 b, it means x is the solution of Ax = b In other words, A 1 b is the vector of coefficients of the expansion of b in the basis of columns of A Multiplying b by A 1 is a change of basis operations from {a 1, a 2,..., a m } to {e 1, e 2,..., e m } Multiplying A 1 b by A is a change of basis operations from {e 1, e 2,..., e m } to {a 1, a 2,..., a m } Xiangmin Jiao Numerical Analysis I 19 / 20

Rank-1 Matrices Full-rank matrices are important. Another interesting space case is rank-1 matrices. A matrix A is rank-1 if it can be written as A = uv, where u and v are nonzero vectors uv is called the outer product of the two vectors, as opposed to the inner product u v. Xiangmin Jiao Numerical Analysis I 20 / 20