Matrix Arithmetic. a 11 a. A + B = + a m1 a mn. + b. a 11 + b 11 a 1n + b 1n = a m1. b m1 b mn. and scalar multiplication for matrices via.

Similar documents
Matrix Algebra 2.1 MATRIX OPERATIONS Pearson Education, Inc.

Linear Equations in Linear Algebra

ICS 6N Computational Linear Algebra Matrix Algebra

Matrix operations Linear Algebra with Computer Science Application

Math 4377/6308 Advanced Linear Algebra

Kevin James. MTHSC 3110 Section 2.1 Matrix Operations

Mathematics 13: Lecture 10

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

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

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

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

Stage-structured Populations

Matrices: 2.1 Operations with Matrices

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

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

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

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

Linear Algebra and Matrix Inversion

ELEMENTARY LINEAR ALGEBRA

Math 3191 Applied Linear Algebra

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

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

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

1 Matrices and matrix algebra

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

CLASS 12 ALGEBRA OF MATRICES

Matrix Arithmetic. j=1

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

Chapter 2 Notes, Linear Algebra 5e Lay

Section 9.2: Matrices. Definition: A matrix A consists of a rectangular array of numbers, or elements, arranged in m rows and n columns.

Prepared by: M. S. KumarSwamy, TGT(Maths) Page

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

Linear Algebra. Linear Equations and Matrices. Copyright 2005, W.R. Winfrey

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

Elementary Row Operations on Matrices

Announcements Monday, October 02

Announcements Wednesday, October 10

Matrix Algebra & Elementary Matrices

Phys 201. Matrices and Determinants

L. Vandenberghe EE133A (Spring 2017) 3. Matrices. notation and terminology. matrix operations. linear and affine functions.

Matrices BUSINESS MATHEMATICS

Kevin James. MTHSC 3110 Section 2.2 Inverses of Matrices

Matrix Multiplication

Appendix C Vector and matrix algebra

Matrices and Linear Algebra

Lecture 3 Linear Algebra Background

MTH 35, SPRING 2017 NIKOS APOSTOLAKIS

Example. We can represent the information on July sales more simply as

Elementary maths for GMT

chapter 5 INTRODUCTION TO MATRIX ALGEBRA GOALS 5.1 Basic Definitions

ELEMENTARY LINEAR ALGEBRA

Two matrices of the same size are added by adding their corresponding entries =.

Numerical Analysis Lecture Notes

Review of Linear Algebra

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

ELEMENTARY LINEAR ALGEBRA

A matrix over a field F is a rectangular array of elements from F. The symbol

Calculus II - Basic Matrix Operations

Matrix-Matrix Multiplication

Matrix Algebra: Definitions and Basic Operations

7.5 Operations with Matrices. Copyright Cengage Learning. All rights reserved.

Linear Algebra Summary. Based on Linear Algebra and its applications by David C. Lay

2.1 Matrices. 3 5 Solve for the variables in the following matrix equation.

1300 Linear Algebra and Vector Geometry

Systems of Linear Equations and Matrices

Matrices. Chapter Definitions and Notations

Topic 1: Matrix diagonalization

MATH 2030: MATRICES ,, a m1 a m2 a mn If the columns of A are the vectors a 1, a 2,...,a n ; A is represented as A 1. .

Finite Mathematics Chapter 2. where a, b, c, d, h, and k are real numbers and neither a and b nor c and d are both zero.

ELEMENTARY LINEAR ALGEBRA

Systems of Linear Equations and Matrices

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

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

Evaluating Determinants by Row Reduction

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

Jim Lambers MAT 610 Summer Session Lecture 1 Notes

Chapter 1 Vector Spaces

Linear Algebra Tutorial for Math3315/CSE3365 Daniel R. Reynolds

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

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

1111: Linear Algebra I

Chapter 2. Ma 322 Fall Ma 322. Sept 23-27

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

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

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

Introduction to Matrices and Linear Systems Ch. 3

Review Let A, B, and C be matrices of the same size, and let r and s be scalars. Then

Matrix representation of a linear map

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

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

Chapter 4. Vector Space Examples. 4.1 Diffusion Welding and Heat States

Lecture 3: Matrix and Matrix Operations

DM559 Linear and Integer Programming. Lecture 3 Matrix Operations. Marco Chiarandini

3 Matrix Algebra. 3.1 Operations on matrices

Chapter 1. Vectors, Matrices, and Linear Spaces

MAT 2037 LINEAR ALGEBRA I web:

Math 220 F11 Lecture Notes

Linear Algebra March 16, 2019

Chapter 2: Matrices and Linear Systems

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

Transcription:

Matrix Arithmetic There is an arithmetic for matrices that can be viewed as extending the arithmetic we have developed for vectors to the more general setting of rectangular arrays: if A and B are m n matrices and r is a scalar then we can define matrix addition via a 11 a 1n b 11 b 1n A + B = + a m1 a mn b m1 b mn a 11 + b 11 a 1n + b 1n = a m1 + b m 1 a mn + b mn and scalar multiplication for matrices via ra = r a 11 a 1n ra 11 ra 1n = a m1 a mn ra m 1 ra mn. That is, adding and scalar multiplying is performed entrywise. It is important to note that two matrices must have the same size if we wish to add them together (and their sum has the same size as well).

