Unit 3: Matrices. Juan Luis Melero and Eduardo Eyras. September 2018

Size: px
Start display at page:

Download "Unit 3: Matrices. Juan Luis Melero and Eduardo Eyras. September 2018"

Transcription

1 Unit 3: Matrices Juan Luis Melero and Eduardo Eyras September

2 Contents 1 Matrices and operations Definition of a matrix Addition and subtraction of matrices Multiplication by a number Multiplication of matrices Triangulation of matrices (Gaussian elimination) Special matrices Unit matrix Zero matrix Triangular matrix Diagonal matrix Matrix transposition Determinant of a matrix Definition and calculus of the determinant Properties of the determinant Determinant of a multiplication of matrices Determinant of the inverse of a matrix Determinant of the transposed matrix Determinant of a matrix multiplied by a number Determinant of triangular and diagonal matrices Changing rows and columns Multiplying a row or a column by a scalar Determinant when we apply linear combinations Determinant with linearly dependent rows or columns Rank of a matrix Definition of the rank of a matrix Calculation of the rank of a matrix Inverse of a matrix Definition of inverse matrix Properties of the inverse of a matrix Calculation of the inverse of a matrix Exercises 21 2

3 6 R practical Addition and subtraction of matrices Multiplication of a matrix by a number Multiplication of matrices Matrix transposition Determinant of a matrix Rank of a matrix Inverse of a matrix

4 1 Matrices and operations 1.1 Definition of a matrix A matrix is a set of elements organized into rows and columns. All rows have the same length and all columns have the same length. Figure 1: Distribution of rows and columns in a matrix The dimension of a matrix is the number of rows and columns that it has. It is indicated as rows columns. a b c a a b d e f b c d g h i c e f Addition and subtraction of matrices To add or subtract two matrices you simply add or subtract every element. ( ) ( ) ( ) a b e f a + e b + f + = c d g h c + g d + h ( ) ( ) ( ) a b e f a e b f = c d g h c g d h Notice that to add or subtract two or more matrices they must have the same dimensions

5 1.3 Multiplication by a number To multiply a matrix by a number you simply multiply each element of the matrix by the number. ( ) ( ) a b αa αb α = c d αc αd Given the addition of matrices and the multiplication by real numbers, the set of all matrices of a given dimension m n, usually denoted as M m n (R), is a vector space. 1.4 Multiplication of matrices Not all matrices can be multiplied by another matrix. It is possible to multiply two matrices if the number of columns of the first one is the same as the number of rows of the second one. A M m k (R), B M k n (R) L = AB M m n (R) To multiply two matrices, we multiply the elements of each row in the first matrix by the elements of each row in the second matrix: For example: l ij = a i1 b 1j + a i2 b 2j + + a ik b kj = k a ir b rj r=1 Figure 2: Multiplication of two matrices in M 3 3 (R). In particular, we show the elements involved in the calculation of the element l 12. l 12 = a 11 b 12 + a 12 b 22 + a 13 b 32 5

6 Examples of matrix multiplications: [ ] [ ] c a b = ac + bd d [ ] [ ] [ ] a b e ae + bf = c d f ce + df [ ] [ ] [ ] a b e f ae + bg af + bh = c d g h ce + dg cf + dh Matrix multiplication is NOT commutative in general. This can be intuitively seen from the fact that we can multiply two matrices of different dimensions as long as the number columns of the first matrix and the number of rows of the second one coincide. However, this does not ensure that we can invert the order and maintain the same condition: A M m k (R), B M k n (R) L = AB M m n (R) L = BA = B k n (R)A m k (R) Cannot be multiplied Moreover, even for square matrices the multiplication is not commutative: ( ) ( ) a b e f = c d g h ( ) ae + bg ( ) ( ) e f a b = g h c d ( ea + fc ) Matrix multiplication is associative and ( directionally ) distributive with respect to the matrix addition: A(BC) = (AB)C A(B + C) = AB + AC (A + B)C = AC + BC 6

