ICS 6N Computational Linear Algebra Vector Space

Similar documents
ICS 6N Computational Linear Algebra Vector Equations

Math 369 Exam #2 Practice Problem Solutions

Sept. 26, 2013 Math 3312 sec 003 Fall 2013

ICS 6N Computational Linear Algebra Eigenvalues and Eigenvectors

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

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

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

Study Guide for Linear Algebra Exam 2

Objective: Introduction of vector spaces, subspaces, and bases. Linear Algebra: Section

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

Lecture 13: Row and column spaces

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

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

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

Practice Final Exam. Solutions.

Math 2331 Linear Algebra

ICS 6N Computational Linear Algebra Matrix Algebra

Vector space and subspace

Math 54 HW 4 solutions

ICS 6N Computational Linear Algebra Symmetric Matrices and Orthogonal Diagonalization

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

MATH2210 Notebook 3 Spring 2018

Vector Spaces 4.3 LINEARLY INDEPENDENT SETS; BASES Pearson Education, Inc.

Solutions to Section 2.9 Homework Problems Problems 1 5, 7, 9, 10 15, (odd), and 38. S. F. Ellermeyer June 21, 2002

SUMMARY OF MATH 1600

x = t 1 x 1 + t 2 x t k x k

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

Math 2174: Practice Midterm 1

Math Linear algebra, Spring Semester Dan Abramovich

Chapter 1: Systems of Linear Equations

Worksheet for Lecture 15 (due October 23) Section 4.3 Linearly Independent Sets; Bases

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

Math 54. Selected Solutions for Week 5

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

Midterm #2 Solutions

MAT 242 CHAPTER 4: SUBSPACES OF R n

2018 Fall 2210Q Section 013 Midterm Exam II Solution

Worksheet for Lecture 15 (due October 23) Section 4.3 Linearly Independent Sets; Bases

Chapter 3. Vector spaces

Linear Algebra Final Exam Study Guide Solutions Fall 2012

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

Math 123, Week 5: Linear Independence, Basis, and Matrix Spaces. Section 1: Linear Independence

Advanced Linear Algebra Math 4377 / 6308 (Spring 2015) March 5, 2015

(c)

MATH 1553 PRACTICE FINAL EXAMINATION

Linear Algebra 1 Exam 2 Solutions 7/14/3

LINEAR ALGEBRA SUMMARY SHEET.

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

CSL361 Problem set 4: Basic linear algebra

Review for Exam 2 Solutions

Math 102, Winter 2009, Homework 7

Linear Algebra Linearly Independent Sets; Bases

MATH 300, Second Exam REVIEW SOLUTIONS. NOTE: You may use a calculator for this exam- You only need something that will perform basic arithmetic.

Math 3191 Applied Linear Algebra

MATH 2030: ASSIGNMENT 4 SOLUTIONS

1.1 SOLUTIONS. Replace R2 by R2 + (2)R1 and obtain: 2. Scale R2 by 1/3: Replace R1 by R1 + ( 5)R2:

LECTURES 14/15: LINEAR INDEPENDENCE AND BASES

7. Dimension and Structure.

Dimension and Structure

Last lecture: linear combinations and spanning sets. Let X = {x 1, x 2,..., x k } be a set of vectors in a vector

Chapter 1 Vector Spaces

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

We showed that adding a vector to a basis produces a linearly dependent set of vectors; more is true.

Math 3191 Applied Linear Algebra

Math 2940: Prelim 1 Practice Solutions

Math 4377/6308 Advanced Linear Algebra

Math 1553, Introduction to Linear Algebra

Chapter 2 Subspaces of R n and Their Dimensions

Math Final December 2006 C. Robinson

1 Last time: inverses

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

Linear Independence x

Row Space, Column Space, and Nullspace

Vector space and subspace

Math 544, Exam 2 Information.

Review for Chapter 1. Selected Topics

Math113: Linear Algebra. Beifang Chen

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

MTH 464: Computational Linear Algebra

Solution to Set 6, Math W = {x : x 1 + x 2 = 0} Solution: This is not a subspace since it does not contain 0 = (0, 0) since

6.4 BASIS AND DIMENSION (Review) DEF 1 Vectors v 1, v 2,, v k in a vector space V are said to form a basis for V if. (a) v 1,, v k span V and

1 Systems of equations

R b. x 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 1 1, x h. , x p. x 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9

Lecture 6: Spanning Set & Linear Independency

Practice Problems for the Final Exam

OHSX XM511 Linear Algebra: Multiple Choice Exercises for Chapter 2

Linear Algebra Summary. Based on Linear Algebra and its applications by David C. Lay

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

Vector Spaces 4.4 Spanning and Independence

