Chapter 2 Basic Linear Algebra ( 基本線性代數 ) to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c)

Slides:



Advertisements
Similar presentations
CSNB143 – Discrete Structure
Advertisements

Chapter Matrices Matrix Arithmetic
Chapter 3 Determinants and Eigenvectors 大葉大學 資訊工程系 黃鈴玲 Linear Algebra.
Matrix Definition: An array of numbers in m rows and n colums is called an mxn matrix A square matrix of order n, is an (nxn) matrix.
Mathematics. Matrices and Determinants-1 Session.
MF-852 Financial Econometrics
Maths for Computer Graphics
Chapter 2 Basic Linear Algebra
Chapter 3 Determinants 3.1 The Determinant of a Matrix
Computational Methods for Management and Economics Carla Gomes
Chapter 2 Matrices Definition of a matrix.
2005/8Matrices-1 Matrices. 2005/8Matrices-2 A Matrix over a Field F (R or C) m rows n columns size: m×n ij-entry: a ij  F (ij-component)
2.1 Operations with Matrices 2.2 Properties of Matrix Operations
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
MATRICES. Matrices A matrix is a rectangular array of objects (usually numbers) arranged in m horizontal rows and n vertical columns. A matrix with m.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
3.8 Matrices.
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1.3 Matrices and Matrix Operations.
CHAPTER 2 MATRICES 2.1 Operations with Matrices
2.1 Operations with Matrices 2.2 Properties of Matrix Operations
ECON 1150 Matrix Operations Special Matrices
Chapter 2A Matrices 2A.1 Definition, and Operations of Matrices: 1 Sums and Scalar Products; 2 Matrix Multiplication 2A.2 Properties of Matrix Operations;
Chap. 2 Matrices 2.1 Operations with Matrices
Chapter 2 Basic Linear Algebra(基本線性代數)
Presentation by: H. Sarper
2.4 Linear Independence (線性獨立) and Linear Dependence(線性相依)
Matrices & Determinants Chapter: 1 Matrices & Determinants.
1 Consider a system of linear equations.  The variables, or unknowns, are referred to as x 1, x 2, …, x n while the a ij ’s and b j ’s are constants.
1.3 Matrices and Matrix Operations. Definition A matrix is a rectangular array of numbers. The numbers in the array are called the entries in the matrix.
1 C ollege A lgebra Systems and Matrices (Chapter5) 1.
Chapter 4 – Matrix CSNB 143 Discrete Mathematical Structures.
Linear Algebra 1.Basic concepts 2.Matrix operations.
If A and B are both m × n matrices then the sum of A and B, denoted A + B, is a matrix obtained by adding corresponding elements of A and B. add these.
CHAPTER 3 DETERMINANTS 3.1 The Determinant of a Matrix 3.2 Determinant and Elementary Operations 3.3 Properties of Determinants 3.4 Application of Determinants.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
1 Linear Algebraic Equations and Matrices. Three Individuals Connected by Bungee Cords.
Chapter 6 Matrices and Determinants Copyright © 2014, 2010, 2007 Pearson Education, Inc Matrix Operations and Their Applications.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
Matrices Section 2.6. Section Summary Definition of a Matrix Matrix Arithmetic Transposes and Powers of Arithmetic Zero-One matrices.
Special Topic: Matrix Algebra and the ANOVA Matrix properties Types of matrices Matrix operations Matrix algebra in Excel Regression using matrices ANOVA.
Chapter 2 … part1 Matrices Linear Algebra S 1. Ch2_2 2.1 Addition, Scalar Multiplication, and Multiplication of Matrices Definition A matrix is a rectangular.
7.1 Eigenvalues and Eigenvectors
1.3 Matrices and Matrix Operations. A matrix is a rectangular array of numbers. The numbers in the arry are called the Entries in the matrix. The size.
Copyright © Cengage Learning. All rights reserved. 2 SYSTEMS OF LINEAR EQUATIONS AND MATRICES.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Chapter 5 More Work with Matrices
Matrices and Determinants
MATRICES Operations with Matrices Properties of Matrix Operations
Matrices and Matrix Operations. Matrices An m×n matrix A is a rectangular array of mn real numbers arranged in m horizontal rows and n vertical columns.
Chapter 2 Matrices 2.1 Operations with Matrices 2.2 Properties of Matrix Operations 2.3 The Inverse of a Matrix 2.4 Elementary Matrices Elementary Linear.
Section 2.4. Section Summary  Sequences. o Examples: Geometric Progression, Arithmetic Progression  Recurrence Relations o Example: Fibonacci Sequence.
2 - 1 Chapter 2A Matrices 2A.1 Definition, and Operations of Matrices: 1 Sums and Scalar Products; 2 Matrix Multiplication 2A.2 Properties of Matrix Operations;
Matrix Algebra Definitions Operations Matrix algebra is a means of making calculations upon arrays of numbers (or data). Most data sets are matrix-type.
MATRICES. Introduction Matrix algebra has several uses in economics as well as other fields of study. One important application of Matrices is that it.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
CS 285- Discrete Mathematics Lecture 11. Section 3.8 Matrices Introduction Matrix Arithmetic Transposes and Power of Matrices Zero – One Matrices Boolean.
MATRICES A rectangular arrangement of elements is called matrix. Types of matrices: Null matrix: A matrix whose all elements are zero is called a null.
2.1 Matrix Operations 2. Matrix Algebra. j -th column i -th row Diagonal entries Diagonal matrix : a square matrix whose nondiagonal entries are zero.
Matrices. Matrix A matrix is an ordered rectangular array of numbers. The entry in the i th row and j th column is denoted by a ij. Ex. 4 Columns 3 Rows.
Linear Algebra by Dr. Shorouk Ossama.
MTH108 Business Math I Lecture 20.
Chapter 7 Matrix Mathematics
Section 7.4 Matrix Algebra.
2. Matrix Algebra 2.1 Matrix Operations.
Section 2.4 Matrices.
Matrices and Matrix Operations
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc.
Matrix Algebra.
Linear Algebra Lecture 11.
3.8 Matrices L Al-zaid Math1101.
Presentation transcript:

Chapter 2 Basic Linear Algebra ( 基本線性代數 ) to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc.

2 §2.1 §2.1 – Matrices ( 矩陣 ) & Vectors ( 向量 ) A matrix is any rectangular array of numbers If a matrix A has m rows and n columns it is referred to as an m x n matrix. If a matrix A has m rows and n columns it is referred to as an m x n matrix. m x n is the order of the matrix. It is typically written as m x n is the order ( 階 ) of the matrix. It is typically written as

3 The number in the ith row and jth column of A is called the ijth element of A and is written a. The number in the ith row and jth column of A is called the ijth element of A and is written a ij. Two matrices A = [a ij ] and B = [b ij ] are equal if and only if A and B are the same order and for all i and j, a ij = b ij. A = B if and only if x = 1, y = 2, w = 3, and z = 4

4 Any matrix with only one column is a column vector ( 行向量 ) or column matrix ( 行矩陣 ). The number of rows in a column vector is the dimension of the column vector. C= R m will denote the set all m-dimensional column vectors R m will denote the set all m-dimensional column vectors Any matrix with only one row (a 1 x n matrix) is a row vector row. The dimension of a row vector is the number of columns. R= Any matrix with only one row (a 1 x n matrix) is a row vector ( 列向量 ) or row matrix ( 列矩陣 ). The dimension of a row vector is the number of columns. R=

5 Any m-dimensional vector (either row or column) in which all the elements equal zero is called a zero vector ( 零向量 ) or zero matrix ( 零矩陣 ) (written 0). Any m-dimensional vector corresponds to a directed line segment in the m-dimensional plane. Any m-dimensional vector corresponds to a directed line segment in the m-dimensional plane.  For example, the two-dimensional vector u corresponds to the line segment joining the point (0,0) to the point (1,2)

