Apprentice Program: Linear Algebra

Similar documents
Materials engineering Collage \\ Ceramic & construction materials department Numerical Analysis \\Third stage by \\ Dalya Hekmat

MATH 323 Linear Algebra Lecture 6: Matrix algebra (continued). Determinants.

Review of Linear Algebra

Chapter 2. Square matrices

Introduction to Matrix Algebra

Linear Systems and Matrices

MATH Topics in Applied Mathematics Lecture 12: Evaluation of determinants. Cross product.

Math Bootcamp An p-dimensional vector is p numbers put together. Written as. x 1 x =. x p

Chapter 2: Matrices and Linear Systems

Graduate Mathematical Economics Lecture 1

4. Determinants.

A matrix A is invertible i det(a) 6= 0.

MATH2210 Notebook 2 Spring 2018

Determinants - Uniqueness and Properties

Matrix Algebra Determinant, Inverse matrix. Matrices. A. Fabretti. Mathematics 2 A.Y. 2015/2016. A. Fabretti Matrices

Chapter 2:Determinants. Section 2.1: Determinants by cofactor expansion

Chapter 4 - MATRIX ALGEBRA. ... a 2j... a 2n. a i1 a i2... a ij... a in

Discrete Math, Second Problem Set (June 24)

Undergraduate Mathematical Economics Lecture 1

Determinants. Beifang Chen

18.S34 linear algebra problems (2007)

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Matrices and Linear Algebra

Linear Algebra: Lecture notes from Kolman and Hill 9th edition.

Lecture Notes in Linear Algebra

3 Matrix Algebra. 3.1 Operations on matrices

Matrices Gaussian elimination Determinants. Graphics 2009/2010, period 1. Lecture 4: matrices

Elementary maths for GMT

Matrix Arithmetic. j=1

Chapter 4. Determinants

UMA Putnam Talk LINEAR ALGEBRA TRICKS FOR THE PUTNAM

Elementary Linear Algebra

Introduction. Vectors and Matrices. Vectors [1] Vectors [2]

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

88 CHAPTER 3. SYMMETRIES

Review of linear algebra

Math 320, spring 2011 before the first midterm

M. Matrices and Linear Algebra

CS 246 Review of Linear Algebra 01/17/19

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

Chapter 3. Basic Properties of Matrices

Equality: Two matrices A and B are equal, i.e., A = B if A and B have the same order and the entries of A and B are the same.

Components and change of basis

Solutions to Assignment 3

. =. a i1 x 1 + a i2 x 2 + a in x n = b i. a 11 a 12 a 1n a 21 a 22 a 1n. i1 a i2 a in

Lecture 23: Trace and determinants! (1) (Final lecture)

Matrices. In this chapter: matrices, determinants. inverse matrix

Linear Algebra (part 1) : Matrices and Systems of Linear Equations (by Evan Dummit, 2016, v. 2.02)

Appendix C Vector and matrix algebra