MATH 1553, SPRING 2018 SAMPLE MIDTERM 2 (VERSION B), 1.7 THROUGH 2.9

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 2331 Linear Algebra. Section 1.1 Systems of Linear Equations. Finding the solution to a set of two equations in two variables: Example 1: Solve:

MATH 304 Linear Algebra Lecture 20: Review for Test 1.

Lecture 9: Vector Algebra

4.3 - Linear Combinations and Independence of Vectors

MATH 54 QUIZ I, KYLE MILLER MARCH 1, 2016, 40 MINUTES (5 PAGES) Problem Number Total

LINEAR ALGEBRA REVIEW

Math Linear algebra, Spring Semester Dan Abramovich

Math 3A Winter 2016 Midterm

1. General Vector Spaces

Transcription:

ICS 6N Computational Linear Algebra Vector Space Xiaohui Xie University of California, Irvine xhx@uci.edu Xiaohui Xie (UCI) ICS 6N 1 / 24

Vector Space Definition: A vector space is a non empty set V of objects called vectors on which we define two operations: addition and multiplication by a scalar, and they are subject to ten rules: 1) If u, v V, u + v V 2) u + v = v + u 3) (u + v) + w = u + (v + w) 4) There exists a zero vector 0 such that u + 0 = u 5) For each u V, there exists ( u) such that u + ( u) = 0 6) For any scalar c and u V, cu V 7) c(u + v) = cu = cv for any scalar c 8) (c + d)u = cu + du for any scalars c, d 9) c(du) = (cd)u for any scalars c,d 10) 1u = u Xiaohui Xie (UCI) ICS 6N 2 / 24

Vector space examples R n is a vector space. P n : the set of polynomial functions that can be written as f (t) = a 0 + a 1 t +... + a n t n then P n is a vector space if we define: Addition: If f (t) = a 0 + a 1 t +... + a n t n and f P n, and g(t) = b 0 + b 1 t +... + b n t n and g P n, then f + g = a 0 + b 0 + (a 1 + b 1 )t +... + (a n + b n )t n P n Multiplication by a scalar cf (t) = ca 0 + ca 1 t +... + ca n t n P n Xiaohui Xie (UCI) ICS 6N 3 / 24

Subspaces Definition: A subset H of a vector space V is called a subspace if: a) 0 H and b) If x, y H, then x + y H and c) If x H, then rx H for a scalar r We can also easily see H is also a vector space by itself. Xiaohui Xie (UCI) ICS 6N 4 / 24

Examples 1) H = 0 is a subspace 2) H = span { u }, u R n is a subspace Xiaohui Xie (UCI) ICS 6N 5 / 24

Null Space of A Definition: the null space of m n matrix A is the set of all solutions to Ax = 0. Null(A) = { x R n : Ax = 0 } Null(A) is a subspace of R n It contains the zero vector. If x, y Null(A), does x + y Null(A)? If x Null(A), is = rx Null(A)? Xiaohui Xie (UCI) ICS 6N 6 / 24

Column Space of A Definition: the column space of m n matrix A is all the linear combinations of column vectors of A. Col(A) = span { a 1,..., a n } Col(A) is a subspace of R m It contains the zero vector. If x, y Col(A), does x + y Col(A)? If x Col(A), is = rx Col(A)? Xiaohui Xie (UCI) ICS 6N 7 / 24

How to describe a subspace? Span by a set x 1,..., x p V span { x 1,..., x p } = all linear combinations of x1,..., x p span { x 1,..., x p } is a subspace The spanning set of H is the set of vectors x 1,..., x p so that span{x 1,..., x p } = H Xiaohui Xie (UCI) ICS 6N 8 / 24

Example How to find a spanning set of Null(A) 3 6 1 1 7 A = 1 2 2 3 1 2 4 5 8 4 reduce it to echelon form 1 2 0 1 3 0 0 0 1 2 2 0 0 0 0 0 0 0 Find solutions in parametric form with x 4 and x 5 free. x 3 = 2x 4 + 2x 5 x1 = 2x 2 + x 4 3x 5 Xiaohui Xie (UCI) ICS 6N 9 / 24

Represent the solution in vector form: x 1 2x 2 + x 4 3x 5 2 1 3 x 2 x = x 3 x 4 = x 2 2x 4 + 2x 5 x 4 = x 1 2 0 0 + x 0 4 2 1 + x 0 5 2 0 x 5 x 5 0 0 1 We have the spanning set = x 2 u + x 4 v + x 5 w Null(A) = span { u, v, w } Xiaohui Xie (UCI) ICS 6N 10 / 24

Spanning set representation of null space Then number of vectors in the spanning set of Null(A) = number of free variables = n - number of pivot columns u, v, w are linearly independent. The only way of making x 2 u + x 4 v + x 5 w = 0 is if x 2 = x 4 = x 5 = 0 Null(A) = { 0 } if there is no free variables. Xiaohui Xie (UCI) ICS 6N 11 / 24

