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

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

Algorithms to Compute Bases and the Rank of a Matrix

Row Space, Column Space, and Nullspace

EXAM. Exam #2. Math 2360 Summer II, 2000 Morning Class. Nov. 15, 2000 ANSWERS

6.4 Basis and Dimension

Chapter 1. Vectors, Matrices, and Linear Spaces

MATH 2360 REVIEW PROBLEMS

MAT 242 CHAPTER 4: SUBSPACES OF R n

Chapter 2. General Vector Spaces. 2.1 Real Vector Spaces

Vector Spaces 4.5 Basis and Dimension

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

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

Math 369 Exam #2 Practice Problem Solutions

Math 205, Summer I, Week 3a (continued): Chapter 4, Sections 5 and 6. Week 3b. Chapter 4, [Sections 7], 8 and 9

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

Chapter 2: Linear Independence and Bases

Math 3C Lecture 25. John Douglas Moore

5.4 Basis And Dimension

Exercises Chapter II.

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

MATH 304 Linear Algebra Lecture 10: Linear independence. Wronskian.

Chapter 1 Vector Spaces

Chapter 3. Vector spaces

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

CSL361 Problem set 4: Basic linear algebra

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

Lecture 21: 5.6 Rank and Nullity

Math 313 Chapter 5 Review

Lecture 22: Section 4.7

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

AFFINE AND PROJECTIVE GEOMETRY, E. Rosado & S.L. Rueda 4. BASES AND DIMENSION

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

Dimension. Eigenvalue and eigenvector

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

Study Guide for Linear Algebra Exam 2

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

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

Abstract Vector Spaces

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

Lecture Summaries for Linear Algebra M51A

Determine whether the following system has a trivial solution or non-trivial solution:

LECTURE 6: VECTOR SPACES II (CHAPTER 3 IN THE BOOK)

Chapter 2 Subspaces of R n and Their Dimensions

Instructions Please answer the five problems on your own paper. These are essay questions: you should write in complete sentences.

Lecture 23: 6.1 Inner Products

Linear Algebra. Linear Algebra. Chih-Wei Yi. Dept. of Computer Science National Chiao Tung University. November 12, 2008

MATH 304 Linear Algebra Lecture 18: Orthogonal projection (continued). Least squares problems. Normed vector spaces.

NAME MATH 304 Examination 2 Page 1

Math 2174: Practice Midterm 1

1 Last time: inverses

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

System of Linear Equations

Math Linear algebra, Spring Semester Dan Abramovich

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

Math 353, Practice Midterm 1

SYMBOL EXPLANATION EXAMPLE

Solutions to Math 51 First Exam April 21, 2011

Math 344 Lecture # Linear Systems

OHSx XM511 Linear Algebra: Solutions to Online True/False Exercises

3.3 Linear Independence

1 Systems of equations

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

MATH 235. Final ANSWERS May 5, 2015

Row Space and Column Space of a Matrix

Linear Algebra M1 - FIB. Contents: 5. Matrices, systems of linear equations and determinants 6. Vector space 7. Linear maps 8.

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

MAT Linear Algebra Collection of sample exams

MATH 167: APPLIED LINEAR ALGEBRA Chapter 2

Systems of Linear Equations

Math Linear Algebra Final Exam Review Sheet

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

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

Linear Algebra (Math-324) Lecture Notes

Math 321: Linear Algebra

Math 4377/6308 Advanced Linear Algebra

Equality: Two matrices A and B are equal, i.e., A = B if A and B have the same order and the entries of A and B are the same.

Linear Algebra Highlights

GRE Subject test preparation Spring 2016 Topic: Abstract Algebra, Linear Algebra, Number Theory.

Third Midterm Exam Name: Practice Problems November 11, Find a basis for the subspace spanned by the following vectors.

Online Exercises for Linear Algebra XM511

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

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

MATH2210 Notebook 3 Spring 2018

Math 54 HW 4 solutions

LINEAR ALGEBRA REVIEW

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

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

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

MATH 423 Linear Algebra II Lecture 12: Review for Test 1.

IFT 6760A - Lecture 1 Linear Algebra Refresher

MA 0540 fall 2013, Row operations on matrices

Math 265 Midterm 2 Review

Linear Algebra. Session 8

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

Matrix invertibility. Rank-Nullity Theorem: For any n-column matrix A, nullity A +ranka = n

14: Hunting the Nullspace. Lecture

MATH. 20F SAMPLE FINAL (WINTER 2010)

Chapter 7. Linear Algebra: Matrices, Vectors,

Definitions for Quizzes

80 min. 65 points in total. The raw score will be normalized according to the course policy to count into the final score.

Transcription:

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

Basis Definition. Let V be a vector space. A linearly independent spanning set for V is called a basis. Theorem A nonempty set S V is a basis for V if and only if any vector v V is uniquely represented as a linear combination v = r 1 v 1 +r 2 v 2 + +r k v k, where v 1,...,v k are distinct vectors from S and r 1,...,r k R. Remark on uniqueness. Expansions v = 2v 1 v 2, v = v 2 +2v 1, and v = 2v 1 v 2 +0v 3 are considered the same.

