Matrices. 1 a a2 1 b b 2 1 c c π

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

We could express the left side as a sum of vectors and obtain the Vector Form of a Linear System: a 12 a x n. a m2

Elementary maths for GMT

A FIRST COURSE IN LINEAR ALGEBRA. An Open Text by Ken Kuttler. Matrix Arithmetic

Matrices. Chapter Definitions and Notations

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Math 360 Linear Algebra Fall Class Notes. a a a a a a. a a a

Matrix Arithmetic. j=1

MATRICES AND MATRIX OPERATIONS

Matrices: 2.1 Operations with Matrices

Linear Algebra March 16, 2019

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

M. Matrices and Linear Algebra

Elementary Row Operations on Matrices

Linear Algebra Tutorial for Math3315/CSE3365 Daniel R. Reynolds

n n matrices The system of m linear equations in n variables x 1, x 2,..., x n can be written as a matrix equation by Ax = b, or in full

Getting Started with Communications Engineering. Rows first, columns second. Remember that. R then C. 1

A primer on matrices

x + 2y + 3z = 8 x + 3y = 7 x + 2z = 3

Phys 201. Matrices and Determinants

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

Things we can already do with matrices. Unit II - Matrix arithmetic. Defining the matrix product. Things that fail in matrix arithmetic

Matrix Basic Concepts

MATRICES. a m,1 a m,n A =

INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW MATRICES

Matrix Operations. Linear Combination Vector Algebra Angle Between Vectors Projections and Reflections Equality of matrices, Augmented Matrix

1 Matrices and matrix algebra

Appendix C Vector and matrix algebra

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

MATH Mathematics for Agriculture II

Introduction to Matrices

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

Linear Algebra. The analysis of many models in the social sciences reduces to the study of systems of equations.

A primer on matrices

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra 1/33

Chapter 2. Matrix Arithmetic. Chapter 2

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

Answers in blue. If you have questions or spot an error, let me know. 1. Find all matrices that commute with A =. 4 3

Think about systems of linear equations, their solutions, and how they might be represented with matrices.

Math 123, Week 2: Matrix Operations, Inverses

Rings If R is a commutative ring, a zero divisor is a nonzero element x such that xy = 0 for some nonzero element y R.

Math 320, spring 2011 before the first midterm

22A-2 SUMMER 2014 LECTURE Agenda

CSCI 239 Discrete Structures of Computer Science Lab 6 Vectors and Matrices

Matrix operations Linear Algebra with Computer Science Application

Systems of Linear Equations and Matrices

Matrices MA1S1. Tristan McLoughlin. November 9, Anton & Rorres: Ch

. a m1 a mn. a 1 a 2 a = a n

is a 3 4 matrix. It has 3 rows and 4 columns. The first row is the horizontal row [ ]

Chapter 2 Notes, Linear Algebra 5e Lay

Linear Algebra V = T = ( 4 3 ).

CS100: DISCRETE STRUCTURES. Lecture 3 Matrices Ch 3 Pages:

Vectors and matrices: matrices (Version 2) This is a very brief summary of my lecture notes.

Linear Systems and Matrices

Systems of Linear Equations and Matrices

Groups. s t or s t or even st rather than f(s,t).

Matrix & Linear Algebra

Linear Algebra and Matrix Inversion

Calculus II - Basic Matrix Operations

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra /34

CLASS 12 ALGEBRA OF MATRICES

Numerical Analysis Lecture Notes

Examples of Groups

Row Reduction

Matrices. Math 240 Calculus III. Wednesday, July 10, Summer 2013, Session II. Matrices. Math 240. Definitions and Notation.

Linear Algebra. Matrices Operations. Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0.

MATH2210 Notebook 2 Spring 2018

Math 308 Midterm Answers and Comments July 18, Part A. Short answer questions

MTH5112 Linear Algebra I MTH5212 Applied Linear Algebra (2017/2018)

Exercise Set Suppose that A, B, C, D, and E are matrices with the following sizes: A B C D E

Properties of Matrix Arithmetic

3 Matrix Algebra. 3.1 Operations on matrices

Mon Feb Matrix algebra and matrix inverses. Announcements: Warm-up Exercise:

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note 6

CS 246 Review of Linear Algebra 01/17/19

Lesson U2.1 Study Guide

Matrix Multiplication

Matrix Algebra 2.1 MATRIX OPERATIONS Pearson Education, Inc.

3. Vector spaces 3.1 Linear dependence and independence 3.2 Basis and dimension. 5. Extreme points and basic feasible solutions

