Linear Algebra in A Nutshell

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

YORK UNIVERSITY. Faculty of Science Department of Mathematics and Statistics MATH M Test #1. July 11, 2013 Solutions

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

A SHORT SUMMARY OF VECTOR SPACES AND MATRICES

MATH 2360 REVIEW PROBLEMS

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

Study Guide for Linear Algebra Exam 2

This lecture is a review for the exam. The majority of the exam is on what we ve learned about rectangular matrices.

Chapter 1. Vectors, Matrices, and Linear Spaces

MAT Linear Algebra Collection of sample exams

4. Matrix inverses. left and right inverse. linear independence. nonsingular matrices. matrices with linearly independent columns

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

Chapter 6 - Orthogonality

MATH 323 Linear Algebra Lecture 12: Basis of a vector space (continued). Rank and nullity of a matrix.

Review Notes for Linear Algebra True or False Last Updated: February 22, 2010

A Review of Linear Algebra

Math 215 HW #9 Solutions

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

ft-uiowa-math2550 Assignment OptionalFinalExamReviewMultChoiceMEDIUMlengthForm due 12/31/2014 at 10:36pm CST

MATH 1120 (LINEAR ALGEBRA 1), FINAL EXAM FALL 2011 SOLUTIONS TO PRACTICE VERSION

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

Math 54 HW 4 solutions

(a) II and III (b) I (c) I and III (d) I and II and III (e) None are true.

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

4 ORTHOGONALITY ORTHOGONALITY OF THE FOUR SUBSPACES 4.1

Linear independence, span, basis, dimension - and their connection with linear systems

Linear algebra I Homework #1 due Thursday, Oct Show that the diagonals of a square are orthogonal to one another.

Orthogonality. 6.1 Orthogonal Vectors and Subspaces. Chapter 6

Math Camp II. Basic Linear Algebra. Yiqing Xu. Aug 26, 2014 MIT

Math 3C Lecture 25. John Douglas Moore

18.06 Problem Set 3 - Solutions Due Wednesday, 26 September 2007 at 4 pm in

Maths for Signals and Systems Linear Algebra in Engineering

Linear Independence x

The SVD-Fundamental Theorem of Linear Algebra

Elementary Linear Algebra Review for Exam 2 Exam is Monday, November 16th.

Math Final December 2006 C. Robinson

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

MATH 1553 PRACTICE FINAL EXAMINATION

Kevin James. MTHSC 3110 Section 4.3 Linear Independence in Vector Sp

Rank and Nullity. MATH 322, Linear Algebra I. J. Robert Buchanan. Spring Department of Mathematics

2. Linear algebra. matrices and vectors. linear equations. range and nullspace of matrices. function of vectors, gradient and Hessian

Linear Algebra Review: Linear Independence. IE418 Integer Programming. Linear Algebra Review: Subspaces. Linear Algebra Review: Affine Independence

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

Lecture: Linear algebra. 4. Solutions of linear equation systems The fundamental theorem of linear algebra

Row Space and Column Space of a Matrix

THE NULLSPACE OF A: SOLVING AX = 0 3.2

The definition of a vector space (V, +, )

Linear Algebra Final Exam Study Guide Solutions Fall 2012

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

1. Select the unique answer (choice) for each problem. Write only the answer.

Department of Aerospace Engineering AE602 Mathematics for Aerospace Engineers Assignment No. 4

Conceptual Questions for Review

Solutions to Math 51 First Exam April 21, 2011

homogeneous 71 hyperplane 10 hyperplane 34 hyperplane 69 identity map 171 identity map 186 identity map 206 identity matrix 110 identity matrix 45

Chapter 3. Directions: For questions 1-11 mark each statement True or False. Justify each answer.

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

Lecture 3: Linear Algebra Review, Part II

GEOMETRY OF MATRICES x 1

Review of Some Concepts from Linear Algebra: Part 2

Eigenvalues and Eigenvectors A =

18.06SC Final Exam Solutions

Question 7. Consider a linear system A x = b with 4 unknown. x = [x 1, x 2, x 3, x 4 ] T. The augmented

