Matrices: Basic Operations and Their Properties

Slides:



Advertisements
Similar presentations
Matrix.
Advertisements

Chapter 4 Systems of Linear Equations; Matrices
Chapter 4 Systems of Linear Equations; Matrices
Copyright © 2009 Pearson Education, Inc. CHAPTER 9: Systems of Equations and Matrices 9.1 Systems of Equations in Two Variables 9.2 Systems of Equations.
Chapter 4 Systems of Linear Equations; Matrices Section 6 Matrix Equations and Systems of Linear Equations.
Matrices: Inverse Matrix
CALCULUS – II Matrix Multiplication by Dr. Eman Saad & Dr. Shorouk Ossama.
4.4 Matrices: Basic Operations. Addition and Subtraction of matrices To add or subtract matrices, they must be of the same order, mxn. To add matrices.
Chapter 4 Systems of Linear Equations; Matrices Section 4 Matrices: Basic Operations.
3.8 Matrices.
1 Operations with Matrice 2 Properties of Matrix Operations
8.4 Matrix Operations Day 1 Thurs May 7 Do Now Solve X – 2y = -6 3x + 4y = 7.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
ECON 1150 Matrix Operations Special Matrices
Lecture 4 Rules of Matricies.
Matrix Algebra. Quick Review Quick Review Solutions.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
4.1 Matrix Operations What you should learn: Goal1 Goal2 Add and subtract matrices, multiply a matrix by a scalar, and solve the matrix equations. Use.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
8.1 Matrices & Systems of Equations
Copyright © 2011 Pearson, Inc. 7.2 Matrix Algebra.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
1 C ollege A lgebra Systems and Matrices (Chapter5) 1.
Algebra 3: Section 5.5 Objectives of this Section Find the Sum and Difference of Two Matrices Find Scalar Multiples of a Matrix Find the Product of Two.
Chapter 4 – Matrix CSNB 143 Discrete Mathematical Structures.
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.
Operations with Matrices
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
4.1: Matrix Operations Objectives: Students will be able to: Add, subtract, and multiply a matrix by a scalar Solve Matrix Equations Use matrices to organize.
Chapter 6 Systems of Linear Equations and Matrices Sections 6.3 – 6.5.
Copyright © Cengage Learning. All rights reserved. 7 Linear Systems and Matrices.
Chapter 8 Matrices and Determinants Matrix Solutions to Linear Systems.
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.
Sec 4.1 Matrices.
Copyright © Cengage Learning. All rights reserved. 2 SYSTEMS OF LINEAR EQUATIONS AND MATRICES.
Algebra Matrix Operations. Definition Matrix-A rectangular arrangement of numbers in rows and columns Dimensions- number of rows then columns Entries-
Copyright © Cengage Learning. All rights reserved. 2 SYSTEMS OF LINEAR EQUATIONS AND MATRICES.
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
Matrices and Determinants
MATRIX A set of numbers arranged in rows and columns enclosed in round or square brackets is called a matrix. The order of a matrix gives the number of.
Matrices Presentation by : Miss Matkar Pallavi. P.
Matrix Operations McDougal Littell Algebra 2 Larson, Boswell, Kanold, Stiff Larson, Boswell, Kanold, Stiff Algebra 2: Applications, Equations, Graphs Algebra.
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.
Matrix Operations McDougal Littell Algebra 2 Larson, Boswell, Kanold, Stiff Larson, Boswell, Kanold, Stiff Algebra 2: Applications, Equations, Graphs Algebra.
Ch. 12 Vocabulary 1.) matrix 2.) element 3.) scalar 4.) scalar multiplication.
Copyright © Cengage Learning. All rights reserved. 7 Matrices and Determinants.
Linear Algebra by Dr. Shorouk Ossama.
MTH108 Business Math I Lecture 20.
Chapter 4 Systems of Linear Equations; Matrices
4.4 Matrices: Basic Operations
3.8 Matrices L Al-zaid Math1101.
Properties and Applications of Matrices
Chapter 4 Systems of Linear Equations; Matrices
College Algebra Chapter 6 Matrices and Determinants and Applications
Finding the Inverse of a Matrix
MATHEMATICS Matrix Algebra
MATHEMATICS Matrix Multiplication
Matrix Operations SpringSemester 2017.
Section 7.4 Matrix Algebra.
Matrix Algebra.
Section 2.4 Matrices.
Matrices and Matrix Operations
Matrices.
Matrix Algebra.
Section 9.4 Matrix Operations
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Matrix Operations Ms. Olifer.
Matrix Operations SpringSemester 2017.
3.5 Perform Basic Matrix Operations Algebra II.
3.8 Matrices L Al-zaid Math1101.
Presentation transcript:

Matrices: Basic Operations and Their Properties The slides for this text are organized into chapters. This lecture covers Chapter 1. Chapter 1: Introduction to Database Systems Chapter 2: The Entity-Relationship Model Chapter 3: The Relational Model Chapter 4 (Part A): Relational Algebra Chapter 4 (Part B): Relational Calculus Chapter 5: SQL: Queries, Programming, Triggers Chapter 6: Query-by-Example (QBE) Chapter 7: Storing Data: Disks and Files Chapter 8: File Organizations and Indexing Chapter 9: Tree-Structured Indexing Chapter 10: Hash-Based Indexing Chapter 11: External Sorting Chapter 12 (Part A): Evaluation of Relational Operators Chapter 12 (Part B): Evaluation of Relational Operators: Other Techniques Chapter 13: Introduction to Query Optimization Chapter 14: A Typical Relational Optimizer Chapter 15: Schema Refinement and Normal Forms Chapter 16 (Part A): Physical Database Design Chapter 16 (Part B): Database Tuning Chapter 17: Security Chapter 18: Transaction Management Overview Chapter 19: Concurrency Control Chapter 20: Crash Recovery Chapter 21: Parallel and Distributed Databases Chapter 22: Internet Databases Chapter 23: Decision Support Chapter 24: Data Mining Chapter 25: Object-Database Systems Chapter 26: Spatial Data Management Chapter 27: Deductive Databases Chapter 28: Additional Topics Dr .Hayk Melikyan Department of Mathematics and CS melikyan@nccu.edu

Matrix A matrix with m rows and n columns is said to have SIZE m  n. If a matrix has the same number of rows and columns, then it is called a SQUARE MATRIX. A matrix with only one column is a COLUMN MATRIX, and a matrix with only one row is a ROW MATRIX 2. Two matrices are EQUAL if they have the same size and their corresponding elements are equal

Addition and Subtraction of matrices To add or subtract matrices, they must be of the same order, mxn. To add matrices of the same order, add their corresponding entries. To subtract matrices of the same order, subtract their corresponding entries. The general rule is as follows using mathematical notation:

An example: 1. Add the matrices First, note that each matrix has dimensions of 3X3, so we are able to perform the addition. The result is shown at right: Solution: Adding corresponding entries we have

Subtraction of matrices Now, we will subtract the same two matrices Subtract corresponding entries as follows: =

Matrix addition The SUM of two matrices of the same size, m  n, is an m  n matrix whose elements are the sum of the corresponding elements of the two given matrices. Addition is not defined for matrices with different sizes. Matrix addition is commutative: A + B = B + A, and associative: (A + B) + C = A + (B + C). A matrix with all elements equal to zero is called a ZERO MATRIX.

Scalar Multiplication The scalar product of a number k and a matrix A is the matrix denoted by kA, obtained by multiplying each entry of A by the number k . The number k is called a scalar. In mathematical notation,

Example of scalar multiplication Find (-1)A where Solution: (-1)A= -1 A =

Alternate definition of subtraction of matrices: The definition of subtract of two real numbers a and b is a – b = a + (-1)b or a plus the opposite of b. We can define subtraction of matrices similarly: If A and B are two matrices of the same dimensions, then A – B = A + (-1)B, where -1 is a scalar.

An example The example at right illustrates this procedure for 2 2X2 matrices. Solution:

Matrix product Matrix multiplication was introduced by an English mathematician named Arthur Cayley (1821-1895) . We will see shortly how matrix multiplication can be used to solve systems of linear equations. The method of multiplication of matrices is not as intuitive and may seem strange, although this method is extremely useful in many mathematical applications.

Arthur Cayley (1821-1895) Introduced matrix multiplication

