Matrix & Linear Algebra

Size: px
Start display at page:

Download "Matrix & Linear Algebra"

Transcription

1 Matrix & Linear Algebra Jamie Monogan University of Georgia For more information: Jamie Monogan (UGA) Matrix & Linear Algebra 1 / 84

2 Vectors Vectors Vector: A vector in n-space is an ordered list of n numbers. These numbers can be represented as either a row vector or a column vector: v 1 v = ( ) v 2 v 1 v 2... v n,v =. v n We can also think of a vector as defining a point in n-dimensional space, usually R n ; each element of the vector defines the coordinate of the point in a particular direction. Jamie Monogan (UGA) Matrix & Linear Algebra 2 / 84

3 Vector Arithmetic Vectors Vector Addition: Vector addition is defined for two vectors u and v iff they have the same number of elements: u + v = ( u 1 + v 1 u 2 + v 2 u n + v n ) Let u = ( ), v = ( ). u + v = ( ) = ( ) Jamie Monogan (UGA) Matrix & Linear Algebra 3 / 84

4 Vector Arithmetic Vectors Scalar Multiplication: The product of a scalar c and vector v is: cv = ( cv 1 cv 2... cv n ) Let u = ( ), c = 6. cv = ( ) = ( ) Jamie Monogan (UGA) Matrix & Linear Algebra 4 / 84

5 Vectors Vector Properties Let u,v,w be vectors, c,d be constants, 0 be a vector u s.t. u i = 0. Then, assuming u, v, w, 0 conformable, Commutativity: u + v = v + u Associativity: (u + v) + w = u + (v + w) Distributivity: c(u + v) = cu + cv Scalar Distributivity: (c + d)u = cu + du Additive Identity: u + 0 = u Multiplicative Identity: 1u = u Jamie Monogan (UGA) Matrix & Linear Algebra 5 / 84

6 Transpose Vectors Transpose Transpose: The transpose of a vector u changes u s row/column status. Let u = ( ) be Then, u = 2 is u T = u Jamie Monogan (UGA) Matrix & Linear Algebra 6 / 84

7 Inner Product Vectors Inner Product Inner Product:The Euclidean inner product (also called the dot product) of two vectors u and v is again defined iff they have the same number of elements u v = u 1 v 1 + u 2 v u n v n = Let u = ( ), v = ( ). u v = = = 7. If u v = 0, the vectors are orthogonal (or perpendicular). n i=1 u i v i Jamie Monogan (UGA) Matrix & Linear Algebra 7 / 84