Test 3, Linear Algebra

Math 310 Final Exam Solutions

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

SECTION 3.3. PROBLEM 22. The null space of a matrix A is: N(A) = {X : AX = 0}. Here are the calculations of AX for X = a,b,c,d, and e. =

Math 2174: Practice Midterm 1

There are six more problems on the next two pages

2018 Fall 2210Q Section 013 Midterm Exam II Solution

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

Math 369 Exam #2 Practice Problem Solutions

EE263: Introduction to Linear Dynamical Systems Review Session 2

(i) [7 points] Compute the determinant of the following matrix using cofactor expansion.

Properties of Linear Transformations from R n to R m

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

Math 2114 Common Final Exam May 13, 2015 Form A

Assignment 1 Math 5341 Linear Algebra Review. Give complete answers to each of the following questions. Show all of your work.

DM559 Linear and Integer Programming. Lecture 6 Rank and Range. Marco Chiarandini

ANSWERS. E k E 2 E 1 A = B

Lecture 21: 5.6 Rank and Nullity

Family Feud Review. Linear Algebra. October 22, 2013

Final Exam Practice Problems Answers Math 24 Winter 2012

Row Space, Column Space, and Nullspace

Stat 159/259: Linear Algebra Notes

1. Determine by inspection which of the following sets of vectors is linearly independent. 3 3.

Vector Spaces, Orthogonality, and Linear Least Squares

Singular Value Decomposition. 1 Singular Value Decomposition and the Four Fundamental Subspaces

MATH 2050 Assignment 6 Fall 2018 Due: Thursday, November 1. x + y + 2z = 2 x + y + z = c 4x + 2z = 2

ICS 6N Computational Linear Algebra Vector Space

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

PRACTICE FINAL EXAM. why. If they are dependent, exhibit a linear dependence relation among them.

Math 2331 Linear Algebra

Math 323 Exam 2 Sample Problems Solution Guide October 31, 2013

National University of Singapore. Semester II ( ) Time allowed: 2 hours

Math 240, 4.3 Linear Independence; Bases A. DeCelles. 1. definitions of linear independence, linear dependence, dependence relation, basis

The Four Fundamental Subspaces

Linear Algebra. Grinshpan

Announcements Monday, October 29

Linear Algebra V = T = ( 4 3 ).

χ 1 χ 2 and ψ 1 ψ 2 is also in the plane: αχ 1 αχ 2 which has a zero first component and hence is in the plane. is also in the plane: ψ 1

Transcription:

Linear Algebra in A Nutshell Gilbert Strang Computational Science and Engineering Wellesley-Cambridge Press. 2007.

Outline 1 Matrix Singularity 2 Matrix Multiplication by Columns or Rows Rank and nullspace Column space and solutions to linear equations 3 The Four Fundamental Subspaces 4 Dimension and Basis

Outline 1 Matrix Singularity 2 Matrix Multiplication by Columns or Rows Rank and nullspace Column space and solutions to linear equations 3 The Four Fundamental Subspaces 4 Dimension and Basis

Invertibility of an n-by-n matrix A is invertible The columns are independent The rows are independent The determinant is not zero Ax = 0 has one solution x = 0 Ax = b has one solution A 1 b A has n (nonzero) pivots A has full rank A is not invertible The columns are dependent The rows are dependent The determinant is zero Ax = 0 has infinitely many solutions Ax = b has no solution or infinitely many A has r < n pivots A has rank r < n

Invertibility of an n-by-n matrix (cont.) The reduced row echelon form is R = I The column space is all of R n The row space is all of R n All eigenvalues are nonzero A T A is symmetric positive definite A has n (positive) singular values R has at least one zero row The column space has dimension r < n The row space has dimension r < n Zero is an eigenvalue of A A T A is only semidefinite A has r < n nonzero (positive) singular values

Outline 1 Matrix Singularity 2 Matrix Multiplication by Columns or Rows Rank and nullspace Column space and solutions to linear equations 3 The Four Fundamental Subspaces 4 Dimension and Basis