Column space The column space of m n matrix A A subspace of R m Col A = span{a 1,, a n } Col(A) = R m Ax = b has a solution for every b Xiaohui Xie (UCI) ICS 6N 12 / 24

Basis of a vector space Definition: v 1, v 2,... v r is a basis of vector space V if: a) V = span { v 1,..., v r } b) {v 1, v 2,... v r } is linearly independent Xiaohui Xie (UCI) ICS 6N 13 / 24

Linear independent Definition: v 1, v 2,... v r are linearly independent if c 1 v 1 +... + c r v r = 0 has only trivial solutions. In other words, v i cannot be written down as a linear combination of the rest of the preceding vectors for any i. This is v i c 1 v 1 +... + c i 1 v i 1 for any i = 1,..., r Xiaohui Xie (UCI) ICS 6N 14 / 24

Example Consider vectors in R 2 b 1 = [ ] 1, b 0 2 = [ ] 0, b 1 3 = [ ] 2 2 b 2 = 2b 1 + 2b 2 { b1, b 2 } is a basis for R 2 The augmented matrix of x 1 b 1 + x 2 b 2 + x 3 b 3 = 0 is [ 1 0 2 ] 0 0 1 2 0 has nontrivial solutions since x 3 is a free variable. The first two columns are pivot columns. Col A is the span of pivot columns. Xiaohui Xie (UCI) ICS 6N 15 / 24

Finding a basis of a column space Reduce matrix A to echelon form 1 4 0 2 0 0 0 1 1 0 B = 0 0 0 0 1 0 0 0 0 0 Find solutions of Ax = 0 (also Bx = 0) in parametric form x 5 = 0 x 3 = x 4 x 1 = 4x 2 2x 4 with x 2, x 4 free. With x 2 = 1, x 4 = 0: x 5 = 0, x 3 = 0, x 1 = 4 = 4a 1 + a 2 = 0 With x 2 = 0, x 4 = 1: x 5 = 0, x 3 = 1, x 1 = 2 2a 1 + a 3 + a 4 = 0 Any nonpivot column can be written as a linear combination of pivot columns. Xiaohui Xie (UCI) ICS 6N 16 / 24

Find basis of column space Reduce matrix to echelon form: 1 4 0 2 1 1 4 0 2 0 A = 3 12 1 5 5 2 8 1 3 2 B = 0 0 1 1 0 0 0 0 0 1 5 20 2 8 8 0 0 0 0 0 Any nonpivot column can be written as a linear combination of pivot columns The pivot columns are linearly independent The pivot columns form a basis of the column space. Col(A) = span { a 1, a 2, a 3, a 4, a 5 } basis of Col A = { a 1, a 3, a 5 } basis of Col B = { b 1, b 3, b 5 } Xiaohui Xie (UCI) ICS 6N 17 / 24

Basis for Null(A): Number of vectors in the basis of Null(A) is equal to the number of free variables Basis for Col(A): Number of vectors in the basis of Col(A) is equal to the number of pivot columns which is equal to the number of basic variables Xiaohui Xie (UCI) ICS 6N 18 / 24

Dimension The dimension of V is the number of vectors in a basis of V dim(null(a)) = number of free variables = number of non-pivot columns dim(col(a)) = number of basic variables The rank of A is: r(a) = dim(col(a)) Xiaohui Xie (UCI) ICS 6N 19 / 24

Rank theorem For any mxn matrix A, r(a) + dim(null(a)) = n Xiaohui Xie (UCI) ICS 6N 20 / 24

Let A be an nxn matrix. If A is invertible, what is r(a)? r(a) = n. And it is called a full rank matrix in this case. If a matrix is invertible, the null space contains only the trivial solution and by definition: Null(A) = { 0 } dim(null(a)) = 0 Xiaohui Xie (UCI) ICS 6N 21 / 24

What is the basis for R n? One basis (the canonical basis) would be: 1 0. 0, 0 1. 0,..., 0 0. 1 So x 1 b 1 + x 2 b 2 +... + x n b n Xiaohui Xie (UCI) ICS 6N 22 / 24

P n : Polynomial functions up to order n f (t) = a 0 + a 1 t +... + a n t n has a basis { 1, t, t 2,..., t n} dim(p n ) = n+1 Xiaohui Xie (UCI) ICS 6N 23 / 24

Then any v V v = x 1 b 1 + x 2 b 2 +... + x r b r coordinates of v in terms of the basis [ v ] B = x 1 x 2. x n B = [ b 1 b 2... b r ] Xiaohui Xie (UCI) ICS 6N 24 / 24