L6 matrix operations.

Slides:



Advertisements
Similar presentations
Matrix.
Advertisements

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.
CSNB143 – Discrete Structure
Matrix Algebra Matrix algebra is a means of expressing large numbers of calculations made upon ordered sets of numbers. Often referred to as Linear Algebra.
Matrix Algebra Matrix algebra is a means of expressing large numbers of calculations made upon ordered sets of numbers. Often referred to as Linear Algebra.
Mathematics. Matrices and Determinants-1 Session.
3_3 An Useful Overview of Matrix Algebra
MF-852 Financial Econometrics
Ch 7.2: Review of Matrices For theoretical and computation reasons, we review results of matrix theory in this section and the next. A matrix A is an m.
Matrices MSU CSE 260.
Matrix Definition A Matrix is an ordered set of numbers, variables or parameters. An example of a matrix can be represented by: The matrix is an ordered.
Intro to Matrices Don’t be scared….
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.
3.8 Matrices.
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
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Overview Definitions Basic matrix operations (+, -, x) Determinants and inverses.
Matrices. A matrix, A, is a rectangular collection of numbers. A matrix with “m” rows and “n” columns is said to have order m x n. Each entry, or element,
1 C ollege A lgebra Systems and Matrices (Chapter5) 1.
10.4 Matrix Algebra 1.Matrix Notation 2.Sum/Difference of 2 matrices 3.Scalar multiple 4.Product of 2 matrices 5.Identity Matrix 6.Inverse of a matrix.
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.
Prepared by Deluar Jahan Moloy Lecturer Northern University Bangladesh
Chapter 6 Systems of Linear Equations and Matrices Sections 6.3 – 6.5.
Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.
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.
Matrix Operations.
3.4 Solution by Matrices. What is a Matrix? matrix A matrix is a rectangular array of numbers.
Matrices and Determinants
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.
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.
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 Algebra Definitions Operations Matrix algebra is a means of making calculations upon arrays of numbers (or data). Most data sets are matrix-type.
Ch. 12 Vocabulary 1.) matrix 2.) element 3.) scalar 4.) scalar multiplication.
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.
Matrices Introduction.
MTH108 Business Math I Lecture 20.
MAT 322: LINEAR ALGEBRA.
CSNB 143 Discrete Mathematical Structures
3.8 Matrices L Al-zaid Math1101.
Properties and Applications of Matrices
Boyce/DiPrima 10th ed, Ch 7.2: Review of Matrices Elementary Differential Equations and Boundary Value Problems, 10th edition, by William E. Boyce and.
10.4 The Algebra of Matrices
Linear Algebra review (optional)
College Algebra Chapter 6 Matrices and Determinants and Applications
Basic Matrix Operations
Matrix Operations SpringSemester 2017.
Section 7.4 Matrix Algebra.
Matrix Algebra.
Matrix Algebra.
Dr Huw Owens Room B44 Sackville Street Building Telephone Number 65891
Section 8.4 Matrix Algebra
Matrices Introduction.
CS100: Discrete structures
Matrices and Matrix Operations
Section 11.4 Matrix Algebra
Matrices.
Matrix Algebra.
Basics of Linear Algebra
RAYAT SHIKSHAN SANSTHA’S S.M.JOSHI COLLEGE HADAPSAR, PUNE
Section 9.4 Matrix Operations
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Matrix Operations SpringSemester 2017.
Matrix Algebra.
3.5 Perform Basic Matrix Operations Algebra II.
3.8 Matrices L Al-zaid Math1101.
Matrices - Operations MULTIPLICATION OF MATRICES
Matrices and Determinants
Presentation transcript:

L6 matrix operations

Matrix Operations Transposition Addition and Subtraction Multiplication Inversion

The Transpose of a Matrix: A' The transpose of a matrix is a new matrix that is formed by interchanging the rows and columns. The transpose of A is denoted by A' or (AT)

Example of a transpose Thus, If A = A', then A is symmetric

Addition and Subtraction Two matrices may be added (or subtracted) iff they are the same order. Simply add (or subtract) the corresponding elements. So, A + B = C yields