Dimension Theorem 1 Any vector space has a basis. Theorem 2 If a vector space V has a finite basis, then all bases for V are finite and have the same number of elements. Definition. The dimension of a vector space V, denoted dimv, is the number of elements in any of its bases. Examples. dimr n = n M m,n (R): the space of m n matrices; dimm m,n = mn P n : polynomials of degree less than n; dimp n = n P: the space of all polynomials; dimp = {0}: the trivial vector space; dim{0} = 0

How to find a basis? Theorem Let V be a vector space. Then (i) any spanning set for V contains a basis; (ii) any linearly independent subset of V is contained in a basis. Approach 1. Given a spanning set for the vector space, reduce this set to a basis. Approach 2. Given a linearly independent set, extend this set to a basis. Approach 2a. Given a spanning set S 1 and a linearly independent set S 2, extend the set S 2 to a basis adding vectors from the set S 1.

Problem. Find a basis for the vector space V spanned by vectors w 1 = (1,1,0), w 2 = (0,1,1), w 3 = (2,3,1), and w 4 = (1,1,1). To pare this spanning set, we need to find a relation of the form r 1 w 1 +r 2 w 2 +r 3 w 3 +r 4 w 4 = 0, where r i R are not all equal to zero. Equivalently, 1 0 2 1 1 1 3 1 0 1 1 1 r 1 r 2 r 3 r 4 0 = 0. 0 To solve this system of linear equations for r 1,r 2,r 3,r 4, we apply row reduction.

1 0 2 1 1 0 2 1 1 0 2 1 1 1 3 1 0 1 1 0 0 1 1 0 0 1 1 1 0 1 1 1 0 0 0 1 1 0 2 0 0 1 1 0 (reduced row echelon form) 0 0 0 1 r 1 +2r 3 = 0 r 2 +r 3 = 0 r 4 = 0 r 1 = 2r 3 r 2 = r 3 r 4 = 0 General solution: (r 1,r 2,r 3,r 4 )=( 2t, t,t,0), t R. Particular solution: (r 1,r 2,r 3,r 4 ) = (2,1, 1,0).

Problem. Find a basis for the vector space V spanned by vectors w 1 = (1,1,0), w 2 = (0,1,1), w 3 = (2,3,1), and w 4 = (1,1,1). We have obtained that 2w 1 +w 2 w 3 = 0. Hence any of vectors w 1,w 2,w 3 can be dropped. For instance, V = Span(w 1,w 2,w 4 ). Let us check whether vectors w 1,w 2,w 4 are linearly independent: 1 0 1 1 1 1 0 1 1 = 1 0 1 1 1 0 0 1 0 = 1 1 0 1 = 1 0. They are!!! Thus {w 1,w 2,w 4 } is a basis for V. Moreover, it follows that V = R 3.

Row space of a matrix Definition. The row space of an m n matrix A is the subspace of R n spanned by rows of A. The dimension of the row space is called the rank of the matrix A. Theorem 1 The rank of a matrix A is the maximal number of linearly independent rows in A. Theorem 2 Elementary row operations do not change the row space of a matrix. Theorem 3 If a matrix A is in row echelon form, then the nonzero rows of A are linearly independent. Corollary The rank of a matrix is equal to the number of nonzero rows in its row echelon form.

Theorem Elementary row operations do not change the row space of a matrix. Proof: Suppose that A and B are m n matrices such that B is obtained from A by an elementary row operation. Let a 1,...,a m be the rows of A and b 1,...,b m be the rows of B. We have to show that Span(a 1,...,a m ) = Span(b 1,...,b m ). Observe that any row b i of B belongs to Span(a 1,...,a m ). Indeed, either b i = a j for some 1 j m, or b i = ra i for some scalar r 0, or b i = a i +ra j for some j i and r R. It follows that Span(b 1,...,b m ) Span(a 1,...,a m ). Now the matrix A can also be obtained from B by an elementary row operation. By the above, Span(a 1,...,a m ) Span(b 1,...,b m ).

Problem. Find the rank of the matrix 1 1 0 A = 0 1 1 2 3 1. 1 1 1 Elementary row operations do not change the row space. Let us convert A to row echelon form: 1 1 0 1 1 0 1 1 0 0 1 1 2 3 1 0 1 1 0 1 1 0 1 1 0 1 1 1 1 1 1 1 1 0 0 1

1 1 0 1 1 0 1 1 0 0 1 1 0 1 1 0 1 1 0 0 0 0 1 1 0 0 1 0 0 1 0 0 1 0 0 0 Vectors (1,1,0), (0,1,1), and (0,0,1) form a basis for the row space of A. Thus the rank of A is 3. It follows that the row space of A is the entire space R 3.

