Docsity

Matrices and Linear - Elementary Linear Algebra - Lecture Notes | MAT 242, Study notes of Linear Algebra

Toggle sidebar
bg1
MAT 242
CHAPTER 1: MATRICES AND LINEAR
SYSTEMS
JOHN QUIGG
1. Matrices
Amatrix is a rectangular array of numbers. The general notation
for a matrix is
A=
a11 a12 · · · a1n
a21 a22 · · · a2n
...................
am1am2· · · amn
This matrix has size m×n, which means it has mrows and ncolumns.
The ij-entry is aij , which is the number in the ith row and jth column.
The set of all m×nmatrices is written Rm×n.
Example:
A=
1 2 3
4 5 6
7 8 9
10 11 12
is a 4 ×3 matrix, and the 2,3-entry, the entry in the 2nd row and 3rd
column, is a23 = 6.
If A= [aij] and B= [bij ] are both m×nmatrices, then the sum of
Aand Bis the m×nmatrix A+Bwith ij-entry aij +bij . Addition
of different-size matrices is undefined.
Example: If
A=1 0
2 3 , B =−1 4
3 1 ,and C=
1 4
2 3
0 1
,
then
A+B=0 4
5 4
Date: October 3, 2004.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Matrices and Linear - Elementary Linear Algebra - Lecture Notes | MAT 242 and more Study notes Linear Algebra in PDF only on Docsity!

MAT 242

CHAPTER 1: MATRICES AND LINEAR

SYSTEMS

JOHN QUIGG

  1. Matrices

A matrix is a rectangular array of numbers. The general notation for a matrix is

A =

a 11 a 12 · · · a 1 n a 21 a 22 · · · a 2 n

................... am 1 am 2 · · · amn

This matrix has size m × n, which means it has m rows and n columns. The ij-entry is aij , which is the number in the ith row and jth column. The set of all m × n matrices is written Rm×n.

Example:

A =

is a 4 × 3 matrix, and the 2, 3-entry, the entry in the 2nd row and 3rd column, is a 23 = 6.

If A = [aij ] and B = [bij ] are both m × n matrices, then the sum of A and B is the m × n matrix A + B with ij-entry aij + bij. Addition of different-size matrices is undefined.

Example: If

A =

[

]

, B =

[

]

, and C =

then

A + B =

[

]

Date: October 3, 2004. 1

2 JOHN QUIGG

and A + C is undefined.

If A = [aij ] is an m × n matrix and c is a number, then cA is the m × n matrix with ij-entry caij. A scalar is just a number, and cA is a scalar multiple of A.

Example: 3

[

]

[

]

The zero matrix of any size m × n is called O and has every entry equal to 0. The negative of a matrix A is −A = (−1)A. If A and B matrices of the same size, then A − B = A + (−B).

Properties:

  • A + B = B + A
  • A + (B + C) = (A + B) + C
  • A + O = A
  • A − A = O
  • c(A + B) = cA + cB
  • (c + d)A = cA + dA
  • (cd)A = c(dA)
  • 1 A = A

A row matrix has 1 row, and a column matrix has 1 column. The rows of any matrix can be regarded as row matrices, and similarly with the columns.

Warning: We also write a column matrix

x =

x 1 x 2 .. . xn

as an ordered n-tuple x = (x 1 , x 2 ,... , xn). Be careful not to confuse this with a row matrix

[

x 1 x 2 · · · xn

]

. We write Rn^ for Rn×^1. A vector is a column matrix.

4 JOHN QUIGG

has the unique solution (1, 1).

Example: The system x 1 + x 2 = 1 x 1 + x 2 = 2

is inconsistent.

Two systems are equivalent if they have:

  • the same number of equations,
  • the same number of variables, and
  • the same solution set Example: The systems x + 2y = 3

and − 2 u − 4 v = − 6

are equivalent, because they both have 1 equation, 2 variables, and solution set (3 − 2 t, t).

The general strategy for solving a linear system is to change it into an equivalent system for which the solution set is obvious.

