Matrix Algebra 2.1 MATRIX OPERATIONS Pearson Education, Inc.

Similar documents
Linear Equations in Linear Algebra

ICS 6N Computational Linear Algebra Matrix Algebra

Matrix operations Linear Algebra with Computer Science Application

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.

Math 4377/6308 Advanced Linear Algebra

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

Kevin James. MTHSC 3110 Section 2.1 Matrix Operations

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

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

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

Linear Algebra and Matrix Inversion

Elementary Row Operations on Matrices

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

Linear Algebra Tutorial for Math3315/CSE3365 Daniel R. Reynolds

Announcements Wednesday, October 10

Announcements Monday, October 02

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

Matrix Arithmetic. j=1

CLASS 12 ALGEBRA OF MATRICES

MATRICES AND MATRIX OPERATIONS

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

Chapter 2 Notes, Linear Algebra 5e Lay

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

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

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

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

Math 3191 Applied Linear Algebra

Mathematics 13: Lecture 10

MATH 2331 Linear Algebra. Section 2.1 Matrix Operations. Definition: A : m n, B : n p. Example: Compute AB, if possible.

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

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

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

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

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

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

1300 Linear Algebra and Vector Geometry

CS 246 Review of Linear Algebra 01/17/19

Matrix Multiplication

Multiplying matrices by diagonal matrices is faster than usual matrix multiplication.

Elementary maths for GMT

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

Review of Linear Algebra

Graduate Mathematical Economics Lecture 1

Undergraduate Mathematical Economics Lecture 1

Foundations of Cryptography

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

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

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

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

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

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

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

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

UNIT 1 DETERMINANTS 1.0 INTRODUCTION 1.1 OBJECTIVES. Structure

= main diagonal, in the order in which their corresponding eigenvectors appear as columns of E.

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

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

Matrix Algebra & Elementary Matrices

Introduction to Matrix Algebra

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

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

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

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

Instruction: Operations with Matrices ( ) ( ) log 8 log 25 = If the corresponding elements do not equal, then the matrices are not equal.

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

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

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

Matrices: 2.1 Operations with Matrices

MATH2210 Notebook 2 Spring 2018

Lecture 3: Matrix and Matrix Operations

Systems of Linear Equations and Matrices

Section 12.4 Algebra of Matrices

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.

Systems of Linear Equations and Matrices

MATH Mathematics for Agriculture II

Topics. Vectors (column matrices): Vector addition and scalar multiplication The matrix of a linear function y Ax The elements of a matrix A : A ij

a11 a A = : a 21 a 22

Elementary Linear Algebra. Howard Anton & Chris Rorres

Matrix & Linear Algebra

I = i 0,

Definition. A matrix is a rectangular array of numbers enclosed by brackets (plural: matrices).

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

Chapter 2: Matrix Algebra

Matrices and Vectors

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

Phys 201. Matrices and Determinants

Linear Algebra V = T = ( 4 3 ).

Chapter 4. Determinants

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

Lecture 3 Linear Algebra Background

Chapter 1 Vector Spaces

MTH 464: Computational Linear Algebra

MTH 35, SPRING 2017 NIKOS APOSTOLAKIS

MAT 2037 LINEAR ALGEBRA I web:

Components and change of basis

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

Appendix C Vector and matrix algebra

ECON 186 Class Notes: Linear Algebra

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

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

Transcription:

2 Matrix Algebra 2.1 MATRIX OPERATIONS

MATRIX OPERATIONS m n If A is an matrixthat is, a matrix with m rows and n columnsthen the scalar entry in the ith row and jth column of A is denoted by a ij and is called the (i, j)-entry of A. See the figure below. Each column of A is a list of m real numbers, which m identifies a vector in. Slide 2.1-2

MATRIX OPERATIONS The columns are denoted by a 1,, a n, and the matrix A is written as A = a a L a 1 2 n The number a ij is the ith entry (from the top) of the jth column vector a j. The diagonal entries in an matrix are a 11, a 22, a 33,, and they form the main diagonal of A. A diagonal matrix is a sequence nondiagonal entries are zero. n n An example is the identity matrix, I n.. m n A = a ij n m matrix whose Slide 2.1-3

SUMS AND SCALAR MULTIPLES An m n matrix whose entries are all zero is a zero matrix and is written as 0. The two matrices are equal if they have the same size (i.e., the same number of rows and the same number of columns) and if their corresponding columns are equal, which amounts to saying that their corresponding entries are equal. m n A + B If A and B are matrices, then the sum is the m n matrix whose columns are the sums of the corresponding columns in A and B. Slide 2.1-4

SUMS AND SCALAR MULTIPLES Since vector addition of the columns is done entrywise, each entry in A + B is the sum of the corresponding entries in A and B. The sum same size. A + B Example 1: Let C 2 3 = 0 1 is defined only when A and B are the 4 0 5 1 1 1 A =, B =, 1 3 2 3 5 7 A + B A + C and. Find and. Slide 2.1-5

SUMS AND SCALAR MULTIPLES 5 1 6 A + B = 2 8 9 A + C Solution: but is not defined because A and C have different sizes. If r is a scalar and A is a matrix, then the scalar multiple ra is the matrix whose columns are r times the corresponding columns in A. Theorem 1: Let A, B, and C be matrices of the same size, and let r and s be scalars. a. A + B = B + A Slide 2.1-6