7 1.4.1 Triangulation of matrices (Gaussian elimination) A triangular matrix is a matrix whose elements above or below the principal diagonal are all 0 (see section A triangular matrix has some particular properties that are useful, as will be discussed in the next sections, and will also help solving linear equations. Additionally, all the properties of a matrix (the rank, the determinant, etc.) do not change if we exchange a row or a column by a linear combination of that particular row or column with the other rows or columns, we change the order of the rows or we multiply or divide the whole row by a number. Accordingly, we will apply linear combinations to generate new rows or columns with 0 in the desired place. In general: Consider the matrix M m n (R): Let s show it with an example: a a 1n..... a m1... a mn Consider the matrix M 3 4 (R): We triangulate the matrix with the following operations: a a 1n a mn R 3 R R 1 R R 2 R 2 3R R 2 R R 3 R 3 5R R 3 R 3 2R Now the matrix is triangular. 1.5 Special matrices Unit matrix The unit matrix I has in its main diagonal 1 and the rest of elements are 0. It is the neutral element for multiplication of matrices: 7

8 I = Zero matrix ( ) 1 0 M 0 1 2x2 (R), A M 2x2 (R), AI = IA = A The zero matrix O is a matrix whose elements are all 0. It is the neutral element for the sum of matrices: ( ) 0 0 O = M 0 0 2x2 (R), A M 2x2 (R), A + O = A Triangular matrix A triangular matrix is a matrix in which the elements above or below the main diagonal are all zeros. For example: a 0 0 a b c A = b c 0 B = 0 d e d e f 0 0 f Diagonal matrix A diagonal matrix has all elements that are not in the main diagonal equal to zero: a 0 0 A = 0 b c 1.6 Matrix transposition Transposition of matrices consists in changing the rows by the columns. Accordingly, rows become columns and columns become rows. If A is m n, the transpose of A (A T ) is n m. A M m n (R) A T M n m (R) ( A T ) T = A 8

9 Figure 3: Matrix transposition of 3x3 matrices and 3x2 matrices In some cases, the transpose is the same as the original matrix. Then, we say that the matrix is symmetric. If A M n n (R), A T = A = A is symmetric [a ij ] = [a ji ] For example: a 11 a b A = a a 22 c b c a 33 2 Determinant of a matrix 2.1 Definition and calculus of the determinant The determinant of a matrix is a real number that you can calculate from a matrix, and it is only defined for square matrices. The way to calculate the determinant depends on the dimension of the matrix. For matrices 1 1: For matrices 2 2: For matrices 3 3 A = ( a ), det(a) = a ( ) a b A =, det(a) = ad bc c d a b c A = d e f g h i 9

10 The determinant is defined as det(a) = a 11 a 22 a 33 + a 12 a 23 a 31 + a 13 a 21 a 32 a 13 a 22 a 31 a 11 a 23 a 32 a 12 a 21 a 33 which can be derived from either the Rule of Sarrus (see Figure 4) or the cofactors method (see below). Figure 4: Graphically view of Role of Sarrus to calculate determinants of 3 3 matrices. Each square represents a multiplication. The arrowhead represents the numbers you have to multiply. Blue arrows are the multiplications you add, red arrows are the multiplications you subtract. The dashed grey line represents the diagonals of the matrix. To calculate the determinant for matrices of dimensions 4 4 and higher we use the definitions of Minor and Cofactor of a matrix element. M ij is called the Minor of element a ij or the ij-th minor, and it is defined as the determinant of the matrix obtained by deleting the i-th row and the j-th column. C ij is called the Cofactor of element a ij or the ij-th cofactor and it is defined as C ij = ( 1) i+j M ij The cofactor matrix is the matrix generated by the cofactors: C C 1n C =... C m1... C mn With these definitions, we can calculate the determinant as the sum of entries in a row or in a column each multiplied by their corresponding cofactor. 10

11 Using a fixed row i: det(a) = n a ij Cij = a i1 C i1 + a i2 Ci2 + + a in C in j=1 Using a fixed column j: det(a) = n a ij C ij = a 1j C 1j + a 2j C 2j + + a nj C nj i=1 For instance, using row 1 (and denoting the determinant with vertical bars): a b c A = d e f g h i a b c det(a) = d e f g h i = ( 1)1+1 a e f h i +( 1)1+2 b d f g i +( 1)1+3 c d e g h = = a e h f i b d g f i + c d g e h = aei + bfg + cdh ceg bdi afh 2.2 Properties of the determinant Determinant of a multiplication of matrices The determinant of a multiplication of a matrix is the multiplication of the determinants. A, B, M n n (R) det(ab) = det(a)det(b) Although the multiplication of matrices is not commutative, the determinant of a matrix multiplication is commutative by the commutative property of the product in R: det(ab) = det(a)det(b) = det(b)det(a) = det(ba) 11

12 2.2.2 Determinant of the inverse of a matrix Given a matrix A, the definition of its inverse A 1 is such that: A 1 A = AA 1 = I The determinant of the inverse matrix is the inverse of the determinant of the matrix. det(a 1 ) = 1 det(a) We will see more about the inverse of a matrix in the next section Determinant of the transposed matrix The determinant of the transpose of a matrix is the same as the determinant of the matrix. For this reason, it is not important if the vectors are rows or columns, when the determinant is calculated. det(a) = det(a T ) Determinant of a matrix multiplied by a number The determinant of a matrix multiplied by a number is the determinant of the matrix times the number to the n th power, where n is the dimension of the matrix. A M n n (R) det(λa) = λ n det(a) det(λa) = det(λi n A) = det(λi n )det(a) = λ n det(a) Determinant of triangular and diagonal matrices The determinant of triangular and diagonal matrices is the multiplication of the values in the main diagonal. For example: a b c A = 0 d e det(a) = adf 0 0 f 12

13 a 0 0 A = b c 0 det(a) = acf d e f a 0 0 A = 0 b 0 det(a) = abc 0 0 c Changing rows and columns Exchanging a row or a column of a matrix changes the sign of the determinant. One sign change by row or column change. ( ) ( ) row v row w det = det row w row v det ( col v col w ) = det ( col w col v ) where u, v, represent row or column vectors Multiplying a row or a column by a scalar If a matrix is multiplied by a number in a row or a column, then the determinant is multiplied by that number. For instance: ( ) ( ) λa λb a b det = λdet c d c d For this reason, if a matrix has all its rows or columns multiplied by a number, the determinant is multiplied by λ n (see section 2.2.4) Determinant when we apply linear combinations The determinant of a matrix will not change if we exchange one row or column for a linear combination of that row (column) with other rows (columns). For instance: ( ) ( ) a b a b + λa det = det, λ R c d c d + λc 13

14 2.2.9 Determinant with linearly dependent rows or columns When a row or a column of a matrix is linearly dependent to the others, the determinant is 0. This may happen in different ways. For instance, one row (or column) is proportional to another one: ( ) a b det = aλb λab = 0 λa λb Particular cases are when two rows (or columns) are equal: ( ) a b det = ab ba = 0 a b or when one row (or column) is zero: ( ) a 0 det = a 0 c 0 = 0 c 0 We may also have one row (or column) that is a linear combination of other rows (or columns): a b c det d e f = 0 a + d b + e c + f In fact, this is a very effective way to test linear independence between vectors. Proposition: Row or column vectors in a square matrix are linearly dependent if and only if the determinant is 0. Proof: We have to prove both directions. 1. If rows/columns linearly dependent = determinant = 0 2. If determinant = 0 = rows/columns linearly dependent Proof of 1: Assume rows or columns (from now, vectors) are linearly dependent. Then there are λ i 0 such that λ 1 v 1 + +λ n v n = 0. Hence, v i is a linear combination of the other vectors for any i. Changing a vector by a linear combination with the other vectors does not change the determinant (section 14

15 2.2.8). In particular, we can change v i by v i + (λ 1 v no ith term + λ n v n )/λ i. We thus end up with a whole row or column of 0. This makes the determinant 0. Proof of 2: Proof by contradiction. If determinant = 0 = rows/columns linearly dependent is the same as saying that if vectors linearly independent = determinant 0. Performing linear combinations and triangulating the matrix (Gauss or Gauss-Jordan method), if the vectors are linearly independent, then there is no zero vector at the end. The determinant of a triangular matrix is the multiplication of the elements of its principal diagonal (section 2.2.5). As there is no zero vector, then the multiplication of the elements of the main diagonal (the determinant) cannot be 0. Q.E.D. 3 Rank of a matrix 3.1 Definition of the rank of a matrix The rank of the matrix is the maximum number of linearly independent rows or columns. A M m n (R), rank(a) N The rank of a matrix is determined by the non-zero minor of highest possible dimension (recall the definition of minor provided before). To calculate the rank of a matrix, we will calculate the determinant of the matrix and of the minors until we find one different from 0. For a square matrix: For non-square matrices: A M n n (R) rank(a) n det(a) = 0 rank(a) < n A M m n (R) size of the largest square submatrix with non-zero determinant. rank(a) min(m, n) 15

16 3.2 Calculation of the rank of a matrix We can calculate the rank of the matrix using determinants or using Gauss method. Using determinants we have to find the largest square submatrix whose determinant is not zero. For example: A = Let s first try for a 3 3 submatrix det(u) = = 1 ( 3) 0+( 2) ( 3) 1 ( 2) = 0 det(u 3 3 ) = 0 rank(u) < 3 Let s try now with a submatrix 2 2 det(u) = = 1 ( 3) ( 2) (2) = +1 0 det(u 2 2 ) 0 rank(u) = 2 rank(a) = 2. We can do it also using Gauss method, i.e. triangulating the matrix A = There are two non-zero rows. Therefore, rank(a) = 2 16

17 4 Inverse of a matrix 4.1 Definition of inverse matrix Matrix division is not a possible operation. However, there is a way to apply an operation to a matrix to obtain the unit matrix: the inverse matrix. The inverse matrix of a square matrix A M n n (R) is another square matrix A 1 M n n (R), such that: AA 1 = A 1 A = I n Proposition: the inverse of a matrix, if exists, is unique. Proof: Suppose that there are two inverse matrices B and C of the matrix A. Then they satisfy AB = BA = I and AC = CA = I. B = BI = B(AC) = (BA)C = IC = C Q.E.D. Not all matrices have inverse. For a matrix to have inverse, it has to be square and the determinant must be 0 (condition of existence). Proof: A M n n (R) is invertible (non-singular) det(a) 0 AA 1 = I det(aa 1 ) = det(i) det(a)det(a 1 ) = det(i) Accordingly det(a)det(a 1 ) = 1 det(a), det(a 1 ) 0 det(a)det(a 1 ) = 1 det(a 1 ) = 1 det(a) 4.2 Properties of the inverse of a matrix The inverse of the inverse matrix is the original matrix. 17

18 If A is invertible A 1 (A 1 ) 1 = A. If A, B are invertible, then AB is also invertible and: (AB) 1 = B 1 A 1 AB (AB) 1 = ABB 1 A 1 = AI n A 1 = AA 1 = I n If A is invertible, then its transpose is also invertible and: ( ) A T 1 ( ) = A 1 T The inverse of the power of a matrix is the inverse matrix to the same power: ( ) A k 1 = (A... (k times)... A) 1 = ( A 1) k The inverse of a matrix multiplied by a number is the inverse of the number multiplied by the inverse matrix (λa) 1 = 1 λ A 1 For matrices in general AC = BC does not imply A = B. It is only true when C 1 exists, then AC = BC = A = B 4.3 Calculation of the inverse of a matrix To calculate the inverse of a matrix, we use the cofactor matrix. We define the adjoint matrix as the transpose of the cofactor matrix: Adj(A) = C T The inverse of the matrix is the adjoint matrix over the determinant of the matrix. A 1 = 1 det(a) Adj(A) 18

19 General example in 2 2: Therefore: A 1 1 = det(a) Adjt(A) AAdj(A) = det(a) I n ( ) ( ) T ( ) ( ) a b c11 c AAdj(A) = 12 a b d b = = c d c 21 c 22 c d c a ( ) ( ) ( ) ad bc 0 det(a) = = = det(a) 0 ad bc 0 det(a) 0 1 ( ) 1 A Adj(A) = det(a) I n A det(a) Adj(A) = I n A 1 = With this, you can also show that: ( ) 1 det(a) Adj(A) A = I n 1 det(a) Adj(A) We can calculate the matrix by its definition, having the elements as variables and solving the linear equations system. Example for M 2 2 (R): ( ) ( ) a b x y A = A 1 = (x, y, z, t not known) c d z t AA 1 = I 2 ( ) ( ) ( ) a b x y 1 0 = c d z t 0 1 ax + bz = 1 cx + dz = 0 ay + bt = 0 cy + cd = 1 19

20 ( ) 1 2 Example: Consider the matrix A =. Find the inverse matrix. 1 3 ( ) ( ) ( ) x y = z t x y = 1 2x + 3y = 0 z t = 0 2z + 3t = 1 x = 3 5, y = 2 5, z = 1 5, t = 1 5 ( ) 3/5 2/5 A 1 = = 1 ( ) 3 2 1/5 1/

21 5 Exercises Ex. 1 Given the matrices A and B, compute the matrix products AB and BA. ( ) A =, B = Ex. 2 Show that det(ab) = det(a)det(b) for the two matrices: ( ) ( ) a b α β A =, B = c d γ δ ( ) ( ) Ex. 3 Given the matrices A =, B =, calculate their determinant. What is their rank? What are the implications of these results? Ex. 4 For this problem assume that we know the following: if X is an m m matrix, Y is an m n matrix, 0 is the zero matrix and I is the identity matrix of appropriate size, then: ( ) X Y det = det(x) 0 I Given A an m n matrix and B an n m matrix. Prove that: ( ) 0 A det = det(ab). B I ( ) ( ) 0 A I 0 Hint: consider the product B I B I Ex. 5 Calculate the inverse of the matrix A = Ex. 6 Consider the matrix A = Calculate the cofactor matrix C. 21 ( )

22 2. Calculate the adjoint matrix Adj(A) = C T 3. Calculate the determinant for A 4. Calculate the inverse A 1, using the previous results. Ex. 7 A matrix is called orthogonal if it is built from column vectors that are mutually perpendicular. A matrix is called orthonormal if it is orthogonal and all its column vectors have unit length. Show that the inverse of a 2 2 orthonormal matrix is its transpose. Hint: show that for A T A = I to be true, A has to be orthonormal. 22

23 6 R practical 6.1 Addition and subtraction of matrices To add or subtract matrices we use the basic operators + and. # Define the matrices > m <- matrix (c(1, 0, 2, 3), 2,2) > n <- matrix (c(-1, 5, 3, -1), 2,2) # Operate with the matrices > m+n [,1] [,2] [1,] 0 5 [2,] 5 2 > m-n [,1] [,2] [1,] 2-1 [2,] -5 4 # If the matrices are not of # the same dimensions, an error will be thrown > p <- matrix (c(1,3,0,-1,5,2), 2, 3) > m+p Error in m + p : non - conformable arrays 6.2 Multiplication of a matrix by a number To multiply a matrix by a number we use the symbol in between the matrix and the number. # Introduce the matrix > m <- matrix (c(1, 0, 2, 3), 2,2) > m [,1] [,2] [1,] 1 2 [2,]

24 > 5*m [,1] [,2] [1,] 5 10 [2,] Multiplication of matrices The multiplication of matrices can be done in two ways: the false matrix multiplication, which consists in multiplying each element (like addition/- subtraction operation, but multiplying the elements), or the true matrix multiplication. # Define two matrices > m <- matrix (c(1, 0, 2, 3), 2,2) > n <- matrix (c(-1, 5, 3, -1), 2,2) #" False " multiplication # Multiply each element > m*n [,1] [,2] [1,] -1 6 [2,] 0-3 #" True " multiplication > m %*% n [,1] [,2] [1,] 9 1 [2,] 15-3 # Remember that the matrix multiplication # is not commutative, in general. >n %*% m [,1] [,2] [1,] -1 7 [2,] 5 7 # If two matrices cannot be multiplied # because of the dimensions, an error will be risen > p <- matrix (c(1,3,0,-1,5,2), 2, 3) > p %*% m 24

25 Error in p %*% m : non - conformable arguments 6.4 Matrix transposition R has a command to transpose matrices and arrays. It is the same as we saw for vectors in Unit 1: Vector Spaces. # Introduce the matrix > m <- matrix (c(1, 0, 2, 3), 2,2) # Transpose the matrix > mt <- t(m) > mt [,1] [,2] [1,] 1 0 [2,] 2 3 # We can also prove that the transposition # of a transposed matrix returns the # original matrix > mtt <- t(mt) > mtt [,1] [,2] [1,] 1 2 [2,] 0 3 # We can use conditional operators, as well. > mtt == m [,1] [,2] [1,] TRUE TRUE [2,] TRUE TRUE 6.5 Determinant of a matrix To calculate the determinant of a matrix we use the command det() in R. # Define a matrix > m <- matrix (c(1, 0, 2, 3), 2,2) # Compute the determinant 25

26 > det (m) [1] 3 # If the matrix is not square, # it raises an error > p <- matrix (c(1,3,0,-1,5,2), 2, 3) > det (p) Error in determinant. matrix ( x, logarithm = TRUE,...) : x must be a square matrix As an exercise, you can try to test the properties of determinants by making up a matrix and testing it. 6.6 Rank of a matrix To calculate the rank of a matrix we will use the command qr() in R. The rank is stored in qr()$rank # Define a non - square matrix > m <- matrix (c(1, -2, 3, 2, -3, 5, 1, 1, 0, 2, 2, 0), 3, 4) # Compute the rank > rank <- qr(m)$ rank > rank [1] Inverse of a matrix To compute the inverse of a matrix we will use the command inv() which is included in the package matlib. # Install the package if not installed yet > install. packages (" matlib ") # Load the package if installed > library (" matlib ") # Introduce the matrix > m <- matrix (c(1, -1, 2, 3), 2, 2) > mi <- inv (m) > mi 26

27 [,1] [,2] [1,] [2,] # Just to be sure... > 5*mi [,1] [,2] [1,] 3-2 [2,]

28 References [1] Howard Anton. Introducción al álgebra lineal [2] Marc Peter Deisenroth; A Aldo Faisal and Cheng Soon Ong. Mathematics for Machine Learning [3] Michael Friendly. Inverse of a matrix, [4] Soren Hojsgaard. Introduction to linear algebra with R [5] Jordi Villà and Pau Rué. Elements of Mathematics: an embarrasignly simple (but practical) introduction to algebra

Unit 5: Matrix diagonalization

Unit 5: Matrix diagonalization Unit 5: Matrix diagonalization Juan Luis Melero and Eduardo Eyras October 2018 1 Contents 1 Matrix diagonalization 3 1.1 Definitions............................. 3 1.1.1 Similar matrix.......................

More information

Linear Algebra. Matrices Operations. Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0.

Linear Algebra. Matrices Operations. Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0. Matrices Operations Linear Algebra Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0 The rectangular array 1 2 1 4 3 4 2 6 1 3 2 1 in which the

More information

Matrix Algebra Determinant, Inverse matrix. Matrices. A. Fabretti. Mathematics 2 A.Y. 2015/2016. A. Fabretti Matrices

Matrix Algebra Determinant, Inverse matrix. Matrices. A. Fabretti. Mathematics 2 A.Y. 2015/2016. A. Fabretti Matrices Matrices A. Fabretti Mathematics 2 A.Y. 2015/2016 Table of contents Matrix Algebra Determinant Inverse Matrix Introduction A matrix is a rectangular array of numbers. The size of a matrix is indicated

More information

MATRICES AND MATRIX OPERATIONS

MATRICES AND MATRIX OPERATIONS SIZE OF THE MATRIX is defined by number of rows and columns in the matrix. For the matrix that have m rows and n columns we say the size of the matrix is m x n. If matrix have the same number of rows (n)

More information

Phys 201. Matrices and Determinants

Phys 201. Matrices and Determinants Phys 201 Matrices and Determinants 1 1.1 Matrices 1.2 Operations of matrices 1.3 Types of matrices 1.4 Properties of matrices 1.5 Determinants 1.6 Inverse of a 3 3 matrix 2 1.1 Matrices A 2 3 7 =! " 1

More information

Linear Systems and Matrices

Linear Systems and Matrices Department of Mathematics The Chinese University of Hong Kong 1 System of m linear equations in n unknowns (linear system) a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2.......

More information

MATRICES The numbers or letters in any given matrix are called its entries or elements

MATRICES The numbers or letters in any given matrix are called its entries or elements MATRICES A matrix is defined as a rectangular array of numbers. Examples are: 1 2 4 a b 1 4 5 A : B : C 0 1 3 c b 1 6 2 2 5 8 The numbers or letters in any given matrix are called its entries or elements

More information

Linear Algebra: Lecture notes from Kolman and Hill 9th edition.

Linear Algebra: Lecture notes from Kolman and Hill 9th edition. Linear Algebra: Lecture notes from Kolman and Hill 9th edition Taylan Şengül March 20, 2019 Please let me know of any mistakes in these notes Contents Week 1 1 11 Systems of Linear Equations 1 12 Matrices

More information

3 Matrix Algebra. 3.1 Operations on matrices

3 Matrix Algebra. 3.1 Operations on matrices 3 Matrix Algebra A matrix is a rectangular array of numbers; it is of size m n if it has m rows and n columns. A 1 n matrix is a row vector; an m 1 matrix is a column vector. For example: 1 5 3 5 3 5 8

More information

Graduate Mathematical Economics Lecture 1

Graduate Mathematical Economics Lecture 1 Graduate Mathematical Economics Lecture 1 Yu Ren WISE, Xiamen University September 23, 2012 Outline 1 2 Course Outline ematical techniques used in graduate level economics courses Mathematics for Economists

More information

Digital Workbook for GRA 6035 Mathematics

Digital Workbook for GRA 6035 Mathematics Eivind Eriksen Digital Workbook for GRA 6035 Mathematics November 10, 2014 BI Norwegian Business School Contents Part I Lectures in GRA6035 Mathematics 1 Linear Systems and Gaussian Elimination........................

More information

det(ka) = k n det A.

det(ka) = k n det A. Properties of determinants Theorem. If A is n n, then for any k, det(ka) = k n det A. Multiplying one row of A by k multiplies the determinant by k. But ka has every row multiplied by k, so the determinant

More information

MAC Module 3 Determinants. Learning Objectives. Upon completing this module, you should be able to:

MAC Module 3 Determinants. Learning Objectives. Upon completing this module, you should be able to: MAC 2 Module Determinants Learning Objectives Upon completing this module, you should be able to:. Determine the minor, cofactor, and adjoint of a matrix. 2. Evaluate the determinant of a matrix by cofactor

More information

Linear Algebra Primer

Linear Algebra Primer Introduction Linear Algebra Primer Daniel S. Stutts, Ph.D. Original Edition: 2/99 Current Edition: 4//4 This primer was written to provide a brief overview of the main concepts and methods in elementary

More information

Equality: Two matrices A and B are equal, i.e., A = B if A and B have the same order and the entries of A and B are the same.

Equality: Two matrices A and B are equal, i.e., A = B if A and B have the same order and the entries of A and B are the same. Introduction Matrix Operations Matrix: An m n matrix A is an m-by-n array of scalars from a field (for example real numbers) of the form a a a n a a a n A a m a m a mn The order (or size) of A is m n (read

More information

Math Linear Algebra Final Exam Review Sheet

Math Linear Algebra Final Exam Review Sheet Math 15-1 Linear Algebra Final Exam Review Sheet Vector Operations Vector addition is a component-wise operation. Two vectors v and w may be added together as long as they contain the same number n of

More information

MATH 2030: EIGENVALUES AND EIGENVECTORS

MATH 2030: EIGENVALUES AND EIGENVECTORS MATH 2030: EIGENVALUES AND EIGENVECTORS Determinants Although we are introducing determinants in the context of matrices, the theory of determinants predates matrices by at least two hundred years Their

More information

MATH Topics in Applied Mathematics Lecture 12: Evaluation of determinants. Cross product.

MATH Topics in Applied Mathematics Lecture 12: Evaluation of determinants. Cross product. MATH 311-504 Topics in Applied Mathematics Lecture 12: Evaluation of determinants. Cross product. Determinant is a scalar assigned to each square matrix. Notation. The determinant of a matrix A = (a ij

More information

Chapter 2 Notes, Linear Algebra 5e Lay

Chapter 2 Notes, Linear Algebra 5e Lay Contents.1 Operations with Matrices..................................1.1 Addition and Subtraction.............................1. Multiplication by a scalar............................ 3.1.3 Multiplication

More information

Matrices and Linear Algebra

Matrices and Linear Algebra Contents Quantitative methods for Economics and Business University of Ferrara Academic year 2017-2018 Contents 1 Basics 2 3 4 5 Contents 1 Basics 2 3 4 5 Contents 1 Basics 2 3 4 5 Contents 1 Basics 2

More information

Math Camp Notes: Linear Algebra I

Math Camp Notes: Linear Algebra I Math Camp Notes: Linear Algebra I Basic Matrix Operations and Properties Consider two n m matrices: a a m A = a n a nm Then the basic matrix operations are as follows: a + b a m + b m A + B = a n + b n

More information

Lecture Notes in Linear Algebra

Lecture Notes in Linear Algebra Lecture Notes in Linear Algebra Dr. Abdullah Al-Azemi Mathematics Department Kuwait University February 4, 2017 Contents 1 Linear Equations and Matrices 1 1.2 Matrices............................................

More information

M. Matrices and Linear Algebra

M. Matrices and Linear Algebra M. Matrices and Linear Algebra. Matrix algebra. In section D we calculated the determinants of square arrays of numbers. Such arrays are important in mathematics and its applications; they are called matrices.

More information

INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW MATRICES

INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW MATRICES 1 CHAPTER 4 MATRICES 1 INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW MATRICES 1 Matrices Matrices are of fundamental importance in 2-dimensional and 3-dimensional graphics programming

More information

Chapter 2: Matrices and Linear Systems

Chapter 2: Matrices and Linear Systems Chapter 2: Matrices and Linear Systems Paul Pearson Outline Matrices Linear systems Row operations Inverses Determinants Matrices Definition An m n matrix A = (a ij ) is a rectangular array of real numbers

More information

Undergraduate Mathematical Economics Lecture 1

Undergraduate Mathematical Economics Lecture 1 Undergraduate Mathematical Economics Lecture 1 Yu Ren WISE, Xiamen University September 15, 2014 Outline 1 Courses Description and Requirement 2 Course Outline ematical techniques used in economics courses

More information

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2 MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS SYSTEMS OF EQUATIONS AND MATRICES Representation of a linear system The general system of m equations in n unknowns can be written a x + a 2 x 2 + + a n x n b a

More information

Fundamentals of Engineering Analysis (650163)

Fundamentals of Engineering Analysis (650163) Philadelphia University Faculty of Engineering Communications and Electronics Engineering Fundamentals of Engineering Analysis (6563) Part Dr. Omar R Daoud Matrices: Introduction DEFINITION A matrix is

More information

Linear Algebra M1 - FIB. Contents: 5. Matrices, systems of linear equations and determinants 6. Vector space 7. Linear maps 8.

Linear Algebra M1 - FIB. Contents: 5. Matrices, systems of linear equations and determinants 6. Vector space 7. Linear maps 8. Linear Algebra M1 - FIB Contents: 5 Matrices, systems of linear equations and determinants 6 Vector space 7 Linear maps 8 Diagonalization Anna de Mier Montserrat Maureso Dept Matemàtica Aplicada II Translation:

More information

MTH 102A - Linear Algebra II Semester

MTH 102A - Linear Algebra II Semester MTH 0A - Linear Algebra - 05-6-II Semester Arbind Kumar Lal P Field A field F is a set from which we choose our coefficients and scalars Expected properties are ) a+b and a b should be defined in it )

More information

1 Multiply Eq. E i by λ 0: (λe i ) (E i ) 2 Multiply Eq. E j by λ and add to Eq. E i : (E i + λe j ) (E i )

1 Multiply Eq. E i by λ 0: (λe i ) (E i ) 2 Multiply Eq. E j by λ and add to Eq. E i : (E i + λe j ) (E i ) Direct Methods for Linear Systems Chapter Direct Methods for Solving Linear Systems Per-Olof Persson persson@berkeleyedu Department of Mathematics University of California, Berkeley Math 18A Numerical

More information

Math Bootcamp An p-dimensional vector is p numbers put together. Written as. x 1 x =. x p

Math Bootcamp An p-dimensional vector is p numbers put together. Written as. x 1 x =. x p Math Bootcamp 2012 1 Review of matrix algebra 1.1 Vectors and rules of operations An p-dimensional vector is p numbers put together. Written as x 1 x =. x p. When p = 1, this represents a point in the

More information

Elementary maths for GMT

Elementary maths for GMT Elementary maths for GMT Linear Algebra Part 2: Matrices, Elimination and Determinant m n matrices The system of m linear equations in n variables x 1, x 2,, x n a 11 x 1 + a 12 x 2 + + a 1n x n = b 1

More information

c c c c c c c c c c a 3x3 matrix C= has a determinant determined by

c c c c c c c c c c a 3x3 matrix C= has a determinant determined by Linear Algebra Determinants and Eigenvalues Introduction: Many important geometric and algebraic properties of square matrices are associated with a single real number revealed by what s known as the determinant.

More information

Vectors and matrices: matrices (Version 2) This is a very brief summary of my lecture notes.

Vectors and matrices: matrices (Version 2) This is a very brief summary of my lecture notes. Vectors and matrices: matrices (Version 2) This is a very brief summary of my lecture notes Matrices and linear equations A matrix is an m-by-n array of numbers A = a 11 a 12 a 13 a 1n a 21 a 22 a 23 a

More information

Knowledge Discovery and Data Mining 1 (VO) ( )

Knowledge Discovery and Data Mining 1 (VO) ( ) Knowledge Discovery and Data Mining 1 (VO) (707.003) Review of Linear Algebra Denis Helic KTI, TU Graz Oct 9, 2014 Denis Helic (KTI, TU Graz) KDDM1 Oct 9, 2014 1 / 74 Big picture: KDDM Probability Theory

More information

Linear Algebra: Lecture Notes. Dr Rachel Quinlan School of Mathematics, Statistics and Applied Mathematics NUI Galway

Linear Algebra: Lecture Notes. Dr Rachel Quinlan School of Mathematics, Statistics and Applied Mathematics NUI Galway Linear Algebra: Lecture Notes Dr Rachel Quinlan School of Mathematics, Statistics and Applied Mathematics NUI Galway November 6, 23 Contents Systems of Linear Equations 2 Introduction 2 2 Elementary Row

More information

Lecture 10: Determinants and Cramer s Rule

Lecture 10: Determinants and Cramer s Rule Lecture 0: Determinants and Cramer s Rule The determinant and its applications. Definition The determinant of a square matrix A, denoted by det(a) or A, is a real number, which is defined as follows. -by-

More information

Linear Algebra Primer

Linear Algebra Primer Linear Algebra Primer D.S. Stutts November 8, 995 Introduction This primer was written to provide a brief overview of the main concepts and methods in elementary linear algebra. It was not intended to

More information

Matrix & Linear Algebra

Matrix & Linear Algebra Matrix & Linear Algebra Jamie Monogan University of Georgia For more information: http://monogan.myweb.uga.edu/teaching/mm/ Jamie Monogan (UGA) Matrix & Linear Algebra 1 / 84 Vectors Vectors Vector: A

More information

MATH 221: SOLUTIONS TO SELECTED HOMEWORK PROBLEMS

MATH 221: SOLUTIONS TO SELECTED HOMEWORK PROBLEMS MATH 221: SOLUTIONS TO SELECTED HOMEWORK PROBLEMS 1. HW 1: Due September 4 1.1.21. Suppose v, w R n and c is a scalar. Prove that Span(v + cw, w) = Span(v, w). We must prove two things: that every element

More information

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

MATH 240 Spring, Chapter 1: Linear Equations and Matrices MATH 240 Spring, 2006 Chapter Summaries for Kolman / Hill, Elementary Linear Algebra, 8th Ed. Sections 1.1 1.6, 2.1 2.2, 3.2 3.8, 4.3 4.5, 5.1 5.3, 5.5, 6.1 6.5, 7.1 7.2, 7.4 DEFINITIONS Chapter 1: Linear

More information

MATH 106 LINEAR ALGEBRA LECTURE NOTES

MATH 106 LINEAR ALGEBRA LECTURE NOTES MATH 6 LINEAR ALGEBRA LECTURE NOTES FALL - These Lecture Notes are not in a final form being still subject of improvement Contents Systems of linear equations and matrices 5 Introduction to systems of

More information

Chapter 4 - MATRIX ALGEBRA. ... a 2j... a 2n. a i1 a i2... a ij... a in

Chapter 4 - MATRIX ALGEBRA. ... a 2j... a 2n. a i1 a i2... a ij... a in Chapter 4 - MATRIX ALGEBRA 4.1. Matrix Operations A a 11 a 12... a 1j... a 1n a 21. a 22.... a 2j... a 2n. a i1 a i2... a ij... a in... a m1 a m2... a mj... a mn The entry in the ith row and the jth column

More information

Math 240 Calculus III

Math 240 Calculus III The Calculus III Summer 2015, Session II Wednesday, July 8, 2015 Agenda 1. of the determinant 2. determinants 3. of determinants What is the determinant? Yesterday: Ax = b has a unique solution when A

More information

Linear algebra and differential equations (Math 54): Lecture 7

Linear algebra and differential equations (Math 54): Lecture 7 Linear algebra and differential equations (Math 54): Lecture 7 Vivek Shende February 9, 2016 Hello and welcome to class! Last time We introduced linear subspaces and bases. Today We study the determinant

More information

Linear Algebra Highlights

Linear Algebra Highlights Linear Algebra Highlights Chapter 1 A linear equation in n variables is of the form a 1 x 1 + a 2 x 2 + + a n x n. We can have m equations in n variables, a system of linear equations, which we want to

More information

Matrices. In this chapter: matrices, determinants. inverse matrix

Matrices. In this chapter: matrices, determinants. inverse matrix Matrices In this chapter: matrices, determinants inverse matrix 1 1.1 Matrices A matrix is a retangular array of numbers. Rows: horizontal lines. A = a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 a 41 a

More information

MAC Module 2 Systems of Linear Equations and Matrices II. Learning Objectives. Upon completing this module, you should be able to :

MAC Module 2 Systems of Linear Equations and Matrices II. Learning Objectives. Upon completing this module, you should be able to : MAC 0 Module Systems of Linear Equations and Matrices II Learning Objectives Upon completing this module, you should be able to :. Find the inverse of a square matrix.. Determine whether a matrix is invertible..

More information

Matrices Gaussian elimination Determinants. Graphics 2009/2010, period 1. Lecture 4: matrices

Matrices Gaussian elimination Determinants. Graphics 2009/2010, period 1. Lecture 4: matrices Graphics 2009/2010, period 1 Lecture 4 Matrices m n matrices Matrices Definitions Diagonal, Identity, and zero matrices Addition Multiplication Transpose and inverse The system of m linear equations in

More information

Matrices. Chapter Keywords and phrases. 3.2 Introduction

Matrices. Chapter Keywords and phrases. 3.2 Introduction Chapter 3 Matrices 3.1 Keywords and phrases Special matrices: (row vector, column vector, zero, square, diagonal, scalar, identity, lower triangular, upper triangular, symmetric, row echelon form, reduced

More information

Matrices. Chapter Definitions and Notations

Matrices. Chapter Definitions and Notations Chapter 3 Matrices 3. Definitions and Notations Matrices are yet another mathematical object. Learning about matrices means learning what they are, how they are represented, the types of operations which

More information

NOTES FOR LINEAR ALGEBRA 133

NOTES FOR LINEAR ALGEBRA 133 NOTES FOR LINEAR ALGEBRA 33 William J Anderson McGill University These are not official notes for Math 33 identical to the notes projected in class They are intended for Anderson s section 4, and are 2

More information

Matrices A brief introduction

Matrices A brief introduction Matrices A brief introduction Basilio Bona DAUIN Politecnico di Torino Semester 1, 2014-15 B. Bona (DAUIN) Matrices Semester 1, 2014-15 1 / 41 Definitions Definition A matrix is a set of N real or complex

More information

1 Matrices and Systems of Linear Equations. a 1n a 2n

1 Matrices and Systems of Linear Equations. a 1n a 2n March 31, 2013 16-1 16. Systems of Linear Equations 1 Matrices and Systems of Linear Equations An m n matrix is an array A = (a ij ) of the form a 11 a 21 a m1 a 1n a 2n... a mn where each a ij is a real

More information

CP3 REVISION LECTURES VECTORS AND MATRICES Lecture 1. Prof. N. Harnew University of Oxford TT 2013

CP3 REVISION LECTURES VECTORS AND MATRICES Lecture 1. Prof. N. Harnew University of Oxford TT 2013 CP3 REVISION LECTURES VECTORS AND MATRICES Lecture 1 Prof. N. Harnew University of Oxford TT 2013 1 OUTLINE 1. Vector Algebra 2. Vector Geometry 3. Types of Matrices and Matrix Operations 4. Determinants

More information

Elementary Row Operations on Matrices

Elementary Row Operations on Matrices King Saud University September 17, 018 Table of contents 1 Definition A real matrix is a rectangular array whose entries are real numbers. These numbers are organized on rows and columns. An m n matrix

More information

Linear Algebra and Matrix Inversion

Linear Algebra and Matrix Inversion Jim Lambers MAT 46/56 Spring Semester 29- Lecture 2 Notes These notes correspond to Section 63 in the text Linear Algebra and Matrix Inversion Vector Spaces and Linear Transformations Matrices are much

More information

Determinants Chapter 3 of Lay

Determinants Chapter 3 of Lay Determinants Chapter of Lay Dr. Doreen De Leon Math 152, Fall 201 1 Introduction to Determinants Section.1 of Lay Given a square matrix A = [a ij, the determinant of A is denoted by det A or a 11 a 1j

More information

Things we can already do with matrices. Unit II - Matrix arithmetic. Defining the matrix product. Things that fail in matrix arithmetic

Things we can already do with matrices. Unit II - Matrix arithmetic. Defining the matrix product. Things that fail in matrix arithmetic Unit II - Matrix arithmetic matrix multiplication matrix inverses elementary matrices finding the inverse of a matrix determinants Unit II - Matrix arithmetic 1 Things we can already do with matrices equality

More information

18.06SC Final Exam Solutions

18.06SC Final Exam Solutions 18.06SC Final Exam Solutions 1 (4+7=11 pts.) Suppose A is 3 by 4, and Ax = 0 has exactly 2 special solutions: 1 2 x 1 = 1 and x 2 = 1 1 0 0 1 (a) Remembering that A is 3 by 4, find its row reduced echelon

More information

a11 a A = : a 21 a 22

a11 a A = : a 21 a 22 Matrices The study of linear systems is facilitated by introducing matrices. Matrix theory provides a convenient language and notation to express many of the ideas concisely, and complicated formulas are

More information

A FIRST COURSE IN LINEAR ALGEBRA. An Open Text by Ken Kuttler. Matrix Arithmetic

A FIRST COURSE IN LINEAR ALGEBRA. An Open Text by Ken Kuttler. Matrix Arithmetic A FIRST COURSE IN LINEAR ALGEBRA An Open Text by Ken Kuttler Matrix Arithmetic Lecture Notes by Karen Seyffarth Adapted by LYRYX SERVICE COURSE SOLUTION Attribution-NonCommercial-ShareAlike (CC BY-NC-SA)

More information

Materials engineering Collage \\ Ceramic & construction materials department Numerical Analysis \\Third stage by \\ Dalya Hekmat

Materials engineering Collage \\ Ceramic & construction materials department Numerical Analysis \\Third stage by \\ Dalya Hekmat Materials engineering Collage \\ Ceramic & construction materials department Numerical Analysis \\Third stage by \\ Dalya Hekmat Linear Algebra Lecture 2 1.3.7 Matrix Matrix multiplication using Falk s

More information

Jim Lambers MAT 610 Summer Session Lecture 1 Notes

Jim Lambers MAT 610 Summer Session Lecture 1 Notes Jim Lambers MAT 60 Summer Session 2009-0 Lecture Notes Introduction This course is about numerical linear algebra, which is the study of the approximate solution of fundamental problems from linear algebra

More information

Chapter 5: Matrices. Daniel Chan. Semester UNSW. Daniel Chan (UNSW) Chapter 5: Matrices Semester / 33

Chapter 5: Matrices. Daniel Chan. Semester UNSW. Daniel Chan (UNSW) Chapter 5: Matrices Semester / 33 Chapter 5: Matrices Daniel Chan UNSW Semester 1 2018 Daniel Chan (UNSW) Chapter 5: Matrices Semester 1 2018 1 / 33 In this chapter Matrices were first introduced in the Chinese Nine Chapters on the Mathematical

More information

LINEAR ALGEBRA WITH APPLICATIONS

LINEAR ALGEBRA WITH APPLICATIONS SEVENTH EDITION LINEAR ALGEBRA WITH APPLICATIONS Instructor s Solutions Manual Steven J. Leon PREFACE This solutions manual is designed to accompany the seventh edition of Linear Algebra with Applications

More information

Chapter 2:Determinants. Section 2.1: Determinants by cofactor expansion

Chapter 2:Determinants. Section 2.1: Determinants by cofactor expansion Chapter 2:Determinants Section 2.1: Determinants by cofactor expansion [ ] a b Recall: The 2 2 matrix is invertible if ad bc 0. The c d ([ ]) a b function f = ad bc is called the determinant and it associates

More information

TOPIC III LINEAR ALGEBRA

TOPIC III LINEAR ALGEBRA [1] Linear Equations TOPIC III LINEAR ALGEBRA (1) Case of Two Endogenous Variables 1) Linear vs. Nonlinear Equations Linear equation: ax + by = c, where a, b and c are constants. 2 Nonlinear equation:

More information

Chapter 2. Square matrices

Chapter 2. Square matrices Chapter 2. Square matrices Lecture notes for MA1111 P. Karageorgis pete@maths.tcd.ie 1/18 Invertible matrices Definition 2.1 Invertible matrices An n n matrix A is said to be invertible, if there is a

More information

Linear Algebra (part 1) : Matrices and Systems of Linear Equations (by Evan Dummit, 2016, v. 2.02)

Linear Algebra (part 1) : Matrices and Systems of Linear Equations (by Evan Dummit, 2016, v. 2.02) Linear Algebra (part ) : Matrices and Systems of Linear Equations (by Evan Dummit, 206, v 202) Contents 2 Matrices and Systems of Linear Equations 2 Systems of Linear Equations 2 Elimination, Matrix Formulation

More information

NOTES on LINEAR ALGEBRA 1

NOTES on LINEAR ALGEBRA 1 School of Economics, Management and Statistics University of Bologna Academic Year 207/8 NOTES on LINEAR ALGEBRA for the students of Stats and Maths This is a modified version of the notes by Prof Laura

More information

1300 Linear Algebra and Vector Geometry

1300 Linear Algebra and Vector Geometry 1300 Linear Algebra and Vector Geometry R. Craigen Office: MH 523 Email: craigenr@umanitoba.ca May-June 2017 Matrix Inversion Algorithm One payoff from this theorem: It gives us a way to invert matrices.

More information

DM559 Linear and Integer Programming. Lecture 3 Matrix Operations. Marco Chiarandini

DM559 Linear and Integer Programming. Lecture 3 Matrix Operations. Marco Chiarandini DM559 Linear and Integer Programming Lecture 3 Matrix Operations Marco Chiarandini Department of Mathematics & Computer Science University of Southern Denmark Outline and 1 2 3 and 4 2 Outline and 1 2

More information

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and Section 5.5. Matrices and Vectors A matrix is a rectangular array of objects arranged in rows and columns. The objects are called the entries. A matrix with m rows and n columns is called an m n matrix.

More information

n n matrices The system of m linear equations in n variables x 1, x 2,..., x n can be written as a matrix equation by Ax = b, or in full

n n matrices The system of m linear equations in n variables x 1, x 2,..., x n can be written as a matrix equation by Ax = b, or in full n n matrices Matrices Definitions Diagonal, Identity, and zero matrices Addition Multiplication Transpose and inverse The system of m linear equations in n variables x 1, x 2,..., x n a 11 x 1 + a 12 x

More information

Matrix operations Linear Algebra with Computer Science Application

Matrix operations Linear Algebra with Computer Science Application Linear Algebra with Computer Science Application February 14, 2018 1 Matrix operations 11 Matrix operations If A is an m n matrix that is, a matrix with m rows and n columns then the scalar entry in the

More information

Topic 1: Matrix diagonalization

Topic 1: Matrix diagonalization Topic : Matrix diagonalization Review of Matrices and Determinants Definition A matrix is a rectangular array of real numbers a a a m a A = a a m a n a n a nm The matrix is said to be of order n m if it

More information

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and Section 5.5. Matrices and Vectors A matrix is a rectangular array of objects arranged in rows and columns. The objects are called the entries. A matrix with m rows and n columns is called an m n matrix.

More information

Notes on Linear Algebra

Notes on Linear Algebra 1 Notes on Linear Algebra Jean Walrand August 2005 I INTRODUCTION Linear Algebra is the theory of linear transformations Applications abound in estimation control and Markov chains You should be familiar

More information

MATH 2050 Assignment 8 Fall [10] 1. Find the determinant by reducing to triangular form for the following matrices.

MATH 2050 Assignment 8 Fall [10] 1. Find the determinant by reducing to triangular form for the following matrices. MATH 2050 Assignment 8 Fall 2016 [10] 1. Find the determinant by reducing to triangular form for the following matrices. 0 1 2 (a) A = 2 1 4. ANS: We perform the Gaussian Elimination on A by the following

More information

CS 246 Review of Linear Algebra 01/17/19

CS 246 Review of Linear Algebra 01/17/19 1 Linear algebra In this section we will discuss vectors and matrices. We denote the (i, j)th entry of a matrix A as A ij, and the ith entry of a vector as v i. 1.1 Vectors and vector operations A vector

More information

Problem Set (T) If A is an m n matrix, B is an n p matrix and D is a p s matrix, then show

Problem Set (T) If A is an m n matrix, B is an n p matrix and D is a p s matrix, then show MTH 0: Linear Algebra Department of Mathematics and Statistics Indian Institute of Technology - Kanpur Problem Set Problems marked (T) are for discussions in Tutorial sessions (T) If A is an m n matrix,

More information

ENGI 9420 Lecture Notes 2 - Matrix Algebra Page Matrix operations can render the solution of a linear system much more efficient.

ENGI 9420 Lecture Notes 2 - Matrix Algebra Page Matrix operations can render the solution of a linear system much more efficient. ENGI 940 Lecture Notes - Matrix Algebra Page.0. Matrix Algebra A linear system of m equations in n unknowns, a x + a x + + a x b (where the a ij and i n n a x + a x + + a x b n n a x + a x + + a x b m

More information

MATH 213 Linear Algebra and ODEs Spring 2015 Study Sheet for Midterm Exam. Topics

MATH 213 Linear Algebra and ODEs Spring 2015 Study Sheet for Midterm Exam. Topics MATH 213 Linear Algebra and ODEs Spring 2015 Study Sheet for Midterm Exam This study sheet will not be allowed during the test Books and notes will not be allowed during the test Calculators and cell phones

More information

NOTES ON LINEAR ALGEBRA. 1. Determinants

NOTES ON LINEAR ALGEBRA. 1. Determinants NOTES ON LINEAR ALGEBRA 1 Determinants In this section, we study determinants of matrices We study their properties, methods of computation and some applications We are familiar with the following formulas

More information

Linear Equations and Matrix

Linear Equations and Matrix 1/60 Chia-Ping Chen Professor Department of Computer Science and Engineering National Sun Yat-sen University Linear Algebra Gaussian Elimination 2/60 Alpha Go Linear algebra begins with a system of linear

More information

Elementary Linear Algebra

Elementary Linear Algebra Matrices J MUSCAT Elementary Linear Algebra Matrices Definition Dr J Muscat 2002 A matrix is a rectangular array of numbers, arranged in rows and columns a a 2 a 3 a n a 2 a 22 a 23 a 2n A = a m a mn We

More information

Introduction to Matrix Algebra

Introduction to Matrix Algebra Introduction to Matrix Algebra August 18, 2010 1 Vectors 1.1 Notations A p-dimensional vector is p numbers put together. Written as x 1 x =. x p. When p = 1, this represents a point in the line. When p

More information

1 Matrices and Systems of Linear Equations

1 Matrices and Systems of Linear Equations Linear Algebra (part ) : Matrices and Systems of Linear Equations (by Evan Dummit, 207, v 260) Contents Matrices and Systems of Linear Equations Systems of Linear Equations Elimination, Matrix Formulation

More information

Fall Inverse of a matrix. Institute: UC San Diego. Authors: Alexander Knop

Fall Inverse of a matrix. Institute: UC San Diego. Authors: Alexander Knop Fall 2017 Inverse of a matrix Authors: Alexander Knop Institute: UC San Diego Row-Column Rule If the product AB is defined, then the entry in row i and column j of AB is the sum of the products of corresponding

More information

Topic 15 Notes Jeremy Orloff

Topic 15 Notes Jeremy Orloff Topic 5 Notes Jeremy Orloff 5 Transpose, Inverse, Determinant 5. Goals. Know the definition and be able to compute the inverse of any square matrix using row operations. 2. Know the properties of inverses.

More information

Matrices A brief introduction

Matrices A brief introduction Matrices A brief introduction Basilio Bona DAUIN Politecnico di Torino Semester 1, 2014-15 B. Bona (DAUIN) Matrices Semester 1, 2014-15 1 / 44 Definitions Definition A matrix is a set of N real or complex

More information

MATH2210 Notebook 2 Spring 2018

MATH2210 Notebook 2 Spring 2018 MATH2210 Notebook 2 Spring 2018 prepared by Professor Jenny Baglivo c Copyright 2009 2018 by Jenny A. Baglivo. All Rights Reserved. 2 MATH2210 Notebook 2 3 2.1 Matrices and Their Operations................................

More information

A = 3 B = A 1 1 matrix is the same as a number or scalar, 3 = [3].

A = 3 B = A 1 1 matrix is the same as a number or scalar, 3 = [3]. Appendix : A Very Brief Linear ALgebra Review Introduction Linear Algebra, also known as matrix theory, is an important element of all branches of mathematics Very often in this course we study the shapes

More information

EE731 Lecture Notes: Matrix Computations for Signal Processing

EE731 Lecture Notes: Matrix Computations for Signal Processing EE731 Lecture Notes: Matrix Computations for Signal Processing James P. Reilly c Department of Electrical and Computer Engineering McMaster University September 22, 2005 0 Preface This collection of ten

More information

Basics of Calculus and Algebra

Basics of Calculus and Algebra Monika Department of Economics ISCTE-IUL September 2012 Basics of linear algebra Real valued Functions Differential Calculus Integral Calculus Optimization Introduction I A matrix is a rectangular array

More information

7.4. The Inverse of a Matrix. Introduction. Prerequisites. Learning Outcomes

7.4. The Inverse of a Matrix. Introduction. Prerequisites. Learning Outcomes The Inverse of a Matrix 7.4 Introduction In number arithmetic every number a 0has a reciprocal b written as a or such that a ba = ab =. Similarly a square matrix A may have an inverse B = A where AB =

More information

Linear Algebra: Linear Systems and Matrices - Quadratic Forms and Deniteness - Eigenvalues and Markov Chains

Linear Algebra: Linear Systems and Matrices - Quadratic Forms and Deniteness - Eigenvalues and Markov Chains Linear Algebra: Linear Systems and Matrices - Quadratic Forms and Deniteness - Eigenvalues and Markov Chains Joshua Wilde, revised by Isabel Tecu, Takeshi Suzuki and María José Boccardi August 3, 3 Systems

More information

A VERY BRIEF LINEAR ALGEBRA REVIEW for MAP 5485 Introduction to Mathematical Biophysics Fall 2010

A VERY BRIEF LINEAR ALGEBRA REVIEW for MAP 5485 Introduction to Mathematical Biophysics Fall 2010 A VERY BRIEF LINEAR ALGEBRA REVIEW for MAP 5485 Introduction to Mathematical Biophysics Fall 00 Introduction Linear Algebra, also known as matrix theory, is an important element of all branches of mathematics

More information