Lecture 9 Vector & Inner Product Spaces Last Time Spanning Sets and Linear Independence (Cont.) Basis and Dimension Rank of a Matrix and Systems of Linear.

Slides:



Advertisements
Similar presentations
5.4 Basis And Dimension.
Advertisements

Chapter 4 Vector Spaces 4.1 Vectors in Rn 4.2 Vector Spaces
Section 4.6 (Rank).
Some useful linear algebra. Linearly independent vectors span(V): span of vector space V is all linear combinations of vectors v i, i.e.
Chapter 3 Determinants 3.1 The Determinant of a Matrix
Lecture 10 Dimensions, Independence, Basis and Complete Solution of Linear Systems Shang-Hua Teng.
Chapter 5 Inner Product Spaces
Subspaces, Basis, Dimension, Rank
Chapter 1 Systems of Linear Equations
Chapter 6 Linear Transformations
1 MAC 2103 Module 10 lnner Product Spaces I. 2 Rev.F09 Learning Objectives Upon completing this module, you should be able to: 1. Define and find the.
Length and Dot Product in R n Notes: is called a unit vector. Notes: The length of a vector is also called its norm. Chapter 5 Inner Product Spaces.
2.1 Operations with Matrices 2.2 Properties of Matrix Operations
6.1 Introduction to Linear Transformations
Inner Product Spaces Euclidean n-space: Euclidean n-space: vector lengthdot productEuclidean n-space R n was defined to be the set of all ordered.
Chapter 2A Matrices 2A.1 Definition, and Operations of Matrices: 1 Sums and Scalar Products; 2 Matrix Multiplication 2A.2 Properties of Matrix Operations;
Linear Algebra Lecture 25.
1 MAC 2103 Module 9 General Vector Spaces II. 2 Rev.F09 Learning Objectives Upon completing this module, you should be able to: 1. Find the coordinate.
Chapter 1 Systems of Linear Equations
Chapter 4 Vector Spaces 4.1 Vectors in Rn 4.2 Vector Spaces
Vectors in R n a sequence of n real number An ordered n-tuple: the set of all ordered n-tuple  n-space: R n Notes: (1) An n-tuple can be viewed.
Section 4.1 Vectors in ℝ n. ℝ n Vectors Vector addition Scalar multiplication.
A matrix equation has the same solution set as the vector equation which has the same solution set as the linear system whose augmented matrix is Therefore:
Chap. 6 Linear Transformations
Elementary Linear Algebra Anton & Rorres, 9th Edition
CHAPTER 3 DETERMINANTS 3.1 The Determinant of a Matrix 3.2 Determinant and Elementary Operations 3.3 Properties of Determinants 3.4 Application of Determinants.
5.5 Row Space, Column Space, and Nullspace
4.6: Rank. Definition: Let A be an mxn matrix. Then each row of A has n entries and can therefore be associated with a vector in The set of all linear.
4 - 1 Chapter 3 Vector Spaces 3.1 Vectors in R n 3.1 Vectors in R n 3.2 Vector Spaces 3.2 Vector Spaces 3.3 Subspaces of Vector Spaces 3.3 Subspaces of.
Lecture 11 Inner Product Space
4.8 Rank Rank enables one to relate matrices to vectors, and vice versa. Definition Let A be an m  n matrix. The rows of A may be viewed as row vectors.
Chap. 5 Inner Product Spaces 5.1 Length and Dot Product in R n 5.2 Inner Product Spaces 5.3 Orthonormal Bases: Gram-Schmidt Process 5.4 Mathematical Models.
Lecture 13 Inner Product Space & Linear Transformation Last Time - Orthonormal Bases:Gram-Schmidt Process - Mathematical Models and Least Square Analysis.
Chap. 4 Vector Spaces 4.1 Vectors in Rn 4.2 Vector Spaces
Lecture 1 Systems of Linear Equations
7.1 Eigenvalues and Eigenvectors
Elementary Linear Algebra Anton & Rorres, 9th Edition
5.1 Eigenvalues and Eigenvectors
Lecture 14 Linear Transformation Last Time - Mathematical Models and Least Square Analysis - Inner Product Space Applications - Introduction to Linear.
4.8 Rank Rank enables one to relate matrices to vectors, and vice versa. Definition Let A be an m  n matrix. The rows of A may be viewed as row vectors.
Lecture 9 Vector & Inner Product Space
Def: A matrix A in reduced-row-echelon form if 1)A is row-echelon form 2)All leading entries = 1 3)A column containing a leading entry 1 has 0’s everywhere.
Lecture 9 Vector & Inner Product Space Last Time - Spanning Sets and Linear Independence (Cont.) - Basis and Dimension - Rank of a Matrix and Systems of.
Chapter 2 Matrices 2.1 Operations with Matrices 2.2 Properties of Matrix Operations 2.3 The Inverse of a Matrix 2.4 Elementary Matrices Elementary Linear.
2 - 1 Chapter 2A Matrices 2A.1 Definition, and Operations of Matrices: 1 Sums and Scalar Products; 2 Matrix Multiplication 2A.2 Properties of Matrix Operations;
Lecture 7 Vector Spaces Lat Time Properties of Determinants Introduction to Eigenvalues Applications of Determinants Vectors in R n Elementary Linear Algebra.
Matrices, Vectors, Determinants.
Lecture 11 Inner Product Space Last Time - Coordinates and Change of Basis - Applications - Length and Dot Product in R n Elementary Linear Algebra R.
1 SYSTEM OF LINEAR EQUATIONS BASE OF VECTOR SPACE.
Inner Product Spaces Euclidean n-space: Euclidean n-space: vector lengthdot productEuclidean n-space R n was defined to be the set of all ordered.
 Matrix Operations  Inverse of a Matrix  Characteristics of Invertible Matrices …
