Docsity

Lecture Notes on Linear Algebra | MA 322, Study notes of Mathematics

Toggle sidebar
bg1
MA322
Sathaye Notes on Linear Algebra Chapter 1 Spring 2008
Some of the notations below are enhanced versions of the book notations. We also include material taught in the
course which may be slightly different from the book.
1. Conventions. A linear equation in variables x1,···,x
nwill be assumed to be prearranged as a1x1+···+anxn=b
where the coefficients a1,a
2,···,a
n,b areassumedtobenumbers(orscalers)inafieldF.Ifconvenient,wemay
also assume parameters involved in these coefficients, either by an agreement or by assuming the field Fto having
been enlarged to accept them.
Thus 2x+3y= 5 as well as tx +(1−t2)y=t2+t+ 5 may both be accepted as linear equations in x, y. The first
may also be considered linear in x, y , t, but not the second one!
2. Augmented matrix To each linear equation in x1,···,x
n, we associate a row vector with n+1 entries
a1a2··· anb.
Given a system of several equations, we stack their corresponding rows into a matrix called the augmented matrix
of the system of linear equations. Sometimes, the last column of the augmented matrix is separated by a vertical
line to indicate the equality signs, but the book avoids this marker. We may sometimes add it for convenience.
3. Pivots and related concepts. We shall make the following formal notations for precision.
•Given a row which has at least one non zero entry, its pivot position is the column number of the first non
zero entry in it. For a row full of zeros, the pivot position is defined to be ∞.
Thus, the pivot position for 0020−3is 3 whereas it is ∞for 00000
.
For a matrix, we define its pivot positions as a sequence of the pivot positions of its rows. Thus, we see that
the pivot positions of the following matrices
120
015
027
,
120
100
007
,
020
000
217
are respectively (1,2,2),(1,1,3),(2,∞,1).
•Pivots or leading entries. For a non zero row, its pivot or the leading entry is said to the entry in its pivot
position. For a zero row, we say that the pivot is missing.
•We shall say that a sequence of pivot positions is strict if it consists of a strictly increasing sequence of positive
integers which may be followed by ∞repeated some number of times. Note that the ∞part may be absent,
if there are no zero rows and the integer part may be absent for a zero matrix.
•Echelon forms. A matrix is said to be in arowechelonform(REF)provided the sequence of its pivot
positions is strict.
It is said to be in a reduced row echelon form (RREF) if every pivot is 1 and moreover it is the only
non zero entry in its column.
•Elementary Row operations. We shall use the following notations. In the following i, j are different row
number s of a ma trix Mand cis a number.
–The operation Ri↔Rjswaps the i-th row Riwith the j-th row Rj. Sometimes, this may be shortened
as Pij where Preminds of the word permute. All other rows stay the same.
–The operation Ri+cRjmodifies the row Riby adding ctimes Rjto it. All other rows stay the same.
–If c= 0, then the operation cRireplaces the i-the row by ctimes itself. All other rows stay the same.
4. The main use of elementary operations is that if Mis an augmented matrix of a system of linear equations, then
the set of solutions of the system transformed by elementary row operations is the same as the original.
Thus, the main idea of solving systems of linear equations is to transform the associated augmented matrix into a
form which lets us simply read off the solutions. This is exactly the RREF.
As an intermediate step, we also discuss a form from which the final solutions can be quickly deduced (rather than
read off). This is the REF.
We shall discuss the algorithm to derive these forms next.
1
pf3
pf4
pf5

Partial preview of the text

Download Lecture Notes on Linear Algebra | MA 322 and more Study notes Mathematics in PDF only on Docsity!

MA

Sathaye Notes on Linear Algebra Chapter 1 Spring 2008

