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

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

Elementary maths for GMT

Undergraduate Mathematical Economics Lecture 1

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

Graduate Mathematical Economics Lecture 1

Linear Systems and Matrices

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

MATH 2050 Assignment 8 Fall [10] 1. Find the determinant by reducing to triangular form for the following matrices.

Matrices and Linear Algebra

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

TOPIC III LINEAR ALGEBRA

Components and change of basis

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

MATH2210 Notebook 2 Spring 2018

MATRICES AND MATRIX OPERATIONS

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

ENGR-1100 Introduction to Engineering Analysis. Lecture 21

Matrix Operations: Determinant

ENGI 9420 Lecture Notes 2 - Matrix Algebra Page Matrix operations can render the solution of a linear system much more efficient.

det(ka) = k n det A.

Lecture Notes in Linear Algebra

Formula for the inverse matrix. Cramer s rule. Review: 3 3 determinants can be computed expanding by any row or column

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Evaluating Determinants by Row Reduction

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Matrix Arithmetic. j=1

Linear Algebra. Matrices Operations. Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0.

CP3 REVISION LECTURES VECTORS AND MATRICES Lecture 1. Prof. N. Harnew University of Oxford TT 2013

Math Bootcamp An p-dimensional vector is p numbers put together. Written as. x 1 x =. x p

Math Linear Algebra Final Exam Review Sheet

Apprentice Program: Linear Algebra

Phys 201. Matrices and Determinants

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

Linear Algebra and Vector Analysis MATH 1120

4. Determinants.

ENGR-1100 Introduction to Engineering Analysis. Lecture 21. Lecture outline

A = 3 B = A 1 1 matrix is the same as a number or scalar, 3 = [3].

Elementary Matrices. which is obtained by multiplying the first row of I 3 by -1, and

A VERY BRIEF LINEAR ALGEBRA REVIEW for MAP 5485 Introduction to Mathematical Biophysics Fall 2010

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

Jim Lambers MAT 610 Summer Session Lecture 1 Notes

Equality: Two matrices A and B are equal, i.e., A = B if A and B have the same order and the entries of A and B are the same.

Determinants Chapter 3 of Lay

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

Chapter 2: Matrices and Linear Systems

Chapter 4. Determinants

MATH 323 Linear Algebra Lecture 6: Matrix algebra (continued). Determinants.

LINEAR ALGEBRA REVIEW

William Stallings Copyright 2010

POLI270 - Linear Algebra

MATH 213 Linear Algebra and ODEs Spring 2015 Study Sheet for Midterm Exam. Topics

Review of Linear Algebra

Foundations of Cryptography

Matrix Multiplication

Math 240 Calculus III

Lesson 3. Inverse of Matrices by Determinants and Gauss-Jordan Method

Math Camp Notes: Linear Algebra I

Lecture 3: Matrix and Matrix Operations

MATH 1210 Assignment 4 Solutions 16R-T1

Math 320, spring 2011 before the first midterm

ECS130 Scientific Computing. Lecture 1: Introduction. Monday, January 7, 10:00 10:50 am

Digital Workbook for GRA 6035 Mathematics

Linear Algebra V = T = ( 4 3 ).

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

c c c c c c c c c c a 3x3 matrix C= has a determinant determined by

MATH 2030: EIGENVALUES AND EIGENVECTORS

Properties of the Determinant Function

ECON 186 Class Notes: Linear Algebra

Math Camp Lecture 4: Linear Algebra. Xiao Yu Wang. Aug 2010 MIT. Xiao Yu Wang (MIT) Math Camp /10 1 / 88

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

2. Every linear system with the same number of equations as unknowns has a unique solution.

Lecture 10: Determinants and Cramer s Rule

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

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

= 1 and 2 1. T =, and so det A b d

Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane.

CHAPTER 6. Direct Methods for Solving Linear Systems

II. Determinant Functions

MAC Module 3 Determinants. Learning Objectives. Upon completing this module, you should be able to:

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

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

SPRING OF 2008 D. DETERMINANTS

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

Review of linear algebra

and let s calculate the image of some vectors under the transformation T.

Chapter 2. Square matrices

Introduction to Matrices and Linear Systems Ch. 3

1 Multiply Eq. E i by λ 0: (λe i ) (E i ) 2 Multiply Eq. E j by λ and add to Eq. E i : (E i + λe j ) (E i )

