Matrices: Basic Operations and Their Properties Dr.Hayk Melikyan Department of Mathematics and CS

Similar documents
Lecture 2 Matrix Operations

Chapter 7. Matrices. Definition. An m n matrix is an array of numbers set out in m rows and n columns. Examples. (

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

Introduction to Matrices for Engineers

1 Introduction to Matrices

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

Here are some examples of combining elements and the operations used:

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

Linear Algebra Notes for Marsden and Tromba Vector Calculus

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

Matrix Algebra. Some Basic Matrix Laws. Before reading the text or the following notes glance at the following list of basic matrix algebra laws.

Introduction to Matrix Algebra

Data Mining: Algorithms and Applications Matrix Math Review

Solution to Homework 2

Math 312 Homework 1 Solutions

MAT188H1S Lec0101 Burbulla

13 MATH FACTS a = The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions.

Section 5.3. Section 5.3. u m ] l jj. = l jj u j + + l mj u m. v j = [ u 1 u j. l mj

a(1) = first.entry of a

2.3. Finding polynomial functions. An Introduction:

Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix multiplication).

Lecture L3 - Vectors, Matrices and Coordinate Transformations

Linear Algebra: Vectors

Similarity and Diagonalization. Similar Matrices

Notes on Determinant

9 MATRICES AND TRANSFORMATIONS

Using row reduction to calculate the inverse and the determinant of a square matrix

Brief Introduction to Vectors and Matrices

T ( a i x i ) = a i T (x i ).

Orthogonal Projections

Properties of Real Numbers

Name: Section Registered In:

Vector Notation: AB represents the vector from point A to point B on a graph. The vector can be computed by B A.

A linear combination is a sum of scalars times quantities. Such expressions arise quite frequently and have the form

Matrix Algebra in R A Minimal Introduction

Operations with positive and negative numbers - see first chapter below. Rules related to working with fractions - see second chapter below

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

Chapter Two: Matrix Algebra and its Applications 1 CHAPTER TWO. Matrix Algebra and its applications

5.3 The Cross Product in R 3

Question 2: How do you solve a matrix equation using the matrix inverse?

Systems of Linear Equations

Matrix Representations of Linear Transformations and Changes of Coordinates

Math 115A HW4 Solutions University of California, Los Angeles. 5 2i 6 + 4i. (5 2i)7i (6 + 4i)( 3 + i) = 35i + 14 ( 22 6i) = i.

Linear Algebra Notes

To Evaluate an Algebraic Expression

3.2 Matrix Multiplication

A =

Lecture Notes 2: Matrices as Systems of Linear Equations

v w is orthogonal to both v and w. the three vectors v, w and v w form a right-handed set of vectors.

Matrix algebra for beginners, Part I matrices, determinants, inverses

NOTES ON LINEAR TRANSFORMATIONS

Unified Lecture # 4 Vectors

Elements of Abstract Group Theory

Applied Finite Mathematics Second Edition. Rupinder Sekhon De Anza College Cupertino, California. Page 1

GENERATING SETS KEITH CONRAD

1 Sets and Set Notation.

MAT 242 Test 2 SOLUTIONS, FORM T

MATHEMATICS FOR ENGINEERS BASIC MATRIX THEORY TUTORIAL 2

DATA ANALYSIS II. Matrix Algorithms

Chapter 8 Integers 8.1 Addition and Subtraction

Lecture 4: Partitioned Matrices and Determinants

Mathematics Course 111: Algebra I Part IV: Vector Spaces

Matrix Differentiation

Unit 18 Determinants

Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan

Vector and Matrix Norms

Vectors Math 122 Calculus III D Joyce, Fall 2012

RULE 1: Additive Identity Property

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

Mathematics Notes for Class 12 chapter 10. Vector Algebra

Just the Factors, Ma am

Some Lecture Notes and In-Class Examples for Pre-Calculus:

We can express this in decimal notation (in contrast to the underline notation we have been using) as follows: b + 90c = c + 10b

Linear Algebra Review. Vectors

Rotation Matrices and Homogeneous Transformations

Chapter 19. General Matrices. An n m matrix is an array. a 11 a 12 a 1m a 21 a 22 a 2m A = a n1 a n2 a nm. The matrix A has n row vectors

Typical Linear Equation Set and Corresponding Matrices

Mathematics for Business,BMGT 282

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system

3.1. RATIONAL EXPRESSIONS

A Second Course in Mathematics Concepts for Elementary Teachers: Theory, Problems, and Solutions

Use order of operations to simplify. Show all steps in the space provided below each problem. INTEGER OPERATIONS

Notes on Symmetric Matrices