Problem. Find a basis for the vector space V spanned by vectors w 1 = (1,1,0), w 2 = (0,1,1), w 3 = (2,3,1), and w 4 = (1,1,1). The vector space V is the row space of a matrix 1 1 0 0 1 1 2 3 1. 1 1 1 According to the solution of the previous problem, vectors (1,1,0), (0,1,1), and (0,0,1) form a basis for V.

Column space of a matrix Definition. The column space of an m n matrix A is the subspace of R m spanned by columns of A. Theorem 1 The column space of a matrix A coincides with the row space of the transpose matrix A T. Theorem 2 Elementary row operations do not change linear relations between columns of a matrix. Theorem 3 Elementary row operations do not change the dimension of the column space of a matrix (however they can change the column space). Theorem 4 If a matrix is in row echelon form, then the columns with leading entries form a basis for the column space. Corollary For any matrix, the row space and the column space have the same dimension.

Problem. Find a basis for the column space of the matrix 1 1 0 A = 0 1 1 2 3 1. 1 1 1 The column space of A coincides with the row space of A T. To find a basis, we convert A T to row echelon form: A T = 1 0 2 1 1 1 3 1 1 0 2 1 0 1 1 0 1 0 2 1 0 1 1 0 0 1 1 1 0 1 1 1 0 0 0 1 Vectors (1,0,2,1), (0,1,1,0), and (0,0,0,1) form a basis for the column space of A.

Problem. Find a basis for the column space of the matrix 1 1 0 A = 0 1 1 2 3 1. 1 1 1 Alternative solution: We already know from a previous problem that the rank of A is 3. It follows that the columns of A are linearly independent. Therefore these columns form a basis for the column space.

Problem. Let V be a vector space spanned by vectors w 1 = (1,1,0), w 2 = (0,1,1), w 3 = (2,3,1), and w 4 = (1,1,1). Pare this spanning set to a basis for V. Alternative solution: The vector space V is the column space of a matrix B = 1 0 2 1 1 1 3 1. 0 1 1 1 The row echelon form of B is C = 1 0 2 1 0 1 1 0. 0 0 0 1 Columns of C with leading entries (1st, 2nd, and 4th) form a basis for the column space of C. It follows that the corresponding columns of B (i.e., 1st, 2nd, and 4th) form a basis for the column space of B. Thus {w 1,w 2,w 4 } is a basis for V.

Nullspace of a matrix Let A = (a ij ) be an m n matrix. Definition. The nullspace of the matrix A, denoted N(A), is the set of all n-dimensional column vectors x such that Ax = 0. a 11 a 12 a 13... a 1n a 21 a 22 a 23... a 2n..... a m1 a m2 a m3... a mn x 1 x 2 x 3. x n 0 = 0. 0 The nullspace N(A) is the solution set of a system of linear homogeneous equations (with A as the coefficient matrix).

Let A be an m n matrix. Then the nullspace N(A) is the solution set of a system of linear homogeneous equations in n variables. Theorem The nullspace N(A) is a subspace of the vector space R n. Definition. The dimension of the nullspace N(A) is called the nullity of the matrix A.

Problem. Find the nullity of the matrix ( ) 1 1 1 1 A =. 2 3 4 5 Elementary row operations do not change the nullspace. Let us convert A to reduced row echelon form: ( ) ( ) ( ) 1 1 1 1 1 1 1 1 1 0 1 2 2 3 4 5 0 1 2 3 0 1 2 3 { { x1 x 3 2x 4 = 0 x1 = x 3 +2x 4 x 2 +2x 3 +3x 4 = 0 x 2 = 2x 3 3x 4 General element of N(A): (x 1,x 2,x 3,x 4 ) = (t +2s, 2t 3s,t,s) = t(1, 2,1,0)+s(2, 3,0,1), t,s R. Vectors (1, 2,1,0) and (2, 3,0,1) form a basis for N(A). Thus the nullity of the matrix A is 2.

rank + nullity Theorem The rank of a matrix A plus the nullity of A equals the number of columns in A. Sketch of the proof: The rank of A equals the number of nonzero rows in the row echelon form, which equals the number of leading entries. The nullity of A equals the number of free variables in the corresponding system, which equals the number of columns without leading entries in the row echelon form. Consequently, rank+nullity is the number of all columns in the matrix A.

Problem. Find the nullity of the matrix ( ) 1 1 1 1 A =. 2 3 4 5 Alternative solution: Clearly, the rows of A are linearly independent. Therefore the rank of A is 2. Since (rank of A) + (nullity of A) = 4, it follows that the nullity of A is 2.

Theorem Suppose A and B are matrices of the same dimensions. Then the following conditions are equivalent: (i) A can be obtained from B by applying elementary row operations; (ii) A = CB for an invertible matrix C; (iii) A and B share a row echelon form; (iv) A and B have the same reduced row echelon form; (v) A and B have the same row space; (vi) A and B have the same nullspace.