Docsity

Statistics Notes for university, Lecture notes of Statistics

Partial preview of the text

Download Statistics Notes for university and more Lecture notes Statistics in PDF only on Docsity!

MATH 233 - Linear Algebra I

Lecture Notes

Cesar O. Aguilar

Department of Mathematics

SUNY Geneseo

 - Lecture 
  • 1 Systems of Linear Equations
    • 1.1 What is a system of linear equations?
    • 1.2 Matrices
    • 1.3 Solving linear systems
    • 1.4 Geometric interpretation of the solution set
  • 2 Row Reduction and Echelon Forms
    • 2.1 Row echelon form (REF)
    • 2.2 Reduced row echelon form (RREF)
    • 2.3 Existence and uniqueness of solutions
  • 3 Vector Equations
    • 3.1 Vectors in Rn
    • 3.2 The linear combination problem
    • 3.3 The span of a set of vectors
  • 4 The Matrix Equation Ax = b
    • 4.1 Matrix-vector multiplication
    • 4.2 Matrix-vector multiplication and linear combinations
    • 4.3 The matrix equation problem
  • 5 Homogeneous and Nonhomogeneous Systems
    • 5.1 Homogeneous linear systems
    • 5.2 Nonhomogeneous systems
    • 5.3 Summary
  • 6 Linear Independence
    • 6.1 Linear independence
    • 6.2 The maximum size of a linearly independent set
  • 7 Introduction to Linear Mappings
    • 7.1 Vector mappings
    • 7.2 Linear mappings
    • 7.3 Matrix mappings
    • 7.4 Examples
  • 8 Onto, One-to-One, and Standard Matrix CONTENTS
    • 8.1 Onto Mappings
    • 8.2 One-to-One Mappings
    • 8.3 Standard Matrix of a Linear Mapping
  • 9 Matrix Algebra
    • 9.1 Sums of Matrices
    • 9.2 Matrix Multiplication
    • 9.3 Matrix Transpose
  • 10 Invertible Matrices
    • 10.1 Inverse of a Matrix
    • 10.2 Computing the Inverse of a Matrix
    • 10.3 Invertible Linear Mappings
  • 11 Determinants
    • 11.1 Determinants of 2 × 2 and 3 × 3 Matrices
    • 11.2 Determinants of n × n Matrices
    • 11.3 Triangular Matrices
  • 12 Properties of the Determinant
    • 12.1 ERO and Determinants
    • 12.2 Determinants and Invertibility of Matrices
    • 12.3 Properties of the Determinant
  • 13 Applications of the Determinant
    • 13.1 The Cofactor Method
    • 13.2 Cramer’s Rule
    • 13.3 Volumes
  • 14 Vector Spaces
    • 14.1 Vector Spaces
    • 14.2 Subspaces of Vector Spaces
  • 15 Linear Maps
    • 15.1 Linear Maps on Vector Spaces
    • 15.2 Null space and Column space
  • 16 Linear Independence, Bases, and Dimension
    • 16.1 Linear Independence
    • 16.2 Bases
    • 16.3 Dimension of a Vector Space
  • 17 The Rank Theorem
    • 17.1 The Rank of a Matrix
      • Lecture
  • 18 Coordinate Systems
    • 18.1 Coordinates
    • 18.2 Coordinate Mappings
    • 18.3 Matrix Representation of a Linear Map
  • 19 Change of Basis
    • 19.1 Review of Coordinate Mappings on Rn
    • 19.2 Change of Basis
  • 20 Inner Products and Orthogonality
    • 20.1 Inner Product on Rn
    • 20.2 Orthogonality
    • 20.3 Coordinates in an Orthonormal Basis
  • 21 Eigenvalues and Eigenvectors
    • 21.1 Eigenvectors and Eigenvalues
    • 21.2 When λ = 0 is an eigenvalue
  • 22 The Characteristic Polynomial
    • 22.1 The Characteristic Polynomial of a Matrix
    • 22.2 Eigenvalues and Similarity Transformations
  • 23 Diagonalization
    • 23.1 Eigenvalues of Triangular Matrices
    • 23.2 Diagonalization
    • 23.3 Conditions for Diagonalization
  • 24 Diagonalization of Symmetric Matrices
    • 24.1 Symmetric Matrices
    • 24.2 Eigenvectors of Symmetric Matrices
    • 24.3 Symmetric Matrices are Diagonalizable
  • 25 The PageRank Algortihm
    • 25.1 Search Engine Retrieval Process
    • 25.2 A Description of the PageRank Algorithm
    • 25.3 Computation of the PageRank Vector
  • 26 Discrete Dynamical Systems
    • 26.1 Discrete Dynamical Systems
    • 26.2 Population Model
    • 26.3 Stability of Discrete Dynamical Systems

