Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 2 Matrices Lat Time - Course Overview

Similar presentations


Presentation on theme: "Lecture 2 Matrices Lat Time - Course Overview"— Presentation transcript:

1 Lecture 2 Matrices Lat Time - Course Overview
- Introduction to Systems of Linear Equations - Matrices, Gaussian Elimination and Gauss-Jordan Elimination Reading Assignment: Chapter 1 of Text Homework #1_Chap1 Assigned (Due 10/05) Elementary Linear Algebra R. Larsen et al. (5 Edition) TKUEE翁慶昌-NTUEE SCC_09_2007

2 Lecture 2: Matrices Today
Gaussian Elimination and Gauss-Jordan Elimination Operation with Matirces Properties of Matrix Operations Reading Assignment: Secs of Textbook Homework #1_Chap1 Assigned (Due 10/05) Next Time Elementary Matrices Applications: Economics and Mgmt. and Engrg. Determinant of a Matrix Reading Assignment: Secs 2.4, 2.5&3.1 of Textbook Homework #1 Due and #2 Assigned

3 Lecture 2: Matrices Today Operation with Matirces
Properties of Matrix Operations Inverse of a Matrix

4 2.1 Operations with Matrices
Matrix: (i, j)-th entry: row: m column: n size: m×n

5 i-th row vector row matrix j-th column vector column matrix Square matrix: m = n

6 Diagonal matrix: Trace:

7 Ex:

8 Equal matrix: Ex 1: (Equal matrix)

9 Matrix addition: Ex 2: (Matrix addition)

10 Scalar multiplication:
Matrix subtraction: Ex 3: (Scalar multiplication and matrix subtraction) Find (a) 3A, (b) –B, (c) 3A – B

11 Sol: (a) (b) (c)

12 Matrix multiplication:
where Size of AB Notes: (1) A+B = B+A, (2)

13 Ex 4: (Find AB) Sol:

14 Matrix form of a system of linear equations:
= A x b

15 Partitioned matrices:
submatrix

16 linear combination of column vectors of A
a linear combination of the column vectors of matrix A: = = = linear combination of column vectors of A

17 Keywords in Section 2.1: row vector: 列向量 column vector: 行向量
diagonal matrix: 對角矩陣 trace: 跡數 equality of matrices: 相等矩陣 matrix addition: 矩陣相加 scalar multiplication: 純量積 matrix multiplication: 矩陣相乘 partitioned matrix: 分割矩陣

18 2.2 Properties of Matrix Operations
Three basic matrix operators: (1) matrix addition (2) scalar multiplication (3) matrix multiplication Zero matrix: Identity matrix of order n:

19 Properties of matrix addition and scalar multiplication:
Then (1) A+B = B + A (2) A + ( B + C ) = ( A + B ) + C (3) ( cd ) A = c ( dA ) (4) 1A = A (5) c( A+B ) = cA + cB (6) ( c+d ) A = cA + dA

20 Properties of zero matrices:
Notes: 0m×n: the additive identity for the set of all m×n matrices –A: the additive inverse of A

21 Properties of matrix multiplication:
(1) A(BC) = (AB ) C (2) A(B+C) = AB + AC (3) (A+B)C = AC + BC (4) c (AB) = (cA) B = A (cB) Properties of the identity matrix:

22 Transpose of a matrix:

23 Ex: (Find the transpose of the following matrix)
(b) (c) Sol: (a) (b) (c)

24 Properties of transposes:

25 Q: Will A stay symmetric by a row exchange?
Symmetric matrix: A square matrix A is symmetric if A = AT Skew-symmetric matrix: A square matrix A is skew-symmetric if AT = –A Ex: is symmetric, find a, b, c? Sol:

26 Ex: is a skew-symmetric, find a, b, c? Sol: Note: is symmetric Pf:

27 (Commutative law for multiplication)
Real number: ab = ba (Commutative law for multiplication) Matrix: Three situations: (Sizes are not the same) (Sizes are the same, but matrices are not equal)

28 Ex 4: Sow that AB and BA are not equal for the matrices. and Sol: Note:

29 Real number: (Cancellation law) Matrix: (1) If C is invertible, then A = B (Cancellation is not valid)

30 Ex 5: (An example in which cancellation is not valid)
Show that AC=BC Sol: So But

31 Keywords in Section 2.2: zero matrix: 零矩陣 identity matrix: 單位矩陣
transpose matrix: 轉置矩陣 symmetric matrix: 對稱矩陣 skew-symmetric matrix: 反對稱矩陣