CHAPTER 1 5

  1. Gauss-Jordan elimination

The augmented matrix of a system a 11 x 1 + · · · + a 1 nxn = b 1

.................................. am 1 x 1 + · · · + amnxn = bm

is (^) 

a 11 · · · a 1 n b 1

.................. am 1 · · · amn bm

Every matrix with at least 2 columns is the augmented matrix of a unique system.

Example: The augmented matrix of the system 2 x 1 + x 2 = 5 x 1 − 3 x 2 + 2 x 3 = 0 5 x 2 + x 3 = 1

is (^) 

Example: The matrix [ 1 1 2 2 1 3

]

is the augmented matrix of the system

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

To solve a linear system, it’s easier to work with the augmented matrix rather than the system itself.

For some augmented matrices the solution set of the associated sys- tem is obvious:

Example: The system associated to the augmented matrix [ 1 0 6 0 1 3

]

is x 1 = 6 x 2 = 3

so the solution set is (6, 3).

CHAPTER 1 7

If the augmented matrix of a linear system is in reduced echelon form, the leading variables correspond to leading columns, and the free variables do not.

The above examples show that when the augmented matrix of a linear system is in reduced echelon form, the solution set is obvious:

  • The system is consistent if and only if the last column is not leading.
  • If the system is consistent, the free variables are set equal to parameters, and the leading variables are expressed in terms of these parameters.
  • If the system is consistent, it has either 1 solution (if there are no free variables) or infinitely many solutions (if there is a free variable).

So, to solve a system, we’d like to convert the augmented matrix into reduced echelon form, keeping the systems equivalent. Here are the operations we’ll use: an elementary row operation on a matrix is one of the following:

(i) multiply a row by a nonzero scalar (ii) interchange two rows (iii) add a scalar multiple of one row to another row

A matrix A is row equivalent to another matrix B if A can be trans- formed into B by a finite sequence of elementary row operations.

Properties:

  • A is row equivalent to A.
  • If A is row equivalent to B, then B is row equivalent to A.
  • If A is row equivalent to B and B is row equivalent to C, then A is row equivalent to C.
  • If the augmented matrices of two linear systems are row equiv- alent, then the systems are equivalent, because the elementary row operations correspond to operations on the equations.

Gauss-Jordan elimination uses elementary row operations to change a matrix into reduced echelon form. This is always possible. Although the sequence of elementary row operations used to convert a matrix A into a reduced echelon matrix B is not unique, the matrix B itself is unique, and it’s called the reduced echelon form of A.

8 JOHN QUIGG

Example: Consider the system

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

We apply Gauss-Jordan elimination to the augmented matrix: [ 0 3 2 2 4 − 2

]

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

[

]

swap rows 1 and 2

(1/2)R 1 −−−−→

[

]

multiply row 1 by 1/

(1/3)R 2 −−−−→

[

]

multiply row 2 by 1/

− 2 R 2 +R 1 −−−−−→

[

]

add -2 times row 2 to row 1

Thus the reduced echelon form of [ 0 3 2 2 4 − 2

]

is

[

]

so the solution of the system is (− 7 / 3 , 2 /3).

Example: System:

x 1 − 2 x 2 − 7 x 3 − 6 x 4 = − 10 −x 1 + x 3 − 2 x 4 = 0

Gauss-Jordan elimination: [ 1 − 2 − 7 − 6 − 10 − 1 0 1 − 2 0

]

R 1 +R 2 −−−−→

[

]

− 1 / 2 R 2 −−−−→

[

]

2 R 2 +R 1 −−−−→

[

]

Solution set:

(s − 2 t, 5 − 3 s − 5 t, s, t)

10 JOHN QUIGG

  • variable matrix x =

x 1 .. . xn

 (^) = (x 1 ,... , xn)

  • constant term matrix b =

b 1 .. . bm

 (^) = (b 1 ,... , bm)

The augmented matrix of a system with coefficient matrix A and constant term matrix b is

[

A b

]

The system is homogeneous if the constant terms are all 0, that is, b = 0. A homogeneous system always has the trivial solution x = 0. Because there are as many leading variables as nonzero rows in the reduced echelon form of the augmented matrix, a homogeneous sys- tem with more variables than equations has nontrivial (hence infinitely many) solutions.

If c 1 ,... , cn are scalars and A 1 ,... , An are matrices of the same size, then

∑n i=1 ciAi^ is a^ linear combination^ of^ A^1 ,... , An, with^ coefficients c 1 ,... , cn. The general solution of a homogeneous system can be ex- pressed as a linear combination of particular solutions, one for each parameter.

Example: The general solution of the homogeneous system with augmented matrix [ 1 − 2 0 − 3 0 0 0 1 − 4 0

]

is

(2s + 3t, s, 4 t, t) = s(2, 1 , 0 , 0) + t(3, 0 , 4 , 1),

which is a linear combination of the particular solutions (2, 1 , 0 , 0) and (3, 0 , 4 , 1) with coefficients s and t.

An m×n matrix is square if m = n. The diagonal entries of a square matrix [aij ] are a 11 , a 22 ,... , ann, and the other entries are nondiagonal. A square matrix is diagonal if its nondiagonal entries are all 0. The n×n identity matrix, denoted I, is diagonal and has all diagonal entries equal to 1.

Properties:

  • A square matrix A in reduced echelon form has all columns leading if and only if A = I.

CHAPTER 1 11

  • Thus, a linear system with the same number of variables as equations has a unique solution if and only if its coefficient matrix is row equivalent to the identity matrix.
  • In particular, a homogeneous system with the same number of variables as equations has only the trivial solution if and only if its coefficient matrix is row equivalent to the identity matrix.

CHAPTER 1 13

The matrix form of a linear system a 11 x 1 + · · · + a 1 nxn = b 1

.................................. am 1 x 1 + · · · + amnxn = bm

is Ax = b. Thus, the system is consistent if and only if b is a linear combination of the columns of A.

A matrix A is invertible if there exists a matrix B such that AB = BA = I.

In this case, A and B must both be n × n for some n. If A is invertible, the matrix B is unique, and is called the inverse of A and written A−^1. A square matrix is singular if it is not invertible.

Example: [ 1 3 1 2

]− 1

[

]

because [ 1 3 1 2

] [

]

[

] [

]

[

]

Example: A square nonzero matrix might be singular: if

A =

[

]

then for any 2 × 2 matrix B the second row of AB is zero, so A is singular.

If A is a square matrix and n is an integer, the nth power of A is

An^ =

n ︷ ︸︸ ︷ A · · · A if n > 0 I if n = 0 (A−^1 )|n|^ if n < 0 and A is invertible

Properties:

  • AnAk^ = An+k.
  • (An)k^ = Ank.
  • (An)−^1 = (A−^1 )n^ if A is invertible.
  • (AB)−^1 = B−^1 A−^1 if A and B are invertible.

If A is invertible and B has the same number or rows as A, then the matrix equation AX = B has the unique solution X = A−^1 B.

14 JOHN QUIGG

An elementary matrix is obtained from an identity matrix by a single elementary row operation.

Properties:

  • If E is an n × n elementary matrix, then for any n × p matrix A the product EA is gotten from A by the elementary row operation used to get E from I
  • Every elementary matrix E is invertible, and E−^1 is an ele- mentary matrix gotten from I by the reverse of the elementary row operation used to get E from I.

A square matrix is invertible if and only if it is row equivalent to an identity matrix.

A 2 × 2 matrix [ a bc d ] is invertible if and only if ad − bc 6 = 0, in which case [ a b c d

]− 1

ad − bc

[

d −b −c a

]

If A and B are n × n, and AB = I or BA = I, then A is invertible and B = A−^1.

If A is invertible then A−^1 B can be computed using elementary row operations:

[ A B

] (^) ero’s −−→

[

I A−^1 B

]

Example:  

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

− 2 R 2 +R 1 −−−−−→

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

(1/5)R 3 −−−−→

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

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