8 Inner Product Vectors Inner Product Think about the u v inner product as }{{} u v 1 k }{{} k 1 = w }{{} 1 1 Or, assume u, v both k 1 columns, then u v v T u u v = v u = ( ) = 7 Jamie Monogan (UGA) Matrix & Linear Algebra 8 / 84

9 Vectors Inner Product Inner Product Properties Commutativity: u v = v u Associativity: c(u v) = (cu) v = u (cv) Distributivity: (u + v) w = u w + v w Zero Product: u 0 = 0 Jamie Monogan (UGA) Matrix & Linear Algebra 9 / 84

10 Matricies Matrix: A matrix is an array of mn real numbers arranged in m rows by n columns. a 11 a 12 a 1n a 21 a 22 a 2n A = a m1 a m2 a mn Jamie Monogan (UGA) Matrix & Linear Algebra 10 / 84

11 Matricies Note: vectors are special cases of matrices; a column vector of length k is a k 1 matrix; a row vector of length k is a 1 k matrix. Think of larger matrices as made up of a collection of row or column vectors. For example, A = ( a 1 a 2 a n ) b 1 B = b 2 b n Jamie Monogan (UGA) Matrix & Linear Algebra 11 / 84

12 Special Matricies Identity: I n = J n = Zero: 0 = Jamie Monogan (UGA) Matrix & Linear Algebra 12 / 84

13 Special Matricies a a Diagonal: a nn a a 21 a Lower Triangular:. a 31 a a n1 a n2... a nn a 11 a a 1n 0 a a 2n Upper Triangular: a nn Triangular: Either upper triangular or lower triangular Jamie Monogan (UGA) Matrix & Linear Algebra 13 / 84

14 Matrix Equality Let A and B be two m n matrices. Then A = B iff i {1,...,m}, j {1,...,n} a ij = b ij Jamie Monogan (UGA) Matrix & Linear Algebra 14 / 84

15 Matrix Addition Addition Let A and B be two m n matrices. Then a 11 + b 11 a 12 + b 12 a 1n + b 1n a 21 + b 21 a 22 + b 22 a 2n + b 2n A + B = a m1 + b m1 a m2 + b m2 a mn + b mn Note that matrices A and B must be the same size, in which case they are conformable for addition. Jamie Monogan (UGA) Matrix & Linear Algebra 15 / 84

16 Matrix Addition Example Addition Example: A = ( ) 1 2 3, B = A + B = ( 1 2 ) ( 2 4 ) Jamie Monogan (UGA) Matrix & Linear Algebra 16 / 84

17 Scalar Multiplication Multiplication Scalar Multiplication: Given the scalar c, the scalar multiplication of ca is a 11 a 12 a 1n ca 11 ca 12 ca 1n a 21 a 22 a 2n ca = c = ca 21 ca 22 ca 2n a m1 a m2 a mn ca m1 ca m2 ca mn Jamie Monogan (UGA) Matrix & Linear Algebra 17 / 84

18 Scalar Multiplication Example Multiplication Example: ( ) c = 2, A = ( ) ca = Jamie Monogan (UGA) Matrix & Linear Algebra 18 / 84

19 Matrix Multiplication Multiplication Matrix Multiplication: If A is an m k matrix and B is a k n matrix, then their product C = AB is the m n matrix where c ij = a i1 b 1j + a i2 b 2j + + a ik b kj Consider A to be composed of stacked rows a i = ( ) a i1 a i2... a in, B to be composed of stacked columns b j = b 2j.... Then, AB = C, b mj where c ij = a i b j b 1j Jamie Monogan (UGA) Matrix & Linear Algebra 19 / 84

20 Matrix Multiplication Examples Multiplication 1 2 a b ( ) aa + bc ab + bd c d A B = ca + dc cb + dd C D e f ea + fc eb + fd ( ) = ( ) 1( 2) + 2(4) 1(2) 1(5) + 2( 3) 1(1) = 3( 2) + 1(4) + 4(2) 3(5) + 1( 3) + 4(1) ( ) Jamie Monogan (UGA) Matrix & Linear Algebra 20 / 84

21 Multiplication Notes on Matrix Multiplication Note that the number of columns of the first matrix must equal the number of rows of the second matrix, in which case they are conformable for multiplication. The sizes of the matrices (including the resulting product) must be (m k)(k n) = (m n) Given AB, say B is pre-multiplied by A, B is left-multiplied by A, A is post-multiplied by B, A is right-multiplied by B Jamie Monogan (UGA) Matrix & Linear Algebra 21 / 84

22 Multiplication Properties of Matrix Algebra 1 Associative: (A + B) + C = A + (B + C) (AB)C = A(BC) 2 Commutative: A + B = B + A 3 Scalar Assoc & Comm: cab = (Ac)B = A(cB) = ABc 4 Scalar Distributive: c(b + C) = cb + cc (c + d)a = ca + da 5 Matrix Distributive: A(B + C) = AB + AC (A + B)C = AC + BC 6 Additive Identity: A + 0 = A 7 Multiplicative Identity: AI n = I m A = A 8 Zero Product: A 0 = 0 A = 0 Jamie Monogan (UGA) Matrix & Linear Algebra 22 / 84

23 Note of Warning: Multiplication Commutative law for multiplication does not hold the order of multiplication matters: AB BA In fact, AB may exist, while BA does not. Jamie Monogan (UGA) Matrix & Linear Algebra 23 / 84

24 Example Multiplication Example: ( ) 2 3 AB = 2 2 ( ) 1 7 BA = 1 3 A = ( ) 1 2, B = 1 3 ( ) Jamie Monogan (UGA) Matrix & Linear Algebra 24 / 84

25 Transpose Transpose Transpose: The transpose of the m n matrix A is the n m matrix A T (or A ) obtained by interchanging the rows and columns of A. Examples: ( ) A =, A T = B = 2 1, B T = ( ) 3 Jamie Monogan (UGA) Matrix & Linear Algebra 25 / 84

26 Transpose Properties of Transpose 1 (A + B) T = A T + B T 2 (A T ) T = A 3 (ca) T = ca T 4 (AB) T = B T A T 5 (ABC... ) T = T...B T A T 6 A is symmetric iff A T = A 7 A is skew-symmetric iff A T = A Jamie Monogan (UGA) Matrix & Linear Algebra 26 / 84

27 Example Transpose Example of (AB) T = B T A T : A = ( ) , B = (AB) T = ( ) T ( ) 12 7 = 5 3 Jamie Monogan (UGA) Matrix & Linear Algebra 27 / 84

28 Example Continued Transpose B T A T = ( ) = ( ) Jamie Monogan (UGA) Matrix & Linear Algebra 28 / 84

29 Transpose Square Matricies Square matrices have the same number of rows and columns; an n n square matrix is referred to as a matrix of order n. The diagonal of a square matrix is the vector of matrix elements that have the same subscripts. If A is a square matrix of order n, then its diagonal is [a 11,a 22,...,a nn ]. Jamie Monogan (UGA) Matrix & Linear Algebra 29 / 84

30 Types of Square Matricies Transpose Symmetric Matrix: A matrix A is symmetric if A = A ; this implies that a ij = a ji for all i and j. Examples: ( ) 1 2 A = = A , B = = B Jamie Monogan (UGA) Matrix & Linear Algebra 30 / 84

31 Types of Square Matricies Transpose Diagonal Matrix: A matrix A is diagonal if all of its non-diagonal entries are zero; formally, if a ij = 0 for all i j Examples: ( ) 1 0 A =, B = Jamie Monogan (UGA) Matrix & Linear Algebra 31 / 84

32 More Types of Square Matrix Transpose Triangular Matrix: A matrix is triangular one of two cases. If all entries below the diagonal are zero (a ij = 0 for all i > j), it is upper triangular. Conversely, if all entries above the diagonal are zero (a ij = 0 for all i < j), it is lower triangular. Examples: A LT = 4 2 0, A UT = Jamie Monogan (UGA) Matrix & Linear Algebra 32 / 84

33 More Types of Square Matrix Transpose Identity Matrix: The n n identity matrix I n is the matrix whose diagonal elements are 1 and all off-diagonal elements are 0. Examples: ( ) I 2 =, I = Jamie Monogan (UGA) Matrix & Linear Algebra 33 / 84

34 Linear Equation Systems of Linear Equations Linear Equation: a 1 x 1 + a 2 x a n x n = b a i are parameters or coefficients. x i are variables or unknowns. Linear : only one variable per term and degree at most 1. 1 R 2 : line x 2 = b a 2 a 1 a 2 x 1 2 R 3 : plane x 3 = a b 3 a 1 a 3 x 1 a 2 3 R n : hyperplane a 3 x 2 Jamie Monogan (UGA) Matrix & Linear Algebra 34 / 84

35 Systems of Linear Equations Systems of Linear Equations Often interested in solving linear systems like x 3y = 3 2x + y = 8 Jamie Monogan (UGA) Matrix & Linear Algebra 35 / 84

36 More Systems of Linear Equations Systems of Linear Equations More generally, we might have a system of m equations in n unknowns 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... a m1 x 1 + a m2 x a mn x n = b m This scalar system is equivalent to the matrix equation Ax = b A solution to a linear system of m equations in n unknowns is a set of n numbers x 1,x 2,,x n that satisfy each of the m equations. 1 R 2 : intersection of the lines. 2 R 3 : intersection of the planes. 3 R n : intersection of the hyperplanes. Jamie Monogan (UGA) Matrix & Linear Algebra 36 / 84

37 Example Systems of Linear Equations Example: x 3y = 3 2x + y = 8 x = 3 and y = 2 is the solution to the above 2 2 linear system. Graphically, the two lines intersect at (3,2). Jamie Monogan (UGA) Matrix & Linear Algebra 37 / 84

38 How many Solutions? Systems of Linear Equations Does a linear system have one, no, or multiple solutions? For a system of 2 equations in 2 unknowns (i.e., two lines): 1 One solution: The lines intersect at exactly one point. 2 No solution: The lines are parallel. 3 Infinite solutions: The lines coincide. Jamie Monogan (UGA) Matrix & Linear Algebra 38 / 84

39 Systems of Linear Equations Methods to Solve Linear Systems 1 Substitution 2 Elimination of variables 3 Matrix methods Jamie Monogan (UGA) Matrix & Linear Algebra 39 / 84

40 Systems of Linear Equations Method of Substitution Procedure: 1 Solve one equation for one variable, say x 1, in terms of the other variables in the equation. 2 Substitute the expression for x 1 into the other m 1 equations, resulting in a new system of m 1 equations in n 1 unknowns. 3 Repeat steps 1 and 2 until one equation in one unknown, say x n. We now have a value for x n. 4 Substitute x n into previous equation, a function of only x n. Repeat, using successive expressions of each variable in terms of the other variables, to find the values of all x i s. Jamie Monogan (UGA) Matrix & Linear Algebra 40 / 84

41 Exercise 1 Systems of Linear Equations Using substitution, solve: x 3y = 3 2x + y = 8 Jamie Monogan (UGA) Matrix & Linear Algebra 41 / 84

42 Exercise 2 Systems of Linear Equations Using substitution, solve x + 2y + 3z = 6 2x 3y + 2z = 14 3x + y z = 2 Jamie Monogan (UGA) Matrix & Linear Algebra 42 / 84

43 Elementary Equation Operations Systems of Linear Equations Elementary equation operations are used to transform the equations of a linear system, while maintaining an equivalent linear system equivalent in the sense that the same values of x j solve both the original and transformed systems. These operations are 1 Interchanging two equations, 2 Multiplying two sides of an equation by a constant, and 3 Adding equations to each other Jamie Monogan (UGA) Matrix & Linear Algebra 43 / 84

44 Interchanging Equations Systems of Linear Equations Interchanging Equations: Given the linear system a 11 x 1 + a 12 x 2 = b 1 a 21 x 1 + a 22 x 2 = b 2 we can interchange its equations, resulting in the equivalent linear system a 21 x 1 + a 22 x 2 = b 2 a 11 x 1 + a 12 x 2 = b 1 Jamie Monogan (UGA) Matrix & Linear Algebra 44 / 84

45 Systems of Linear Equations Multiplying by a Constant Multiplying by a Constant: Suppose we had the following equation: 2 = 2 If we multiply each side of the equation by some number, say 4, we still have an equality: 2(4) = 2(4) = 8 = 8 More generally, we can multiply both sides of any equation by a constant and maintain an equivalent equation. For example, the following two equations are equivalent: a 11 x 1 + a 12 x 2 = b 1 ca 11 x 1 + ca 12 x 2 = cb 1 Jamie Monogan (UGA) Matrix & Linear Algebra 45 / 84

46 Systems of Linear Equations Adding Equations Adding Equations: Suppose we had the following two very simple equations: 3 = 3 7 = 7 If we add these two equations to each other, we get = = 10 = 10 Jamie Monogan (UGA) Matrix & Linear Algebra 46 / 84

47 Systems of Linear Equations More Adding Equations Suppose we now have a = b c = d If we add these two equations to each other, we get a + c = b + d Extending this, suppose we had the linear system a 11 x 1 + a 12 x 2 = b 1 a 21 x 1 + a 22 x 2 = b 2 If we add these two equations to each other, we get (a 11 + a 21 )x 1 + (a 12 + a 22 )x 2 = b 1 + b 2 Jamie Monogan (UGA) Matrix & Linear Algebra 47 / 84

48 Method of Gaussian Elimination Systems of Linear Equations Gaussian Elimination is a method by which we: start with a linear system of m equations in n unknowns, use the elementary equation operations to eliminate variables, and arrive at an equivalent system of the form... Jamie Monogan (UGA) Matrix & Linear Algebra 48 / 84

49 Systems of Linear Equations Method of Gaussian Elimination Continued a 11 x 1 + a 12 x a 1n x n = b 1 a 22 x a 2n x n = b 2.. a mnx n = b m Where a ij denotes the coefficient of the jth unknown in the ith equation after the above transformation. At each stage of the elimination process, we want to change some coefficient to 0 by adding a multiple of an earlier equation to the given equation. Jamie Monogan (UGA) Matrix & Linear Algebra 49 / 84

50 Systems of Linear Equations Method of Gaussian Elimination Continued The coefficients a 11, a 22, etc. are pivots. They are used to eliminate the variables in the rows below them in their respective columns. 1 Once the linear system is in the above reduced form, we then use back substitution to find the values of the x j s. 1 As we ll see, pivots don t need to be on the i = j diagonal. Additionally, sometimes when we pivot, we will eliminate variables in rows above a pivot. Jamie Monogan (UGA) Matrix & Linear Algebra 50 / 84

51 Example 1 Systems of Linear Equations Using Gaussian elimination, solve x 3y = 3 2x + y = 8 Jamie Monogan (UGA) Matrix & Linear Algebra 51 / 84

52 Example 2 Systems of Linear Equations Using Gaussian elimination, solve x + 2y + 3z = 6 2x 3y + 2z = 14 3x + y z = 2 Jamie Monogan (UGA) Matrix & Linear Algebra 52 / 84

53 Systems of Linear Equations Method of Gauss-Jordan Elimination The method of Gauss-Jordan elimination takes the Gaussian elimination method one step further. Once the linear system is in the reduced form shown in the preceding section, elementary row operations and Gaussian elimination are used to 1 Change the coefficient of the pivot term in each equation to 1 and 2 Eliminate all terms above each pivot in its column, resulting in a reduced, equivalent system. Jamie Monogan (UGA) Matrix & Linear Algebra 53 / 84

54 Systems of Linear Equations Gauss-Jordan Elimination Continued For a system of m equations in m unknowns, a typical reduced system would be x 1 = b 1 x 2 = b 2 x 3 =.... b 3 which needs no further work to solve for the x j s. x m = b m Jamie Monogan (UGA) Matrix & Linear Algebra 54 / 84

55 Example 1 Systems of Linear Equations Using Gauss-Jordan elimination, solve x 3y = 3 2x + y = 8 Jamie Monogan (UGA) Matrix & Linear Algebra 55 / 84

56 Example 2 Systems of Linear Equations Using Gauss-Jordan elimination, solve x + 2y + 3z = 6 2x 3y + 2z = 14 3x + y z = 2 Jamie Monogan (UGA) Matrix & Linear Algebra 56 / 84

57 Systems of Linear Equations Matricies to Represent Linear Systems are an efficient way to represent linear systems such as as Ax = b 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... a m1 x 1 + a m2 x a mn x n = b m Jamie Monogan (UGA) Matrix & Linear Algebra 57 / 84

58 Coefficient Matrix Systems of Linear Equations The m n coefficient matrix A is an array of mn real numbers arranged in m rows by n columns: a 11 a 12 a 1n a 21 a 22 a 2n A =..... a m1 a m2 a mn Jamie Monogan (UGA) Matrix & Linear Algebra 58 / 84

59 Variable & Output Vectors Systems of Linear Equations x 2 The unknown quantities are represented by the vector x =.. b 2 The RHS of the linear system is represented by the vector b =.. b m x 1 x n b 1 Jamie Monogan (UGA) Matrix & Linear Algebra 59 / 84

60 Augmented Matrix Systems of Linear Equations Augmented Matrix: When we append b to the coefficient matrix A, we get the augmented matrix  = [A b] a 11 a 12 a 1n b 1 a 21 a 22 a 2n b a m1 a m2 a mn b m Jamie Monogan (UGA) Matrix & Linear Algebra 60 / 84

61 Row Operations Systems of Linear Equations Elementary Row Operations: Elementary row operations, similar to elementary equation operations, transform some augmented matrix representation of a linear system into another augmented matrix that represents an equivalent linear system. Jamie Monogan (UGA) Matrix & Linear Algebra 61 / 84

62 Systems of Linear Equations Row Operations Since we re operating on equations when we operate on matrix rows, the elementary row operations correspond exactly to the equation operations: 1 (Interchange two rows) = (Interchange two equations) 2 (Multiply row by a constant) = (Multiply equation by a constant) 3 (Add two rows) = (Add two equations) Jamie Monogan (UGA) Matrix & Linear Algebra 62 / 84

63 Interchanging Rows Systems of Linear Equations Interchanging Rows: Suppose we have the augmented matrix ( ) a11 a  = 12 b 1 a 21 a 22 b 2 If we interchange the two rows, we get the augmented matrix ( a21 a 22 ) b 2 a 11 a 12 b 1 which represents linear system equivalent to that represented by Â. Jamie Monogan (UGA) Matrix & Linear Algebra 63 / 84

64 Multiplying by a Constant Systems of Linear Equations Multiplying by a Constant: If we multiply the second row of matrix  by a constant c, we get the augmented matrix ( ) a11 a 12 b 1 ca 21 ca 22 cb 2 which represents linear system equivalent to that represented by Â. Jamie Monogan (UGA) Matrix & Linear Algebra 64 / 84

65 Adding Rows Systems of Linear Equations Adding Rows: If we add the first row of matrix  to the second, we obtain the augmented matrix ( ) a11 a 12 b 1 a 11 + a 21 a 12 + a 22 b 1 + b 2 which represents linear system equivalent to that represented by Â. Jamie Monogan (UGA) Matrix & Linear Algebra 65 / 84

66 Elementary Matricies Systems of Linear Equations Elementary matrices come from performing an elem row op on I n When premultiplying A, elem matrices perform elem row ops on A Examples: ( ) Jamie Monogan (UGA) Matrix & Linear Algebra 66 / 84

67 Elementary Matricies Example Systems of Linear Equations Let E = and A = Then EA = = Jamie Monogan (UGA) Matrix & Linear Algebra 67 / 84

68 Row Echelon Form Systems of Linear Equations We use the row operations to change coefficients in the augmented matrix to 0 i.e., pivot to eliminate variables and to put it in a matrix form representing the final linear system of Gaussian elimination. An augmented matrix of the form a 11 a 12 a 13 a 1n b 1 0 a 22 a 23 a 2n b a 33 a 3n b a mn b m is said to be in row echelon form each row has more leading zeros than the row preceding it. Jamie Monogan (UGA) Matrix & Linear Algebra 68 / 84

69 Reduced Row Echelon Form Systems of Linear Equations Reduced Row Echelon Form: Reduced row echelon form is the matrix representation of a linear system after Gauss-Jordan elimination. For a system of m equations in m unknowns, with no all-zero rows, the reduced row echelon form would be b b b b m Jamie Monogan (UGA) Matrix & Linear Algebra 69 / 84

70 Example 1 Systems of Linear Equations Using matrix methods, solve the following linear system by Gaussian elimination and then Gauss-Jordan elimination: x 3y = 3 2x + y = 8 Jamie Monogan (UGA) Matrix & Linear Algebra 70 / 84

71 Example 2 Systems of Linear Equations x + 2y + 3z = 6 2x 3y + 2z = 14 3x + y z = 2 Jamie Monogan (UGA) Matrix & Linear Algebra 71 / 84

72 Matrix Inverse Inverse of a Matrix An n n matrix A is nonsingular or invertible if there exists an n n matrix A 1 such that AA 1 = A 1 A = I n Then, A 1 is the inverse of A. If there is no such A 1, then A is singular or noninvertible. Jamie Monogan (UGA) Matrix & Linear Algebra 72 / 84

73 Example of Inverses Matrix Inverse Example: Let A = ( ) ( ) , B = Since AB = BA = I n we conclude that B is the inverse of A, A 1, and that A is nonsingular. Jamie Monogan (UGA) Matrix & Linear Algebra 73 / 84

74 Properties of the Inverse Matrix Inverse Assume A,B, D nonsingular. Then, 1 A 1 exists. 2 A 1 is unique. 3 A 1 is nonsingular. 4 (A 1 ) 1 = A 5 (AB) 1 exists. 6 (AB) 1 = B 1 A 1 7 (A T ) 1 = (A 1 ) T 1 d D 1 0 d = d nn 9 I 1 = I 10 (ca) 1 = 1 c A 1 11 (A n ) 1 = A n Jamie Monogan (UGA) Matrix & Linear Algebra 74 / 84

75 Matrix Inverse Calculating the Inverse We know that if B is the inverse of A, then AB = BA = I n Looking only at the first and last parts of this AB = I n Solving for B is equivalent to solving for n linear systems, where each column of B is solved for the corresponding column in I n. Jamie Monogan (UGA) Matrix & Linear Algebra 75 / 84

76 Matrix Inverse Calculating the Inverse In performing Gauss-Jordan elimination for each individual system, the same row operations will be performed on A regardless of the column of B and I n. Hence, we can solve the systems simultaneously by augmenting A with I n and performing Gauss-Jordan elimination on A. Note that for the square matrix A, Gauss-Jordan elimination should result in A becoming row equivalent to I n. Therefore, if Gauss-Jordan elimination on [A I n ] results in [I n B], then B is the inverse of A. Otherwise, A is singular Jamie Monogan (UGA) Matrix & Linear Algebra 76 / 84

77 Calculating the Inverse Matrix Inverse 1 Form the augmented matrix [A I n ] 2 Using elementary row operations, transform the augmented matrix to reduced row echelon form. 3 The result of step 2 is an augmented matrix [C B]. 1 If C = I n, then B = A 1. 2 If C I n, then C has a row of zeros. A is singular and A 1 does not exist. Jamie Monogan (UGA) Matrix & Linear Algebra 77 / 84

78 Example Matrix Inverse Find the inverse of A = ( ) A I3 = = = Jamie Monogan (UGA) Matrix & Linear Algebra 78 / 84

79 Example Matrix Inverse = = = = = Jamie Monogan (UGA) Matrix & Linear Algebra 79 / 84

80 Check Matrix Inverse (See R check.) AA = = A A = I = = = I 3 A = A 1 Jamie Monogan (UGA) Matrix & Linear Algebra 80 / 84

81 Matrix Inverse Linear Systems and Inverses Let s return to the matrix representation of a linear system Ax = b If A is an n n matrix,then Ax = b is a system of n equations in n unknowns. Suppose A is nonsingular = A 1 exists. To solve this system, we can premultiply each side by A 1 and simplify: A 1 (Ax) = A 1 b (A 1 A)x = A 1 b I n x = A 1 b x = A 1 b Jamie Monogan (UGA) Matrix & Linear Algebra 81 / 84

82 Matrix Inverse Linear Systems and Inverses Hence, given A and b and given that A is nonsingular, then x = A 1 b is a unique solution to this system. Notice also that the requirements for A to be nonsingular correspond to the requirements for a linear system to have a unique solution: rank A = rows A = cols A. Jamie Monogan (UGA) Matrix & Linear Algebra 82 / 84

83 Linear Regression Parameters Matrix Inverse We often have linear systems with n obs and k indep vars. Let X be n k matrix of indep variable data, y be n 1 vector of dependent variable values, b be k 1 vector of linear parameters Then Xb = y Since usually n k, X not square To isolate b, how to make premultiplying matrix square? Observe: X (n k)(k n) X = (n n) can t premultiply b. But this can: X X = (k n)(n k) (k k) Jamie Monogan (UGA) Matrix & Linear Algebra 83 / 84

84 Matrix Inverse Linear Regression Parameters Xb = y X Xb = X y How to isolate b? Multiply by an inverse. (X X) 1 X Xb = (X X) 1 X y I k b = (X X) 1 X y b = (X X) 1 X y Befriend (X X) 1 X y. If you understand it, its cousins, and their properties (both strengths and weaknesses), your data-analytic future will be bright. Jamie Monogan (UGA) Matrix & Linear Algebra 84 / 84

Math Camp II. Basic Linear Algebra. Yiqing Xu. Aug 26, 2014 MIT

Math Camp II. Basic Linear Algebra. Yiqing Xu. Aug 26, 2014 MIT Math Camp II Basic Linear Algebra Yiqing Xu MIT Aug 26, 2014 1 Solving Systems of Linear Equations 2 Vectors and Vector Spaces 3 Matrices 4 Least Squares Systems of Linear Equations Definition A linear

More information

Matrix Algebra. Matrix Algebra. Chapter 8 - S&B

Matrix Algebra. Matrix Algebra. Chapter 8 - S&B Chapter 8 - S&B Algebraic operations Matrix: The size of a matrix is indicated by the number of its rows and the number of its columns. A matrix with k rows and n columns is called a k n matrix. The number

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

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations Chapter 1: Systems of linear equations and matrices Section 1.1: Introduction to systems of linear equations Definition: A linear equation in n variables can be expressed in the form a 1 x 1 + a 2 x 2

More information

Matrix Arithmetic. j=1

Matrix Arithmetic. j=1 An m n matrix is an array A = Matrix Arithmetic a 11 a 12 a 1n a 21 a 22 a 2n a m1 a m2 a mn of real numbers a ij An m n matrix has m rows and n columns a ij is the entry in the i-th row and j-th column

More information

Linear Algebra. James Je Heon Kim

Linear Algebra. James Je Heon Kim Linear lgebra James Je Heon Kim (jjk9columbia.edu) If you are unfamiliar with linear or matrix algebra, you will nd that it is very di erent from basic algebra or calculus. For the duration of this session,

More information

POLI270 - Linear Algebra

POLI270 - Linear Algebra POLI7 - Linear Algebra Septemer 8th Basics a x + a x +... + a n x n b () is the linear form where a, b are parameters and x n are variables. For a given equation such as x +x you only need a variable and

More information

Systems of Linear Equations and Matrices

Systems of Linear Equations and Matrices Chapter 1 Systems of Linear Equations and Matrices System of linear algebraic equations and their solution constitute one of the major topics studied in the course known as linear algebra. In the first

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

Systems of Linear Equations and Matrices

Systems of Linear Equations and Matrices Chapter 1 Systems of Linear Equations and Matrices System of linear algebraic equations and their solution constitute one of the major topics studied in the course known as linear algebra. In the first

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

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

Introduction. Vectors and Matrices. Vectors [1] Vectors [2]

Introduction. Vectors and Matrices. Vectors [1] Vectors [2] Introduction Vectors and Matrices Dr. TGI Fernando 1 2 Data is frequently arranged in arrays, that is, sets whose elements are indexed by one or more subscripts. Vector - one dimensional array Matrix -

More information

System of Linear Equations

System of Linear Equations Chapter 7 - S&B Gaussian and Gauss-Jordan Elimination We will study systems of linear equations by describing techniques for solving such systems. The preferred solution technique- Gaussian elimination-

More information

MAT 2037 LINEAR ALGEBRA I web:

MAT 2037 LINEAR ALGEBRA I web: MAT 237 LINEAR ALGEBRA I 2625 Dokuz Eylül University, Faculty of Science, Department of Mathematics web: Instructor: Engin Mermut http://kisideuedutr/enginmermut/ HOMEWORK 2 MATRIX ALGEBRA Textbook: Linear

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

Finite Mathematics Chapter 2. where a, b, c, d, h, and k are real numbers and neither a and b nor c and d are both zero.

Finite Mathematics Chapter 2. where a, b, c, d, h, and k are real numbers and neither a and b nor c and d are both zero. Finite Mathematics Chapter 2 Section 2.1 Systems of Linear Equations: An Introduction Systems of Equations Recall that a system of two linear equations in two variables may be written in the general form

More information

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511) GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511) D. ARAPURA Gaussian elimination is the go to method for all basic linear classes including this one. We go summarize the main ideas. 1.

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