As with vector addition and scalar multiplication, the same familiar arithmetical properties hold: Theorem If A, B, C are matrices of the same size and r and s are scalars, then 1. A + B = B + A; 2. ( A + B) + C = A + ( B + C); 3. A + 0 = 0 + A (where 0 represents the zero matrix, the matrix of the same size as A all of whose entries are zero); 4. r( A + B) = ra + rb and (r + s) A = ra + sa; 5. r( sa ) = (rs) A. // We can also extend the definition of the matrixvector product we developed to include a much wider class of matrices. The motivation comes from a consideration of how we compose linear transformations. As we have seen, any linear transformation S:R n R m has an associated standard m n matrix A for which S(y ) = Ay; here, y is an arbitrary vector in R n and its image S(y ) = Ay lies in R m. If we now consider a second linear transformation T:R p R n that has associated standard n p matrix B, then every vector x in R p is taken by T to the vector T(x ) = Bx in R n. Since

the output values of S can be used as input values for T, the composition map S T:R p R m makes sense: it carries a vector x in R p to the vector in R m. S T(x ) = S( T (x )) = A(Bx )) This composition map is a linear transformation (why?!), so it has a standard matrix representation. Therefore, we define the matrix product AB to be the standard matrix of the composition map S T. The first observation that must be made regarding this definition is that not every pair of matrices can be multiplied: AB only makes sense when the number of columns of A matches the number of rows of B. Next, we want to see how to determine the matrix product AB. By expressing the matrix B in terms of its columns as B = [ b 1 b 2 b p ], recall that Bx = x 1 b 1 + x 2 b 2 + + x p b p is the linear combination of the columns of B using as weights the entries of x. Thus, A( Bx )) = A( x 1 b 1 + x 2 b 2 + + x p b p ) = x 1 ( Ab 1 ) + x 2 ( Ab 2 ) + + x p ( Ab p )

is the linear combination of the matrix-vector products of the columns of B by A using these same weights. This means that A( Bx )) = [ Ab 1 Ab 2 Ab p ]x, so that the matrix of the composition map must be given by the relation AB = [ Ab 1 Ab 2 Ab p ]. This shows exactly what the matrix product AB is. Because we know how to form the matrix-vector products Ab j, we note that the columns of AB are the linear combinations of the columns of A whose weights come from the corresponding column of B. Equivalently, since the ith entry of the vector Ab j is the linear combination of the entries of the vector b j using as weights the entries of the ith row of A, we can conclude that the (i, j)-entry of AB is given by the formula ( AB ) ij = a i 1 b 1 j + a i 2 b 2 j + + a in b nj.

This definition of matrix multiplication satisfies many of the familiar arithmetical properties we have come to expect (but it fails to satisfy some others!): Theorem Let A, B, C be matrices having appropriate sizes to allow the products below to be defined. Then 1. A( BC ) = ( AB )C; 2. A( B + C ) = AB + AC and ( A + B)C = AC + BC; 3. r( AB) = (ra )B = A(rB) for any scalar r; and 4. if A is m n, then I m A = A = AI n where I m and I n are the appropriately sized identity matrices. // Notice which properties do not appear in the above theorem: in general, matrices do not commute, that is, the relation AB = BA is not true in general, even if the matrix products on both sides of this equation make sense! (See Example 7, p. 114.) Next, if three matrices satisfy the relation AB = AC, it is not necessarily the case that B = C, that is, the cancellation law does not hold in general for matrix multiplication (see Exercise 10, p. 116). Finally, it may happen that AB = 0 without either A or B being equal to the zero matrix, e.g.,

3 6 2 4 = 0 0. 1 2 1 2 0 0 Another useful and common matrix operation is the matrix transpose. The transpose of the m n matrix A is the n m matrix A T, whose rows are the columns of A, or equivalently, whose columns are the rows of A. A simple check of properties shows that the transpose operation is compatible with matrix arithmetic: Theorem Let A, B be matrices having appropriate sizes to allow the expressions below to be defined. Then 1. ( A T ) T = A; 2. ( A + B) T = A T + B T ; 3. (ra ) T = ra T for any scalar r; and 4. ( AB ) T = B T A T. Proof Properties 1-3 are straightforward. To see why property 4 holds, we note that the entries in the ith row of (AB) T are the entries of the ith column of AB, which is Ab i ; the jth entry in this column is the linear combination of the entries of b i (the ith column of B) using weights taken from the jth row of A. That is, the (i, j)-entry of (AB) T is the quantity a j1 b 1i +a j2 b 2i + +a jn b ni.

On the other hand, the (i, j)-entry of B T A T is the linear combination of the entries in the jth column of A T using weights that come from the ith row of B T, which is equivalently the linear combination of the entries in the jth row of A using weights that come from the ith column of B. That is, the (i, j)-entry of B T A T is the quantity b 1i a j1 +b 2i a j2 + +b ni a jn. Since this is identical to the computation in the previous paragraph, we must have that ( AB ) T = B T A T. //