[ Here 21 is the dot product of (3, 1, 2, 5) with (2, 3, 1, 2), and 31 is the dot product of

CHAPTER 6. Direct Methods for Solving Linear Systems

The determinant. Motivation: area of parallelograms, volume of parallepipeds. Two vectors in R 2 : oriented area of a parallelogram

(1) for all (2) for all and all

10. Linear Systems of ODEs, Matrix multiplication, superposition principle (parts of sections )

NOTES ON LINEAR ALGEBRA. 1. Determinants

Chapter 5: Matrices. Daniel Chan. Semester UNSW. Daniel Chan (UNSW) Chapter 5: Matrices Semester / 33

Elementary Matrices. which is obtained by multiplying the first row of I 3 by -1, and

William Stallings Copyright 2010

a11 a A = : a 21 a 22

7 Matrix Operations. 7.0 Matrix Multiplication + 3 = 3 = 4

9. The determinant. Notation: Also: A matrix, det(a) = A IR determinant of A. Calculation in the special cases n = 2 and n = 3:

Matrix Algebra. Matrix Algebra. Chapter 8 - S&B

ENGR-1100 Introduction to Engineering Analysis. Lecture 21

Week 15-16: Combinatorial Design

1 Counting spanning trees: A determinantal formula

POLI270 - Linear Algebra

Math Linear Algebra Final Exam Review Sheet

Announcements Wednesday, October 25

Algebra & Trig. I. For example, the system. x y 2 z. may be represented by the augmented matrix

GENERATING SETS KEITH CONRAD

Recitation 8: Graphs and Adjacency Matrices

The Determinant. Chapter Definition of the Determinant

II. Determinant Functions

Math Lecture 26 : The Properties of Determinants


Solution Set 7, Fall '12

Section 1.6. M N = [a ij b ij ], (1.6.2)

Determinants in detail

Matrix Operations: Determinant

OHSx XM511 Linear Algebra: Solutions to Online True/False Exercises

Invertible Matrices over Idempotent Semirings

Gaussian Elimination and Back Substitution

Lecture 3 Linear Algebra Background

Matrices. Chapter Definitions and Notations

DETERMINANTS. , x 2 = a 11b 2 a 21 b 1

1 Matrices and Systems of Linear Equations. a 1n a 2n

Math 416, Spring 2010 The algebra of determinants March 16, 2010 THE ALGEBRA OF DETERMINANTS. 1. Determinants

Linear Algebra Section 2.6 : LU Decomposition Section 2.7 : Permutations and transposes Wednesday, February 13th Math 301 Week #4

MAT 2037 LINEAR ALGEBRA I web:

I = i 0,

Section 9.2: Matrices.. a m1 a m2 a mn

1 Matrices and Systems of Linear Equations

Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations

9 Appendix. Determinants and Cramer s formula

6 Permutations Very little of this section comes from PJE.

CLASS 12 ALGEBRA OF MATRICES

Introduction to Matrices and Linear Systems Ch. 3

Evaluating Determinants by Row Reduction

Math 4377/6308 Advanced Linear Algebra

Transcription:

Apprentice Program: Linear Algebra Instructor: Miklós Abért Notes taken by Matt Holden and Kate Ponto June 26,2006 1 Matrices An n k matrix A over a ring R is a collection of nk elements of R, arranged in n rows and k columns. The element of A in row i and column j is denoted A ij R. The transpose A T of A is defined by A T ij = A ji. Addition of matrices is defined by (A + B) ij = A ij + B ij. The product of A and B is only defined if the number of columns of A equals the number of rows of B. If A is an n k matrix and B is a k m matrix then the product AB is defined by (AB) ij = k A il B lj, l=1 so the ij entry of AB is the dot product of the ith row of A with the jth column of B. In particular, if n = 1 and m = 1 (i.e., A is a row vector and B is a column vector) then AB is simply the dot product of A and B. The set of all n n matrices over R is denoted by M n (R). Claim 1. M n (R) is a ring. As an exercise, you should check, for instance, that A(B +C) = AB +AC and A(BC) = (AB)C. 1

The zero element of this ring is the zero matrix, every entry of which is 0 R. The unit is the identity matrix 1 0... 0 0 1... 0 I =....... 0 0... 1 Notice that the ring M n (R) is not commutative for n 2, even when R is commutative. For example, in M 2 (Z) we have ( ) ( ) ( ) ( ) ( ) ( ) 1 0 0 1 0 1 0 1 1 0 0 0 =, =. 0 0 0 0 0 0 0 0 0 0 0 0 This example also shows that a product of nonzero matrices can equal zero, so M n (R) is said to have nonzero zero divisors. This is in sharp contrast to other familiar rings such as Z, Q, R, C, which have no nonzero zero divisors (so xy = 0 in these rings only if x = 0 or y = 0). 2 Permutations A permutation of the set {1,..., n} is simply a bijection from this set to itself. Notice that a composition of permutations is again a permutation, and each permutation has an inverse (since bijections are invertible). Thus, it is easy to see that the set Sym(n) of all permutations of {1,..., n} forms a group, called the symmetric group on this set. For example, Sym(7) contains the permutation ( ) 1 2 3 4 5 6 7 2 4 1 3 5 7 6 which maps 1 2, 2 4, 3 1, etc. We can write this same permutation more efficiently using cycle notation as (1 2 4 3)(5)(6 7). We typically omit the fixed points of a permutation in cycle notation, so we would write simply (1 2 4 3)(6 7). A permutation that interchanges two numbers i j and fixes every other number (written (i j) in cycle notation) is called a transposition. Consider now the bubble sort algorithm for sorting a sequence a 1,..., a n of n numbers. For i = 1,..., n 1, if a i > a i+1 then we interchange a i and a i+1. After traversing the sequence once, the largest number in the 2

sequence must be in the last position. After traversing it k times, the largest k numbers are in correct position (try proving this rigorously by induction). Thus, we obtain the sorted sequence 1, 2,..., n after at most n traversals of the sequence, and each traversal uses at most n 1 transpositions, so bubble sorting n numbers takes at most n(n 1) steps. (In fact, a more careful analysis shows that it takes at most n(n 1)/2 steps, and this bound is the best possible.) Thus, if a 1,..., a n represents a permutation π of {1,..., n}, then we can find finitely many transpositions t 1,..., t k such that πt 1... t k = id, hence We have proved the following: π = t 1 k... t 1 1 = t k... t 1. Proposition 2. Every permutation is a product of transpositions. For the example permutation given above, bubble sort takes only two traversals to sort the sequence, with intermediate steps: 2 4 1 3 5 7 6 2 1 4 3 5 7 6 2 1 3 4 5 7 6 2 1 3 4 5 6 7 1 2 3 4 5 6 7 Reading the transpositions from these intermediate steps, we can write (using cycle notation): (1 2 4 3)(6 7) = (1 2)(6 7)(3 4)(2 3). We define the sign of a permutation π to be { +1, π is a product of an even number of transpositions sgn(π) = 1, π is a product of an odd number of transpositions. In order to show that sgn(π) is well-defined, we must prove the following Lemma 3. If t 1,..., t k and r 1,..., r l are transpositions such that t 1 t k = r 1 r l then k l (mod 2). 3

Proof. Notice that it is enough to prove that a product of an odd number of transpositions cannot equal the identity. To prove this, consider the function s : Sym(n) {±1} defined by s(π) = i<j (x π(i) x π(j) ) i<j (x. i x j ) As an exercise, you should show that s(πτ) = s(π) whenever τ is a transposition. It follows that if t 1... t k = id then ( 1) k = s(id) = 1, so k is even, as claimed. We say a permutation π is even if sgn(π) = 1 and odd if sgn(π) = 1. Notice that cycles of even length are odd and vice versa. In fact, we can determine the sign of π from its cycle structure: if we write π as a product of disjoint cycles then sgn(π) = ( 1) # of even length cycles in π. We showed above that (1 2 4 3)(6 7) is a product of four transpositions, so it s an even permutation. We can also see this from the fact that its disjoint cycle decomposition contains two even length cycles. 3 Determinants Question: how many non-attacking rooks can be placed on an n n chessboard? We can place at most one in each row, so we can place at most n on the board. On the other hand, if there are less than n rooks on the board then there is some row and some column without rooks, and we are free to place a rook at the intersection of this row and column. Thus, n is the largest number of rooks we can place on the board. Call such a placement of n rooks a rook configuration. Then there is a natural one-one correspondence between rook configurations on an n n board and permutations of {1,..., n}. In particular, there are n! different rook configurations. Given A M n (R), we define det A = π Sym(n) sgn(π) 4 n A k,π(k). k=1

As an exercise, you should prove the following basic properties: if A has a zero row or a zero column then det A = 0, det A T = det A. Theorem 4 (Properties of the determinant). Let A M n (R). 1. If A has an entire row or column of zeros, then det(a) = 0. 2. If A =multiply the i-th row of A by c, then det(a ) = c det(a). 3. If A =change the i-th and j-th rows of A, then det(a ) = det(a). 4. If the i-th row of A =c (j-th row of A), then det(a) = 0 5. If A = A = A except in the i-th row and the i-th row of A is the sum of the i-th rows of A and A, then det(a) = det(a ) + det(a ). 6. If A = add c (i-th row of A) to the j-th row of A, then det(a ) = det(a). In the statements above row can be replaced by column. Exercise 5. Let A M n (Z) such that every row of A has sum divisible by 7. Then det(a) is divisible by 7. Theorem 6. For all A, B M n (R), det(a B) = det(a)det(b). Proof. To compute the determinant of the matrix ( ) A 0 B we only need to consider rook configurations that do not have any rooks in the top right corner. These rook configurations are exactly the rook configurations that have all rooks contained in A and B. So ( ) A 0 det = det(a)det(b) B If we take to be I, then we have the matrix ( ) A 0 I B 5

Without changing the determinant, we can convert this to a matrix having all zeros in the bottom right n n matrix. We do this by adding multiples of the first n columns in the matrix to the last n columns. (To eliminate the i, j entry of B, add B ij times the j-th column to the j + n-th column.) The new matrix is ( A ) AB I 0 and ( ) A AB det I 0 ( AB A = ( 1) n det 0 I ) = ( 1) n det(a B)det( I) = det(ab) Theorem 7. Let a, b Z. If A is the n n matrix with a s on the diagonal and all other entires b, then det(a) = (a b) n 1 (a + b(n 1)) Proof. exercise (hint: Use row and column transformations and try to get lots of zeros.) Theorem 8. If n people form c clubs such that: every club has the same number of members, (call this number a) every two clubs have the same number of common members, (call this number b) a, b > 0 and a b, then c n. Proof. Assume c > n. Let D be the c n matrix such that D ij is 0 if person j is not a member of club i, D ij is 1 if person j is a member of club i. Since every club has the same number of members, the row sum is the same for all rows of D (and is a). Since every two clubs have the same number of common members, the dot product of any two different rows in D is the same (and is b). 6

Extend the matrix D to a c c matrix A by adding columns of zeros. Like for D, the dot product of any row in A with itself is a and the dot product of any two different rows in A is b. Then is the same as saying that a b... b AA t b a b =..... b... b a By Theorem 7, det(aa t ) 0, but det(a) = 0. A contradiction. Exercise 9. det. 1 a 1 a 2 1 a 3 1... a n 1 1 1 a 2 a 2 2 a 3 2... a n 1 2. 1 a n a 2 n a 3 n... an n 1 The determinant of the matrix ( a b c d ) =? is the area of the parallelogram with two sides given by the vectors (a, b) and (c, d). The determinant of a 3 3 matrix is the volume of a parallelepiped given by the three rows. This parallelepiped will have volume 0 only when all three of the vectors are contained in a plane containing the origin in R 3. 7