Inverting Matrices. 1 Properties of Transpose. 2 Matrix Algebra. P. Danziger 3.2, 3.3

Inverting Matrices. 1 Properties of Transpose. 2 Matrix Algebra. P. Danziger 3.2, 3.3 3., 3.3 Inverting Matrices P. Danziger 1 Properties of Transpose Transpose has higher precedence than multiplication and addition, so AB T A ( B T and A + B T A + ( B T As opposed to the bracketed expressions

More information

Linear Algebra. The analysis of many models in the social sciences reduces to the study of systems of equations.

Linear Algebra. The analysis of many models in the social sciences reduces to the study of systems of equations. POLI 7 - Mathematical and Statistical Foundations Prof S Saiegh Fall Lecture Notes - Class 4 October 4, Linear Algebra The analysis of many models in the social sciences reduces to the study of systems

More information

Matrices and systems of linear equations

Matrices and systems of linear equations Matrices and systems of linear equations Samy Tindel Purdue University Differential equations and linear algebra - MA 262 Taken from Differential equations and linear algebra by Goode and Annin Samy T.

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

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

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 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

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

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

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

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 313 Chapter 1 Review

Math 313 Chapter 1 Review Math 313 Chapter 1 Review Howard Anton, 9th Edition May 2010 Do NOT write on me! Contents 1 1.1 Introduction to Systems of Linear Equations 2 2 1.2 Gaussian Elimination 3 3 1.3 Matrices and Matrix Operations

More information

CHAPTER 8: Matrices and Determinants

CHAPTER 8: Matrices and Determinants (Exercises for Chapter 8: Matrices and Determinants) E.8.1 CHAPTER 8: Matrices and Determinants (A) means refer to Part A, (B) means refer to Part B, etc. Most of these exercises can be done without a

More information

CLASS 12 ALGEBRA OF MATRICES

CLASS 12 ALGEBRA OF MATRICES CLASS 12 ALGEBRA OF MATRICES Deepak Sir 9811291604 SHRI SAI MASTERS TUITION CENTER CLASS 12 A matrix is an ordered rectangular array of numbers or functions. The numbers or functions are called the elements

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

Linear Algebra March 16, 2019

Linear Algebra March 16, 2019 Linear Algebra March 16, 2019 2 Contents 0.1 Notation................................ 4 1 Systems of linear equations, and matrices 5 1.1 Systems of linear equations..................... 5 1.2 Augmented

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

7.6 The Inverse of a Square Matrix

7.6 The Inverse of a Square Matrix 7.6 The Inverse of a Square Matrix Copyright Cengage Learning. All rights reserved. What You Should Learn Verify that two matrices are inverses of each other. Use Gauss-Jordan elimination to find inverses

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

A Review of Matrix Analysis

A Review of Matrix Analysis Matrix Notation Part Matrix Operations Matrices are simply rectangular arrays of quantities Each quantity in the array is called an element of the matrix and an element can be either a numerical value

More information

4 Elementary matrices, continued

4 Elementary matrices, continued 4 Elementary matrices, continued We have identified 3 types of row operations and their corresponding elementary matrices. If you check the previous examples, you ll find that these matrices are constructed

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

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

4 Elementary matrices, continued

4 Elementary matrices, continued 4 Elementary matrices, continued We have identified 3 types of row operations and their corresponding elementary matrices. To repeat the recipe: These matrices are constructed by performing the given row

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

LINEAR SYSTEMS, MATRICES, AND VECTORS

LINEAR SYSTEMS, MATRICES, AND VECTORS ELEMENTARY LINEAR ALGEBRA WORKBOOK CREATED BY SHANNON MARTIN MYERS LINEAR SYSTEMS, MATRICES, AND VECTORS Now that I ve been teaching Linear Algebra for a few years, I thought it would be great to integrate

More information

Chapter 1 Matrices and Systems of Equations

Chapter 1 Matrices and Systems of Equations Chapter 1 Matrices and Systems of Equations System of Linear Equations 1. A linear equation in n unknowns is an equation of the form n i=1 a i x i = b where a 1,..., a n, b R and x 1,..., x n are variables.

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

Systems of Linear Equations. By: Tri Atmojo Kusmayadi and Mardiyana Mathematics Education Sebelas Maret University

Systems of Linear Equations. By: Tri Atmojo Kusmayadi and Mardiyana Mathematics Education Sebelas Maret University Systems of Linear Equations By: Tri Atmojo Kusmayadi and Mardiyana Mathematics Education Sebelas Maret University Standard of Competency: Understanding the properties of systems of linear equations, matrices,

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

We could express the left side as a sum of vectors and obtain the Vector Form of a Linear System: a 12 a x n. a m2

We could express the left side as a sum of vectors and obtain the Vector Form of a Linear System: a 12 a x n. a m2 Week 22 Equations, Matrices and Transformations Coefficient Matrix and Vector Forms of a Linear System Suppose we have a system of m linear equations in n unknowns a 11 x 1 + a 12 x 2 + + a 1n x n b 1

More information

Section 9.2: Matrices.. a m1 a m2 a mn

Section 9.2: Matrices.. a m1 a m2 a mn Section 9.2: Matrices Definition: A matrix is a rectangular array of numbers: a 11 a 12 a 1n a 21 a 22 a 2n A =...... a m1 a m2 a mn In general, a ij denotes the (i, j) entry of A. That is, the entry in

More information

APPENDIX: MATHEMATICAL INDUCTION AND OTHER FORMS OF PROOF

APPENDIX: MATHEMATICAL INDUCTION AND OTHER FORMS OF PROOF ELEMENTARY LINEAR ALGEBRA WORKBOOK/FOR USE WITH RON LARSON S TEXTBOOK ELEMENTARY LINEAR ALGEBRA CREATED BY SHANNON MARTIN MYERS APPENDIX: MATHEMATICAL INDUCTION AND OTHER FORMS OF PROOF When you are done

More information

Review of Vectors and Matrices

Review of Vectors and Matrices A P P E N D I X D Review of Vectors and Matrices D. VECTORS D.. Definition of a Vector Let p, p, Á, p n be any n real numbers and P an ordered set of these real numbers that is, P = p, p, Á, p n Then P

More information

Matrix Operations. Linear Combination Vector Algebra Angle Between Vectors Projections and Reflections Equality of matrices, Augmented Matrix

Matrix Operations. Linear Combination Vector Algebra Angle Between Vectors Projections and Reflections Equality of matrices, Augmented Matrix Linear Combination Vector Algebra Angle Between Vectors Projections and Reflections Equality of matrices, Augmented Matrix Matrix Operations Matrix Addition and Matrix Scalar Multiply Matrix Multiply Matrix

More information

3. Vector spaces 3.1 Linear dependence and independence 3.2 Basis and dimension. 5. Extreme points and basic feasible solutions

3. Vector spaces 3.1 Linear dependence and independence 3.2 Basis and dimension. 5. Extreme points and basic feasible solutions A. LINEAR ALGEBRA. CONVEX SETS 1. Matrices and vectors 1.1 Matrix operations 1.2 The rank of a matrix 2. Systems of linear equations 2.1 Basic solutions 3. Vector spaces 3.1 Linear dependence and independence

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

Matrices and Determinants

Matrices and Determinants Chapter1 Matrices and Determinants 11 INTRODUCTION Matrix means an arrangement or array Matrices (plural of matrix) were introduced by Cayley in 1860 A matrix A is rectangular array of m n numbers (or

More information

Review of Linear Algebra

Review of Linear Algebra Review of Linear Algebra Definitions An m n (read "m by n") matrix, is a rectangular array of entries, where m is the number of rows and n the number of columns. 2 Definitions (Con t) A is square if m=

More information

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form Chapter 5. Linear Algebra A linear (algebraic) equation in n unknowns, x 1, x 2,..., x n, is an equation of the form a 1 x 1 + a 2 x 2 + + a n x n = b where a 1, a 2,..., a n and b are real numbers. 1

More information

. =. a i1 x 1 + a i2 x 2 + a in x n = b i. a 11 a 12 a 1n a 21 a 22 a 1n. i1 a i2 a in

. =. a i1 x 1 + a i2 x 2 + a in x n = b i. a 11 a 12 a 1n a 21 a 22 a 1n. i1 a i2 a in Vectors and Matrices Continued Remember that our goal is to write a system of algebraic equations as a matrix equation. Suppose we have the n linear algebraic equations a x + a 2 x 2 + a n x n = b a 2

More information

Extra Problems: Chapter 1

Extra Problems: Chapter 1 MA131 (Section 750002): Prepared by Asst.Prof.Dr.Archara Pacheenburawana 1 Extra Problems: Chapter 1 1. In each of the following answer true if the statement is always true and false otherwise in the space

More information

Topics. Vectors (column matrices): Vector addition and scalar multiplication The matrix of a linear function y Ax The elements of a matrix A : A ij

Topics. Vectors (column matrices): Vector addition and scalar multiplication The matrix of a linear function y Ax The elements of a matrix A : A ij Topics Vectors (column matrices): Vector addition and scalar multiplication The matrix of a linear function y Ax The elements of a matrix A : A ij or a ij lives in row i and column j Definition of a matrix

More information

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra 1/33

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra 1/33 Linear Algebra 1/33 Vectors A vector is a magnitude and a direction Magnitude = v Direction Also known as norm, length Represented by unit vectors (vectors with a length of 1 that point along distinct

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

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

Elementary Linear Algebra

Elementary Linear Algebra Elementary Linear Algebra Linear algebra is the study of; linear sets of equations and their transformation properties. Linear algebra allows the analysis of; rotations in space, least squares fitting,

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

CHAPTER 6. Direct Methods for Solving Linear Systems

CHAPTER 6. Direct Methods for Solving Linear Systems CHAPTER 6 Direct Methods for Solving Linear Systems. Introduction A direct method for approximating the solution of a system of n linear equations in n unknowns is one that gives the exact solution to

More information

Review of Matrices and Block Structures

Review of Matrices and Block Structures CHAPTER 2 Review of Matrices and Block Structures Numerical linear algebra lies at the heart of modern scientific computing and computational science. Today it is not uncommon to perform numerical computations

More information

Section 9.2: Matrices. Definition: A matrix A consists of a rectangular array of numbers, or elements, arranged in m rows and n columns.

Section 9.2: Matrices. Definition: A matrix A consists of a rectangular array of numbers, or elements, arranged in m rows and n columns. Section 9.2: Matrices Definition: A matrix A consists of a rectangular array of numbers, or elements, arranged in m rows and n columns. That is, a 11 a 12 a 1n a 21 a 22 a 2n A =...... a m1 a m2 a mn A

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

Numerical Analysis Lecture Notes

Numerical Analysis Lecture Notes Numerical Analysis Lecture Notes Peter J Olver 3 Review of Matrix Algebra Vectors and matrices are essential for modern analysis of systems of equations algebrai, differential, functional, etc In this

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

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

Linear Algebra Tutorial for Math3315/CSE3365 Daniel R. Reynolds

Linear Algebra Tutorial for Math3315/CSE3365 Daniel R. Reynolds Linear Algebra Tutorial for Math3315/CSE3365 Daniel R. Reynolds These notes are meant to provide a brief introduction to the topics from Linear Algebra that will be useful in Math3315/CSE3365, Introduction

More information

CS100: DISCRETE STRUCTURES. Lecture 3 Matrices Ch 3 Pages:

CS100: DISCRETE STRUCTURES. Lecture 3 Matrices Ch 3 Pages: CS100: DISCRETE STRUCTURES Lecture 3 Matrices Ch 3 Pages: 246-262 Matrices 2 Introduction DEFINITION 1: A matrix is a rectangular array of numbers. A matrix with m rows and n columns is called an m x n

More information

Matrices and Matrix Algebra.

Matrices and Matrix Algebra. Matrices and Matrix Algebra 3.1. Operations on Matrices Matrix Notation and Terminology Matrix: a rectangular array of numbers, called entries. A matrix with m rows and n columns m n A n n matrix : a square

More information

ECON 186 Class Notes: Linear Algebra

ECON 186 Class Notes: Linear Algebra ECON 86 Class Notes: Linear Algebra Jijian Fan Jijian Fan ECON 86 / 27 Singularity and Rank As discussed previously, squareness is a necessary condition for a matrix to be nonsingular (have an inverse).

More information

Linear Equations in Linear Algebra

Linear Equations in Linear Algebra 1 Linear Equations in Linear Algebra 1.7 LINEAR INDEPENDENCE LINEAR INDEPENDENCE Definition: An indexed set of vectors {v 1,, v p } in n is said to be linearly independent if the vector equation x x x

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

Elementary matrices, continued. To summarize, we have identified 3 types of row operations and their corresponding

Elementary matrices, continued. To summarize, we have identified 3 types of row operations and their corresponding Elementary matrices, continued To summarize, we have identified 3 types of row operations and their corresponding elementary matrices. If you check the previous examples, you ll find that these matrices

More information

Math 4A Notes. Written by Victoria Kala Last updated June 11, 2017

Math 4A Notes. Written by Victoria Kala Last updated June 11, 2017 Math 4A Notes Written by Victoria Kala vtkala@math.ucsb.edu Last updated June 11, 2017 Systems of Linear Equations A linear equation is an equation that can be written in the form a 1 x 1 + a 2 x 2 +...

More information

Introduction to Matrices and Linear Systems Ch. 3

Introduction to Matrices and Linear Systems Ch. 3 Introduction to Matrices and Linear Systems Ch. 3 Doreen De Leon Department of Mathematics, California State University, Fresno June, 5 Basic Matrix Concepts and Operations Section 3.4. Basic Matrix Concepts

More information

MAC1105-College Algebra. Chapter 5-Systems of Equations & Matrices

MAC1105-College Algebra. Chapter 5-Systems of Equations & Matrices MAC05-College Algebra Chapter 5-Systems of Equations & Matrices 5. Systems of Equations in Two Variables Solving Systems of Two Linear Equations/ Two-Variable Linear Equations A system of equations is

More information

Chapter 7. Linear Algebra: Matrices, Vectors,

Chapter 7. Linear Algebra: Matrices, Vectors, Chapter 7. Linear Algebra: Matrices, Vectors, Determinants. Linear Systems Linear algebra includes the theory and application of linear systems of equations, linear transformations, and eigenvalue problems.

More information

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra /34

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra /34 Linear Algebra /34 Vectors A vector is a magnitude and a direction Magnitude = v Direction Also known as norm, length Represented by unit vectors (vectors with a length of 1 that point along distinct axes)

More information

Math 314/814 Topics for first exam

Math 314/814 Topics for first exam Chapter 2: Systems of linear equations Math 314/814 Topics for first exam Some examples Systems of linear equations: 2x 3y z = 6 3x + 2y + z = 7 Goal: find simultaneous solutions: all x, y, z satisfying

More information

Math Camp Lecture 4: Linear Algebra. Xiao Yu Wang. Aug 2010 MIT. Xiao Yu Wang (MIT) Math Camp /10 1 / 88

Math Camp Lecture 4: Linear Algebra. Xiao Yu Wang. Aug 2010 MIT. Xiao Yu Wang (MIT) Math Camp /10 1 / 88 Math Camp 2010 Lecture 4: Linear Algebra Xiao Yu Wang MIT Aug 2010 Xiao Yu Wang (MIT) Math Camp 2010 08/10 1 / 88 Linear Algebra Game Plan Vector Spaces Linear Transformations and Matrices Determinant

More information

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3 ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3 ISSUED 24 FEBRUARY 2018 1 Gaussian elimination Let A be an (m n)-matrix Consider the following row operations on A (1) Swap the positions any

More information

ELEMENTARY LINEAR ALGEBRA

ELEMENTARY LINEAR ALGEBRA ELEMENTARY LINEAR ALGEBRA K R MATTHEWS DEPARTMENT OF MATHEMATICS UNIVERSITY OF QUEENSLAND First Printing, 99 Chapter LINEAR EQUATIONS Introduction to linear equations A linear equation in n unknowns x,

More information

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET This is a (not quite comprehensive) list of definitions and theorems given in Math 1553. Pay particular attention to the ones in red. Study Tip For each

More information

Introduction to Matrices

Introduction to Matrices POLS 704 Introduction to Matrices Introduction to Matrices. The Cast of Characters A matrix is a rectangular array (i.e., a table) of numbers. For example, 2 3 X 4 5 6 (4 3) 7 8 9 0 0 0 Thismatrix,with4rowsand3columns,isoforder

More information

Basic Concepts in Linear Algebra

Basic Concepts in Linear Algebra Basic Concepts in Linear Algebra Grady B Wright Department of Mathematics Boise State University February 2, 2015 Grady B Wright Linear Algebra Basics February 2, 2015 1 / 39 Numerical Linear Algebra Linear

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

22A-2 SUMMER 2014 LECTURE 5

22A-2 SUMMER 2014 LECTURE 5 A- SUMMER 0 LECTURE 5 NATHANIEL GALLUP Agenda Elimination to the identity matrix Inverse matrices LU factorization Elimination to the identity matrix Previously, we have used elimination to get a system

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

Solving Systems of Linear Equations

Solving Systems of Linear Equations LECTURE 5 Solving Systems of Linear Equations Recall that we introduced the notion of matrices as a way of standardizing the expression of systems of linear equations In today s lecture I shall show how

More information

BASIC NOTIONS. x + y = 1 3, 3x 5y + z = A + 3B,C + 2D, DC are not defined. A + C =

BASIC NOTIONS. x + y = 1 3, 3x 5y + z = A + 3B,C + 2D, DC are not defined. A + C = CHAPTER I BASIC NOTIONS (a) 8666 and 8833 (b) a =6,a =4 will work in the first case, but there are no possible such weightings to produce the second case, since Student and Student 3 have to end up with

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

MTH 464: Computational Linear Algebra

MTH 464: Computational Linear Algebra MTH 464: Computational Linear Algebra Lecture Outlines Exam 2 Material Prof. M. Beauregard Department of Mathematics & Statistics Stephen F. Austin State University February 6, 2018 Linear Algebra (MTH

More information