CHAPTER 6 LINEAR TRANSFORMATIONS 6.1 Introduction to Linear Transformations 6.2 The Kernel and Range of a Linear Transformation 6.3 Matrices for Linear.
Section 5.6 Rank and Nullity. FOUR FUNDAMENTAL MATRIX SPACES If we consider matrices A and A T together, then there are six vector spaces of interest:
Lecture 11 Inner Product Spaces Last Time Change of Basis (Cont.) Length and Dot Product in R n Inner Product Spaces Elementary Linear Algebra R. Larsen.
Lecture 7 Vector Space Last Time - Properties of Determinants
Lecture 2 Matrices Lat Time - Course Overview
Chapter 4 Vector Spaces 4.1 Vectors in Rn 4.2 Vector Spaces
Lecture 10 Inner Product Spaces
Lecture 8 Vector Space Last Time - Vector Spaces and Applications
Chapter 4 Vector Spaces 4.1 Vectors in Rn 4.2 Vector Spaces
Lecture 8 Vector Space Last Time - Vector Spaces and Applications
Lecture 7 Vector Space Last Time - Properties of Determinants
Row Space, Column Space, and Nullspace
Lecture 14 Linear Transformation
4.6: Rank.
Linear Algebra Lecture 21.
7.5 Solutions of Linear Systems:
Elementary Linear Algebra Anton & Rorres, 9th Edition
Maths for Signals and Systems Linear Algebra in Engineering Lectures 4-5, Tuesday 18th October 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN.
Chapter 4 Vector Spaces 4.1 Vector spaces and Subspaces
Presentation transcript:

Lecture 9 Vector & Inner Product Spaces Last Time Spanning Sets and Linear Independence (Cont.) Basis and Dimension Rank of a Matrix and Systems of Linear Equations Elementary Linear Algebra R. Larsen et al. (6th Edition) TKUEE 翁慶昌 -NTUEE SCC_12_2008

9 - 2 Lecture 9: Vector Space (cont.) Today Rank of a Matrix and Systems of Linear Equations (Cont.) Coordinates and Change of Basis Applications of Vector Space Length and Dot Product in R n Reading Assignment: Secs

Rank of a Matrix and Systems of Linear Equations Row vectors of A  row vectors: Column vectors of A  column vectors: || || || A (1) A (2) A (n)

9 - 4 Let A be an m×n matrix.  Row space: The row space of A is the subspace of R n spanned by the row vectors of A.  Column space: The column space of A is the subspace of R m spanned by the column vectors of A. Null space: The null space of A is the set of all solutions of Ax=0 and it is a subspace of R n.

9 - 5

9 - 6 Notes: (1) The row space of a matrix is not changed by elementary row operations. RS(r(A)) = RS(A) r: elementary row operations (2) Elementary row operations can change the column space. Thm 4.13: (Row-equivalent matrices have the same row space) If an m  n matrix A is row equivalent to an m  n matrix B, then the row space of A is equal to the row space of B.

9 - 7 Thm 4.14: (Basis for the row space of a matrix) If a matrix A is row equivalent to a matrix B in row-echelon form, then the nonzero row vectors of B form a basis for the row space of A.

9 - 8 Find a basis of row space of A =  Ex 2: ( Finding a basis for a row space) Sol: A= B =

