Algorithms to Compute Bases and the Rank of a Matrix

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

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

Row Space and Column Space of a Matrix

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

MAT 242 CHAPTER 4: SUBSPACES OF R n

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

Lecture 21: 5.6 Rank and Nullity

Lecture 22: Section 4.7

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

MTH 362: Advanced Engineering Mathematics

Lecture 18: The Rank of a Matrix and Consistency of Linear Systems

4.9 The Rank-Nullity Theorem

Math 313 Chapter 5 Review

Linear Maps and Matrices

MATH 2360 REVIEW PROBLEMS

Math 3191 Applied Linear Algebra

Math 2174: Practice Midterm 1

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

Chapter 2 Subspaces of R n and Their Dimensions

Math 369 Exam #2 Practice Problem Solutions

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

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

EXERCISE SET 5.1. = (kx + kx + k, ky + ky + k ) = (kx + kx + 1, ky + ky + 1) = ((k + )x + 1, (k + )y + 1)

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

Lecture Summaries for Linear Algebra M51A

Math 4377/6308 Advanced Linear Algebra

System of Linear Equations

Solutions of Linear system, vector and matrix equation

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

Vector Spaces. (1) Every vector space V has a zero vector 0 V

Math 102, Winter 2009, Homework 7

Midterm 1 Solutions Math Section 55 - Spring 2018 Instructor: Daren Cheng

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

7. Dimension and Structure.

Row Space, Column Space, and Nullspace

Math 3C Lecture 25. John Douglas Moore

Math 2030 Assignment 5 Solutions

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

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

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

Solutions to Math 51 First Exam April 21, 2011

Chapter 2. General Vector Spaces. 2.1 Real Vector Spaces

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

Chapter 3. Vector spaces

Notes on Row Reduction

Chapter 1. Vectors, Matrices, and Linear Spaces

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

MAT Linear Algebra Collection of sample exams

1 Last time: inverses

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

OHSX XM511 Linear Algebra: Multiple Choice Exercises for Chapter 2

Math 353, Practice Midterm 1

Determining a span. λ + µ + ν = x 2λ + 2µ 10ν = y λ + 3µ 9ν = z.

LINEAR ALGEBRA REVIEW

Lecture 3q Bases for Row(A), Col(A), and Null(A) (pages )

Definitions. Main Results

Systems of Linear Equations

CSL361 Problem set 4: Basic linear algebra

10. Rank-nullity Definition Let A M m,n (F ). The row space of A is the span of the rows. The column space of A is the span of the columns.

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

GENERAL VECTOR SPACES AND SUBSPACES [4.1]

Eigenvalues and Eigenvectors A =

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

2018 Fall 2210Q Section 013 Midterm Exam II Solution

EK102 Linear Algebra PRACTICE PROBLEMS for Final Exam Spring 2016

SUMMARY OF MATH 1600

1 Systems of equations

Topics. Vectors (column matrices): Vector addition and scalar multiplication The matrix of a linear function y Ax The elements of a matrix A : A ij

BASIC ALGORITHMS IN LINEAR ALGEBRA. Matrices and Applications of Gaussian Elimination. A 2 x. A T m x. A 1 x A T 1. A m x

Eigenvalues, Eigenvectors. Eigenvalues and eigenvector will be fundamentally related to the nature of the solutions of state space systems.

Math Final December 2006 C. Robinson

EE731 Lecture Notes: Matrix Computations for Signal Processing

x y + z = 3 2y z = 1 4x + y = 0

Online Exercises for Linear Algebra XM511

Lecture 03. Math 22 Summer 2017 Section 2 June 26, 2017

(b) The nonzero rows of R form a basis of the row space. Thus, a basis is [ ], [ ], [ ]

MA 265 FINAL EXAM Fall 2012

Dr. Abdulla Eid. Section 4.2 Subspaces. Dr. Abdulla Eid. MATHS 211: Linear Algebra. College of Science

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

We see that this is a linear system with 3 equations in 3 unknowns. equation is A x = b, where

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

ELE/MCE 503 Linear Algebra Facts Fall 2018

Dimension and Structure

Practice Final Exam. Solutions.

Math 1553 Introduction to Linear Algebra

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

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

Lecture 13: Row and column spaces

IFT 6760A - Lecture 1 Linear Algebra Refresher

Basis, Dimension, Kernel, Image

Solution: (a) S 1 = span. (b) S 2 = R n, x 1. x 1 + x 2 + x 3 + x 4 = 0. x 4 Solution: S 5 = x 2. x 3. (b) The standard basis vectors

SSEA Math 51 Track Final Exam August 30, Problem Total Points Score

Basis, Dimension, Kernel, Image

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 4 Orthonormal vectors and QR factorization

Linear equations in linear algebra

A = , A 32 = n ( 1) i +j a i j det(a i j). (1) j=1

Rank & nullity. Defn. Let T : V W be linear. We define the rank of T to be rank T = dim im T & the nullity of T to be nullt = dim ker T.

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

Eigenvalues and Eigenvectors

Transcription:

Algorithms to Compute Bases and the Rank of a Matrix Subspaces associated to a matrix Suppose that A is an m n matrix The row space of A is the subspace of R n spanned by the rows of A The column space of A is the subspace of R m spanned by the columns of A The null space of A is the subspace N(A) = { x R n A x = m } of R n N(A) is a subspace of R n by the Subspace Theorem (Theorem of Lecture Note 4) The row rank of A is the dimension of the row space of A The column rank of A is the dimension of the column space of A The nullity of A is the dimension of the null space N(A) More on row equivalence We give some theorems on row equivalence, showing that some subspaces constructed from matrices do not change under elementary row operations This allows us to find important information about these subspaces from the RRE form of a matrix These interpretations will be given later in this note Theorem Suppose that the m n matrices A A m and B = are row equivalent (with A,, A m, B,, B m R n ) Then the subspaces Span(A,, A m ) and Span(B,, B m ) of R n are equal To prove Theorem, we need only verify it for a single elementary row operation Theorem Suppose that A and B are row equivalent matrices Then N(A) = N(B) B B m Theorem is just a restatement of Theorem of Lecture Note Theorem 3 Suppose that m n matrices (A,, A n ) and B = (B,, B n ) with A,, A n, B,, B n R m are row equivalent Then the subspaces {(x,, x n ) T R n x A + + x n A n = } and {(x,, x n ) T R n x B + + x n B n = } of R n are equal That is, A,, A n and B,, B n have the same dependence relations and Theorem 3 follows from Theorem and the identities A B x x n x x n = x A + + x n A n = x B + + x n B n

of formula () of Lecture Note Algorithm to compute a basis of the row space of a matrix Suppose that A A A m is an m n matrix Transform A into its reduced row echelon form B Then the nonzero rows of B form a basis of the row space Span(A,, A m ) of A To establish this algorithm, apply Theorem to conclude that the span of the rows of B is equal to the row space of A Using the fact that every nonzero row of the RRE form B contains a leading one, it follows from the definition of linear independence that the nonzero rows of B are linearly independent Example 4 Let u = (,,, 5), u = (, 4,, 8), u 3 = (3,,, 3) Find a basis of the subspace X = Span(u, u, u 3 ) of R 4 Solution: Let u u u 3 = We compute the RRE form of A which is 3 The first two rows are nonzero Thus is a basis of X 5 4 8 3 3 {(,,, 3), (,,, )} Algorithm to refine the columns of a matrix to a basis of its column space Suppose that (A, A,, A n ) is an m n matrix Transform A into its reduced row echelon form B = (B, B,, B n ) Let B i, B i,, B ir be the columns of B which contain a leading Then {A i, A i,, A ir } is a basis of the column space Span(A, A,, A n ) of A To establish this algorithm, observe using Theorem 3 that the RRE form B of A gives the standard form solutions to the equation x A + + x n A n = Substituting the standard form solution for the x i, we obtain first that A i, A i,, A ir are linearly independent, and then that they span the column space of A

Example 5 Find a subset of the vectors v = 3, v = 4, v 3 =, v 4 = which is a basis of the subspace W = Span(v, v, v 3, v 4 ) of R 3 5 8 3 Solution: Let (v, v, v, v 4 ) = 5 4 8 3 3 We compute the RRE form of A which is 3 There are leading ones in the first and third columns Thus v =, v 3 = 3 is a basis of W Algorithm to compute a basis of the null space of a matrix Let (a ij ) be an m n matrix, and x x x = x n be a n vector of indeterminates Let N(A) be the null space of the matrix A By Theorem, a basis for N(A) can be found by solving the system A x = m using Gaussian elimination to find the standard form solution, putting the standard form solution into a column vector and expanding with indeterminate coefficients The vectors in this expansion are a basis of N(A) Example Find a basis of N(A) if 3 4 3 5 5 8 Solution: We compute that the RRE form of A is 3