Think of Ax a column at time Instead of thinking of Ax inner products, think of Ax a linear combination of columns of A: [ ] [ ] [ ] [ ] 1 2 C 1 2 = C + D 3 6 D 3 6

Think of Ax a column at time Instead of thinking of Ax inner products, think of Ax a linear combination of columns of A: [ ] [ ] [ ] [ ] 1 2 C 1 2 = C + D 3 6 D 3 6 In particular, [ ] [ 1 2 1 3 6 0 ] = first column [ 1 2 3 6 ] [ 0 1 ] = last column

In general matrix-vector multiplication: y = Ax

In general matrix-vector multiplication: y = Ax column version y = zeros(m,1); for j=1:n y = y + x(j)*a(:,j); endfor

In general matrix-vector multiplication: y = Ax column version y = zeros(m,1); for j=1:n y = y + x(j)*a(:,j); endfor matrix-matrix multiplication: C = AB

In general matrix-vector multiplication: y = Ax column version y = zeros(m,1); for j=1:n y = y + x(j)*a(:,j); endfor matrix-matrix multiplication: C = AB column version (Fortran, step 1) C(:,j) = A*B(:,j)

Row version vector-matrix multiplication: v T = u T A

Row version vector-matrix multiplication: v T = u T A row version v = zeros(1,n); for i=1:m v = v + u(i)*a(i,:); endfor

Row version vector-matrix multiplication: v T = u T A row version v = zeros(1,n); for i=1:m v = v + u(i)*a(i,:); endfor matrix-matrix multiplication: C = AB

Row version vector-matrix multiplication: v T = u T A row version v = zeros(1,n); for i=1:m v = v + u(i)*a(i,:); endfor matrix-matrix multiplication: C = AB row version (C) C(i,:) = A(i,:)*B

Rank and nullspace Suppose A is an m-by-n matrix, Ax = 0 has at least one (trivial) solution, namely x = 0. There are other (nontrivial) solutions in case n > m. Even if m = n, there might be nonzero solutions to Ax = 0 when A is not invertible. It is the number r of independent rows or columns that counts.

Rank and nullspace (cont.) Rank The number r of independent rows or columns is the rank of A (r m and r n, that is, r min(m, n)).

Rank and nullspace (cont.) Rank The number r of independent rows or columns is the rank of A (r m and r n, that is, r min(m, n)). Null space The null space of A is the set of all solutions x to Ax = 0. x in nullspace x 1 (column 1) + + x n (column n) = 0

Rank and nullspace (cont.) Rank The number r of independent rows or columns is the rank of A (r m and r n, that is, r min(m, n)). Null space The null space of A is the set of all solutions x to Ax = 0. x in nullspace x 1 (column 1) + + x n (column n) = 0 This nullspace N(A) contains only x = 0 when the columns of A are independent. In that case A is of full column rank r = n.

Rank and nullspace (cont.) Example. The nullspace of Question Find the line. [ 1 2 3 6 ] is a line.

Rank and nullspace (cont.) Example. The nullspace of Question Find the line. [ 1 2 3 6 ] is a line. We often require that A is of full column rank. In that case, A T A, n-by-n, is invertible, and symmetric and positive definite.

Column (range) space Column (range) space The column (range) space contains all combinations of the columns. Example. The column space of [ ] 1. 3 [ 1 2 3 6 ] is always through

Column (range) space (cont.) In other words, the column space C(A) contains all possible products Ax, thus also called the range space R(A). For an m-by-n matrix, the column space is in m-dimensional space. The word space indicates: Any combination of vectors in the space stays in the space. The zero combination is allowed, so x = 0 is in every space.

Solution to linear equations A solution to Ax = b calls for a linear combination of the columns that equals b. Thus, if b is in R(A), there is a solution to Ax = b, otherwise, Ax = b has no solution.

Solution to linear equations A solution to Ax = b calls for a linear combination of the columns that equals b. Thus, if b is in R(A), there is a solution to Ax = b, otherwise, Ax = b has no solution. How do we write down all solutions, when b R(A)?