9 - 9 Notes: a basis for RS(A) = {the nonzero row vectors of B} (Thm 4.14) = {w 1, w 2, w 3 } = {(1, 3, 1, 3), (0, 1, 1, 0),(0, 0, 0, 1)}

Ex 3: (Finding a basis for a subspace) Find a basis for the subspace of R 3 spanned by Sol: a basis for span({v 1, v 2, v 3 }) = a basis for RS(A) = {the nonzero row vectors of B} (Thm 4.14) = {w 1, w 2 } = {(1, –2, – 5), (0, 1, 3)} A = G.E.

Ex 4: (Finding a basis for the column space of a matrix) Find a basis for the column space of the matrix A given in Ex 2. Sol. 1:

CS(A)=RS(A T ) (a basis for the column space of A) a basis for CS(A) = a basis for RS(A T ) = {the nonzero vectors of B} = {w 1, w 2, w 3 }  Note: This basis is not a subset of {c 1, c 2, c 3, c 4 }.

 Notes: (1) This basis is a subset of {c 1, c 2, c 3, c 4 }. (2) v 3 = –2v 1 + v 2, thus c 3 = – 2c 1 + c 2. Sol. 2: Leading 1 => {v 1, v 2, v 4 } is a basis for CS(B) {c 1, c 2, c 4 } is a basis for CS(A)

Thm 4.16: (Solutions of a homogeneous system) If A is an m  n matrix, then the set of all solutions of the homogeneous system of linear equations Ax = 0 is a subspace of R n called the nullspace of A. Pf:  Notes: The nullspace of A is also called the solution space of the homogeneous system Ax = 0.

 Ex 6: (Finding the solution space of a homogeneous system) Find the nullspace of the matrix A. Sol: The nullspace of A is the solution space of Ax = 0. x 1 = –2s – 3t, x 2 = s, x 3 = –t, x 4 = t

Thm 4.15: (Row and column space have equal dimensions) If A is an m  n matrix, then the row space and the column space of A have the same dimension. dim(RS(A)) = dim(CS(A))  Rank: The dimension of the row (or column) space of a matrix A is called the rank of A. rank(A) = dim(RS(A)) = dim(CS(A))

 Notes: rank(A T ) = rank(A) Pf: rank(A T ) = dim(RS(A T )) = dim(CS(A)) = rank(A)  Nullity: The dimension of the nullspace of A is called the nullity of A. nullity(A) = dim(NS(A))

Thm 4.17: (Dimension of the solution space) If A is an m  n matrix of rank r, then the dimension of the solution space of Ax = 0 is n – r. That is n = rank(A) + nullity(A) Notes: (1) rank(A): The number of leading variables in the solution of Ax=0. (The number of nonzero rows in the row-echelon form of A) (2) nullity (A): The number of free variables in the solution of Ax = 0.

Fundamental SpaceDimension RS(A)=CS(A T )r CS(A)=RS(A T )r NS(A)n – r NS(A T )m – r Notes: If A is an m  n matrix and rank(A) = r, then

Ex 7: (Rank and nullity of a matrix) Let the column vectors of the matrix A be denoted by a 1, a 2, a 3, a 4, and a 5. a 1 a 2 a 3 a 4 a 5 (a) Find the rank and nullity of A. (b) Find a subset of the column vectors of A that forms a basis for the column space of A. (c) If possible, write the third column of A as a linear combination of the first two columns.

Sol: Let B be the reduced row-echelon form of A. a 1 a 2 a 3 a 4 a 5 b 1 b 2 b 3 b 4 b 5 ( a) rank(A) = 3 (the number of nonzero rows in B)

(b) Leading 1 (c)

 Thm 4.18: (Solutions of a nonhomogeneous linear system) If x p is a particular solution of the nonhomogeneous system Ax = b, then every solution of this system can be written in the form x = x p + x h, wher x h is a solution of the corresponding homogeneous system Ax = 0. Pf: Let x be any solution of Ax = b. is a solution of Ax = 0

Ex 8: (Finding the solution set of a nonhomogeneous system) Find the set of all solution vectors of the system of linear equations. Sol: s t

i.e. x h = su 1 + tu 2 is a solution of Ax = 0 is a particular solution vector of Ax=b.

Thm 4.19: (Solution of a system of linear equations) The system of linear equations Ax = b is consistent if and only if b is in the column space of A. Pf: Let be the coefficient matrix, the column matrix of unknowns, and the right-hand side, respectively, of the system Ax = b.

Then Hence, Ax = b is consistent if and only if b is a linear combination of the columns of A. That is, the system is consistent if and only if b is in the subspace of R m spanned by the columns of A.