Math Camp II. Basic Linear Algebra. Yiqing Xu. Aug 26, 2014 MIT

Fall Inverse of a matrix. Institute: UC San Diego. Authors: Alexander Knop

MATH 320, WEEK 7: Matrices, Matrix Operations

Linear Equations and Matrix

Notes on vectors and matrices

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

POLI270 - Linear Algebra

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

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

7.6 The Inverse of a Square Matrix

Lectures on Linear Algebra for IT

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

a11 a A = : a 21 a 22

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

Inverses and Elementary Matrices

Image Registration Lecture 2: Vectors and Matrices

1 Multiply Eq. E i by λ 0: (λe i ) (E i ) 2 Multiply Eq. E j by λ and add to Eq. E i : (E i + λe j ) (E i )

MAC Module 2 Systems of Linear Equations and Matrices II. Learning Objectives. Upon completing this module, you should be able to :

Inverting Matrices. 1 Properties of Transpose. 2 Matrix Algebra. P. Danziger 3.2, 3.3

LS.1 Review of Linear Algebra

Transcription:

Matrices 2-3-207 A matrix is a rectangular array of numbers: 2 π 4 37 42 0 3 a a2 b b 2 c c 2 Actually, the entries can be more general than numbers, but you can think of the entries as numbers to start I ll give a rapid account of basic matrix arithmetic; you can find out more in a course in linear algebra Definition (a) If A is a matrix, A ij is the element in the i th row and j th column (b) If a matrix has m rows and n columns, it is said to be an m n matrix, and m and n are the dimensions A matrix with the same number of rows and columns is a square matrix (c) If A and B are m n matrices, then A B if their corresponding entries are equal; that is, if A ij B ij for all i and j Note that matrices of different dimensions can t be equal (d) If A and B are m n matrices, their sum A+B is the matrix obtained by adding corresponding entries of A and B: (A+B) ij A ij +B ij (e) If A is a matrix and k is a number, the product of A by k is the matrix obtained by multiplying the entries of A by k: (ka) ij k A ij (f) The m n zero matrix is the matrix all of whose entries are 0 (g) If A is a matrix, then A is the matrix obtained by negating the entries of A (h) If A and B are m n matrices, their difference A B is A B A+( B) Example Suppose (a) What are the dimensions of A? A 3 4 5 π (b) What is A 2? (a) A is a 2 3 matrix: It has 2 rows and 3 columns (b) A 2 is the element in row 2 and column, so A 2 4 The following results are unsurprising, in the sense that things work the way you d expect them to given your experience with numbers (This is not always the case with matrix multiplication, which I ll discuss later) Proposition Suppose p and q are numbers and A, B, and C are m n matrices

(a) (Associativity) (A+B)+C A+(B +C) (b) (Commutativity) A+B B +A (c) (Zero Matrix) If 0 denotes the m n zero matrix, then 0+A A and A+0 A (d) (Additive Inverses) If 0 denotes the m n zero matrix, then A+( A) 0 and ( A)+A 0 (e) (Distributivity) p(a+b) pa+pb and (p+q)a pa+qa Proof Matrix equality says that two matrices are equal if their corresponding entries are equal So the proofs of these results amount to considering the entries of the matrices on the left and right sides of the equations By way of example, I ll prove (b) I must show that A+B and B +A have the same entries (A+B) ij A ij +B ij B ij +A ij (B +A) ij The first and third equalities used the definition of matrix addition The second equality used commutativity of addition for numbers Matrix multiplication is more complicated Your first thought might be to multiply two matrices the way you add matrices that is, by multiplying corresponding entries That is not how matrices are multiplied, and the reason is that it isn t that useful What is useful is a more complicated definition which uses dot products Suppose A is an m n matrix and B is an n p matrix Note that the number of columns of A must equal the number of rows of B To form the matrix product AB, I have to tell you what the (i,j) th entry of AB is Here is the description in words: (AB) ij is the dot product of the i th row of A and the j th column of B The resulting matrix AB will be an m p matrix This is best illustrated by examples Example Compute the matrix product 2 ] 3 8 0 4 This is the product of a 2 2 matrix and a 2 4 matrix The product should be a 2 4 matrix I ll show the computation of the entries in the product one-by-one For each entry in the product, I take the dot product of a row of the first matrix and a column of the second matrix (2, ) (,8) 6: (2, ) (,0) : 2