Solution to linear equations A solution to Ax = b calls for a linear combination of the columns that equals b. Thus, if b is in R(A), there is a solution to Ax = b, otherwise, Ax = b has no solution. How do we write down all solutions, when b R(A)? Suppose x p is a particular solution to Ax = b. Any vector x n in the nullspace solves Ax = 0. The complete solution to Ax = b has the form: x = (one x p ) + (all x n ).

Solution to linear equations (cont.) Questions Find the complete solution to [ 1 2 3 6 Does the complete solution form a space? ] [ 5 x = 15 ].

Comments Suppose A is a square invertible matrix, then the nullspace only contains x n = 0. The complete solution x = A 1 b + 0 = A 1 b.

Comments Suppose A is a square invertible matrix, then the nullspace only contains x n = 0. The complete solution x = A 1 b + 0 = A 1 b. When Ax = b has infinitely many solutions, the shortest x always lies in the row space of A. A particular solution can be found by the pseudo-inverse pinv(a).

Comments Suppose A is a square invertible matrix, then the nullspace only contains x n = 0. The complete solution x = A 1 b + 0 = A 1 b. When Ax = b has infinitely many solutions, the shortest x always lies in the row space of A. A particular solution can be found by the pseudo-inverse pinv(a). Suppose A is tall and thin (m > n). The columns are likely to be independent. But if b is not in the column space, Ax = b has no solution. The least squares method minimizes Ax b 2 2 by solving AT A x = A T b.

Outline 1 Matrix Singularity 2 Matrix Multiplication by Columns or Rows Rank and nullspace Column space and solutions to linear equations 3 The Four Fundamental Subspaces 4 Dimension and Basis

Four spaces of A The column space R(A) of A is a subspace of R m. The nullspace N(A) of A is a subspace of R n. In addition, we consider N(A T ), a subspace of R m and R(A T ), a subspace of R n. Four spaces of A: R(A), N(A), N(A T ), R(A T )

Four spaces of A The column space R(A) of A is a subspace of R m. The nullspace N(A) of A is a subspace of R n. In addition, we consider N(A T ), a subspace of R m and R(A T ), a subspace of R n. Four spaces of A: R(A), N(A), N(A T ), R(A T ) Question Let A = [ 1 2 3 6 ], Draw R(A) and N(A T ) in the same figure, and draw N(A) and R(A T ) in the another figure.

Four spaces of A (cont.) Four subspaces R(A) and N(A T ) are perpendicular (in R m ). N(A) and R(A T ) are perpendicular (in R n ).

Four spaces of A (cont.) Four subspaces R(A) and N(A T ) are perpendicular (in R m ). N(A) and R(A T ) are perpendicular (in R n ). Each subspace contains either infinitely many vectors or only the zero vector. If u is in a space, so are 10u and 100u (and most certainly 0u). We measure the dimension of a space not by the number of vector, but by the number of independent vectors. In the above example, a line has one independent vector but not two.

Outline 1 Matrix Singularity 2 Matrix Multiplication by Columns or Rows Rank and nullspace Column space and solutions to linear equations 3 The Four Fundamental Subspaces 4 Dimension and Basis

A basis for a space A full set of independent vectors is a basis for a space. Basis 1 The basis vectors are linearly independent. 2 Every vector in the space is a unique combination of those basis vectors.

A basis for a space A full set of independent vectors is a basis for a space. Basis 1 The basis vectors are linearly independent. 2 Every vector in the space is a unique combination of those basis vectors. Some particular bases for R n : standard basis = columns of the identity matrix general basis = columns of any invertible matrix orthogonal basis = columns of any orthogonal matrix

A basis for a space A full set of independent vectors is a basis for a space. Basis 1 The basis vectors are linearly independent. 2 Every vector in the space is a unique combination of those basis vectors. Some particular bases for R n : standard basis = columns of the identity matrix general basis = columns of any invertible matrix orthogonal basis = columns of any orthogonal matrix The dimension of a space is the number of vectors in a basis for the space.