32 2.3 The Inverse of a Matrix Inverse matrix: Consider
Then (1) A is invertible (or nonsingular) (2) B is the inverse of A Note: A matrix that does not have an inverse is called noninvertible (or singular).

33 Thm 2.7: (The inverse of a matrix is unique)
If B and C are both inverses of the matrix A, then B = C. Pf: Consequently, the inverse of a matrix is unique. Notes: (1) The inverse of A is denoted by

34 Find the inverse of a matrix by Gauss-Jordan Elimination:
Ex 2: (Find the inverse of the matrix) Sol:

35 Thus

36 Note: If A can’t be row reduced to I, then A is singular.

37 Ex 3: (Find the inverse of the following matrix)
Sol:

38 So the matrix A is invertible, and its inverse is
Check:

39 Power of a square matrix:

40 Thm 2.8: (Properties of inverse matrices)
If A is an invertible matrix, k is a positive integer, and c is a scalar, then

41 Thm 2.9: (The inverse of a product)
If A and B are invertible matrices of size n, then AB is invertible and Pf: Note:

42 Thm 2.10 (Cancellation properties)
If C is an invertible matrix, then the following properties hold: (1) If AC=BC, then A=B (Right cancellation property) (2) If CA=CB, then A=B (Left cancellation property) Pf: Note: If C is not invertible, then cancellation is not valid.

43 (Left cancellation property)
Thm 2.11: (Systems of equations with unique solutions) If A is an invertible matrix, then the system of linear equations Ax = b has a unique solution given by Pf: ( A is nonsingular) (Left cancellation property) This solution is unique.

44 Note:

45 Keywords in Section 2.3: inverse matrix: 反矩陣 invertible: 可逆
nonsingular: 非奇異 singular: 奇異 power: 冪次

46 2.4 Elementary Matrices Row elementary matrix:
An nn matrix is called an elementary matrix if it can be obtained from the identity matrix I by a single elementary operation. Three row elementary matrices: Interchange two rows. Multiply a row by a nonzero constant. Add a multiple of a row to another row. Note: Only do a single elementary row operation.

47 Ex 1: (Elementary matrices and nonelementary matrices)

48 Thm 2.12: (Representing elementary row operations)
Let E be the elementary matrix obtained by performing an elementary row operation on Im. If that same elementary row operation is performed on an mn matrix A, then the resulting matrix is given by the product EA. Notes:

49 Ex 3: (Using elementary matrices)
Find a sequence of elementary matrices that can be used to write the matrix A in row-echelon form. Sol:

50 row-echelon form

51 Row-equivalent: Matrix B is row-equivalent to A if there exists a finite number of elementary matrices such that

52 Thm 2.13: (Elementary matrices are invertible)
If E is an elementary matrix, then exists and is an elementary matrix. Notes:

53 Ex: Elementary Matrix Inverse Matrix

54 Thus A can be written as the product of elementary matrices.
Thm 2.14: (A property of invertible matrices) A square matrix A is invertible if and only if it can be written as the product of elementary matrices. Assume that A is the product of elementary matrices. (a) Every elementary matrix is invertible. (b) The product of invertible matrices is invertible. Thus A is invertible. Pf: (2) If A is invertible, has only the trivial solution. (Thm. 2.11) Thus A can be written as the product of elementary matrices.

55 Ex 4: Find a sequence of elementary matrices whose product is Sol:

56 Note: If A is invertible

57 Thm 2.15: (Equivalent conditions)
If A is an nn matrix, then the following statements are equivalent. (1) A is invertible. (2) Ax = b has a unique solution for every n1 column matrix b. (3) Ax = 0 has only the trivial solution. (4) A is row-equivalent to In . (5) A can be written as the product of elementary matrices.

58 LU-factorization: If the nn matrix A can be written as the product of a lower triangular matrix L and an upper triangular matrix U, then L is a lower triangular matrix U is an upper triangular matrix Note: If a square matrix A can be row reduced to an upper triangular matrix U using only the row operation of adding a multiple of one row to another, then it is easy to find an LU-factorization of A.

59 Ex 5: (LU-factorization)
Sol: (a)

60 (b)

61 Solving Ax=b with an LU-factorization of A
Two steps: (1) Write y = Ux and solve Ly = b for y (2) Solve Ux = y for x

62 Ex 7: (Solving a linear system using LU-factorization)

63 So Thus, the solution is

64 Keywords in Section 2.4: row elementary matrix: 列基本矩陣
row equivalent: 列等價 lower triangular matrix: 下三角矩陣 upper triangular matrix: 上三角矩陣 LU-factorization: LU分解


Download ppt "Lecture 2 Matrices Lat Time - Course Overview"

Similar presentations


Ads by Google