Matrix Arithmetic Prepared by Vince Zaccone

Slides:



Advertisements
Similar presentations
6 6.1 © 2012 Pearson Education, Inc. Orthogonality and Least Squares INNER PRODUCT, LENGTH, AND ORTHOGONALITY.
Advertisements

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.
6 6.1 © 2012 Pearson Education, Inc. Orthogonality and Least Squares INNER PRODUCT, LENGTH, AND ORTHOGONALITY.
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.
Basics of Linear Algebra A review?. Matrix  Mathematical term essentially corresponding to an array  An arrangement of numbers into rows and columns.
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.
Prepared by Deluar Jahan Moloy Lecturer Northern University Bangladesh
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.
Matrices: Simplifying Algebraic Expressions Combining Like Terms & Distributive Property.
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.
Inner Product, Length and Orthogonality Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Computer Graphics Mathematical Fundamentals Lecture 10 Taqdees A. Siddiqi
Matrix Arithmetic Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
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
Linear Algebra Review.
13.4 Product of Two Matrices
3.8 Matrices L Al-zaid Math1101.
Matrices and Matrix Operations
12-1 Organizing Data Using Matrices
10.4 The Algebra of Matrices
Matrices Rules & Operations.
Matrix Operations Free powerpoints at
Linear Algebra review (optional)
1.5 Matricies.
Vector Spaces Prepared by Vince Zaccone
Orthogonal Projections
Matrix Operations.
Matrix Operations Free powerpoints at
MATHEMATICS Matrix Multiplication
Linear Transformations
Matrix Multiplication
Complex Eigenvalues Prepared by Vince Zaccone
Matrix Operations.
Linear Transformations
Scalars and Vectors.
Matrix Operations Free powerpoints at
Least Squares Approximations
Inner Product, Length and Orthogonality
Linear Independence Prepared by Vince Zaccone
Linear Transformations
7.3 Matrices.
Vector Spaces Prepared by Vince Zaccone
25. Basic matrix operations
2. Matrix Algebra 2.1 Matrix Operations.
Section 2.4 Matrices.
Objectives Multiply two matrices.
CS100: Discrete structures
Matrices and Matrix Operations
Linear Algebra Lecture 38.
The Inverse of a Matrix Prepared by Vince Zaccone
Basics of Linear Algebra
Orthogonal Projections
Linear Transformations
3.5 Perform Basic Matrix Operations
Dimensions matching Rows times Columns
Linear Algebra review (optional)
Linear Algebra Lecture 11.
Chapter 4 Matrices & Determinants
MATRICES MATRIX OPERATIONS.
Diagonalization Prepared by Vince Zaccone
3.8 Matrices L Al-zaid Math1101.
Presentation transcript:

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

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

Here are a few examples of matrices with real numbers: A matrix is a rectangular array. Usually the entries are just numbers, but they can be functions as well. 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

Here are a few examples of matrices with real numbers: A matrix is a rectangular array. Usually the entries are just numbers, but they can be functions as well. Here are a few examples of matrices with real numbers: TRANSPOSE of a matrix The transpose is the same matrix, but the columns are written as rows, and the rows as columns. For example, 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

Here are a few examples of matrices with real numbers: A matrix is a rectangular array. Usually the entries are just numbers, but they can be functions as well. 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) AC 8) BC 9) CB 10) AD 11) BTD 2 Rules of thumb: For addition/subtraction the matrices must be the 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

Here are a few examples of matrices with real numbers: A matrix is a rectangular array. Usually the entries are just numbers, but they can be functions as well. Here are a few examples of matrices with real numbers: Can we perform the following operations? 1) 5A YES 2) A+B NO 3) C+D NO 4) A+D YES 5) D-2A YES 6) AB YES 7) AC NO 8) BC YES 9) CB YES 10) AD YES 11) BTD 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 for scalar multiplication, the scalar is multiplied by every element of the matrix. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

1) 5A 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 will use dot products (also called inner product or scalar product) to multiply the rows of matrix A by the columns of matrix B. Let’s see how that works in practice: Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Row 1 times Column 1 goes in Row 1, Column 1 of the result. 6) AB To get the product of two matrices, we will use dot products (also called inner product or scalar product) to multiply the rows of matrix A by the columns 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

Row 1 times Column 2 goes in Row 1, Column 2 of the result. 6) AB To get the product of two matrices, we will use dot products (also called inner product or scalar product) to multiply the rows of matrix A by the columns 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

Row 2 times Column 1 goes in Row 2, Column 1 of the result. 6) AB To get the product of two matrices, we will use dot products (also called inner product or scalar product) to multiply the rows of matrix A by the columns 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

Row 2 times Column 2 goes in Row 2, Column 2 of the result. 6) AB To get the product of two matrices, we will use dot products (also called inner product or scalar product) to multiply the rows of matrix A by the columns 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

Try to get the last 2 entries on your own. 6) AB To get the product of two matrices, we will use dot products (also called inner product or scalar product) to multiply the rows of matrix A by the columns 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

Try to get the last 2 entries on your own. 6) AB To get the product of two matrices, we will use dot products (also called inner product or scalar product) to multiply the rows of matrix A by the columns 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

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

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

Orthogonal Vectors Two vectors are said to be orthogonal when their scalar product is 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 is zero. Here are some calculations that we did for the previous example: This is row 1 of matrix A times column 1 of matrix D. These vectors are not orthogonal because their scalar product is not zero. This is row 2 of matrix A times column 3 of matrix D. 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 Rn. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

More about dot products: Length of a vector (also called magnitude or norm or absolute value) For any vector in ℝ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) Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB