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

Similar documents
Lecture 8: Determinants I

I = i 0,

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

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

Lecture 3: Matrix and Matrix Operations

Math 344 Lecture # Linear Systems

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

Introduction to Determinants

Linear Algebra, Vectors and Matrices

Mathematics 13: Lecture 10

Matrices. Chapter Definitions and Notations

3.4 Elementary Matrices and Matrix Inverse

Phys 201. Matrices and Determinants

Matrix Operations: Determinant

Kevin James. MTHSC 3110 Section 2.1 Matrix Operations

Chapter 2 Notes, Linear Algebra 5e Lay

Matrices and Vectors

. =. a i1 x 1 + a i2 x 2 + a in x n = b i. a 11 a 12 a 1n a 21 a 22 a 1n. i1 a i2 a in

Linear Algebra and Matrix Inversion

Determinant: 3.3 Properties of Determinants

Computational Foundations of Cognitive Science. Definition of the Inverse. Definition of the Inverse. Definition Computation Properties

MATRICES AND MATRIX OPERATIONS

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

Math 313 Chapter 1 Review

Elementary Linear Algebra. Howard Anton & Chris Rorres

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

22A-2 SUMMER 2014 LECTURE 5

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

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

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

Elementary Row Operations on Matrices

MAT 1332: CALCULUS FOR LIFE SCIENCES. Contents. 1. Review: Linear Algebra II Vectors and matrices Definition. 1.2.

If A is a 4 6 matrix and B is a 6 3 matrix then the dimension of AB is A. 4 6 B. 6 6 C. 4 3 D. 3 4 E. Undefined

1 Last time: determinants

Section 2.2: The Inverse of a Matrix

Elementary Linear Algebra

Lecture 4: Gaussian Elimination and Homogeneous Equations

Matrix Algebra: Definitions and Basic Operations

1300 Linear Algebra and Vector Geometry

Math 3C Lecture 20. John Douglas Moore

1 Last time: inverses

Matrix Algebra 2.1 MATRIX OPERATIONS Pearson Education, Inc.

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

7.6 The Inverse of a Square Matrix

Conceptual Questions for Review

MTH 464: Computational Linear Algebra

Appendix A: Matrices

Math 240 Calculus III

This MUST hold matrix multiplication satisfies the distributive property.

Matrix operations Linear Algebra with Computer Science Application

Chapter 3: Theory Review: Solutions Math 308 F Spring 2015

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

Calculus II - Basic Matrix Operations

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

OHSx XM511 Linear Algebra: Solutions to Online True/False Exercises

Math 220: Summer Midterm 1 Questions

Raphael Mrode. Training in quantitative genetics and genomics 30 May 10 June 2016 ILRI, Nairobi. Partner Logo. Partner Logo

Vectors and matrices: matrices (Version 2) This is a very brief summary of my lecture notes.

All of my class notes can be found at

PH1105 Lecture Notes on Linear Algebra.

Lesson U2.1 Study Guide

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

CHAPTER 8: Matrices and Determinants

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

Matrix Basic Concepts

Math 54 HW 4 solutions

Sections 6.1 and 6.2: Systems of Linear Equations

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

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

MAC Module 1 Systems of Linear Equations and Matrices I

Introduction to Matrices

Review of Linear Algebra

The matrix will only be consistent if the last entry of row three is 0, meaning 2b 3 + b 2 b 1 = 0.

Linear Algebra V = T = ( 4 3 ).

Linear Algebra (Review) Volker Tresp 2017

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.

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

Lecture Notes in Linear Algebra

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

MATH 310, REVIEW SHEET 2

Linear Equations in Linear Algebra

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

Linear Algebra Section 2.6 : LU Decomposition Section 2.7 : Permutations and transposes Wednesday, February 13th Math 301 Week #4

Linear Algebra (Review) Volker Tresp 2018

x + 2y + 3z = 8 x + 3y = 7 x + 2z = 3

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

Linear Algebra. and

Basic Linear Algebra in MATLAB

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

MATH 315 Linear Algebra Homework #1 Assigned: August 20, 2018

Lecture 6: Geometry of OLS Estimation of Linear Regession

Lecture 6 & 7. Shuanglin Shao. September 16th and 18th, 2013

Matrix Arithmetic. j=1

Numerical Analysis Lecture Notes

Math 4377/6308 Advanced Linear Algebra

Math Matrix Theory - Spring 2012

Online Exercises for Linear Algebra XM511

1 Matrices and matrix algebra

Math Lecture 26 : The Properties of Determinants

Matrix Multiplication

Transcription:

7-6 Multiplying matrices by diagonal matrices is faster than usual matrix multiplication. The following equations generalize to matrices of any size. Multiplying a matrix from the left by a diagonal matrix multiplies the rows by the diagonal entries: d1 0 0 0 d 0 0 d 3 a11 a 12 a 13 a 14 a 21 a 22 a 23 a 24 a 31 a 32 a 33 a 34 d1 a 11 d 1 a 12 d 1 a 13 d 1 a 14 d 2 a 21 d 2 a 22 d 2 a 23 d 2 a 24 d 3 a 31 d 3 a 32 d 3 a 33 d 3 a 34 Multiplying a matrix from the right by a diagonal matrix multiplies the columns by the diagonal entries: a11 a 12 a 13 a 14 d 1 0 0 0 0 d a 21 a 22 a 23 a 0 24 a 31 a 32 a 33 a 34 0 0 d 3 0 0 0 0 d 4 d1 a 11 d 2 a 12 d 3 a 13 d 4 a 14 d 1 a 21 d 2 a 22 d 3 a 23 d 4 a 24 d 1 a 31 d 2 a 32 d 3 a 33 d 4 a 34 Question 7.9 Verify these equations via matrix multiplication. Example 7.10 0 a11 a 12 a 13 2a11 2a 12 2a 13 0 1 0 a 21 a 22 a 23 a 21 a 22 a 23 0 0 3 a 31 a 32 a 33 3a 31 3a 32 3a 33 a11 a 12 a 13 0 2a11 a 12 3a 13 a 21 a 22 a 23 0 1 0 2a 21 a 22 3a 23 a 31 a 32 a 33 0 0 3 2a 31 a 32 3a 33 Triangular matrices (defined only for square matrices) The next best thing to a diagonal matrix is a triangular matrix.

7-7 Definition 7.11: Triangular matrices A square matrix is upper triangular if the only nonzero entries are above or on the main diagonal. A square matrix is lower triangular if the only nonzero entries are below or on the main diagonal. A square matrix is triangular if it is either upper or lower triangular. a11 a 12 a 13 a11 0 0 0 a 22 a 23 a 21 a 2 0 0 a 33 a 31 a 32 a 33 upper lower Note that a diagonal matrix is both upper and lower triangular. A matrix in REF or RREF is upper triangular. Fact 7.12: Properties of triangular matrices 1. The transpose of an upper triangular matrix is lower triangular, and vice versa. 2. The product of two upper triangular matrices is upper triangular. The product of two lower triangular matrices is lower triangular. 3. A triangular matrix is invertible if and only if its diagonal entries are non-zero. 4. The inverse of an upper triangular matrix is lower triangular. The inverse of a lower triangular matrix is upper triangular. 3. is very important and gives us a quick way to check if a triangular matrix is invertible. We will see deep reasons for these facts as we progress.

7-8 Example 7.13 2 3 0 4 0 0 0 0 1 5 4 0 0 0 7 1 12 1 singular invertible Products of triangular matrices If A and B are both upper triangular (or both lower triangular) matrices, we can easily determine the diagonal entries of the products AB and BA. Fact 7.14: Products of triangular matrices Let A and B be upper triangular matrices (or both lower triangular matrices). Then (AB) ii (BA) ii (A) ii (B) ii That is, the diagonal entries of AB and BA can be found by multiplying the diagonal entries of A and B. Remember that AB BA, in general, so that the non-diagonal entries cannot be found this way. Example 7.15 Let A 1 0 8 4, B 5 3 They are both lower triangular, so the diagonal entries of AB and BA are (AB) 11 (BA) 11 1 2 2 (AB) 22 (BA) 22 4 3 12

7-9 But AB 1 0 8 4 5 3 36 12 and BA 1 0 5 3 8 4 29 12 Notice that the nondiagonal elements are not equal. Symmetric matrices (defined only for square matrices) Definition 7.16 A matrix A is symmetric if A T A. Notice that only square matrices can be symmetric: if A is an m n matrix, then A T is an n m matrix. If A T A then the matrices must be of the same size, so that m n and A is square. A diagonal matrix is automatically symmetric. Example 7.17 The following matrices are symmetric 4 2 2 2 3 0 1, 0 1, 0 0 0 0 0 0 0 0 0 We can write the symmetric condition A T A as ) (A) i j (A T, by definition of the transpose ji (A) ji, as A T A

7-10 Therefore A is symmetric if (A) i j (A) ji. Fact 7.18: Properties of symmetric matrices Let A and B be symmetric matrices of the same size, and λ a scalar. Then 1. A T is symmetric 2. A + B and A B are symmetric 3. λa is symmetric 2. and 3. allow us to add, subtract, and multiply symmetric matrices by scalars to produce another symmetric matrix. However, the product of two symmetric matrices is not necessarily symmetric. Consider the following example: 3 4 4 1 8 3 3 0 as 29 9, the resulting matrix is not symmetric. 12 9 29 12 Fact 7.19 If A is invertible and symmetric, then A 1 is symmetric also. Proof: Let A be invertible and symmetric. Therefore A 1 exists and A T A. Recall that (A 1 ) T (A T ) 1. Then so A 1 is symmetric. (A 1 ) T (A T ) 1 A 1 Let M be a matrix of any size. The products M M T and M T M are common in applications of matrix theory. These matrix products are always square.

7-11 Question 7.20 Check that M M T and M T M are square, where M is a matrix of any size. Fact 7.21 Let M be a matrix of any size. 1. M M T and M T M are symmetric 2. If M is invertible, then M M T and M T M are invertible also Example 7.22 Question: Find all constants a, b and c such that the matrix 2 a 2b + 2c 2a + b + c A 3 5 a + c 0 2 7 is symmetric. Answer: A T 2 3 0 a 2b + 2c 5 2 2a + b + c a + c 7 If A T A then Solving this system yields a 2b + 2c 3 2a + b + c 0 a + c 2 a 11 b 9 c 13

7-12 Question: Find a diagonal matrix D such that D 5 1 0 0 0 3 0 0 0 5 Answer: If then If then so that D d1 0 0 0 d 0 0 d 3 D 5 d1 5 0 0 0 d2 5 0 0 0 d3 5 1 0 0 D 5 0 3 0 0 0 5 d 5 1 1, d5 2 3, d 5 3 5 d 1 1, d 2 3 1 5, d 5 3 5 1 5 D 1 0 0 0 3 1 5 0 0 0 5 5 1 Suggested problems Practice the material in this lecture by attempting the following problems in Chapter 1.7 of Anton-Rorres, starting on page 72 Questions 19, 21, 26, 34, 35, 41, 43, 44, 45 True/False questions (b), (c), (f ), (i)