Ex 9: (Consistency of a system of linear equations) Sol:  Notes: If rank([A|b])=rank(A) Then the system Ax=b is consistent.

c 1 c 2 c 3 b w 1 w 2 w 3 v (b is in the column space of A) The system of linear equations is consistent.  Check:

Summary of equivalent conditions for square matrices: If A is an n×n matrix, then the following conditions are equivalent. (1) A is invertible (2) Ax = b has a unique solution for any n×1 matrix b. (3) Ax = 0 has only the trivial solution (4) A is row-equivalent to I n (5) (6) rank(A) = n (7) The n row vectors of A are linearly independent. (8) The n column vectors of A are linearly independent.

Keywords in Section 4.6: row space : 列空間 column space : 行空間 null space: 零空間 solution space : 解空間 rank: 秩 nullity : 核次數

Lecture 9: Vector Space (cont.) Today Rank of a Matrix and Systems of Linear Equations (Cont.) Coordinates and Change of Basis Applications of Vector Space Length and Dot Product in R n

Applications Null Space and Feasible Search Matrix Rank and Nullity.doc Industry Robot

9 - 34

9 - 35

Coordinates and Change of Basis Coordinate representation relative to a basis Let B = {v 1, v 2, …, v n } be an ordered basis for a vector space V and let x be a vector in V such that The scalars c 1, c 2, …, c n are called the coordinates of x relative to the basis B. The coordinate matrix (or coordinate vector) of x relative to B is the column matrix in R n whose components are the coordinates of x.

 Ex 1: (Coordinates and components in R n ) Find the coordinate matrix of x = (–2, 1, 3) in R 3 relative to the standard basis S = {(1, 0, 0), ( 0, 1, 0), (0, 0, 1)} Sol:

 Ex 3: (Finding a coordinate matrix relative to a nonstandard basis) Find the coordinate matrix of x=(1, 2, –1) in R 3 relative to the (nonstandard) basis B ' = {u 1, u 2, u 3 }={(1, 0, 1), (0, – 1, 2), (2, 3, – 5)} Sol:

Change of basis problem: You were given the coordinates of a vector relative to one basis B and were asked to find the coordinates relative to another basis B'.  Ex: (Change of basis) Consider two bases for a vector space V

Let

Transition matrix from B' to B: where is called the transition matrix from B' to B If [v] B is the coordinate matrix of v relative to B [v] B‘ is the coordinate matrix of v relative to B'

Thm 4.20: (The inverse of a transition matrix) If P is the transition matrix from a basis B' to a basis B in R n, then (1) P is invertible (2) The transition matrix from B to B' is P –1 Notes:

Thm 4.21: (Transition matrix from B to B') Let B={v 1, v 2, …, v n } and B' ={u 1, u 2, …, u n } be two bases for R n. Then the transition matrix P –1 from B to B' can be found by using Gauss-Jordan elimination on the n×2n matrix as follows.

 Ex 5: (Finding a transition matrix) B={(–3, 2), (4,–2)} and B' ={(–1, 2), (2,–2)} are two bases for R 2 (a) Find the transition matrix from B' to B. (b) (c) Find the transition matrix from B to B'.

Sol: (a) [I 2 : P] = (b) G.J.E. B B'I P -1 ( the transition matrix from B' to B )

(c) ( the transition matrix from B to B' ) G.J.E. B' BI P -1 Check:

Rotation of the Coordinate Axes

 Ex 6: (Coordinate representation in P 3 (x)) Find the coordinate matrix of p = 3x 3 -2x 2 +4 relative to the standard basis in P 3 (x), S = {1, 1+x, 1+ x 2, 1+ x 3 }. Sol: p = 3(1) + 0(1+x) + (–2)(1+x 2 ) + 3(1+x 3 ) [p] s =

 Ex: (Coordinate representation in M 2x2 ) Find the coordinate matrix of x = relative to the standardbasis in M 2x2. B = Sol:

Keywords in Section 4.7:  coordinates of x relative to B : x 相對於 B 的座標  coordinate matrix :座標矩陣  coordinate vector :座標向量  change of basis problem :基底變換問題  transition matrix from B' to B :從 B' 到 B 的轉移矩陣

Lecture 9: Vector & Inner Product Space (cont.) Today Rank of a Matrix and Systems of Linear Equations (Cont.) Coordinates and Change of Basis Applications of Vector Space Length and Dot Product in R n

Lecture 9:Vector & Inner Product Space Next Time Inner Product Spaces Orthonormal Bases:Gram-Schmidt Process Mathematical Models and Least Square Analysis Applications Reading Assignment: Secs