(2, ) (3,4) 2: (5,) (,8) 3: (5,) (,0) 5: (5,) (3,4) 9: Thus, 2 ] 3 6 2 8 0 4 3 9 Example Multiply the following matrices: 3 5 3 6 3 5 4 3 6 4 5 ] 4 4 5 8 9 2 24 Example Multiply the following matrices: 5 4 6 3 4] 0 5 4 6 3 4] 4] 0 Note that this is essentially the dot product of two 4-dimensional vectors Example Multiply the following matrices: 4 ] 2 5 3 4 3

4 ] 2 5 3 3 2 6 7 4 4 3 The formal definition of matrix multiplication involves summation notation Suppose A is an m n matrix and B is an n p matrix, so the product AB makes sense To tell what AB is, I have to say what a typical entry of the matrix is Here s the definition: (AB) ij n A ik B kj k Let s relate this to the concrete description I gave above The summation variable is k In A ik, this is the column index So with the row index i fixed, I m running through the columns from k to k n This means that I m running down the i th row of A Likewise, in B kj the variable k is the row index So with the column index j fixed, I m running through the rows from k to k n This means that I m running down the j th column of B SinceI mformingproductsa ik B kj andthenaddingthemup, thismeansthati mtakingthedotproduct of the i th row of A and the j th column of B, as I described earlier Proofs of matrix multiplication properties involve this summation definition, and as a consequence they are often a bit messy with lots of subscripts flying around I ll let you see them in a linear algebra course Definition The n n identity matrix is the matrix with s down the main diagonal (the diagonal going from upper left to lower right) and 0 s elsewhere For instance, the 4 4 identity matrix is 0 Proposition Suppose A, B, and C are matrices (with dimensions compatible for multiplication in all the products below), and let k be a number (a) (Associativity) (AB)C A(BC) (b)(identity)ai AandIA I (wherei denotesann nidentitymatrixcompatibleformultiplication in the respective products) (c) (Zero) A0 0 and 0A 0 (where 0 denotes a zero matrix compatible for multiplication in the respective products) (d) (Scalars) k(ab) (ka)b A(kB) (e) (Distributivity) A(B +C) AB +AC and (A+B)C AC +BC I ll omit the proofs, which are routine but a bit messy (as they involve the summation definition of matrix multiplication) Note that commutativity of multiplication is not listed as a property In fact, it s false and it one of a number of ways in which matrix multiplication does not behave in ways you might expect It s important to make a note of things which behave in unexpected ways 4

Example Give specific 2 2 matrices A and B such that AB BA There are many examples For instance, ] ] 2 5 3 2 This shows that matrix multiplication is not commutative Example Give specific 2 2 matrices A and B such that A 0, B 0, but AB 0 There are many possibilities For instance, 0 3 7 Example Give specific 2 2 nonzero matrices A B, and C such that AB AC but B C There are lots of examples For instance, ] and ] 3 4 But 3 4 This example shows that you can t divide or cancel A from both sides of the equation It works in some cases, but not in all cases Definition Let A be an n n matrix The inverse of A is a matrix A which satisfies AA I and A A I (I is the n n identity matrix) A matrix which has an inverse is invertible Remark (a) If a matrix has an inverse, it is unique (b) Not every matrix has an inverse Determinants provide a criterion for telling whether a matrix is invertible: An n n real matrix is invertible if and only if its determinant is nonzero Proposition Suppose A and B are invertible n n matrices Then: (a) (A ) A (b) (AB) B A Proof I ll prove (b) B A ](AB) B IB B B I (AB)B A ] AIA AA I 5

This shows that B A is the inverse of AB, because it multiplies AB to the identity matrix in either order In general, the most efficient way to find the inverse of a matrix is to use row reduction (Guassian elimination), which you will learn about in a linear algebra course But we can give an easy formula for 2 2 matrices Proposition Consider the real matrix Suppose ad bc 0 Then Proof Just compute: ad bc d b c a A ] a b c d A ad bc a b c d d b c a ad bc 0 ad bc 0 ad bc You can check that you also get the identity if you multiply in the opposite order 4 3 Example Find the inverse of 4 3 (4)() ( 3)(5) 3 5 4 9 3 5 4 Example Use matrix inversion to solve the system of equations: 2x+7y 3 x+0y You can write the system in matrix form: 2 7 x 3 0 y (Multiply out the left side for yourself and see that you get the original two equations) Now the inverse of the 2 2 matrix is 2 7 0 7 3 Multiply the matrix equation above on the left of both sides by the inverse: 0 7 2 7 x 0 7 3 3 0 y 3 x 37 y 3 5 x 37 y 3 5 That is, x 37 3 and y 3 c 207 by Bruce Ikenaga 6