For comments, corrections, etc Please contact Ahnaf Abbas: Sharjah Institute of Technology. Matrices Handout #8.

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

POLI270 - Linear Algebra

MATRICES AND MATRIX OPERATIONS

Chapter 7. Linear Algebra: Matrices, Vectors,

Matrix Basic Concepts

Elementary maths for GMT

MATH Mathematics for Agriculture II

3 Matrix Algebra. 3.1 Operations on matrices

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

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

TOPIC III LINEAR ALGEBRA

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

Fundamentals of Engineering Analysis (650163)

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

UNIT 1 DETERMINANTS 1.0 INTRODUCTION 1.1 OBJECTIVES. Structure

SAMPLE OF THE STUDY MATERIAL PART OF CHAPTER 1 Introduction to Linear Algebra

Section 12.4 Algebra of Matrices

is a 3 4 matrix. It has 3 rows and 4 columns. The first row is the horizontal row [ ]

Matrix operations Linear Algebra with Computer Science Application

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

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

Linear Equations in Linear Algebra

Methods for Solving Linear Systems Part 2

INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW MATRICES

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

Phys 201. Matrices and Determinants

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

22m:033 Notes: 3.1 Introduction to Determinants

Matrices: 2.1 Operations with Matrices

Linear Systems and Matrices

Algebra & Trig. I. For example, the system. x y 2 z. may be represented by the augmented matrix

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

1 Matrices and matrix algebra

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.

Matrices. Chapter Definitions and Notations

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

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

Things we can already do with matrices. Unit II - Matrix arithmetic. Defining the matrix product. Things that fail in matrix arithmetic

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

Math 4377/6308 Advanced Linear Algebra

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

Linear Algebra and Matrix Inversion

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

ECON 186 Class Notes: Linear Algebra

Matrix Arithmetic. j=1

Inverting Matrices. 1 Properties of Transpose. 2 Matrix Algebra. P. Danziger 3.2, 3.3

Lecture Notes in Linear Algebra

Math 320, spring 2011 before the first midterm

E k E k 1 E 2 E 1 A = B

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

Matrix Algebra 2.1 MATRIX OPERATIONS Pearson Education, Inc.

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

Basics. A VECTOR is a quantity with a specified magnitude and direction. A MATRIX is a rectangular array of quantities

Unit 1 Matrices Notes Packet Period: Matrices

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

ICS 6N Computational Linear Algebra Matrix Algebra

Matrix Algebra. Learning Objectives. Size of Matrix

Calculus II - Basic Matrix Operations

Math 147 Section 3.4. Application Example

Matrices and Determinants for Undergraduates. By Dr. Anju Gupta. Ms. Reena Yadav

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

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

Chapter 2. Matrix Arithmetic. Chapter 2

Matrices and Determinants

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

ENGR-1100 Introduction to Engineering Analysis. Lecture 21

Linear Algebra Review

Basic Linear Algebra in MATLAB

MATRICES. knowledge on matrices Knowledge on matrix operations. Matrix as a tool of solving linear equations with two or three unknowns.

Elementary Row Operations on Matrices

Introduction to Matrices

* is a row matrix * An mxn matrix is a square matrix if and only if m=n * A= is a diagonal matrix if = 0 i

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

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

7.6 The Inverse of a Square Matrix

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

A primer on 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.

Linear Algebra V = T = ( 4 3 ).

Math 240 Calculus III

CPE 310: Numerical Analysis for Engineers

Matrices BUSINESS MATHEMATICS

Appendix C Vector and matrix algebra

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Graduate Mathematical Economics Lecture 1

Undergraduate Mathematical Economics Lecture 1

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

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

CLASS 12 ALGEBRA OF MATRICES

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

Digital Workbook for GRA 6035 Mathematics

SAMPLE OF THE STUDY MATERIAL PART OF CHAPTER 1 Introduction to Linear Algebra

Math 343 Midterm I Fall 2006 sections 002 and 003 Instructor: Scott Glasgow

1 - Systems of Linear Equations

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

Linear Algebra Homework and Study Guide

Basic Concepts in Linear Algebra

M. Matrices and Linear Algebra

Linear Algebra Review

CHAPTER 8: Matrices and Determinants

Transcription:

Matrices Handout #8 Topic Matrix Definition A matrix is an array of numbers: a a2... a n a2 a22... a 2n A =.... am am2... amn Matrices are denoted by capital letters : A,B,C,.. Matrix size or rank is determined by the number of rows the number of columns it has. We say A has m rows and n columns or it is an m n matrix. Square Matrix A matrix with the same number of rows as columns:2 2, 3 3, are all square matrices. Identity Matrix Has in each of the positions in the main diagonal and elsewhere. Note that : I is a Square matrix. Matrix Addition If A and B are two matrices of the same size then we define A+B to be the matrix whose elements are the sums of the corresponding elements in A and B. Only matrices of the same size can be added. A + (B + C) = (A+B)+C A B = A + (-B) k(a+b) = ka + kb Matrix Multiplication For the product of two matrices A and B to be defined, the number of columns of A must be the same as the number of rows in B: Interpretation Example: 2 A = is 2 2 3 3 B = 6 8 2 7 C = ( 6 2 3) is 3 is Example2: I = is the 2 2 Identity matrix I = is the 3 3 Identity matrix Example3: 2 9 3 3 Example: 7 + 6 7 = http://www.sit.ac.ae/hnd/index.html 9 8 6

A : m n ; B : n p then AB is defined and of rank m p Properties For any matrices A, B, C such that all the indicated sums and products exist: A(BC) = (AB)C A(B+C) = AB + BC Remark In general, AB may not equal BA. Example: suppose A is 2x3 and B is 3x then AB is defined, but BA is not defined. B(3x), A(2x3) Remark For any matrix A such that all the indicated products exist: IA = AI = A Where I is the identity matrix. Determinant of a square matrix To every square matrix A, there is an assigned number called the determinant of A. Written det A or A. Determinant of a 2x2 matrix a b A = then c d a b A = ad bc c d Determinant of a 3x3 matrix a b c A= d e f then g h i e f d f A = a - b h i g i d +c g Inverse Matrix A square matrix A has an inverse A - if AA - = A - A = I Remarks e h 2 3 2 3 2 26 7 2 3 = 2 38 9 2 6 7 3 2 The product is obtained by multiplying each row of A by the columns of B(first by first and so on) The first entry: (2 3 ) 2 = 2x+ 3x2 +x6 = 6 The second entry: 2 (2 3 ) 3 = 2x2+ 3x3 +x7 = 2 7 and so on Example6: 2 2. A= ; A = =-(-3)=3 3 3 2. A= A = 2 2 3 2 http://www.sit.ac.ae/hnd/index.html 2 2-3 2 +(-) A = 2(-2 + 2) 3( 2) -( +) A = 2(-8) -3(-2) -() A = -36 + 6 6 = - 6 Example7:

.Only square matrices may Note that,for a 2x2 matrix, the inverse admit an inverse. is obtained by switching the diagonal 2.When a square matrix has an terms a and d, changing the sign of the inverse,it has only one(unique) off diagonal terms b and c and finally 3.A square matrix may have dividing by the determinant of the no inverse.if A = then A - matrix: ad bc does not exist. If ad bc =,then A - does not Inverse of a 2x2 matrix exist. a b A = 2 then A= ; ad bc = ()() (3)(-2)= c d 3 d b A - = 2 2 ad bc c a A - 2 = = Inverse of a 3x3 matrix 3 3 = 3 a a2 a3 A= a2 a22 a23 2 The matrix A = has no inverse a3 a32 6 3 We define the cofactor of a ij since A = ad bc = (2)(3) ()(6) = denoted by A ij as : 2 3 A ij = (- ) i+j M ij Example8:A= 2 we know We call the determinant M ij, the minor of a ij. The above matrix has 9 A = -6 from Example6 above. cofactors : 2 A a A =(-) + 22 a23 a22 a =(-) + = -8 23 = a32 a32 2 A a A 2 =(-) +2 2 a23 a2 a 2 =(-) +2 = -(-2) = +2 23 =- a3 a3 A 3 =(-) +3 = and so on A A2 A3 Similarly: A A - 2 = -, A 22 =, A 23 =, = A2 A22 A32 A 3 =-, A 32 =-, A 33 =-8 ; then A - = A A3 A23 A33 9 Note the way in which A ij s 8 23 6 23 are placed. 7 2 2 = 6 23 23 23 Solving Systems with matrices 8 2 Consider the system: 23 6 23 ax + by = c Multiplying each entry by -/6. http://www.sit.ac.ae/hnd/index.html 3