Systems of Linear Equations

system consisting of m = 2 equations and n = 3 unknowns:

x 1 − 5 x 2 − 7 x 3 = 0 5 x 2 + 11x 3 = 1

Here is a linear system consisting of m = 3 equations and n = 2 unknowns:

− 5 x 1 + x 2 = − 1 πx 1 − 5 x 2 = 0 63 x 1 −

2 x 2 = − 7

And finally, below is a linear system consisting of m = 4 equations and n = 6 unknowns:

− 5 x 1 + x 3 − 44 x 4 − 55 x 6 = − 1 πx 1 − 5 x 2 − x 3 + 4x 4 − 5 x 5 +

5 x 6 = 0 63 x 1 −

2 x 2 − 15 x 3 + ln(3)x 4 + 4x 5 − 331 x 6 = 0

63 x 1 −

2 x 2 −

x 3 − 18 x 4 − 5 x 6 = 5

Example 1.2. Verify that (1, 2 , −4) is a solution to the system of equations

2 x 1 + 2x 2 + x 3 = 2 x 1 + 3x 2 − x 3 = 11.

Is (1, − 1 , 2) a solution to the system?

Solution. The number of equations is m = 2 and the number of unknowns is n = 3. There are m × n = 6 coefficients: a 11 = 2, a 12 = 1, a 13 = 1, a 21 = 1, a 22 = 3, and a 23 = −1. And b 1 = 0 and b 2 = 11. The list of numbers (1, 2 , −4) is a solution because

2 · (1) + 2(2) + (−4) = 2

(1) + 3 · (2) − (−4) = 11

On the other hand, for (1, − 1 , 2) we have that

2(1) + 2(−1) + (2) = 2

but 1 + 3(−1) − 2 = − 4 6 = 11.

Thus, (1, − 1 , 2) is not a solution to the system.

A linear system may not have a solution at all. If this is the case, we say that the linear system is inconsistent:

Lecture 1

INCONSISTENT ⇔ NO SOLUTION

A linear system is called consistent if it has at least one solution:

CONSISTENT ⇔ AT LEAST ONE SOLUTION

We will see shortly that a consistent linear system will have either just one solution or infinitely many solutions. For example, a linear system cannot have just 4 or 5 solutions. If it has multiple solutions, then it will have infinitely many solutions.

Example 1.3. Show that the linear system does not have a solution.

−x 1 + x 2 = 3 x 1 − x 2 = 1.

Solution. If we add the two equations we get

0 = 4

which is a contradiction. Therefore, there does not exist a list (s 1 , s 2 ) that satisfies the system because this would lead to the contradiction 0 = 4.

Example 1.4. Let t be an arbitrary real number and let

s 1 = −^32 − 2 t s 2 = 32 + t s 3 = t.

Show that for any choice of the parameter t, the list (s 1 , s 2 , s 3 ) is a solution to the linear system

x 1 + x 2 + x 3 = 0 x 1 + 3x 2 − x 3 = 3.

Solution. Substitute the list (s 1 , s 2 , s 3 ) into the left-hand-side of the first equation