1. Linear systems of equations. Chapters 7-8: Linear Algebra. Solution(s) of a linear system of equations (continued)

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

Introduction to Matrix Algebra

3 Matrix Algebra. 3.1 Operations on matrices

Mathematics. EC / EE / IN / ME / CE. for

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

Graphics (INFOGR), , Block IV, lecture 8 Deb Panja. Today: Matrices. Welcome

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

Introduction. Vectors and Matrices. Vectors [1] Vectors [2]

(b) If a multiple of one row of A is added to another row to produce B then det(b) =det(a).

Matrices and Determinants

6.4 Determinants and Cramer s Rule

Transcription:

Materials engineering Collage \\ Ceramic & construction materials department Numerical Analysis \\Third stage by \\ Dalya Hekmat Linear Algebra Lecture 2 1.3.7 Matrix Matrix multiplication using Falk s scheme For practical computation we again use Falk s scheme and evaluate AB C in tabular form as follows: B A C A ( 1 2 3 4, B ( 4 3 2 2 1 1 Evaluate AB as follows 4 3 2 2 1 1 1 2 (1 4 + 2 2 (1 3 + 2 1 (1 2 + 2 1 3 4 (3 4 + 4 2 (3 3 + 4 1 (3 2 + 4 1 Place the elements at the intersection of the rows of the left matrix and the columns of the right matrix The result 4 3 2 2 1 1 1 2 (1 4 + 2 2 (1 3 + 2 1 (1 2 + 2 1 3 4 (3 4 + 4 2 (3 3 + 4 1 (3 2 + 4 1 therefore gives AB ( 8 5 4 20 13 10 1

1.3.8 Differences from multiplication with numbers (i Matrix multiplication is not commutative ( 1 2 4 1 ( 2 2 3 1 AB BA ( 1 2 + 2 3 1 2 + 2 1 4 2 + 1 3 4 2 + 1 1 ( 8 4 11 9 ( 2 2 3 1 ( 1 2 4 1 ( 2 1 + 2 4 2 2 + 2 1 3 1 + 1 4 3 2 + 1 1 ( 10 6 7 7 We must be careful how we multiply out! (ii AB 0 does not imply A 0, B 0 or BA 0 ( 1 1 2 2 ( 1 1 1 1 ( 0 0 0 0 ( 1 1 1 1 ( 1 1 2 2 ( 1 1 1 1 2

(iii AC AD does not necessarily imply C D ( 1 1 2 2 ( 2 1 2 2 ( 4 3 8 6 ( 1 1 2 2 ( 3 0 1 3 ( 4 3 8 6 (iv BUT other properties are similar to numbers A(B + C AB + AC A(BC (ABC distributive law associative law 3

1.4 Transpose of a matrix The transpose of a matrix is obtained by interchanging its rows and columns a T ij a ji for i 1,..., m; j 1,..., n The transpose is denoted by a superscript T and the general matrix given in equation (1 becomes a 11 a 21 a 31... a m1 a 12 a 22 a 32... a m2 A T a 13 a 23 a 33... a m3....... a 1n a 2n a 3n... a mn A ( 1 2 3 5 6 7 A T 1 5 2 6 3 7 If A A T then A is a symmetric matrix, e.g. 3 2 1 A 2 7 0 1 0 8 The matrix transpose also satisfies the following rules: i (A T T A for any matrix A; ii (A + B T A T + B T and (AB T B T A T, provided that matrices A and B have compatible dimensions. 4

< Proof of the identity (AB T B T A T If the rows of A R m n are the vectors a T 1, a T 2,..., a T m R n and the columns of B R n p are b 1, b 2,..., b p R n. Taking the transpose of equation (4 a T 1 b 1 a T 2 b 1... a T m b 1 (AB T a T 1 b 2 a T 2 b 2... a T m b p...... a T 1 b p a T 2 b p... a T m b p For column vectors a i and b j vector multiplication a T i b j is defined as the dot product between a i and b j. The dot product is commutative so a T i b j a i b j b j a j b T j a i which implies that b T 1 a 1 b T 1 a 2... b T 1 a m (AB T b T 2 a 1 b T 2 a 2... b T 2 a m...... BT A T b T p a 1 b T p a 2... b T p a m since B T b T 1 b T 2. b T p and AT ( a 1 a 2... a m. > Here and further in these notes, the material between the markers < and > is for advanced reading. 5

1.5 Determinant of a matrix The determinant of a 2 2 matrix ( a11 a A 12 a 21 a 22 is written det A or A or a 11 a 12 a 21 a 22 a 11a 22 a 12 a 21 A ( 1 2 4 7, det A 7 8 15. The determinant of a 3 3 matrix is written as a 11 a 12 a 13 A a 21 a 22 a 23 a 31 a 32 a 33 a 11 a 22 a 23 a 32 a 33 a 12 a 21 a 23 a 31 a 33 + a 13 a 21 a 22 a 31 a 32 a 11 (a 22 a 33 a 32 a 23 a 12 (a 21 a 33 a 31 a 23 + a 13 (a 21 a 32 a 31 a 22 That is the 3 3 determinant is defined in terms of determinants of 2 2 sub-matrices of A. These are called the minors of A. 6

m 12 a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 a 21 a 23 a 31 a 33 is obtained by suppressing the elements in row 1 and column 2 of matrix A. Cofactors The cofactor c ij is defined as the coefficient of a ij in the determinant A. If is given by the formula c ij ( 1 i+j m ij where the minor is the determinant of order (n 1 (n 1 formed by deleting the column and row containing a ij. s c 11 ( 1 1+1 m 11 +1 c 23 ( 1 2+3 m 23 1 a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 a 22a 33 a 32 a 23 a 11a 32 + a 31 a 12 7

General determinant The value of an n n determinant equals the sum of the products of the elements in any row (or column and their cofactors, i.e. n A a ij c ij, for i 1,..., n 1, or n or A j1 n a ij c ij, for j 1,..., n 1, or n i1 For a 3 3 matrix or det A a 11 c 11 + a 12 c 12 + a 13 c 13 det A a 12 c 12 + a 22 c 22 + a 32 c 32 (1st row (2nd column Points to note: the determinant det A is equal to zero if (i rows or columns of A are multiples of each other, (ii rows or columns are linear combinations of each other, (iii entire rows or columns are zero; if det A 0 the matrix A is called a singular matrix; for any square matrices A and B there holds det A det(a T, det(ab det(a det(b. for the unit matrix I one has det I 1. 8

1.6 The matrix inverse The inverse a 1 of a scalar (a number a is defined by a a 1 1. For square matrices we use a similar definition: the inverse A 1 of a n n matrix A fulfils the relation AA 1 I where I is the n n unit matrix defined earlier. Note: if A 1 exists then det(a det(a 1 det(aa 1 det I 1. Hence, det(a 1 (det A 1. The inverse of is given by since AB A B A 1 ( 3 2 7 5 ( 5 2 7 3 5 2 7 3 3 2 (3 5 2 7 ( 3 2 + 2 3 7 5 (7 5 5 7 ( 7 2 + 5 3 which gives as required. AB ( 1 0 0 1 I 9

The matrix inverse can be computed as follows 1. Find the determinant det A 2. Find the cofactors of all elements in A and form a new matrix C of cofactors, where each element is replaced by its cofactor. 3. The inverse of A is now given as A 1 CT det A Note: the inverse A 1 exists if (and only if det A 0. Find the inverse of 1 1 2 A 3 1 2. 3 2 1 det A 1 1 2 2 1 ( 1 3 2 3 1 + 2 3 1 3 2 1 3 + 1 ( 3 + 2 3 6 Since the determinant is nonzero an inverse exists. 10

Calculate the matrix of minors 1 2 2 1 3 2 3 1 M 1 2 2 1 1 2 3 1 1 2 1 2 1 2 3 2 3 3 3 5 7 1 4 8 2 3 1 3 2 1 1 3 2 1 1 3 1 Modify the signs according to whether i + j is even or odd to calculate the matrix of cofactors 3 3 3 C 5 7 1. 4 8 2 It follows that A 1 1 6 CT 1 3 5 4 3 7 8. 6 3 1 2 To check that we have made no mistake we can compute A 1 A 1 3 5 4 1 1 2 1 0 0 3 7 8 3 1 2 0 1 0. 6 3 1 2 3 2 1 0 0 1 This way of computing the inverse is only useful for hand calculations in the cases of 2 2 or 3 3 matrices. 11