1.2 Operations of matrices Sums of matrices Two matrices of the same order are said to be conformable for addition or subtraction. Two matrices of different orders cannot be added or subtracted, e.g., are NOT conformable for addition or subtraction.

1.2 Operations of matrices Scalar multiplication Let l be any scalar and A = [aij] is an m  n matrix. Then lA = [laij] for 1  i  m, 1  j  n, i.e., each element in A is multiplied by l. Example: . Evaluate 3A. In particular, l = -1, i.e., -A = [-aij]. It’s called the negative of A. Note: A - A = 0 is a zero matrix

Addition and Subtraction (cont.) Where

Addition of Matrices add these add these add these add these add these

Matrix addition is commutative Matrix addition is associative

Matrix Addition Simply add or subtract the corresponding components of each matrix.

Matrix Multiplication To multiply a scalar times a matrix, simply multiply each element of the matrix by the scalar quantity

Matrix Multiplication (cont.) To multiply a matrix times a matrix, we write AB (A times B) This is pre-multiplying B by A, or post-multiplying A by B.

Matrix Multiplication (cont.) In order to multiply matrices, they must be CONFORMABLE that is, the number of columns in A must equal the number of rows in B So, A  B = C (m  n)  (n  p) = (m  p)

Matrix Multiplication (cont.) (m  n)  (p  n) = cannot be done (1  n)  (n  1) = a scalar (1x1)

Scalar Multiplication of Matrices If A is an m × n matrix and s is a scalar, then we let kA denote the matrix obtained by multiplying every element of A by k. This procedure is called scalar multiplication. PROPERTIES OF SCALAR MULTIPLICATION

The m × n zero matrix, denoted 0, is the m × n matrix whose elements are all zeros. 1 × 3 2 × 2

Matrix Multiplication (cont.) Thus where

Matrix Multiplication- an example Thus where

Matrix Multiplication Multiplying a matrix by a scalar: each element in the matrix is multiplied by the scalar.

1.2 Operations of matrices Matrix multiplication Example: , , Evaluate C = AB.

Matrix Multiplication Multiplying a matrix by a matrix: the product of matrices A and B (AB) is defined if the number of columns in A equals the number of rows in B. Assuming A has ixj dimensions and B has jxk dimensions, the resulting matrix, C, will have dimensions ixk In other words, in order to multiply them the inner dimensions must match and the result is the outer dimensions. Each element in C can by computed by:

Matrix Multiplication Multiplying a matrix by a matrix: Resulting matrix has outer dimensions!!! Matching inner dimensions!!

Example Multiplications

Properties AB does not necessarily equal BA (BA may even be an impossible operation) For example, A  B = C (2  3)  (3  2) = (2  2) B  A = D (3  2)  (2  3) = (3  3)

Properties Matrix multiplication is Associative A(BC) = (AB)C Multiplication and transposition (AB)' = B'A'

PROPERTIES OF MATRIX MULTIPLICATION Is it possible for AB = BA ? ,yes it is possible.

1.2 Operations of matrices Properties Matrices A, B and C are conformable, A(B + C) = AB + AC (A + B)C = AC + BC A(BC) = (AB) C AB  BA in general AB = 0 NOT necessarily imply A = 0 or B = 0 AB = AC NOT necessarily imply B = C However

Multiplying a matrix by the identity gives the matrix back again. What is AI? What is IA? identity matrix an n  n matrix with ones on the main diagonal and zeros elsewhere

Can we find a matrix to multiply the first matrix by to get the identity? Let A be an n n matrix. If there exists a matrix B such that AB = BA = I then we call this matrix the inverse of A and denote it A-1.

If A has an inverse we say that A is nonsingular If A has an inverse we say that A is nonsingular. If A-1 does not exist we say A is singular. To find the inverse of a matrix we put the matrix A, a line and then the identity matrix. We then perform row operations on matrix A to turn it into the identity. We carry the row operations across and the right hand side will turn into the inverse. To find the inverse of a matrix we put the matrix A, a line and then the identity matrix. We then perform row operations on matrix A to turn it into the identity. We carry the row operations across and the right hand side will turn into the inverse. r2 r1  r2 2r1+r2