680 likes | 848 Views
Section 2.1 Operations with Matrices. Notation: If A is a matrix with m rows and n columns, then we say A is an m x n matrix and we can write: A = [ a ij ]. Terminology: Column matrix (column vector) – A matrix with just one column.
E N D
Notation: If A is a matrix with m rows and n columns, then we say A is an mxn matrix and we can write: A = [ aij ]
Terminology: Column matrix (column vector) – A matrix with just one column. Row matrix (row vector) – A matrix with just one row.
Equality of Matrices Two matrices A and B are said to be equal if aij = bij for all possible i and j.
Addition/Subtraction of Matrices, Scalar Multiplication Ex. Let (a) 2A = (b)A + B = (c)A –2B =
Matrix Multiplication Let You might think that AB = Actually, AB =
Matrix Multiplication Dot Products = a1b1 + a2b2 + a3b3 + . . . + anbn
Matrix Multiplication Dot Products = a1b1 + a2b2 + a3b3 + . . . + anbn Note: In a dot product the row matrix must come first and the column matrix must come second.
Matrix Multiplication Examples: = = (3)(2) + (1)(1) + (–4)(5) + (2)(7) = 1 (2)(1) + (1)(2) + (5)(3) = 19
Matrix Multiplication Some dot products don't make sense. = (3)(2) + (1)(1) + (–4)(5) + (2)( )
Matrix Multiplication To compute AB, we must multiply each row in A with each column in B. If A is an mxn matrix and B is an nxp matrix, then C = AB is an mxp matrix and cij = ai1b1j+ ai2b2j+ ai3b3j+ . . . + ainbnj
Matrix Multiplication AB 22 2 3 50
Matrix Multiplication AB –6 6 9 2 4 3 4 –7 3
Matrix Multiplication Ex. Determine if the following matrix multiplications can be done. If they can, give the dimensions of the resulting matrix. But do not actually perform the multiplication. (a)
Matrix Multiplication Ex. Determine if the following matrix multiplications can be done. If they can, give the dimensions of the resulting matrix. But do not actually perform the multiplication. (b)
Matrix Multiplication Ex. Determine if the following matrix multiplications can be done. If they can, give the dimensions of the resulting matrix. But do not actually perform the multiplication. (c)
Matrix Multiplication Ex. Determine if the following matrix multiplications can be done. If they can, give the dimensions of the resulting matrix. But do not actually perform the multiplication. (d)
Matrix Multiplication Ex. Determine if the following matrix multiplications can be done. If they can, give the dimensions of the resulting matrix. But do not actually perform the multiplication. (e)
Matrix Multiplication Ex. Use a calculator to perform the following matrix multiplication.
Matrix Multiplication Ex. Let and . Compute AB and then compute BA.
Matrix Multiplication A system of many linear equations can be handled by one matrix equation: AX = B. 3x – y – z = 5 4x + 2y + 6z = –2 → 5x + 3y – 8z = 7
Matrix Multiplication Solve AX = B for X.
A system of linear equations can be written as a linear combination of column vectors. Ex. Write the following system as a linear combination of column vectors: 3x – 2y + z = 3 –x + 3y + 2z = 4 x– y = 3
Def. The transpose of an mxn matrix A, denoted AT, is an nxm matrix defined by the following: If A = [aij] then AT = [ aji ].
Recall that for matrices A and B, it is not always true that AB = BA. Another property which is not always true for matrices (but we’d like to be true): If AC = BC then A = B.
Ex. Let , , and . Compute AC and BC. Verify that AC = BC, but A ≠ B.
Properties Let A, B, and C be matrices and let s and t be scalars. 1. A + B = B + A 2. A + (B + C) = (A + B) + C 3. s(tA) = (st)A 4. s(A + B) = sA + sB 5. (s + t)A = sA + tA 6. A(BC) = (AB)C 7. A(B + C) = AB + AC 8. (A + B)C = AC + BC
Properties Let A, B, and C be matrices and let s and t be scalars. 9. A + O = A 10. A + (-A) = O 11. If sA = O then either s = 0 or A = O 12. AI = A 13. IA = A
Another property which is not always true for matrices: If AB = O (the zero matrix) then A = O or B = O.
Ex. Let and Verify that AB = O, but A ≠ O and B ≠ O
Powers of a (square) matrix. Ak = A·A·A·····A (k factors of A multiplied together).
Ex. Let A2 = A3 = A39 =
Ex. Let A0 = (guess) A-1 = (guess)
For scalars, a-1 = 1/a . The actual definition of a-1 is: If a ≠ 0 then there is a unique number denoted a-1 so that a · a-1 = 1 and a-1 · a = 1.
For scalars, a-1 = 1/a . The actual definition of a-1 is: If a ≠ 0 then there is a unique number denoted a-1 so that a · a-1 = 1 and a-1 · a = 1. If A is a square matrix with ____ , then there is a unique matrix denoted A-1 so that A · A-1 = I and A-1 · A = I.
Terminology If A-1 exists, then we say that A is invertible (non-singular). If no such A-1 exists then we say that A is singular (non-invertible).
Ex. Let and . Show that B = A-1.
Solve each of the following systems of equations, then do so all at once. 2x –4y = –6 2x –4y = 10 3x + y = 5 3x + y = 8 1/2R1→R1 1/2R1→R1 R2 –3R1→R2 R2 –3R1→R2 1/7R2→R2 1/7R2→R2 R1 +2R2→R1 R1 +2R2→R1 (1, 2) (3, 1)
Solving both at once: Solving each separately: 1/2R1→R1 1/2R1→R1 R2 –3R1→R2 R2 –3R1→R2 1/7R2→R2 1/7R2→R2 R1 +2R2→R1 R1 +2R2→R1 (3, 1) (1, 2) (1, 2) and (3, 1)
Let's compute A-1 if we have Let Our job is to determine the values of a, b, c, d. Now, Multiply the two matrices on the left to get: Since the two matrices are equal, the corresponding components of these two matrices must be equal. This gives us four equations in four unknowns: 2a + c = 1 3a + 2c = 0 2b + d = 0 3b + 2d = 1 We can separate this into two sets of two equations with two unknowns: 2a + c = 1 2b + d = 0 3a + 2c = 0 3b + 2d = 1