Some of the notations below are enhanced versions of the book notations. We also include material taught in the course which may be slightly different from the book.

  1. Conventions. A linear equation in variables x 1 , · · · , xn will be assumed to be prearranged as a 1 x 1 +· · ·+anxn = b where the coefficients a 1 , a 2 , · · · , an, b are assumed to be numbers (or scalers) in a field F. If convenient, we may also assume parameters involved in these coefficients, either by an agreement or by assuming the field F to having been enlarged to accept them. Thus 2x + 3y = 5 as well as tx + (1 − t^2 )y = t^2 + t + 5 may both be accepted as linear equations in x, y. The first may also be considered linear in x, y, t, but not the second one!
  2. Augmented matrix To each linear equation in x 1 , · · · , xn, we associate a row vector with n + 1 entries ( a 1 a 2 · · · an b

Given a system of several equations, we stack their corresponding rows into a matrix called the augmented matrix of the system of linear equations. Sometimes, the last column of the augmented matrix is separated by a vertical line to indicate the equality signs, but the book avoids this marker. We may sometimes add it for convenience.

  1. Pivots and related concepts. We shall make the following formal notations for precision.
    • Given a row which has at least one non zero entry, its pivot position is the column number of the first non zero entry in it. For a row full of zeros, the pivot position is defined to be ∞. Thus, the pivot position for

is 3 whereas it is ∞ for

For a matrix, we define its pivot positions as a sequence of the pivot positions of its rows. Thus, we see that the pivot positions of the following matrices  

are respectively (1, 2 , 2), (1, 1 , 3), (2, ∞, 1).

  • Pivots or leading entries. For a non zero row, its pivot or the leading entry is said to the entry in its pivot position. For a zero row, we say that the pivot is missing.
  • We shall say that a sequence of pivot positions is strict if it consists of a strictly increasing sequence of positive integers which may be followed by ∞ repeated some number of times. Note that the ∞ part may be absent, if there are no zero rows and the integer part may be absent for a zero matrix.
  • Echelon forms. A matrix is said to be in a row echelon form (REF) provided the sequence of its pivot positions is strict. It is said to be in a reduced row echelon form (RREF) if every pivot is 1 and moreover it is the only non zero entry in its column.
  • Elementary Row operations. We shall use the following notations. In the following i, j are different row numbers of a matrix M and c is a number. - The operation Ri ↔ Rj swaps the i-th row Ri with the j-th row Rj. Sometimes, this may be shortened as Pij where P reminds of the word permute. All other rows stay the same. - The operation Ri + cRj modifies the row Ri by adding c times Rj to it. All other rows stay the same. - If c = 0, then the operation cRi replaces the i-the row by c times itself. All other rows stay the same.
  1. The main use of elementary operations is that if M is an augmented matrix of a system of linear equations, then the set of solutions of the system transformed by elementary row operations is the same as the original. Thus, the main idea of solving systems of linear equations is to transform the associated augmented matrix into a form which lets us simply read off the solutions. This is exactly the RREF. As an intermediate step, we also discuss a form from which the final solutions can be quickly deduced (rather than read off). This is the REF. We shall discuss the algorithm to derive these forms next.
  1. The Gauss Elimination. Here are the steps of the Gauss Elimination algorithm. Convention and notation. We will be working with the active part of a given matrix M and reduce it to to REF in a sequence of steps. At the beginning, the whole matrix is active and as we proceed, we shall declare certain rows and columns inactive. This means then that they are not used in further pivot calculations. Also, any further row transformations will be such that they do not change the inactive rows. Main Lemma. Consider non zero rows Ri, Rj with i = j. Suppose that Ri, Rj have the same pivot position and that their pivot entries are respectively ci, cj. Then the operation Rj − c cji Ri produces a new jth row whose pivot position is bigger than that of Ri. Moreover, suppose that the pivot position of Ri is less than or equal to that of Rj for each j > i, then repeated application of the Lemma gives that the pivot position of Ri is strictly less than the pivot position of all the new rows Rj with j > i. This transformation leaves all the first i rows unchanged. - Start: Assume that the whole matrix is active. - Cleanup. If there is no active row left, then go to the end. Otherwise, suppose that Ri is the first active row. By swapping it, if necessary, with some Rj with j > i; arrange that the pivot position of Ri is less than or equal to all the pivot positions of Rj for j > i. - If Ri is the zero row, then clearly all the rows Rj with j > i are also zero. Declare all rows inactive and go to end. Otherwise, apply the Main Lemma to arrange that the pivot positions of all Rj with j > i are bigger than the pivot position of Ri. Note that this does not disturb the inactive part. - Set the Ri as inactive. Go to the Cleanup step. - End.

Note that the pivot positions of the inactive matrix always stay strict and hence we end up with an REF when the whole matrix becomes inactive.

  1. When the matrix is in REF, the pivot positions is an increasing sequence of positive integers followed by a sequence of ∞. (Of course, either of these can be empty.) The number of finite pivot positions in the REF is called the rank of the matrix. It does not depend on the process used to get the REF. This invariance will be proved later.
  2. Starting with REF, it is possible to get the reduced form RREF as follows:
    • First make all pivot entries equal to 1 by dividing the corresponding pivot rows by the pivot entries. Explicitly, if ci is the pivot entry in Ri then use the operation (^) c^1 i Ri.
    • Note that REF implies that all entries below a pivot are already 0. Use the cleanup operations to make all entries above each pivot using the pivot entry 1. This may be described as cleaning the pivot column. This cleaning is best done in reverse order, i.e. cleaning the columns with pivots from last to the first.
  3. Vectors We define n^ to be the set of columns of n-tuples of real numbers. This n^ can be also given a geometric interpretation by thinking of the n entries as the n-coordinates of points in an n-dimensional space. For v ∈ n^ we shall make the convention that vi is the i-th entry of v for i = 1, · · · n. Thus, if n = 2 and v =

, then v 1 = −5 and v 2 = 6.

The set n^ has a natural addition defined by componentwise addition. Thus (v + w)i = vi + wi. There is also a scalar multiplication so that for any c ∈  and v ∈ n^ we have cv defined as a vector with (cv)i = cvi. There is a natural subtraction v − w which is realized to be the same as v + (−1)w. 1 (^1) For those who know these terms, we state: The addition is commutative and asoociative. the scalar multiplication is associative with respect to scalars c(dv) = (cd)v. Also the addition is distributive over the scalar multiplication. Addition has an identity, namely the zero vector with all zero entries and thus the addition operation makes an additive group. The scalar multiplication also has a multiplicative unit 1 such that 1v = v for all v. Later, any set with operations having such properties will be declared as an abstract vector space.

where A 1 , · · · , Ar are the columns of A in order. Suppose d is the number of pivots in an REF of A. Note that we are not including b in the calculation of this number. We shall write rank(A) = d. This will be proved to be independent of our choice of row transformations later. If d = n, then the consistency condition is satisfied regardless of the right hand side. In other words every vector in n^ is in the span of columns of A. Proof. Reduce (A|b) to REF. We have d = n pivots, so every row ofthe REF has a pivot on the left hand side of the equation! Thus, the system is consistent, regardless of what b is. Hence evary b ∈ n^ is in the span of columns of A. If d = r, then there are no free variables. Thus, either the system is inconsistent or it has a unique solution. Proof. Evident! Now assume r = n, i.e. the matrix A is square. Then we have two possible cases. Either d = r = n or d < r = n. In the first situation, we get to claim that (A|b) has a unique solution for all b. Naturally, such matrices A are important. They are called non singular or invertible. We can make a formula for the solution of (A|b) for such matrices. In the second situation, depending on b, either the system has no solution or infinitely many. The matrix A is said to be singular in such cases.

  1. Matrices as Linear Transformations.

Given any map T : n^ → r^ we say T is a linear transformation if the following conditions hold.

T (X + Y ) = T (X) + T (Y ) and T (kX) = kT (X) where X, Y are any vectors in r^ and k is any real number. The simplest example of a linear transformation is obtained when we take a matrix A with n rows and r columns. Define T (X) = AX for any X ∈ n. the two properties are easily verified by definition of the matrix multiplication. Conversely, it is possible to prove the following: Theorem. Given any linear transformation T : n^ → r^ there is a well defined matrix A such that T (X) = AX for all X. Proof. First we prepare some useful notation. We define a sequence of vectors en 1 , · · · enr as follows. For each i = 1, 2 , · · · , n we define eni to be the vector which has only zero entries except for one 1 in the i-th place. Thus, for example, when n = 3 we have:

e^31 =

 (^) , e^32 =

 (^) , e^33 =

Similarly, when n = 2 we have:

e^21 =

, e^22 =

Important shortened notation. Often, it is tedious to keep on writing the superscript for these. So, we may simply write e 1 , e 2 , e 3 in place of e^31 , e^32 , e^33 , if we know that we are working in ^3. Similarly, we will simply use e 1 , e 2 in place of e^21 , e^22 , if we are working in ^2. If we are working with two different spaces at the same time, then we find it convenient to give new names to these. We will say that (en 1 , en 2 , · · · , enn) is a standard basis of n.

Important Observation. Every X =

x 1 .. . xn

 can be^ uniquely^ expressed as^ x 1 en 1 +^ · · ·^ xnenn.

Thus for example, when n = 3, using shortened notation we get:

 

x 1 x 2 x 3

 (^) = x 1 e 1 + x 2 e 2 + x 3 e 3.

Now consider the standard basis e 1 , · · · , en of n^ in shortened notation.

Construct a matrix A whose columns are T (e 1 ), · · · , T (en) in order.

We claim that T (X) = AX for all X ∈ n.

Note that X = x 1 e 1 + · · · + xnen

and by the definition of a linear transformation, we see that

T (X) = x 1 T (e 1 ) + · · · + xnT (en).

But the right hand side of the last equation is exactly

A

x 1 .. . xn

 =^ AX.

This proves our claim.

It is easy to see that if matrices A, B satisfy AX = BX for each X ∈ n, then A = B. Hint: Take X to be successively e 1 , · · · , en and deduce that A and B have identical columns.

Thus, it makes sense to make: Corollary/Definition:

The matrix A such that T (X) = AX is uniquely defined by T and is defined to be the standard matrix for the linear transformation T.

We use the notation MT to denote the matrix A.

Example: Suppose T : ^2 → ^3 is defined by

T (

x 1 x 2

2 x 1 + x 2 x 1 − x 2 3 x 1 + 5x 2

Then

e 1 =

and hence T (e 1 ) =

Similarly

e 2 =

and hence T (e 2 ) =

Thus,

MT =

It is easy to verify that:

T (

x 1 x 2

x 1 x 2

or T (X) =

 X.

  • If one of the vi is a multiple of another vj , then the set S is linearly dependent.
  • If one of the vi is a linear combination of some other members of S, then the set S is linearly dependent.
  • If a subset of S is linearly dependent, then S is linearly dependent.
  • If r > n than S is linearly dependent.
  • If S is contained in a linearly independent set of vectors S 1 , then it is linearly independent.