1
MATHEMATICS 1 CONTENTS Matrices Special matrices Operations with - - PowerPoint PPT Presentation
MATHEMATICS 1 CONTENTS Matrices Special matrices Operations with - - PowerPoint PPT Presentation
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
2
CONTENTS Matrices Special matrices Operations with matrices Matrix multipication More operations with matrices Matrix transposition Symmetric matrices Old exam question Further study
3
MATRICES A matrix is a rectangular array of numbers or variables Notation βͺ we often use bold non-italic capital letters to refer to them
βͺ π = 3 2 β2 12.5 β12.7 , π = π1,1 π1,2 β― π1,π π2,1 π2,2 β― π2,π β― β― β― β― ππ,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
4
MATRICES Some notes on notation βͺ brackets:
- r
βͺ indexing elements: πππ or ππ,π βͺ We define π = πππ πΓπ as the matrix of order π Γ π matrix with elements πππ, π = 1, β¦ π, π = 1, β¦ , π: π = π11 π12 β― π1π π21 π22 β― π2π β― β― β― β― ππ1 ππ2 β― πππ
5
MATRICES In π = 3 2 β2 12.5 β12.7 the element π2,1 refers to βͺ the cell at row 2 and column 1 βͺ 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 ππ,π
Notice the order
- f the indices
A column is vertical ...
6
EXERCISE 1 Given is π = π¨ππ = 1 β3 5 4 2 . Find π¨1,2 + π¨2,2.
8
SPECIAL MATRICES Zero matrix: π = β― β― β― β― β― β― β― βͺ for a matrix of any order Identity matrix: π = 1 β― 1 β― β― β― β― β― β― 1 βͺ for a square matrix (so, π = π)
9
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? βͺ not available for matrices βͺ instead: matrix multiplication
The matrices π and π must be of equal order
10
EXERCISE 2 Given is π = 2 β1 3 and π = 0 2 1 β3 . Find 2π β π.
12
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
13
MATRIX MULTIPLICATION Illustration:
βͺ ππ 1,2 = Οπ=1
2
π1,πππ,2 = π1,1π1,2 + π1,2π2,2 βͺ ππ 3,3 = Οπ=1
2
π3,πππ,3 = π3,1π1,3 + π3,2π2,3
14
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 ππ ππ ?
15
EXERCISE 3 Given is π = 2 β1 3 and π = 0 2 1 β3 . Find π β π.
17
MATRIX MULTIPLICATION It follows that (with suitable π, π, and π) βͺ π π + π = ππ + ππ (distributive property) βͺ ππ π = π ππ = πππ (associative property) But not that βͺ ππ = ππ (commutative property) βͺ example: take π = 1 2 3 6 and π = 2 β8 β1 4 βͺ ππ = 0 0 , but ππ = β22 β44 11 22 By the way, notice that in this example: βͺ ππ = π, while π β π and π β π βͺ while for numbers ππ = 0 β π = 0 or π = 0
18
MATRIX MULTIPLICATION Some properties (for suitable π, π, and π): ππ = π and ππ = π ππ = π and ππ = π ππ = ππ β π = π βͺ example: π = 1 2 3 6 , π = 3 β4 β2 3 , and π = 1 4 β1 β1 βͺ ππ = ππ = β1 2 β3 6
19
MATRIX MULTIPLICATION What about powers of a matrix? Let us define π2 = ππ for any square matrix π βͺ why square? Likewise π3 = πππ, etc. βͺ what is πππ: is it π ππ or is it ππ π? More in general ππ = α π π = 1 πππβ1 π = 2,3, β¦ And what do you think of π0?
mind the difference between βa square matrixβ and βa squared matrixβ
20
EXERCISE 4 Given is π = 2 β1 3 and π = 0 2 1 β3 . Find ππ β π.
22
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
- f division by a matrix:
matrix inversion
23
MATRIX TRANSPOSITION Consider π = ππΓπ = π1,1 π1,2 β― π1,π π2,1 π2,2 β― π2,π β― β― β― β― ππ,1 ππ,2 β― ππ,π The transpose of π, denoted by πβ² is given by πβ² = π1,1 π2,1 β― ππ,1 π1,2 π2,2 β― ππ,2 β― β― β― β― π1,π π2,π β― ππ,π In words, πβ² has π rows and π columns so πβ² is a (π Γ π)- matrix and row π of π is column π of πβ²
βreflection in the diagonalβ
24
MATRIX TRANSPOSITION Some properties (for suitable π, π, and π): βͺ πβ² β² = π βͺ π + π β² = πβ² + πβ² βͺ ππ β² = πβ²πβ² and (therefore!) πππ β² = πβ²πβ²πβ² βͺ ππ β² = ππβ²
25
SYMMETRIC MATRICES Definition The matrix π is symmetric if and only if π = πβ² βͺ so if and only if πππ = πππ for all π, π βͺ note: only a square matrix can be symmetric Example: π = 1 3 3 6 is symmetric If π = 1 2 β1 3 6 5 then ππβ² is symmetric βͺ note: πβ²π is symmetric too but in general πβ²π β ππβ² In general πβ²π is symmetric for an arbitrary matrix π βͺ and so is ππβ² (why?)
You can see this for the example without even doing a calculation!
26
EXERCISE 5 Given is π = 4 β2 5 3 β1 . Find πβ².
28
OLD EXAM QUESTION 22 October 2014, Q1d
29
OLD EXAM QUESTION 10 December 2014, Q1f
30
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