6 Other Forms Diagonal matrix ( 對角線矩陣 ) Identity matrix ( 單位矩陣 ) Upper triangular matrix( 上三角矩陣 ) Lower triangular matrix ( 下三角矩陣 )

7 Example :

8 Transpose Matrix ( 轉置矩陣 ) P.15

9 Example :

10 轉置矩陣之性質  p.20 #4

11 Square Matrix of Order n ( 方陣之乘冪 )

12 Example : (AB) 2 ≠A 2 B 2 (AB = BA) ?

13 Symmetric Matrix ( 對稱矩陣 ) & Skew-symmetric Matrix ( 斜對稱矩陣 )

14 Example : is a symmetric matrix is a skew-symmetric matrix

15 對稱矩陣與斜對稱矩陣之性質

16 The directed line segments (vectors u, v, w) are shown. The directed line segments (vectors u, v, w) are shown. X1 X2 (1, 2) (1, -3) (-1, -2) (p.12-13)

17 矩陣之基本運算 (p.13) The scalar product ( 純量積 ) is the result of multiplying two vectors where one vector is a column vector and the other is a row vector.  For the scalar product to be defined, the dimensions of both vectors must be the same. The scalar product of u and v is written:

18 The Scalar Multiple of a Matrix The Scalar Multiple of a Matrix  Given any matrix A and any number c, the matrix cA is obtained from the matrix A by multiplying each element of A by c. Addition of Two Matrices Addition of Two Matrices  Let A = [a ij ] and B =[b ij ] be two matrixes with the same order. Then the matrix C = A + B is defined to be the m x n matrix whose ijth element is a ij + b ij.  Thus, to obtain the sum of two matrixes A and B, we add the corresponding elements of A and B. (p.14)

19 Definition : 矩陣相加

20 This rule for matrix addition may be used to add vectors of the same dimension. Vectors may be added using the parallelogram law or by using matrix addition. X1 X2 u v u+v (1,2) (2,1) (3,3)

21 Line segments can be defined using scalar multiplication and the addition of matrices.  If u=(1,2) and v=(2,1), the line segment joining u and v (called uv) is the set of all points in the m- dimensional plane corresponding to the vectors cu +(1-c)v, where 0 ≤ c ≤ 1. X1 X2 u v c=1 c=1/2 c=0

22 矩陣加法之性質

23 常數乘以矩陣之性質

24 Matrix Multiplication ( 矩陣相乘 ) (p.16)  Given to matrices A and B, the matrix product of A and B (written AB) is defined if and only if the number of columns in A = the number of rows in B. The matrix product C = AB of A and B is the m x n matrix C whose ijth element is determined as follows:  ijth element of C = scalar product of row i of A x column j of B

25 矩陣相乘

26

27 矩陣乘法之性質

28 Example 1: Matrix Multiplication Computer C = AB for Solution Because A is a 2x3 matrix and B is a 3x2 matrix, AB is defined, and C will be a 2x2 matrix.

29 Many computations that commonly occur in operations research can be concisely expressed by using matrix multiplication. Some important properties of matrix multiplications are:  Row i of AB = (row i of A)B  Column j of AB = A(column j of B)

30 Trace of a matrix 1 For any two matrices A and B. Trace(A + B) = Trace(A) + Trace(B) For any two matrices A and B for which the product AB and BA are defined. Trace(AB) = Trace(BA)  p.20 #7

31 Example : Find Trace(A) & Trace(B)

32 LU Decomposition (LU 分解法 )

33

34 例題:

35

36 Use the EXCEL MMULT function to multiply the matrices:  Enter matrix A into cells B1:D2 and matrix B into cells B4:C6.  Select the output range (B8:C9) into which the product will be computed.  In the upper left-hand corner (B8) of this selected output range type the formula: = MMULT(B1:D2,B4:C6).  Press Control-Shift-Enter (p.19)