SUMS AND SCALAR MULTIPLES b. c. d. e. f. ( A + B) + C = A + ( B + C) A + 0 = A r( A + B) = ra + rb ( r + s) A = ra + sa r( sa) = ( rs) A Each quantity in Theorem 1 is verified by showing that the matrix on the left side has the same size as the matrix on the right and that corresponding columns are equal. Slide 2.1-7

MATRIX MULTIPLICATION When a matrix B multiplies a vector x, it transforms x into the vector Bx. If this vector is then multiplied in turn by a matrix A, the resulting vector is A (Bx). See the Fig. below. Thus A (Bx) is produced from x by a composition of mappingsthe linear transformations. Slide 2.1-8

MATRIX MULTIPLICATION Our goal is to represent this composite mapping as multiplication by a single matrix, denoted by AB, so that. See the figure below. A( Bx)=(AB)x m n n p p If A is, B is, and x is in, denote the columns of B by b 1,, bp and the entries in x by x 1,, x p. Slide 2.1-9

MATRIX MULTIPLICATION Then Bx = x b +... + x b 1 1 p p By the linearity of multiplication by A, A( Bx) = A( x b ) +... + A( x b ) 1 1 = x Ab +... + x Ab 1 1 The vector A (Bx) is a linear combination of the vectors Ab 1,, Ab p, using the entries in x as weights. In matrix notation, this linear combination is written as. A( Bx) Ab Ab Ab x = L 1 2 p p p p p Slide 2.1-10

MATRIX MULTIPLICATION Thus multiplication by Ab Ab 1 2 L Ab p transforms x into A (Bx). m n n p Definition: If A is an matrix, and if B is an matrix with columns b 1,, b p, then the product AB is the matrix whose columns are Ab 1,, Ab p. m p That is, AB = A b b L b b b b 1 2 p = A A L A 1 2 p Multiplication of matrices corresponds to composition of linear transformations. Slide 2.1-11

MATRIX MULTIPLICATION Example 2: Compute AB, where B 4 3 9 = 1 2 3. A 2 3 = 1 5 and Solution: Write B = [ b b b ] 1 2 3, and compute: Slide 2.1-12

Ab 1 MATRIX MULTIPLICATION 2 3 4 = 2 3 3 1 5 1, Ab =, 2 1 5 2 11 = 0 1 = 13 Ab 3 2 3 6 = 1 5 3 21 = 9 Then AB [ b b b ] 11 0 21 = A = 1 2 3 1 13 9 Ab 1 Ab 2 Ab 3 Slide 2.1-13

MATRIX MULTIPLICATION Each column of AB is a linear combination of the columns of A using weights from the corresponding column of B. Rowcolumn rule for computing AB If a product AB is defined, then the entry in row i and column j of AB is the sum of the products of corresponding entries from row i of A and column j of B. If (AB) ij denotes the (i, j)-entry in AB, and if A is an m n matrix, then. ( AB) = a b +... + a b ij i1 1 j in nj Slide 2.1-14

PROPERTIES OF MATRIX MULTIPLICATION m n Theorem 2: Let A be an matrix, and let B and C have sizes for which the indicated sums and products are defined. A( BC) = ( AB) C a. (associative law of multiplication) A( B + C) = AB + AC ( B + C) A = BA + CA r( AB) = ( ra) B = A( rb) I A = A = AI b. (left distributive law) c. (right distributive law) d. for any scalar r e. (identity for matrix m n multiplication) Slide 2.1-15

PROPERTIES OF MATRIX MULTIPLICATION Proof: Property (a) follows from the fact that matrix multiplication corresponds to composition of linear transformations (which are functions), and it is known that the composition of functions is associative. Let C = c L c 1 p By the definition of matrix multiplication, BC B B = c L c 1 p A( BC) A( Bc ) A( Bc ) = L 1 p Slide 2.1-16

PROPERTIES OF MATRIX MULTIPLICATION The definition of AB makes x, so A( Bx) = ( AB)x for all A( BC) = ( AB)c L ( AB)c = ( AB) C 1 p The left-to-right order in products is critical because AB and BA are usually not the same. Because the columns of AB are linear combinations of the columns of A, whereas the columns of BA are constructed from the columns of B. The position of the factors in the product AB is emphasized by saying that A is right-multiplied by B or that B is left-multiplied by A. Slide 2.1-17

PROPERTIES OF MATRIX MULTIPLICATION AB = BA If, we say that A and B commute with one another. Warnings: AB BA 1. In general,. 2. The cancellation laws do not hold for matrix multiplication. That is, if AB = AC, then it is not true in general that. 3. If a product AB is the zero matrix, you cannot conclude in general that either or. B = C A = 0 B = 0 Slide 2.1-18

POWERS OF A MATRIX n n If A is an matrix and if k is a positive integer, then A k denotes the product of k copies of A: k A = { AL A n If A is nonzero and if x is in, then A k x is the result of left-multiplying x by A repeatedly k times. k If k = 0, then A 0 x should be x itself. Thus A 0 is interpreted as the identity matrix. Slide 2.1-19

THE TRANSPOSE OF A MATRIX m n Given an matrix A, the transpose of A is the n m matrix, denoted by A T, whose columns are formed from the corresponding rows of A. Theorem 3: Let A and B denote matrices whose sizes are appropriate for the following sums and products. a. b. c. For any scalar r, d. ( T T A ) = A ( A + B) T = A T + B T ( ra) T = ra T ( AB) T = B T A T Slide 2.1-20

THE TRANSPOSE OF A MATRIX The transpose of a product of matrices equals the product of their transposes in the reverse order. Slide 2.1-21