Matrix Arithmetic Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.

Slides:



Advertisements
Similar presentations
2.3 Modeling Real World Data with Matrices
Advertisements

CSNB143 – Discrete Structure
Chapter Matrices Matrix Arithmetic
6 6.1 © 2012 Pearson Education, Inc. Orthogonality and Least Squares INNER PRODUCT, LENGTH, AND ORTHOGONALITY.
Chapter 4.1 Mathematical Concepts
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry Trigonometric functions Defined using right triangle  x y h.
CSCE 590E Spring 2007 Basic Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
Ch 7.2: Review of Matrices For theoretical and computation reasons, we review results of matrix theory in this section and the next. A matrix A is an m.
Linear Equations in Linear Algebra
6 6.1 © 2012 Pearson Education, Inc. Orthogonality and Least Squares INNER PRODUCT, LENGTH, AND ORTHOGONALITY.
“No one can be told what the matrix is…
Section 2.9 The Hill Cipher; Matrices
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
MATRICES. Matrices A matrix is a rectangular array of objects (usually numbers) arranged in m horizontal rows and n vertical columns. A matrix with m.
3.8 Matrices.
ECON 1150 Matrix Operations Special Matrices
Chapter 4.1 Mathematical Concepts
Matrix Entry or element Rows, columns Dimensions Matrix Addition/Subtraction Scalar Multiplication.
Matrix Arithmetic. A matrix M is an array of cell entries (m row,column ) and it must have rectangular dimensions (Rows x Columns). Example: 3x x.
Introduction to Matrices and Vectors Sebastian van Delden USC Upstate
If A and B are both m × n matrices then the sum of A and B, denoted A + B, is a matrix obtained by adding corresponding elements of A and B. add these.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Prepared by Deluar Jahan Moloy Lecturer Northern University Bangladesh
Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.
Chapter 6 Matrices and Determinants Copyright © 2014, 2010, 2007 Pearson Education, Inc Matrix Operations and Their Applications.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
CALCULUS – III Matrix Operation by Dr. Eman Saad & Dr. Shorouk Ossama.
1.3 Matrices and Matrix Operations. A matrix is a rectangular array of numbers. The numbers in the arry are called the Entries in the matrix. The size.
Vector Spaces Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Algebra Matrix Operations. Definition Matrix-A rectangular arrangement of numbers in rows and columns Dimensions- number of rows then columns Entries-
Inner Product, Length and Orthogonality Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Linear Transformations
Orthogonal Projections Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Introduction to Financial Modeling MGT 4850 Spring 2008 University of Lethbridge.
Systems of Equations and Matrices Review of Matrix Properties Mitchell.
Precalculus Section 14.1 Add and subtract matrices Often a set of data is arranged in a table form A matrix is a rectangular.
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry "Old Henry And His Old Aunt" Defined using right triangle  x y h.
Matrix Operations McDougal Littell Algebra 2 Larson, Boswell, Kanold, Stiff Larson, Boswell, Kanold, Stiff Algebra 2: Applications, Equations, Graphs Algebra.
1 Objective To provide background material in support of topics in Digital Image Processing that are based on matrices and/or vectors. Review Matrices.
CS 285- Discrete Mathematics Lecture 11. Section 3.8 Matrices Introduction Matrix Arithmetic Transposes and Power of Matrices Zero – One Matrices Boolean.
Matrix Operations McDougal Littell Algebra 2 Larson, Boswell, Kanold, Stiff Larson, Boswell, Kanold, Stiff Algebra 2: Applications, Equations, Graphs Algebra.
2.1 Matrix Operations 2. Matrix Algebra. j -th column i -th row Diagonal entries Diagonal matrix : a square matrix whose nondiagonal entries are zero.
Matrices. Matrix A matrix is an ordered rectangular array of numbers. The entry in the i th row and j th column is denoted by a ij. Ex. 4 Columns 3 Rows.
Linear Algebra by Dr. Shorouk Ossama.
Determinants Prepared by Vince Zaccone
Matrix Arithmetic Prepared by Vince Zaccone
13.4 Product of Two Matrices
3.8 Matrices L Al-zaid Math1101.
Sections 2.4 and 2.5 Matrix Operations
MATRICES.
12-1 Organizing Data Using Matrices
MATHEMATICS Matrix Algebra
Matrix Operations.
MATHEMATICS Matrix Multiplication
Linear Transformations
Matrix Multiplication
Complex Eigenvalues Prepared by Vince Zaccone
Matrix Operations.
Scalars and Vectors.
Inner Product, Length and Orthogonality
Linear Transformations
2. Matrix Algebra 2.1 Matrix Operations.
Section 2.4 Matrices.
CS100: Discrete structures
Linear Transformations
3.5 Perform Basic Matrix Operations
Chapter 4 Matrices & Determinants
MATRICES MATRIX OPERATIONS.
3.8 Matrices L Al-zaid Math1101.
Presentation transcript:

Matrix Arithmetic Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

A matrix is a rectangular array. Usually it is just numbers, but can be functions. Here are a few examples of matrices with real numbers: Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

A matrix is a rectangular array. Usually it is just numbers, but can be functions. Here are a few examples of matrices with real numbers: We can indicate the shape of a matrix by a pair or numbers mxn where m = # of rows n = # of columns Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

A matrix is a rectangular array. Usually it is just numbers, but can be functions. Here are a few examples of matrices with real numbers: Can we perform the following operations? 1) 5A 2) A+B 3) C+D 4) A+D 5) D-2A 6) AB 7) BC 8) CB 9) AD 10) DA 2 Rules of thumb: For addition/subtraction the matrices must be the same shape (same # of rows and columns) For multiplication, the # of columns of the first matrix must be the same as the # of rows of the second matrix. The result will have the same # of rows as the first, and same # of columns as the second. We can indicate the shape of a matrix by a pair or numbers mxn where m = # of rows n = # of columns Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

A matrix is a rectangular array. Usually it is just numbers, but can be functions. Here are a few examples of matrices with real numbers: Can we perform the following operations? 1) 5AYES 2) A+BNO 3) C+DNO 4) A+DYES 5) D-2AYES 6) ABYES 7) ACNO 8) BCYES 9) CBYES 10) AD YES We can indicate the shape of a matrix by a pair or numbers mxn where m = # of rows n = # of columns Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

1) 5A Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB for scalar multiplication, the scalar is multiplied by every element of the matrix. 4) A+D for matrix addition, corresponding elements are added. For these operations, the resulting matrix is the same size as the original matrix.

Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB 6) AB To get the product of two matrices, we need to use the scalar product (or dot product). Here is the definition from the book: The ijth entry of the product AB is the dot product of the ith row of matrix A and the jth column of matrix B. Let’s see how that works in practice:

Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB 6) AB To get the product of two matrices, we need to use the scalar product (or dot product, or inner product). Here is the definition from the book: The ijth entry of the product AB is the dot product of the ith row of matrix A and the jth column of matrix B. Let’s see how that works in practice: Row 1 times Column 1 goes in Row 1, Column 1 of the result.

Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB 6) AB To get the product of two matrices, we need to use the scalar product (or dot product). Here is the definition from the book: The ijth entry of the product AB is the dot product of the ith row of matrix A and the jth column of matrix B. Let’s see how that works in practice: Row 1 times Column 2 goes in Row 1, Column 2 of the result.

Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB 6) AB To get the product of two matrices, we need to use the scalar product (or dot product). Here is the definition from the book: The ijth entry of the product AB is the dot product of the ith row of matrix A and the jth column of matrix B. Let’s see how that works in practice: Row 2 times Column 1 goes in Row 2, Column 1 of the result.

Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB 6) AB To get the product of two matrices, we need to use the scalar product (or dot product). Here is the definition from the book: The ijth entry of the product AB is the dot product of the ith row of matrix A and the jth column of matrix B. Let’s see how that works in practice: Row 2 times Column 2 goes in Row 2, Column 2 of the result.

Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB 6) AB To get the product of two matrices, we need to use the scalar product (or dot product). Here is the definition from the book: The ijth entry of the product AB is the dot product of the ith row of matrix A and the jth column of matrix B. Let’s see how that works in practice: Try to get the last 2 entries on your own.

Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB 9) AD Do this multiplication.

Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB Do this multiplication. Notice that the result is a DIAGONAL matrix. This is a very useful type of matrix. We will see why soon. 9) AD

Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB Orthogonal Vectors Two vectors are said to be orthogonal when their scalar product equals zero.

Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB Orthogonal Vectors Two vectors are said to be orthogonal when their scalar product equals zero. Here are some calculations that we did for the previous example: This is row 1 of matrix A times column 1 of matrix B. These vectors are not orthogonal because their scalar product is not zero. This is row 2 of matrix A times column 3 of matrix B. These vectors are orthogonal because their scalar product is zero. If we were to graph these vectors they would form a right angle. Orthogonal means perpendicular when dealing with vectors in R n.

Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB More about dot products: Length of a vector (also called magnitude or absolute value) For any vector in R n, its length is defined to be: This is a generalization of the distance formula (Really just the Pythagorean Theorem) that you already know. For example, the length of a vector is computed below: Angle between vectors The following formula can be used to find the angle between 2 vectors: Not that if the vectors are orthogonal, the angle will be 90° (or π/2 radians)