We write the standard form solution as x s x x 3 = s t s = s x 4 t with s, t R Thus is a basis of N(A), + t Algorithm to extend a set of linearly independent row vectors to a basis of R n Suppose that w,, w m R n are linearly independent Let {e,, e n } be the standard basis of R n Transform the m n matrix w w w m into a reduced row echelon form B Let B i, B i,, B i n m be the indices of the columns of B which do not contain a leading Then {w,, w m, e i,, e in m } is a basis of R n To establish this algorithm, recall that the span of the rows of the RRE form of B is equal to Span(w,, w m ) by Theorem Since w,, w m are linearly independent, B contains m leading ones One then checks that the rows of B and e i,, e in m are linearly independent We then have that w,, w m, e i,, e in m span an n-dimensional subspace of R n, so they are a basis of R n by ) of Theorem 4 of Lecture Note 4 The rank of a matrix Theorem 7 rowrank(a) = columnrank(a) Proof Let r be the number of leading ones in the RRE form of A By the algorithm to compute a basis of a row space of a matrix, a basis of the row space of A has r vectors By the algorithm to refine the columns of a matrix to a basis of its column space, a basis of the column space of A also has r vectors Thus the row space and column space of A have the same dimension We define the rank of A to be the row rank of A (which is also the column rank of A) Theorem 8 (Rank Nullity Theorem) Suppose that A is an m n matrix Then rank(a) + nullity(a) = n Proof Let r be the number of leading ones in the RRE form of A Then rank(a) = r (by the algorithm to compute a basis of the row space of a matrix or the algorithm to refine the columns of a matrix to a basis of its column space) The nullity of A is n r, by the algorithm to compute a basis of the null space of a matrix, since there are n r free variables in the general solution to A x = m 4

As explained in Theorem of Lecture Note 5, we have the following theorem Theorem 9 Suppose that A is an n n matrix Then the columns of A are linearly independent if and only if Det(A) Suppose that A is an m n matrix An r r submatrix of A is a matrix obtained from A by removing m r rows and n r columns Corollary Suppose that A is an m n matrix Then rank(a) = r if and only if Det(M) = for all (r +) (r +) submatrices M of A and there exists an r r submatrix M of A such that Det(M) Computing determinants has a high degree of complexity, so the best practical way to compute rank(a) of a particular matrix A is to compute the RRE form B of A, and then observe that rank(a) = the number of leading ones of B = the number of nonzero rows of B More applications of the Algorithms We can use coordinate vectors with respect to a convenient basis (say a standard basis) to apply the above algorithms to an arbitrary vector space Example Find a subset of the matrices ( ) ( 4 v =, v = 4 which is a basis of V = Span(v, v, v 3 ) ) ( 3, v 3 = 5 Solution: We use the algorithm to refine the column vectors of a matrix to a basis of its column space Let β = {e, e, e, e } be the standard basis of R Form the matrix ((v ) β, (v ) β, (v 3 ) β ) = 4 3 4 5 We compute that the RRE form of A is, which has leading ones in the first and third columns Thus, 3 5 is a basis of the column space of A (the first and third columns of A) Since (v ) β = and (v 3) β = 3, 5 5 ),

we have that { ( v = is a basis of V Example Find a basis of the subspace of P 4 ) ( 3, v 3 = 5 )} U = {f P 4 f() = f() = } Solution: We apply the algorithm to compute a basis of the null space of a matrix We will find the linear conditions on the coefficients a, a, a, a 3 of () f(x) = a + a x + a x + a 3 x 3 P 4 for f to be in U These linear conditions are f() = a + a + a + a 3 = f(3) = a + a + 4a + 8a 3 = The coefficient matrix of this homogeneous system of equations is ( ) 4 8 We compute that the RRE form of A is ( 3 7 We write the standard form solution as a t + t a a = 3t 7t t = t a 3 t with t, t R Substituting the solutions a a a = 3 a 3 back into (), we obtain that and a a a a 3 ) 3 + t = { 3x + x, 7x + x 3} is a basis of U (We are really working with coordinate vectors with respect to the basis β = {, x, x, x 3 } of P 4 ) 7 7