Direct Methods for Solving Linear Systems. Matrix Factorization

26 Integers: Multiplication, Division, and Order

Vector Math Computer Graphics Scott D. Anderson

Matrices 2. Solving Square Systems of Linear Equations; Inverse Matrices

How To Understand And Solve A Linear Programming Problem

K80TTQ1EP-??,VO.L,XU0H5BY,_71ZVPKOE678_X,N2Y-8HI4VS,,6Z28DDW5N7ADY013

AMATH 352 Lecture 3 MATLAB Tutorial Starting MATLAB Entering Variables

Multiplying and Dividing Signed Numbers. Finding the Product of Two Signed Numbers. (a) (3)( 4) ( 4) ( 4) ( 4) 12 (b) (4)( 5) ( 5) ( 5) ( 5) ( 5) 20

Elementary Matrices and The LU Factorization

The Assignment Problem and the Hungarian Method

Algebra 1. Practice Workbook with Examples. McDougal Littell. Concepts and Skills

Linear Algebra I. Ronald van Luijk, 2012

THREE DIMENSIONAL GEOMETRY

MATRIX MULTIPLICATION

Notes on Algebraic Structures. Peter J. Cameron

Quadratics - Build Quadratics From Roots

Transcription:

Matrices: Basic Operations and Their Properties Dr.Hayk Melikyan Department of Mathematics and CS melikyan@nccu.edu H.Melikian/1210 1

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 H.Melikian/1210 2

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: A B a b + = + ij A B a b = ij ij ij H.Melikian/1210 3

An example: 1. Add the matrices 4 3 1 1 2 3 0 5 2 6 7 9 + 5 6 0 0 4 8 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 3 1 4 6 2 7 5 10 8 H.Melikian/1210 4

Subtraction of matrices Now, we will subtract the same two matrices Subtract corresponding entries as follows: 4 3 1 1 2 3 0 5 2 6 7 9 5 6 0 0 4 8 4 ( 1) 3 2 1 3 0 6 5 ( 7) 2 9 5 0 6 ( 4) 0 8 = 5 5 2 6 12 11 5 2 8 H.Melikian/1210 5

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. H.Melikian/1210 6

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, ka ka = ij H.Melikian/1210 7

Example of scalar multiplication Find (-1)A where A = 1 2 3 6 7 9 0 4 8 Solution: (-1)A= 1 2 3-1 6 7 9 0 4 8 1 2 3 1 2 3 = ( 1) 6 7 9 6 7 9 = 0 4 8 0 4 8 H.Melikian/1210 8

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

An example The example at right illustrates this procedure for 2 2X2 matrices. Solution: 1 2 5 6 1 2 3 4 7 8 = 3 4 5 6 1 2 5 6 + ( 1) 7 8 = 3 4 + 7 8 4 4 4 4 H.Melikian/1210 10

Matrix product The method of multiplication of matrices is not as intuitive and may seem strange, although this method is extremely useful in many mathematical applications. 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. H.Melikian/1210 11

Arthur Cayley (1821-1895) Introduced matrix multiplication H.Melikian/1210 12

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. H.Melikian/1210 13

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: H.Melikian/1210 14

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. H.Melikian/1210 15

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. 12,500 11,800 [ 10 5 8 3] = [ 10(12,500) + 5(11,800) + 8(15,900) + 3(25,300) ] = [ 387,100] 15,900 25,300 H.Melikian/1210 16

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. H.Melikian/1210 17

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. H.Melikian/1210 18

Final result H.Melikian/1210 19

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. H.Melikian/1210 20

More examples: 3 1 1 2 0 3 Given A = B= 1 6 3 5 2 4 Find AB if it is defined: 3 1 1 2 0 3 1 6 3 5 2 4 H.Melikian/1210 21

Solution: 3 1 1 2 0 3 1 3 2 6 5 4 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: 8 9 4 24 3(6)+1(-5)+ (-1)(4)= 9 3. Proceeding as above the final result is H.Melikian/1210 22

Is Matrix Multiplication Commutative? Now we will attempt to multiply the matrices in reverse order: BA = 1 6 3 5 2 4 3 1 1 2 0 3 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. BA= 15 1 17 1 3 18 2 2 14 H.Melikian/1210 23

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. H.Melikian/1210 24

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. H.Melikian/1210 25

Solution of practical application Represent the information using two matrices: The product of the two matrices give the total revenue: Unit price of each item: 3 4 10 15 20 4 2 1 3 [ ] Qty sold of each item on Monday Qty sold of each item on Tuesday Then your total revenue for the two days is =[110 130] Price Quantity=Revenue H.Melikian/1210 26

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 -1 A = I. H.Melikian/1210 27

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