The Matrix Vector Product and the Matrix Product

Similar documents
Matrix Basic Concepts

Matrices: 2.1 Operations with Matrices

MATRIX DETERMINANTS. 1 Reminder Definition and components of a matrix

MATH 320, WEEK 7: Matrices, Matrix Operations

x n -2.5 Definition A list is a list of objects, where multiplicity is allowed, and order matters. For example, as lists

x y = 1, 2x y + z = 2, and 3w + x + y + 2z = 0

Calculus II - Basic Matrix Operations

1 Matrices and matrix algebra

Finite Math - J-term Section Systems of Linear Equations in Two Variables Example 1. Solve the system

Matrices. Chapter Definitions and Notations

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

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

MATRICES The numbers or letters in any given matrix are called its entries or elements

4-1 Matrices and Data

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

Math 205, Summer I, Week 3a (continued): Chapter 4, Sections 5 and 6. Week 3b. Chapter 4, [Sections 7], 8 and 9

Matrix Algebra: Definitions and Basic Operations

Definition of Equality of Matrices. Example 1: Equality of Matrices. Consider the four matrices

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

Math 1314 Week #14 Notes

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

Matrices and RRE Form

Matrices and Systems of Equations

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

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.

Section 1.1: Systems of Linear Equations

1111: Linear Algebra I

Designing Information Devices and Systems I Spring 2018 Lecture Notes Note Introduction to Linear Algebra the EECS Way

A Review of Matrix Analysis

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

Linear Equations in Linear Algebra

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

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

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note Introduction to Linear Algebra the EECS Way

Notes on Row Reduction

8.2 Systems of Linear Equations: Augmented Matrices

Review: Linear and Vector Algebra

Lesson 1: Inverses of Functions Lesson 2: Graphs of Polynomial Functions Lesson 3: 3-Dimensional Space

36 What is Linear Algebra?

Review of linear algebra

Matrices, Row Reduction of Matrices

Linear Algebra I Lecture 8

1 - Systems of Linear Equations

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

An overview of key ideas

Discrete Math, Spring Solutions to Problems V

a11 a A = : a 21 a 22

Introduction to Determinants

Image Registration Lecture 2: Vectors and Matrices

Pre-Calculus I. For example, the system. x y 2 z. may be represented by the augmented matrix

Math "Matrix Approach to Solving Systems" Bibiana Lopez. November Crafton Hills College. (CHC) 6.3 November / 25

Matrix Algebra: Vectors

1. Vectors.

Appendix A: Matrices

NOTES (1) FOR MATH 375, FALL 2012

A primer on matrices

Roberto s Notes on Linear Algebra Chapter 10: Eigenvalues and diagonalization Section 3. Diagonal matrices

Matrices and Vectors

Lecture 2e Row Echelon Form (pages 73-74)

Section 5.5: Matrices and Matrix Operations

Volume in n Dimensions

Linear Equations in Linear Algebra

Matrix Algebra Lecture Notes. 1 What is Matrix Algebra? Last change: 18 July Linear forms

Vectors a vector is a quantity that has both a magnitude (size) and a direction

MATH.2720 Introduction to Programming with MATLAB Vector and Matrix Algebra

Definition of geometric vectors

Math Studio College Algebra

Algebra 2 Matrices. Multiple Choice Identify the choice that best completes the statement or answers the question. 1. Find.

1111: Linear Algebra I

Phys 201. Matrices and Determinants

Linear Algebra V = T = ( 4 3 ).

10: Representation of point group part-1 matrix algebra CHEMISTRY. PAPER No.13 Applications of group Theory

Exercise Sketch these lines and find their intersection.

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

Linear Equations in Linear Algebra

Elementary Row Operations on Matrices

Linear Algebra Basics

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

Definition 2.3. We define addition and multiplication of matrices as follows.

3 (Maths) Linear Algebra

chapter 12 MORE MATRIX ALGEBRA 12.1 Systems of Linear Equations GOALS

LINEAR ALGEBRA: THEORY. Version: August 12,

Lectures on Linear Algebra for IT

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

Review of Linear Algebra

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

DM559 Linear and Integer Programming. Lecture 2 Systems of Linear Equations. Marco Chiarandini

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

Some Notes on Linear Algebra

Math 123, Week 2: Matrix Operations, Inverses

Row Reducing Matrices

chapter 5 INTRODUCTION TO MATRIX ALGEBRA GOALS 5.1 Basic Definitions

22A-2 SUMMER 2014 LECTURE Agenda

Section-A. Short Questions

Mathematics for Graphics and Vision

Exam 1 - Definitions and Basic Theorems

Linear Equations & their Solutions

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

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

Matrix Algebra 2.1 MATRIX OPERATIONS Pearson Education, Inc.

Transcription:

The Matrix Vector Product and the Matrix Product As we have seen a matrix is just a rectangular array of scalars (real numbers) The size of a matrix indicates its number of rows and columns A matrix with m rows and n columns is said to be of size m n The order is important here The number of rows is alway specified first Thus, is a matrix, while is a matrix We add two matrices simply by adding corresponding entries This means that if A is an m n matrix, then we may add it to any other m n matrix, but not to a matrix of a different size For example, we have + + + + + 7 On the other hand we can t add and because they differ in size We say that matrix addition is performed entrywise because we add corresponding entries If we want to subtract one matrix from another, we simply subtract the corresponding entries The notion of the product of a scalar and a matrix is similar To multiply an matrix A by a scalar c, we simply multiply entrywise by c For example These operations are intuitive and easy to grasp On the other hand the matrix product is not intuitive Moreover, it s complicated and involves enough calculation so that it is easy to make a mistake There are several ways to view the matrix product and so there are several ways to define it Two definitions will be presented here The first one is useful theoretically although it is a bit more difficult to compute The second definition is easier to compute, but it obscures some of the product s theoretical implications For both of the reasons mentioned above, it is useful to define an intermediate notion of this product We shall begin by defining the product of an m n matrix and an n matrix Now an n matrix with entries x, x,, has the form x x

and as such is just a (vertically displayed) list of numbers In other words it is a vector For this reason we shall call n matrices column matrices or column vectors Readers who are put off by calling such objects vectors can just think of them as column matrices Such readers should begin to feel more comfortable when we come to the formal study of vectors In order to emphasize the special nature of column vectors we use a special notation for them They are denoted by lower case letters decorated with a half arrow Thus, we may write x x x, v, u, etc Armed with this new notation, we may use it to view a matrix as being determined by its columns The columns of the matrix are c, c and c and so we may write c c c If we have a general m n matrix then its n columns are c a a a n a A a a n, a m a m a mn a a a m, c a a a m,, c n a n a n a mn With these preparations, we may now define the matrix vector product Just as with matrix addition it is possible to perform this multiplication only when the matrix and column vector have the right respective sizes Specifically, if A is an m n matrix, then the column vector must have size n The formal definition is as follows

Definition If A is an m n matrix with columns c, c,, c n and x is an n column vector with entries x, x,,, then the product of x by A is the m column vector determined by the formula A x c c c n x x x c + x c + + c n Here s an example Suppose A Since A is a matrix, it can multiply only column vectors So if then A x x, + + 8 Now let s discuss the computational definition of the matrix vector product The notion of a row matrix or row vector will be useful here By definition a row matrix or row vector is n matrix Note that if r r r r n and x x x, then r x r r r n x x x r + x r + + r n x r + x r + r n For example + +

The point is that the product of a n matrix and an n column vector is a matrix which is just a real number Note that + + + + + + 8 In our new notation, we may write + + and + + Hence, we have 8 In other words the first entry in A x is the product of the first row of A and x and the second entry in A x is the product of the second row and x In still other words if we define r and r then we have r x and r x and so the matrix product takes the form A x Here are some more examples 8 8 r x r x 8

+ 9 + + 8 8 + + 9 7 + 8 7 It is worth emphasizing that we may only form the product of m n matrices and n column vectors and that the result is an m column vector Another dividend is that the problem of solving a system of linear equations has an equivalent formulation in the language of the matrix vector product To illustrate this let s consider an example Suppose we have the linear system If we write then x x x x + x x + x x A, x x x and b, x A x b is the same as x x or x x x x + x x x + x x Thus the equation A x b is just another way of encoding the information determined by the linear system Since the matrix A is determined by the coefficients of the equations in the linear system, it is called the coefficient matrix for the system In general if we are given a system of m equations in n unknowns of the form a x + a x + + a n b a x + a x + + a n b a m x + a m x + + a mn b n, then the associated coefficient matrix is a a a n a a a n a m a m a mn

If we also write x x x and b b, b n then the equation A x b contains the same information as the original linear system Now we are ready to tackle the product of two matrices We ve done the hard work This next step is relatively easy Definition Suppose A is an m n matrix and B is an m p matrix In this case it is possible to form the product AB as follows Write B in column vector notation B c c c p, where c, c,, c p are the column vectors determined by the columns of B Since each column is an n column vector, we may form the matrix vector products A c, A c,, A c p The product is by definition AB A c c c p A c A c A c p Thus, AB is the m p matrix whose columns are A c, A c,, A c p Here is an example Note that in the product 7 8 8 7 8 7 8 7 + 8 + + 8 + 9 8 the (, ) entry is the product of the first row and the first column, the (, ) entry is the product of the second row and the first column, the (, ) entry is the product of the first row and the second column and the (, ) entry is the product of the second row row and the second column In general, the (i, j) entry in a matrix product is the matrix vector product of the i th row and the j th column

7 Here are some more examples + + + + + + 9 () + + + + + + () 7 7 8 Notice that in () we have the product of a and a matrix and the result is a matrix In (), the product of the same matrices in reverse order is given Now we are calculating the product of a and a and the result is a matrix