Chapter 2 Section 3 Arithmetic Operations on Matrices.
-
date post
22-Dec-2015 -
Category
Documents
-
view
256 -
download
3
Transcript of Chapter 2 Section 3 Arithmetic Operations on Matrices.
Matrices
• Rectangular array of numbers• Often described by the size (the number of
rows and the number of columns). The matrix
1 2 3 2 3 40 8 96 7 6
is a 4 x 3 matrix. Four rows and 3 columns
Different Types of Matrices
• See pages 74 – 75 for the definitions of the following matrices:
Row Matrix
Column Matrix
Square Matrix
When Two Matrices are Equal
Two matrices, A and B, are equal when:
1. They both are the same size
AND
2. When ALL the corresponding entries are the equal.
Addition and Subtraction of Matrices
• To add or subtract two matrices together, the two matrices must be exactly the same size. When they are the same size, then add (or subtract) corresponding entries.
• See the examples at the top of page 76.
• If the sizes of the two matrices are not the same, then their sum (or difference) is undefined.
Multiplication of Matrices
• A little more complicated than addition and subtraction.
• In order to multiply matrix A to matrix B (i.e. A · B )
• REQUIREMENT: The number of columns in the first matrix (A) must equal the number or rows in the second matrix (B). This is referred to as the inner dimensions being equal.
Inner Dimensions
Matrices: A · B = C Dimensions: m x n r x c m x c
Must be equal
1. If the inner dimensions are not the same, then the product
of the two matrices is said to be undefined.
2. If the inner dimensions are the same, then the size of the
resulting matrix is the number of rows from the first matrix and the number of columns from the second matrix
Size of resultingmatrix
Example 3(a) (page 80)
Calculate the product, if defined.
3 – 14 01 5
1 05 – 4 2 – 1
Answer: The product is undefined, since the number of columns inthe first matrix (2) is not equal to the number of row in the secondmatrix (3).
= Undefined
Example 3(b) (page 80)
Calculate the product, if defined.
3 – 14 01 5
5 4 – 2 3
Answer:
=3 · 5 + (– 1)·(– 2) 3 · 4 + (– 1) · 32 · 5 + 0 · (– 2) 2 · 4 + 0 · 31 · 5 + 5 · (– 2) 1 · 4 + 5 · 3
=17 910 8– 5 19
Example 5 (page 79)
Calculate the product using the finger method.
1 53 2
1 2 1 0
Answer:
=1 · 1 + 5 ·1 1 · 2 + 5 · 03 · 1 + 2 · 1 3 · 2 + 2 · 0
= 6 25 6
Intermediate matrix that is not shown in textbook
Exercise 21 (page 85)
Calculate the product by hand.
3 10 2
1 4 3 5
Answer:
=3 · 1 + 1 ·3 3 · 4 + 1 · 50 · 1 + 2 · 3 0 · 4 + 2 · 5
= 6 176 10
Exercise 43 (a)
AB =6 8 2
2 5 3
201530
Calculate AB.
Solution:
=6 · 20 + 8 · 15 + 2 · 30
2 · 20 + 5 · 15 + 3 · 30
=340
265
Identity Matrix ( I n )
• The identity matrix is to matrix multiplication as 1 is to multiplication of numbers.
• A·I = A• I·A = A
• The identity matrix– Is always a square matrix
– Has 1’s on the diagonal (from top left corner to bottom right corner) and 0’s everywhere else.
Matrix Equation Form
• A system of equations like:
– 2x + 4y = 2
– 3x + 7y = 7
can be rewritten as the matrix equation:
– 2 4 x 2
– 3 7 y 7=
A =X B·
Matrix Equation Form (continued)
• Where:– A is the matrix of coefficients– X is the matrix of variables– B is the matrix of constants
Exercise 33 (page 85)
• Give the system of linear equations that is equivalent to the matrix equation:
1 2 3 x 10
4 5 6 y = 11
7 8 9 z 12
Exercise 33 (solution)
• Using the finger method of multiplication:
1x + 2y + 3z 104x + 5y + 6z = 117x + 8y + 9z 12
x + 2y + 3z = 104x + 5y + 6z = 117x + 8y + 9z = 12
Exercise 37 (page 85)
• Write the system of linear equations in matrix equation form (i.e. Change it to the form of A X = B):
x – 2y + 3z = 5 y + z = 6 z = 2