Product of a Row Matrix and a Column Matrix In order to understand the general procedure of matrix multiplication, we will introduce the concept of the product of a row matrix by a column matrix. A row matrix consists of a single row of numbers while a column matrix consists of a single column of numbers. If the number of columns of a row matrix equals the number of rows of a column matrix, the product of a row matrix and column matrix is defined. Otherwise, the product is not defined. For example, a row matrix consists of 1 row of 4 numbers so this matrix has four columns. It has dimensions 1 X 4. This matrix can be multiplied by a column matrix consisting of 4 numbers in a single column (this matrix has dimensions 4X1.

Row by column multiplication 1X4 row matrix multiplied by a 4X1 column matrix: Notice the manner in which corresponding entries of each matrix are multiplied:

Revenue of a car dealer A car dealer sells four model types: A,B,C,D. On a given week, this dealer sold 10 cars of model A, 5 of model B, 8 of model C and 3 of model D. The selling prices of each automobile are respectively $12,500, $11,800, $15,900 and $25,300. Represent the data using matrices and use matrix multiplication to find the total revenue.

Solution using matrix multiplication We represent the number of each model sold using a row matrix (4X1) and we use a 1X4 column matrix to represent the sales price of each model. When a 4X1 matrix is multiplied by a 1X4 matrix, the result is a 1X1 matrix of a single number.

Matrix Product If A is an m x p matrix and B is a p x n matrix, the matrix product of A and B denoted by AB is an m x n matrix whose element in the ith row and jth column is the real number obtained from the product of the Ith row of A and the jth column of B. If the number of columns of A does not equal the number of rows of B, the matrix product AB is not defined.

Multiplying a 2X4 matrix by a 4X3 matrix to obtain a 4X2 The following is an illustration of the product of a 2 x 4 matrix with a 4 x 3 . First, the number of columns of the matrix on the left equals the number of rows of the matrix on the right so matrix multiplication is defined. A row by column multiplication is performed three times to obtain the first row of the product: 70 80 90.

Final result

Undefined matrix multiplication Why is this matrix multiplication not defined? The answer is that the left matrix has three columns but the matrix on the right has only two rows. To multiply the second row [4 5 6] by the third column, 3 there is no number to pair with 6 to multiply.

More examples: Given A = B= Find AB if it is defined:

Solution: Since A is a 2 x 3 matrix and B is a 3 x 2 matrix, AB will be a 2 x 2 matrix. 1. Multiply first row of A by first column of B : 3(1) + 1(3) +(-1)(-2)=8 2. First row of A times second column of B: 3(6)+1(-5)+ (-1)(4)= 9 3. Proceeding as above the final result is

Is Matrix Multiplication Commutative? Now we are multiplying a 3x 2 matrix by a 2 x 3 matrix. This matrix multiplication is defined but the result will be a 3 x 3 matrix. Since AB does not equal BA, matrix multiplication is not commutative. Now we will attempt to multiply the matrices in reverse order: BA = BA=

Matrix Product Let A be an m  p matrix and B be a p  n matrix. The MATRIX PRODUCT of A and B, denoted AB, is the m  n matrix whose element in the ith row and the jth column is the real number obtained from the product of the ith row of A and the jth column of B. If the number of columns in A does not equal the number of rows in B, then the matrix product AB is not defined. Matrix multiplication is not commutative AB  BA Matrix multiplication is associative A(BC) = (AB)C For the matrix multiplication the zero factor property does not hold.

Practical application Suppose you a business owner and sell clothing. The following represents the number of items sold and the cost for each item: Use matrix operations to determine the total revenue over the two days: Monday: 3 T-shirts at $10 each, 4 hats at $15 each, and 1 pair of shorts at $20. Tuesday: 4 T-shirts at $10 each, 2 hats at $15 each, and 3 pairs of shorts at $20.

Solution of practical application Represent the information using two matrices: The product of the two matrices give the total revenue: Then your total revenue for the two days is =[110   130] Price Quantity=Revenue Unit price of each item: Qty sold of each item on Monday Qty sold of each item on Tuesday

BASIC PROPERTIES OF MATRICES 5. Assuming all products and sums are defined for the indicated matrices A, B, C, I, and O, then ADDITION PROPERTIES ASSOCIATIVE: (A + B) + C = A + (B + C) COMMUTATIVE: A + B = B + A ADDITIVE IDENTITY: A + 0 = 0 + A = A ADDITIVE INVERSE: A + (-A) = (-A) + A = 0 MULTIPLICATION PROPERTIES ASSOCIATIVE PROPERTY: A(BC) = (AB)C MULTIPLICATIVE IDENTITY: AI = IA = A MULTIPLICATIVE INVERSE: If A is a square matrix and A-1 exists, then AA-1 = A-1A = I.

COMBINED PROPERTIES LEFT DISTRIBUTIVE: A(B + C) = AB + AC RIGHT DISTRIBUTIVE: (B + C)A = BA + CA EQUALITY ADDITION: If A = B then A + C = B + C. LEFT MULTIPLICATION: If A = B, then CA = CB. RIGHT MULTIPLICATION: If A = B, then AC = BC.