Matrices BUSINESS MATHEMATICS 1
CONTENTS Matrices Special matrices Operations with matrices Matrix multipication More operations with matrices Matrix transposition Symmetric matrices Old exam question Further study 2
MATRICES A matrix is a rectangular array of numbers or variables Notation βͺ we often use bold non-italic capital letters to refer to them π 1,1 π 1,2 β― π 1,π 3 2 π 2,1 π 2,2 β― π 2,π , π = βͺ π = β2 0 β― β― β― β― 12.5 β12.7 π π,1 π π,2 β― π π,π Terminology βͺ these matrices consist of 6 respectively ππ elements βͺ the order (or size is) 3 Γ 2 respectively π Γ π βͺ when π = π , the matrix is a square matrix βͺ when π β π , the matrix is rectangular 3
MATRICES Some notes on notation βͺ brackets: or βͺ indexing elements: π ππ or π π,π βͺ We define π = π ππ πΓπ as the matrix of order π Γ π matrix with elements π ππ , π = 1, β¦ π , π = 1, β¦ , π : π 11 π 12 β― π 1π π 21 π 22 β― π 2π π = β― β― β― β― π π1 π π2 β― π ππ 4
MATRICES Notice the order 3 2 of the indices In π = the element π 2,1 refers to β2 0 12.5 β12.7 βͺ the cell at row 2 and column 1 A column is vertical ... βͺ so to β2 βͺ while π 1,2 is in row 1 and column 2 and has value 2 The order of π is 3 Γ 2 , not 2 Γ 3 Conventions: βͺ element π row index,column index βͺ order π row Γ π column βͺ when no ambiguity you write π ππ instead of π π,π 5
EXERCISE 1 Given is π = π¨ ππ = 1 0 β3 . Find π¨ 1,2 + π¨ 2,2 . 5 4 2 6
SPECIAL MATRICES 0 0 β― 0 0 0 β― 0 Zero matrix: π = β― β― β― β― 0 0 β― 0 βͺ for a matrix of any order 1 0 β― 0 0 1 β― 0 Identity matrix: π = β― β― β― β― 0 0 β― 1 βͺ for a square matrix (so, π = π ) 8
OPERATIONS WITH MATRICES We can define some basic operations with matrices, similar to the basic operations with vectors βͺ addition ( π + π , through π + π ππ = π ππ + π ππ ) βͺ multiplication ( ππ , through ππ ππ = π Γ π ππ ) βͺ negative matrix ( βπ , through βπ ππ = βπ ππ ) βͺ subtraction ( π β π , through π β π ππ = π ππ β π ππ ) βͺ equality ( π = π , through π ππ = π ππ ) But what about the inner product? The matrices π βͺ not available for matrices and π must be of equal order βͺ instead: matrix multiplication 9
EXERCISE 2 Given is π = 2 β1 and π = 0 2 β3 . Find 2π β π . 3 0 1 10
MATRIX MULTIPLICATION Let π and π be two matrices, of order π Γ π respectively π Γ π We define the matrix product ππ as π ππ ππ = ΰ· π ππ π ππ , π = 1, β¦ , π, π = 1, β¦ , π π=1 βͺ alternatively written as π β π βͺ but do not write π Γ π Notice: the result of multiplication of two matrices is a matrix βͺ different for the inner product of two vectors 12
MATRIX MULTIPLICATION Illustration: 2 βͺ ππ 1,2 = Ο π=1 π 1,π π π,2 = π 1,1 π 1,2 + π 1,2 π 2,2 2 βͺ ππ 3,3 = Ο π=1 π 3,π π π,3 = π 3,1 π 1,3 + π 3,2 π 2,3 13
MATRIX MULTIPLICATION Notice the orders of the matrices: π πΓπ π πΓπ = ππ πΓπ βͺ so #columns in π should match #rows in π βͺ and #rows in ππ is #rows in π βͺ and #columns in ππ is #columns in π Consequences: given a matrix π or order 3 Γ 3 and a matrix π of order 3 Γ 2 βͺ ππ exists and is of order 3 Γ 2 βͺ ππ does not exist βͺ what about ππ ? and ππ ? and ππ ππ ? 14
EXERCISE 3 Given is π = 2 β1 and π = 0 2 β3 . Find π β π . 3 0 1 15
MATRIX MULTIPLICATION It follows that (with suitable π , π , and π ) βͺ π π + π = ππ + ππ (distributive property) ππ π = π ππ = πππ (associative property) βͺ But not that βͺ ππ = ππ (commutative property) βͺ example: take π = 1 2 2 β8 6 and π = 3 β1 4 βͺ ππ = 0 0 0 , but ππ = β22 β44 0 11 22 By the way, notice that in this example: βͺ ππ = π , while π β π and π β π βͺ while for numbers ππ = 0 β π = 0 or π = 0 17
MATRIX MULTIPLICATION Some properties (for suitable π , π , and π ): ππ = π and ππ = π ππ = π and ππ = π ππ = ππ β π = π βͺ example: π = 1 2 3 β4 6 , π = , and π = 3 β2 3 1 4 β1 β1 βͺ ππ = ππ = β1 2 β3 6 18
MATRIX MULTIPLICATION What about powers of a matrix? Let us define π 2 = ππ for any square matrix π βͺ why square? mind the difference Likewise π 3 = πππ , etc. between βa square matrixβ and βa squared matrixβ βͺ what is πππ : is it π ππ or is it ππ π ? π π = 1 More in general π π = α ππ πβ1 π = 2,3, β¦ And what do you think of π 0 ? 19
EXERCISE 4 Given is π = 2 β1 and π = 0 2 β3 . Find π π β π . 3 0 1 20
MORE OPERATIONS WITH MATRICES Moral 1: every operation must be explicitly defined Moral 2: mathematicians try to find a definition that βͺ is useful (why ππ is useful will become clear later on) βͺ reduces to the similar operation for scalars Not all scalar operations have an extension to matrices Example: βͺ ln π 1 βͺ We will soon introduce a sort π of division by a matrix: βͺ π matrix inversion 22
MATRIX TRANSPOSITION π 1,1 π 1,2 β― π 1,π π 2,1 π 2,2 β― π 2,π Consider π = π πΓπ = β― β― β― β― π π,1 π π,2 β― π π,π The transpose of π , denoted by π β² is given by π 1,1 π 2,1 β― π π,1 π 1,2 π 2,2 β― π π,2 π β² = β― β― β― β― βreflection in the π 1,π π 2,π β― π π,π diagonalβ In words, π β² has π rows and π columns so π β² is a ( π Γ π )- matrix and row π of π is column π of π β² 23
MATRIX TRANSPOSITION Some properties (for suitable π , π , and π ): π β² β² = π βͺ π + π β² = π β² + π β² βͺ ππ β² = π β² π β² and (therefore!) πππ β² = π β² π β² π β² βͺ ππ β² = ππ β² βͺ 24
SYMMETRIC MATRICES Definition The matrix π is symmetric if and only if π = π β² βͺ so if and only if π ππ = π ππ for all π , π You can see this for the βͺ note: only a square matrix can be symmetric example without even Example: π = 1 3 doing a calculation! 6 is symmetric 3 If π = 1 2 β1 then ππ β² is symmetric 3 6 5 βͺ note: π β² π is symmetric too but in general π β² π β ππ β² In general π β² π is symmetric for an arbitrary matrix π βͺ and so is ππ β² (why?) 25
EXERCISE 5 Given is π = 4 β2 5 β1 . Find π β² . 0 3 26
OLD EXAM QUESTION 22 October 2014, Q1d 28
OLD EXAM QUESTION 10 December 2014, Q1f 29
FURTHER STUDY Sydsæter et al. 5/E 9.2-9.3 Tutorial exercises week 3 matrices matrix addition, matrix multiplication, matrix transpose matrix multiplication is not commutative 30
Recommend
More recommend