( −^32 − 2 t

2 +^ t

  • t = 0

and in the second equation

( −^32 − 2 t

  • 3(^32 + t) − t = −^32 + 92 = 3

Both equations are satisfied for any value of t. Because we can vary t arbitrarily, we get an infinite number of solutions parameterized by t. For example, compute the list (s 1 , s 2 , s 3 ) for t = 3 and confirm that the resulting list is a solution to the linear system.

Lecture 1

We can study matrices without interpreting them as coefficient matrices or augmented ma- trices associated to a linear system. Matrix algebra is a fascinating subject with numerous applications in every branch of engineering, medicine, statistics, mathematics, finance, biol- ogy, chemistry, etc.

1.3 Solving linear systems

In algebra, you learned to solve equations by first “simplifying” them using operations that do not alter the solution set. For example, to solve 2x = 8 − 2 x we can add to both sides 2 x and obtain 4x = 8 and then multiply both sides by 14 yielding x = 2. We can do similar operations on a linear system. There are three basic operations, called elementary operations, that can be performed:

  1. Interchange two equations.
  2. Multiply an equation by a nonzero constant.
  3. Add a multiple of one equation to another.

These operations do not alter the solution set. The idea is to apply these operations itera- tively to simplify the linear system to a point where one can easily write down the solution set. It is convenient to apply elementary operations on the augmented matrix [A b] repre- senting the linear system. In this case, we call the operations elementary row operations, and the process of simplifying the linear system using these operations is called row reduc- tion. The goal with row reducing is to transform the original linear system into one having a triangular structure and then perform back substitution to solve the system. This is best explained via an example.

Example 1.5. Use back substitution on the augmented matrix  

to solve the associated linear system.

Solution. Notice that the augmented matrix has a triangular structure. The third row corresponds to the equation x 3 = 1. The second row corresponds to the equation

x 2 − x 3 = 0

and therefore x 2 = x 3 = 1. The first row corresponds to the equation

x 1 − 2 x 3 = − 4

and therefore x 1 = −4 + 2x 3 = −4 + 2 = − 2.

Therefore, the solution is (− 2 , 1 , 1).

Systems of Linear Equations

Example 1.6. Solve the linear system using elementary row operations.

− 3 x 1 + 2x 2 + 4x 3 = 12 x 1 − 2 x 3 = − 4 2 x 1 − 3 x 2 + 4x 3 = − 3

Solution. Our goal is to perform elementary row operations to obtain a triangular structure and then use back substitution to solve. The augmented matrix is  

Interchange Row 1 (R 1 ) and Row 2 (R 2 ):

 

 −R−^1 −↔−R→^2

As you will see, this first operation will simplify the next step. Add 3R 1 to R 2 :  

 −^3 R−^1 −+−R→^2

Add − 2 R 1 to R 3 :  

 −−−^2 R−^1 −+−R→^3

Multiply R 2 by 12 : (^) 

1 −^2 −^ R→^2

Add 3R 2 to R 3 : (^) 

 −^3 R−^2 −+−R→^3

Multiply R 3 by 15 : (^) 

1 −^5 −^ R→^3

We can continue row reducing but the row reduced augmented matrix is in triangular form. So now use back substitution to solve. The linear system associated to the row reduced

Systems of Linear Equations

corresponds to the equation 0 x 1 + 0x 2 + 0x 3 = − 1

Obviously, there are no numbers x 1 , x 2 , x 3 that satisfy this equation, and therefore, the linear system is inconsistent, i.e., it has no solution. In general, if we obtain a row in an augmented matrix of the form [ 0 0 0 · · · 0 c

]

where c is a nonzero number, then the linear system is inconsistent. We will call this type of row an inconsistent row. However, a row of the form [ 0 1 0 0 0

]

corresponds to the equation x 2 = 0 which is perfectly valid.

1.4 Geometric interpretation of the solution set

The set of points (x 1 , x 2 ) that satisfy the linear system

x 1 − 2 x 2 = − 1 −x 1 + 3x 2 = 3

is the intersection of the two lines determined by the equations of the system. The solution for this system is (3, 2). The two lines intersect at the point (x 1 , x 2 ) = (3, 2), see Figure 1.1.

Figure 1.1: The intersection point of the two lines is the solution of the linear system (1.2)

Similarly, the solution of the linear system

x 1 − 2 x 2 + x 3 = 0 2 x 2 − 8 x 3 = 8 − 4 x 1 + 5x 2 + 9x 3 = − 9

Lecture 1

is the intersection of the three planes determined by the equations of the system. In this case, there is only one solution: (29, 16 , 3). In the case of a consistent system of two equations, the solution set is the line of intersection of the two planes determined by the equations of the system, see Figure 1.2.

the solution set is this line

x 1 − 2 x 2 + x 3 = 0 − 4 x 1 + 5x 2 + 9x 3 = − 9

Figure 1.2: The intersection of the two planes is the solution set of the linear system (1.3)

After this lecture you should know the following:

  • what a linear system is
  • what it means for a linear system to be consistent and inconsistent
  • what matrices are
  • what are the matrices associated to a linear system
  • what the elementary row operations are and how to apply them to simplify a linear system
  • what it means for two matrices to be row equivalent
  • how to use the method of back substitution to solve a linear system
  • what an inconsistent row is
  • how to identify using elementary row operations when a linear system is inconsistent
  • the geometric interpretation of the solution set of a linear system

Lecture 2

Lecture 2

Row Reduction and Echelon Forms

In this lecture, we will get more practice with row reduction and in the process introduce two important types of matrix forms. We will also discuss when a linear system has a unique solution, infinitely many solutions, or no solution. Lastly, we will introduce a convenient parameter called the rank of a matrix.

2.1 Row echelon form (REF)

Consider the linear system

x 1 + 5x 2 − 2 x 4 − x 5 + 7x 6 = − 4 2 x 2 − 2 x 3 + 3x 6 = 0 − 9 x 4 − x 5 + x 6 = − 1 5 x 5 + x 6 = 5 0 = 0

having augmented matrix

   

The above augmented matrix has the following properties:

P1. All nonzero rows are above any rows of all zeros.

P2. The leftmost nonzero entry of a row is to the right of the leftmost nonzero entry of the row above it.

Row Reduction and Echelon Forms

Any matrix satisfying properties P1 and P2 is said to be in row echelon form (REF). In REF, the leftmost nonzero entry in a row is called a leading entry:    

A consequence of property P2 is that every entry below a leading entry is zero:    

We can perform elementary row operations, or row reduction, to transform a matrix into REF.

Example 2.1. Explain why the following matrices are not in REF. Use elementary row operations to put them in REF.

M =
 N =

Solution. Matrix M fails property P1. To put M in REF we interchange R 2 with R 3 :

M =
 −R−^2 −↔−R→^3

The matrix N fails property P2. To put N in REF we perform the operation − 2 R 2 + R 3 → R 3 : (^) 

 −−−^2 R−^2 −+−R→^3

Why is REF useful? Certain properties of a matrix can be easily deduced if it is in REF. For now, REF is useful to us for solving a linear system of equations. If an augmented matrix is in REF, we can use back substitution to solve the system, just as we did in Lecture 1. For example, consider the system

8 x 1 − 2 x 2 + x 3 = 4 3 x 2 − x 3 = 7 2 x 3 = 4

Row Reduction and Echelon Forms

Create zeros under the newly created leading 1:  

 −−−^3 R−^1 −+−R→^2

Create a leading 1 in the second row:  

1 −^2 −^ R→^2

Create zeros under the newly created leading 1:  

 −−−^3 R−^2 −+−R→^3

We have now completed the top-to-bottom phase of the row reduction algorithm. In the next phase, we work bottom-to-top and create zeros above the leading 1’s. Create zeros above the leading 1 in the third row:  

 −−−R−^3 −+−R→^2
 −−−^2 R−^3 −+−R→^1

Create zeros above the leading 1 in the second row:  

 −^3 R−^2 −+−R→^1

This completes the row reduction algorithm and the matrix is in RREF.

Example 2.3. Use row reduction to solve the linear system.

2 x 1 + 4x 2 + 6x 3 = 8 x 1 + 2x 2 + 4x 3 = 8 3 x 1 + 6x 2 + 9x 3 = 12

Solution. The augmented matrix is  

Lecture 2

Create a leading 1 in the first row:  

(^12) R 1 −−→

Create zeros under the first leading 1:  

 −−−R−^1 −+−R→^2
 −−−^3 R−^1 −+−R→^3

The system is consistent, however, there are only 2 nonzero rows but 3 unknown variables. This means that the solution set will contain 3 − 2 = 1 free parameter. The second row in the augmented matrix is equivalent to the equation:

x 3 = 4.

The first row is equivalent to the equation:

x 1 + 2x 2 + 3x 3 = 4

and after substituting x 3 = 4 we obtain

x 1 + 2x 2 = − 8.

We now must choose one of the variables x 1 or x 2 to be a parameter, say t, and solve for the remaining variable. If we set x 2 = t then from x 1 + 2x 2 = −8 we obtain that

x 1 = − 8 − 2 t.

We can therefore write the solution set for the linear system as

x 1 = − 8 − 2 t x 2 = t x 3 = 4

where t can be any real number. If we had chosen x 1 to be the parameter, say x 1 = t, then the solution set can be written as

x 1 = t x 2 = − 4 − 12 t x 3 = 4

Although (2.1) and (2.2) are two different parameterizations, they both give the same solution set.