a x + b y = c a b x Let A = ; X = a' b' y c and B= c' Since a b x ax + by AX = = a' b' y a' x + b' y the original system is equivalent to the single matrix system : AX = B A - AX = A - B (multiplying both sides by A - ) IX = A - B ( A - A = I ) X = A - B ( IX = X ) Conclusion If AX = B X = A - B That is, AX = B has a solution if and only if A - exists This implies the following: A square matrix A is invertible(has an inverse) if and only if AX = B has a unique solution. Example9:Solve the system : x +.y = 8 2x + 3y =. A=, since the 2 3 determinant of A: A = ()(3) (2)(.) = then A - does not exist and hence the above system has no solution. Example: Solve the system : -x -2y + 2z = 9 2x + y z = - 3 3x 2y + z = -6 We have AX = B where 2 2 x A = 2 ; X = y ; B = 3 2 z Then X = A - B 2 3 3 A - = 7 3 3 7 8 3 3 2 x 3 3 9 X = y = 7 3 3 3 = z 7 8 6 9 3 3 Thus the solution is (,, 9) Example: Solve the matrix system X = D + AX X AX = D with X = IX IX AX = D (I A )X = D X = (I A ) - D 9 3 6 http://www.sit.ac.ae/hnd/index.html

Solving A system of three equations with three unknowns when they ask for Matrix method,you can not use Algebra, substitution, manipulation etc... For example : x+y+z = 6 ---------() 2x - y + z = 3 ----- (2) x + z = ---------- (3) From () : z = 6 - x - y Substitute for z in (2) and (3) : (2): 2x - y + 6 - x - y = 3 implies x - 2y = -3 ----() (3): x + 6 - x - y = implies y = 2 putting this in () : x - 2(2) = - 3 implies x = Finally : z = 6 - x - y = 6 - - 2 = 3 Hence (x,y,z) = (,2,3) Instead,you need to construct the matrix (Read slowly and carefully, don t move to another step before understanding the previous one): 2 6 3 6 --------R 2-3 --------R2 --------R3 You need to make it(note the three zeros) :??????? The normal procedure is to manipulate this in 3 steps : R with R2 ; R with R3 ; R2 with R3 Our aim is to:.)make the first element of the second row (which is 2) a zero (this can be done by playing with R and R2) 2.)Make the first element in the third row (which is ) a zero(this can be done by playing with R and R3) 3.)Make the second element of the third row a zero we need to play with R2 and R3 http://www.sit.ac.ae/hnd/index.html

Step : R with R2 : We do this by multiplying R by - 2 and then add it to R2 : -2R + R2 : - 3 - - 9 The Matrix becomes: 6 --------R -3 - - 9--------R2 --------R3 Note that we only replaced R2 ; R is left un tampered. Step2 : R with R3 : to make the first element in the third row ( which is ), it is enough to calculate : -R + R3 : - -2 The matrix becomes : 6 --------R -3 - - 9--------R2 - -2 --------R3 Step3 : R2 with R3 to make the second element of the third row (which is - ) a zero R2-3R3 : - - 3 The Matrix becomes : 6 --------R -3 - - 9--------R2 - -3 --------R3 Now the last row means : x + y - z = -3 implies z = 3 Second row : x - 3y - z = - 9, substitute for z (this is called back-substitution): -3y - 3 = - 9 implies y = 2 First row : x + y + z = 6 implies x + 2 + 3 = 6 implies x = Hence (x,y,z) = (,2,3) http://www.sit.ac.ae/hnd/index.html 6

Special cases : () Case of impossible solution : we say the system is inconsistent This occurs when the last row in the final matrix looks like: N where N is any number. In this case X z = N which is impossible (2) Case of infinite number of solutions: This occurs when the last row in the final matrix looks like: In this case X z =, here z could be any real number, and the system has infinite number of solution Assume z = t (t any real number) e.g. 3 2 Here X z =, let z = t Row2: y + 2z = implies y = -2z = -2t Row: x +y + z = 3 implies x -2t + t = 3, x = t +3 Hence (x,y,z) = (t+3,-2t,t) where t is any real number. http://www.sit.ac.ae/hnd/index.html 7