A Review of Matrix Analysis

Size: px
Start display at page:

Download "A Review of Matrix Analysis"

Transcription

1 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 a symbolic expression or another matrix The number of rows and columns in the matrix indicate the size of the matrix Definition : The number of rows in a matrix is called the row dimension of the matrix and the number of columns is called the column dimension matrix with M rows and N columns is called an M N matrix and has MN elements Notice that the row dimension is always stated first followed by the column dimension Throughout this review symbolic matrices will always be denoted using boldface type while the elements of matrices will be put in square brackets For example a 3 4 matrix of ones would be denoted by If a matrix is used in a purely symbolic fashion it may be helpful to indicate its dimensions For example if B is a 4 matrix and C is a 4 4 then the product of B and C might be written as B 4 C 4 4 Note : matrix with only one row and one column is equivalent to a scalar Definition : If we turn every row in a given matrix into a column in a new matrix B the new matrix B is called the transpose of denoted by B T If is M N then B will be N M Example : If 0 then T Definition 3: matrix with M rows and one column is called a vector while a matrix with one row and M columns is the transpose of a vector but is not a vector itself Definition 4: ny ordered array of numbers or expressions can be considered a vector For R L Rankin R /6/98

2 example the array ( x 3 y z) can be written as the vector v x 3 y z and v T x 3 y z Note : Vectors by default are always matrices with one column Matrices with only one row are the transpose of vectors but are usually not referred to as vectors By convention we will always try to use lower case letters for vectors and their transposes and upper case letters for matrices whose row and column dimensions are both greater than one Notice that if a is an M vector and b is an M vector with the same elements as a they are not equal to one another since they have different row and column dimensions subscript notation is used to refer to the elements of a matrix For example if is a 5 3 matrix the element in row 4 and column would be indicated by 4 gain notice that the row number is the first subscript the column number is the second Example : For the vector v in the last example we have however the element v 4 does not exist v 4 y ( v T ) 4 Matrix ddition and Subtraction Only matrices with equal numbers of rows and columns can be added or subtracted The operation of addition or subtraction is carried out by adding or subtracting the corresponding elements of each matrix Definition 5: If M N has elements ij and B M N has elements B ij then their sum or difference is given by C M N M N ± B M N and the elements C ij of C M N are computed using M N + B M N M N B M N () ij + B ij C ij ij ± B ij i M j N () ij B ij Matrix addition and subtraction have the additional property that they are associative ie they satisfy R L Rankin R /6/98

3 C + B B + and C B B + (3) Example 3: Find the sum and difference of and B if Solution: The sum is 3 4 a z and B z while the difference is C B + z a + 5 z Multiplication matrix can be multiplied by either a scalar or another matrix and each of these operations are discussed below 3 Multiplying a Matrix by a Scalar When a matrix is multiplied by a scalar the result is a new matrix of the same size as the original where each element of the new matrix is multiplied by the scalar where C B Definition 6: If x is a scalar and is an M N by z a 5 z 6 3 B M N x M N M N x matrix then the product of x with is defined (4) B ij x ij ij x i M j N (5) Example 4: If x 4 and 3 then B x Multiplying Two Matrices Multiplying two matrices is a bit more complicated than multiplying a matrix by a scalar The basic rules for this type of multiplication are outlined in the definition below Definition 7: Two matrices M N and B P Q can be multiplied if and only if the column dimension of the first equal to the row dimension of the second (ie N P ) The result is a new R L Rankin R 3 /6/98

4 matrix C R S whose row dimension is equal to the row dimension of (ie R M ) and whose column dimension is equal to the column dimension of B (ie S Q ) Thus Notice that in general matrix multiplication is not commutative ie except in the special case when M P The elements of C are computed using C ij M N B N P C M P C M P M N B N P B N P M N (6) (7) ik B kj i M j P (8) k n equivalent way of thinking of Equation (8) is by taking the elements of row i of and multiplying them by column j of B and adding the results Hence if row i of is and column j of B is b j then Cij ai N a i T b j (9) Example 5: Determine the product of the matrices and B if and B Solution: The product is the 3 matrix C B and since and B satisfy the rules for matrix multiplication then the elements of C are given by Hence and C ij ik B kj i j 3 k C C C 3 C C C 3 B + B + 3 B 3 B + B + 3 B 3 B 3 + B B 33 B + B + 3 B 3 B + B + 3 B 3 B 3 + B B 33 ( 9) + ( 6) + 3( 3) 30 ( 8) + ( 5) + 3( ) 4 ( 7) + ( 4) + 3( ) 8 4( 9) + 5( 6) + 6( 3) 84 4( 8) + 5( 5) + 6( ) 69 4( 7) + 5( 4) + 6( ) 54 C R L Rankin R 4 /6/98

5 Note 3: lthough the expressions above are correct it is much easier to think of matrix multiplication in terms of products of the rows of the first matrix times the columns of the second matrix Example 6: Since each row of a matrix is itself a matrix and each column of a matrix is also matrix then we can write any matrix using these concepts For example the matrix B from the previous example can be written in the following ways: where are row matrices of B and are column matrices of B B r r 3 r 3 and r r r 3 3 and c 6 c 5 c Example 7: If we write the matrices of Example(5) in the forms 3 r B r then the product of times B can be written in the form and c c c 3 where B r r c r c r c c c c 3 3 r r c r c r 3 c 3 9 C r c C r c C 3 r c C r c Hence 8 C r c C 3 r c C r B r c r c r c 3 c c c r r c r c r 3 c R L Rankin R 5 /6/98

6 The two kinds of multiplication discussed so far are the only kinds defined in classical matrix analysis However we should make note of the fact that some classical vector operations can be represented in matrix notation Definition 8: The scalar (or dot or inner) product between two vectors is defined by a a i + a i + + a N i N and b b i + b i + + b N i N a b a b + a b + + a N b N b a in classical vector notation In matrix notation we have and we see that T T a N a a a N and b N b b b N b b at N b N a a a N a b + a b + + a N b N b N T a N hence b N a b a T b b a b T a (0) Definition 9: The magnitude of a vector is defined by a a a a T a () Definition 0: The cross-product in classical vector notation can only be carried out between two three dimensional vectors The operation is defined by a b ( a b 3 a 3 b )i + ( a 3 b a b 3 )i + ( a b a b )i 3 ( b a) () in classical vector notation while in matrix notation we have where a b b Ba ( b a) T b B T a (3) and 0 a 3 a b a 3 0 a T b b (4) a a 0 b 3 R L Rankin R 6 /6/98

7 B 0 b 3 b a b 3 0 b B T a a (5) b b 0 a 3 Definition : The outter product between two vectors is defined by If a a i + a i + + a N i N and b b i + b i + + b N i N a b ab T (6) T T a N a a a N and b N b b b N then the outer product of two vectors produces the matrix a a b a b a b N a N bt N a a b b b b a b a b N N C N N (7) a N a N b a N b a N b N 4 Transposes and the Identity Matrix Some basic rules for the transpose operation are listed below In this list and B are real matrices and x is a real scalar ( ) T (8) T ( ± B) T T ± B T ± B T + T (9) ( x) T x T T x (0) ( B ) T B T T T B T () The identity matrix is a special square matrix usually denoted by I which has the following properties: I M M M N M N M N I N N M N () (3) Definition : The elements of the N N identity matrix I are given by i j I ij δ ij i j N (4) 0 i j R L Rankin R 7 /6/98

8 where δ ij is called the Kronecker delta 5 Some Special Matrices 5 The Zero Matrix The symbol 0 is used for the M N matrix whose elements are all zero and this matrix is sometimes called the null matrix For example the matrix equation B µc D can be written in the alternative form B µc + D 0 where 0 is an appropriately sized zero matrix 5 Diagonal Matrices square matrix is diagonal if non zero elements occur only on the main diagonal Definition 3: The N N matrix with elements ij i j N is diagonal iff ij 0 i j (5) Definition 4: The main diagonal of the N N matrix are the elements and is often displayed as a row matrix in the form The first sub diagonal of are the elements the second sub diagonal of are the elements and the sub diagonal of are the elements The first super diagonal of are the elements the second super diagonal of are the elements and the super diagonal of are the elements D ii i N (6) i i i i i i j th i i j i i i + i i i + i j th i i j + i NN (7) N (8) 3 N (9) j + N (30) N (3) N (3) N j (33) R L Rankin R 8 /6/98

9 53 Triangular Matrices matrix is lower triangular if all elements above the main diagonal are zero and is upper triangular if all elements below the main diagonal are zero Definition 5: The M N matrix with elements ij is lower triangular if and is upper triangular if ij 0 i < j (34) ij 0 i > j (35) Definition 6: The N N matrix with elements ij i j N is unit lower triangular if ij 0 i < j and ii i N (36) and is unit upper triangular if ij 0 i > j and ii i N (37) 54 Banded Matrices Banded matrices are zero outside a certain band on either side of the main diagonal If the number of nonzero sub diagonals is and the number of nonzero super diagonals is then the bandwidth of the matrix is h L The number of nonzero sub diagonals is number of nonzero super diagonals is h L h U h (38) is called the lower bandwidth of the matrix and the is called the upper bandwidth of the matrix If then h is called the half bandwidth of the matrix Banded matrices are often referred to using the notation ( h L h U ) b h L + h U + h L h U h U Example 8: The matrix given by has a lower bandwidth of h L and an upper bandwidth of b U Hence this is an ( ) band matrix with a bandwidth of b n N N matrix with an ( h L h U ) band can be stored more compact as a matrix with R L Rankin R 9 /6/98

10 dimensions ( h L + h U + ) N b N Hence instead of requiring N storage locations it can be stored in bn locations For example if is a matrix with lower and upper bandwidths of 5 and 7 then instead of requiring storage locations can be stored in ( ) storage locations Special techniques exist for solving banded matrix systems Definition 7: tridiagonal matrix is a () band matrix with the property that ij 0 if i j (39) Definition 8: pentadiagonal matrix is a () band matrix with the property that ij 0 if i j 3 (40) 6 Inverse of a Matrix In classical matrix analysis there is no such operation as division between matrices In algebra if we have the scalar equation ax b then we can easily solve this to get b x -- a a b ba where a a However if we have the matrix equation x b then x b has no meaning in classical matrix analysis In fact the solution to x b is usually written as x b b where ( ) is called the inverse of Definition 9: If is an N N matrix then the inverse of is the N N matrix B which satisfies (4) where I is the N N identity matrix Symbolically B hence we normally write Some properties of the inverse are shown below B B I I (4) ( ) ( T ) ( x) (43) ( ) T (44) x x ( B ) ( + B) B + B (45) (46) (47) R L Rankin R 0 /6/98

11 Note 4: Not all square matrices have an inverse Definition 0: If the N N matrix does not have an inverse is said to be singular If does have an inverse the matrix is said to be non singular In the following sections we will see the conditions necessary for an inverse to exist 7 Determinant of a Matrix The determinant is an operation on a square matrix which produces a scalar Later on we will see that the determinant is related to the question of invertibility Definition : If is a matrix whose only element is then the determinant of is defined by If is a matrix given by then the determinant of is defined by If is a 3 3 matrix given by det( ) (48) det( ) (49) 3 3 (50) then the determinant of is defined by det( ) ( ) ( ) (5) For matrices beyond below 3 3 the determinant is defined in terms of other operations as shown Definition : If is an N N matrix with elements ij then the minor of ij is the determinant of the ( N ) ( N ) matrix formed by deleting the i th row and j th column of and is denoted by Every element of has a minor M ij Definition 3: If is an N N matrix with minors M ij then the cofactor of ij is the number R L Rankin R /6/98

12 defined by C ij ( ) i j + M ij (5) The cofactors themselves form an N N matrix C called the cofactor matrix of Definition 4: If is an N N matrix with elements ij and cofactors C ij then the determinant of is defined by det( ) N ij C ij expansion using row i j N ij C ij expansion using column j i (53) Example 9: Compute the determinant of the matrix by expanding row 3 Solution: If we expand using row then The minors for row 3 are M 3 det 0 6 M 3 det 4 0 M 33 det 4 4 and the corresponding cofactors are C 3 ( ) 3 + M 6 C 3 3 ( ) 3 + M C 3 33 ( ) M 33 4 Hence the determinant is det( ) 3 C C C det( ) ( 6) + 4( ) + ( 3)4 7 0 Definition 5: If is an N N matrix with cofactor matrix C then the adjoint of is the N N matrix defined by adj( ) ( C ) T (54) R L Rankin R /6/98

13 Definition 6: Cramer s rule for determining the inverse of is defined by adj( ) (55) det( ) lthough Cramer s rule produces an exact inverse in infinite precision arithmetic it is probably the worst method that you can use in finite precision arithmetic (the arithmetic of computers and calculators) However it does show us that if det( ) 0 then the inverse of does not exist Hence we see that If det( ) 0 then is singular If det( ) 0 then is non singular matrices and x is a real scalar the determinant has the following prop- If and B are real N N erties: 8 Condition of a Matrix det( T ) det( ) (56) det( x) x N det( ) (57) det( B ) det( )det( B) (58) det( ± B) det( ) ± det( B) (59) det( ) When solving systems of linear equations of the form (60) det( ) x b and we know that if det( ) 0 then does not exist and the system either has no solution at all or it has no unique solution lthough the determinant gives the condition for an exact singularity it does not give a good indication of how close a matrix is to being singular For example consider the system x b where and b 00 Since det( ) 400 seems to be very large we might conclude that this matrix is not very close to being singular If we use Cramer s rule and exact arithmetic the inverse of is x 000 b the symbolic solution is adj( ) det( ) and the corresponding exact solution to this system is x b R L Rankin R 3 /6/98

14 However if we change b from 00 to 0 we find that the solution changes to x Definition 7: For the system x b whenever small changes in either or b lead to large changes in x the system is said to be ill conditioned and even though the determinant seems large the matrix is nearly singular Clearly the determinant is not a good measure of how close a matrix is to being singular However there is another measure of how close a matrix is to being singular called the condition number of the matrix Definition 8: The condition number of an N N matrix is defined as where is called the norm of and is defined by (6) (6) If we were able to perform all operations in infinite precision arithmetic the every matrix would always have a condition number of exactly one However since all calculator and computer operations are carried out in finite precision arithmetic some matrices will have conditions number much larger than one If the condition number of a matrix is small then the matrix is well conditioned and if it is large then the matrix is ill conditioned We can use the following rule of thumb: if cond( ) 000 then the matrix is well conditioned (far from being singular) if cond( ) 0000 then the matrix is ill conditioned (close to being singular) 3 if 000 < cond( ) < 0000 then the matrix is in the gray area and may be either s with all rules of thumb it is NOT always valid In practice we do not use the formal definition of the condition number to compute its value since this requires computing the inverse There are special techniques for estimating the condition of a matrix 9 Trace of a Matrix cond( ) max j i The trace is another operation on a square matrix which produces a scalar N ij Definition 9: If is an N N matrix then the trace of is simply the sum of all the diagonal R L Rankin R 4 /6/98

15 elements of and is defined by N tr( ) ii i (63) 0 Partitioned Matrices Earlier we discussed matrix multiplication by thinking of the rows of the first matrix as row matrices and the columns of the second matrix as column matrices This process was a form of matrix partitioning Whenever we break a matrix up into submatrices this is referred to as partitioning s an example consider the matrix This matrix can be partitioned in the from where a a 3 T 4 a 4 at and 4 Partitioning is advantageous when we want to isolate parts of a matrix to emphasize the roles those parts play in matrix equations For example it can be shown that if the 6 6 matrix is partitioned in the form and we define and then the inverse of is given by 8 P 4 4 Q R 4 S W S R 4 P 4 4 Q 4 X 4 4 P P 4 4 Q 4 W R 4 P 4 4 X 4 4 P 4 4 Q 4 W 6 6 W R 4 P 4 4 W This means that we can invert a 6 6 matrix by inverting a 4 4 matrix P and a matrix W R L Rankin R 5 /6/98

16 Basic Theory Part B Systems of lgebraic Equations We now consider systems of linear algebraic equations For example if we have a system with M equations in N unknowns it can always be written in the form x + x + + N x N b x + x + + N x N b M x + M x + + Mn x n b M () In order to simplify the task of dealing with such systems we use matrix notation and define the M N coefficient matrix N N M M MN () the M right-hand-side (rhs) vector and the N vector of unknowns hence the system can be written in the compact form and x (3) x b (4) This represents 3 fundamentally different kinds of systems: If M < N then we have fewer equations than there are unknowns and the system is said to be under-determined In this case either no solution exists or an infinity of solutions exist If M > N then we have more equations than there are unknowns and the system is said to be over-determined In this case either no solution exists or an infinity of solutions exist 3 If M N then we have equal numbers of unknowns and equations and the system is said to be determined and is represented by a square matrix In this case either no solution exists or a unique solution exists In this chapter the only case we consider is the case where M N and therefore if det( ) 0 then exists and the unique solution is given by b b b b M x (5) If det( ) 0 then does not exist and there is no solution to the system Computing the inverse of a matrix is computationally intensive and is often a very inefficient way to solve a system of equations In the next sections we consider alternative methods of solving systems without ever computing the inverse of the matrix b x x x N R L Rankin R 6 /6/98

17 Gaussian Elimination Gauss elimination is carried out by performing elementary row operations (EROs) on the matrix and its right hand side There are three elementary row operations and the basic definitions relating to them are given below Definition : For an M N matrix the three elementary row operations are: ERO : interchange any two rows of ERO : multiply any row of by a nonzero scalar c ERO 3: replace the i th row of by the sum of the i th row of plus c times the j th row of for i j Theorem : Performing any sequence of EROs on the system solution x x b does not change the In order to perform EROs we define the following elementary vectors and matrices Definition : n N elementary vector e is a column vector of zeros except in the i th i row where there is a one Example : If N 6 construct e 4 Solution: This vector is simply the 6 e 4 zero vector with a in the 4th row hence T Definition 3: If is an M N matrix then interchanging the i th and j th rows of (ERO ) is equivalent to E where is the matrix obtained by interchanging the i th and j th ij E ij M M rows E ij of the M M identity matrix I The elementary matrix E ij has the property that E ij Definition 4: If is an M N matrix then multiplying the i th row of by a nonzero constant c (ERO ) is equivalent to Q i ( c) where Q i ( c) is the M M matrix The elementary matrix Q i ( c) Q i ( c) I + ( c )e i et i (6) has the property that [ Q i ( c) ] Q -- (7) i c R L Rankin R 7 /6/98

18 Definition 5: If is an M N matrix then adding c times the j th row of to the i th row of (ERO 3) is equivalent to R ij ( c) where R ij ( c) is the M M matrix The elementary matrix R ij ( c) R ij ( c) I + ce i et j i j (8) has the property that Summary: We have the following equivalences [ R ij ( c) ] R ij ( c) (9) E is equivalent to interchanging the i th and j th ij rows of Q is equivalent to multiplying the i th i ( c) row of by c 0 3 R is equivalent to adding times the j th row of to the i th ij ( c) c 0 row of Quick Tips: If is an M N matrix we can quickly construct Q by replacing the i th i ( c) diagonal element of the M M identity matrix I by c Similarly we can quickly construct R ij ( c) by replacing the ij th element ( i j) of the M M identity matrix I by c Example : Replace row of the matrix by row minus 45 times row Solution: The elementary matrix tip R 4 ( 45) performs this operation and according to the quick Hence R 4 ( 45) which you can verify is the correct result Example 3: Multiply the 3rd row of the matrix from the last example by 6 Solution: The elementary matrix Q 3 ( 6) performs this operation and according to the quick tip R L Rankin R 8 /6/98

19 Hence Q 3 ( 6) which you can verify is the correct result Definition 6: Simple Gaussian Elimination for the system N N x N b N consists of two steps Step called forward elimination consists of performing ERO s on the augmented matrix N ( N + ) N N b until N is upper-triangular Step called backward elimination consists of solving the upper-triangular system obtained in Step for the solution vector starting with the last equation of the upper-triangular system and using simple substitution x N Definition 7: Simple Gauss-Jordan Elimination for the system consists of two steps Step also called forward elimination is identical to Step of simple Gaussian elimination Step consists of performing additional ERO s on the upper-triangular system obtained in Step until the augmented matrix is the N N identity matrix in the first N columns N ( N + ) I N N x N and is equivalent to the backward elimination of Gaussian elimination N N x N b N (0) Definition 8: The inverse of the matrix N N can be obtained by a slightly modified version of Gauss-Jordan elimination The process consists of performing ERO s on the augmented matrix N N N N e e e N until the first N columns of is the N N identity matrix t this point the last N columns of () will be the N N inverse of N N N N I N N N N () Example 4: Solve the system R L Rankin R 9 /6/98

20 using elementary matrices and (a) Gaussian elimination (b) Complete the operations necessary for Gauss Jordan elimination (c) Using the results of part (b) to invert the coefficient matrix for this system Solution: (a) The augmented matrix is x + y z 4x x y + z 5 y + z and all the operations are shown below: R R ( ) R R 3 ( ) R R which completes the forward elimination The back substitution then gives the gauss elimination solution x (b) If we want to perform Gauss Jordan reduction we continue with R R 3 ( 6) R R 3 ( ) R R Q Q -- 3 Q3 ( ) which completes the solution Notice that we can do more than one operation at a time as in I x R L Rankin R 0 /6/98

21 For Gaussian elimination the entire sequence of operations for the forward elimination can be summarized as and for Gauss Jordan reduction the sequence is where Q -- Q -- 3 Q3 ( ) R R3 ( )R ( ) Q -- Q -- 3 Q3 ( )R -- 3 R3 ( )R 3 ( 6) 0 0 R R3 ( )R ( ) 0 P P Q -- Q -- Q3 ( )R R3 ( )R 3 ( 6)R 3 -- R3 ( )R 3 ( ) Notice that P (c) We have also performed all of the operations necessary to invert If we form the augmented matrix 7 I x then B 0 I hence PB I R L Rankin R /6/98

22 which we can check with I 3 n lgorithm for Naive Gaussian Elimination If we let x b be an N N system of equations where and b are known To solve this system perform the following three steps I Form augmented matrix: b and designate the rows of as r r N each N then II Perform Forward Elimination perform the following elementary row operations on each column of in the order indicated: Step Eliminate column of by performing the N elementary row operations r r r N r r N r Step Eliminate column of by performing the N elementary row operations 3 r r r N r r N r Step 3 Eliminate column 3 of by performing the N 3 elementary row operations r r 3 r r 3 r N3 N r Step N - Eliminate column N of by performing the following N ( N ) elementary row operation N N r N r N III Backward Elimination upon completing II the matrix will be upper triangular and r r r N N N 33 R L Rankin R /6/98

23 starting with the last equation we perform the following operations in the order indicated: The Gauss elimination process described above fails immediately if any main diagonal element is zero or becomes zero during the forward elimination steps In some cases this may mean that no solution to the problem exists in others it is simply an artifact of the solution pro- Step x N N N + Step N + N N x N Step 3 N + N N x N N N x N Step N - x N + 3 x 3 4 x 4 N x N N x N Step N x N + x 3 x 3 N x N N x N Forward Elimination of : The following is pseudo-code for forward elimination of without using the augmented matrix k to n - i k + to n L ik ik kk j k to n next j next i next k Forward Elimination of b: Pseudo-code for the forward elimination of b j to n - i j + to n b i b i L ij b j next i next j Backward Elimination: Pseudo-code for the backward elimination of b to get x (in this form of the code x is stored in b) j n downto b j b j jj i to j - next i next j 4 Pivoting NN x N N N N x N N ij ij L ik kj b i b i ij b j N N R L Rankin R 3 /6/98

24 cess which can be avoided by interchanging rows of the system Definition 9: ny element on the main diagonal of a matrix is called the pivot element and if the row (or column) containing the pivot is interchanged with any other row (or column) the process is called pivoting and pivoting can always be represented by the elementary matrix If both rows and columns are pivoting the process is called full pivoting and if only rows or only columns are pivoted the process is called partial pivoting E ij Definition 0: Partial row pivoting is carried out by first identifying the element below the main diagonal in the pivot row which is largest in absolute value The row that this element is in and the pivot row are then interchanged to accomplish the pivoting Example 5: Solve the following system using gauss elimination with partial row pivoting Solution: First form the augmented matrix x Since then we must pivot before carrying out the elimination of the first column Since row has the largest element in absolute value below get 0 0 b then we interchange rows and to and then eliminate the rest of column : E lthough 0 R 3 ( ) if pivoting is being used it is used every time we eliminate a new column Thus since 7/ (in row 3) is larger than the (in row ) we must interchange rows and 3 to get Elimination of column then yields 3 E R L Rankin R 4 /6/98

25 and the solution to Ux b 4 4 R 3 ( 4 7) is x T U b 4 5 Scaling a Matrix If the ratio of the largest element in absolute value to the smallest element in absolute value is a large number (> 00) then significant round-off errors may occur In such cases it may be beneficial to scale the matrix Definition : Scaling is carried out before pivoting by dividing the elements of each row of the augmented matrix by the largest element in that row (excluding ) b i Example 6: Solve the system (a) exactly Using 3 significant figures in all calculations solve the system (b) without scaling and (c) with scaling and compare the results Solution: (a) the exact solution is notice that no pivoting is necessary for the first column x x T For (b) we form the augmented matrix and b R 0667R R R Since pivoting is not required for the second column either then R R Backward elimination yields the result For (c) we first scale the matrix to get x 094 with errors ε 760 % R L Rankin R 5 /6/98

26 b then elimination of columns and gives R 05 R 03 R The scaling process significantly improves the results 0990 x 0990 ε % R L Rankin R 6 /6/98

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

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

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

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

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

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

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

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

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

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

Matrix notation. A nm : n m : size of the matrix. m : no of columns, n: no of rows. Row matrix n=1 [b 1, b 2, b 3,. b m ] Column matrix m=1

Matrix notation. A nm : n m : size of the matrix. m : no of columns, n: no of rows. Row matrix n=1 [b 1, b 2, b 3,. b m ] Column matrix m=1 Matrix notation A nm : n m : size of the matrix m : no of columns, n: no of rows Row matrix n=1 [b 1, b 2, b 3,. b m ] Column matrix m=1 n = m square matrix Symmetric matrix Upper triangular matrix: matrix

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

Review Questions REVIEW QUESTIONS 71

Review Questions REVIEW QUESTIONS 71 REVIEW QUESTIONS 71 MATLAB, is [42]. For a comprehensive treatment of error analysis and perturbation theory for linear systems and many other problems in linear algebra, see [126, 241]. An overview of

More information

1 Determinants. 1.1 Determinant

1 Determinants. 1.1 Determinant 1 Determinants [SB], Chapter 9, p.188-196. [SB], Chapter 26, p.719-739. Bellow w ll study the central question: which additional conditions must satisfy a quadratic matrix A to be invertible, that is to

More information

Linear Algebraic Equations

Linear Algebraic Equations Linear Algebraic Equations 1 Fundamentals Consider the set of linear algebraic equations n a ij x i b i represented by Ax b j with [A b ] [A b] and (1a) r(a) rank of A (1b) Then Axb has a solution iff

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

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

MATRICES. a m,1 a m,n A =

MATRICES. a m,1 a m,n A = MATRICES Matrices are rectangular arrays of real or complex numbers With them, we define arithmetic operations that are generalizations of those for real and complex numbers The general form a matrix of

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

Introduction to Matrices

Introduction to Matrices 214 Analysis and Design of Feedback Control Systems Introduction to Matrices Derek Rowell October 2002 Modern system dynamics is based upon a matrix representation of the dynamic equations governing the

More information

2.1 Gaussian Elimination

2.1 Gaussian Elimination 2. Gaussian Elimination A common problem encountered in numerical models is the one in which there are n equations and n unknowns. The following is a description of the Gaussian elimination method for

More information

Definition of Equality of Matrices. Example 1: Equality of Matrices. Consider the four matrices

Definition of Equality of Matrices. Example 1: Equality of Matrices. Consider the four matrices IT 131: Mathematics for Science Lecture Notes 3 Source: Larson, Edwards, Falvo (2009): Elementary Linear Algebra, Sixth Edition. Matrices 2.1 Operations with Matrices This section and the next introduce

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

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

MAC Learning Objectives. Learning Objectives (Cont.) Module 10 System of Equations and Inequalities II

MAC Learning Objectives. Learning Objectives (Cont.) Module 10 System of Equations and Inequalities II MAC 1140 Module 10 System of Equations and Inequalities II Learning Objectives Upon completing this module, you should be able to 1. represent systems of linear equations with matrices. 2. transform a

More information

Linear System of Equations

Linear System of Equations Linear System of Equations Linear systems are perhaps the most widely applied numerical procedures when real-world situation are to be simulated. Example: computing the forces in a TRUSS. F F 5. 77F F.

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

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

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

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

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

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

Lemma 8: Suppose the N by N matrix A has the following block upper triangular form:

Lemma 8: Suppose the N by N matrix A has the following block upper triangular form: 17 4 Determinants and the Inverse of a Square Matrix In this section, we are going to use our knowledge of determinants and their properties to derive an explicit formula for the inverse of a square matrix

More information

Linear Algebraic Equations

Linear Algebraic Equations Linear Algebraic Equations Linear Equations: a + a + a + a +... + a = c 11 1 12 2 13 3 14 4 1n n 1 a + a + a + a +... + a = c 21 2 2 23 3 24 4 2n n 2 a + a + a + a +... + a = c 31 1 32 2 33 3 34 4 3n n

More information

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

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

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. knowledge on matrices Knowledge on matrix operations. Matrix as a tool of solving linear equations with two or three unknowns.

MATRICES. knowledge on matrices Knowledge on matrix operations. Matrix as a tool of solving linear equations with two or three unknowns. MATRICES After studying this chapter you will acquire the skills in knowledge on matrices Knowledge on matrix operations. Matrix as a tool of solving linear equations with two or three unknowns. List of

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

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

1 - Systems of Linear Equations

1 - Systems of Linear Equations 1 - Systems of Linear Equations 1.1 Introduction to Systems of Linear Equations Almost every problem in linear algebra will involve solving a system of equations. ü LINEAR EQUATIONS IN n VARIABLES We are

More information

Numerical Analysis Fall. Gauss Elimination

Numerical Analysis Fall. Gauss Elimination Numerical Analysis 2015 Fall Gauss Elimination Solving systems m g g m m g x x x k k k k k k k k k 3 2 1 3 2 1 3 3 3 2 3 2 2 2 1 0 0 Graphical Method For small sets of simultaneous equations, graphing

More information

Gaussian Elimination and Back Substitution

Gaussian Elimination and Back Substitution Jim Lambers MAT 610 Summer Session 2009-10 Lecture 4 Notes These notes correspond to Sections 31 and 32 in the text Gaussian Elimination and Back Substitution The basic idea behind methods for solving

More information

Mobile Robotics 1. A Compact Course on Linear Algebra. Giorgio Grisetti

Mobile Robotics 1. A Compact Course on Linear Algebra. Giorgio Grisetti Mobile Robotics 1 A Compact Course on Linear Algebra Giorgio Grisetti SA-1 Vectors Arrays of numbers They represent a point in a n dimensional space 2 Vectors: Scalar Product Scalar-Vector Product Changes

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

Linear Algebra V = T = ( 4 3 ).

Linear Algebra V = T = ( 4 3 ). Linear Algebra Vectors A column vector is a list of numbers stored vertically The dimension of a column vector is the number of values in the vector W is a -dimensional column vector and V is a 5-dimensional

More information

Scientific Computing: Dense Linear Systems

Scientific Computing: Dense Linear Systems Scientific Computing: Dense Linear Systems Aleksandar Donev Courant Institute, NYU 1 donev@courant.nyu.edu 1 Course MATH-GA.2043 or CSCI-GA.2112, Spring 2012 February 9th, 2012 A. Donev (Courant Institute)

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

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

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

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

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

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

MIDTERM 1 - SOLUTIONS

MIDTERM 1 - SOLUTIONS MIDTERM - SOLUTIONS MATH 254 - SUMMER 2002 - KUNIYUKI CHAPTERS, 2, GRADED OUT OF 75 POINTS 2 50 POINTS TOTAL ) Use either Gaussian elimination with back-substitution or Gauss-Jordan elimination to solve

More information

SOLVING LINEAR SYSTEMS

SOLVING LINEAR SYSTEMS SOLVING LINEAR SYSTEMS We want to solve the linear system a, x + + a,n x n = b a n, x + + a n,n x n = b n This will be done by the method used in beginning algebra, by successively eliminating unknowns

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

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

5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns

5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns 5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns (1) possesses the solution and provided that.. The numerators and denominators are recognized

More information

Determinants - Uniqueness and Properties

Determinants - Uniqueness and Properties Determinants - Uniqueness and Properties 2-2-2008 In order to show that there s only one determinant function on M(n, R), I m going to derive another formula for the determinant It involves permutations

More information

Review of Basic Concepts in Linear Algebra

Review of Basic Concepts in Linear Algebra Review of Basic Concepts in Linear Algebra Grady B Wright Department of Mathematics Boise State University September 7, 2017 Math 565 Linear Algebra Review September 7, 2017 1 / 40 Numerical Linear Algebra

More information

Review from Bootcamp: Linear Algebra

Review from Bootcamp: Linear Algebra Review from Bootcamp: Linear Algebra D. Alex Hughes October 27, 2014 1 Properties of Estimators 2 Linear Algebra Addition and Subtraction Transpose Multiplication Cross Product Trace 3 Special Matrices

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

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

Presentation by: H. Sarper. Chapter 2 - Learning Objectives

Presentation by: H. Sarper. Chapter 2 - Learning Objectives Chapter Basic Linear lgebra to accompany Introduction to Mathematical Programming Operations Research, Volume, th edition, by Wayne L. Winston and Munirpallam Venkataramanan Presentation by: H. Sarper

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

COURSE Numerical methods for solving linear systems. Practical solving of many problems eventually leads to solving linear systems.

COURSE Numerical methods for solving linear systems. Practical solving of many problems eventually leads to solving linear systems. COURSE 9 4 Numerical methods for solving linear systems Practical solving of many problems eventually leads to solving linear systems Classification of the methods: - direct methods - with low number of

More information

Numerical Methods I Solving Square Linear Systems: GEM and LU factorization

Numerical Methods I Solving Square Linear Systems: GEM and LU factorization Numerical Methods I Solving Square Linear Systems: GEM and LU factorization Aleksandar Donev Courant Institute, NYU 1 donev@courant.nyu.edu 1 MATH-GA 2011.003 / CSCI-GA 2945.003, Fall 2014 September 18th,

More information

CPE 310: Numerical Analysis for Engineers

CPE 310: Numerical Analysis for Engineers CPE 310: Numerical Analysis for Engineers Chapter 2: Solving Sets of Equations Ahmed Tamrawi Copyright notice: care has been taken to use only those web images deemed by the instructor to be in the public

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

Introduction to Quantitative Techniques for MSc Programmes SCHOOL OF ECONOMICS, MATHEMATICS AND STATISTICS MALET STREET LONDON WC1E 7HX

Introduction to Quantitative Techniques for MSc Programmes SCHOOL OF ECONOMICS, MATHEMATICS AND STATISTICS MALET STREET LONDON WC1E 7HX Introduction to Quantitative Techniques for MSc Programmes SCHOOL OF ECONOMICS, MATHEMATICS AND STATISTICS MALET STREET LONDON WC1E 7HX September 2007 MSc Sep Intro QT 1 Who are these course for? The September

More information

Example: 2x y + 3z = 1 5y 6z = 0 x + 4z = 7. Definition: Elementary Row Operations. Example: Type I swap rows 1 and 3

Example: 2x y + 3z = 1 5y 6z = 0 x + 4z = 7. Definition: Elementary Row Operations. Example: Type I swap rows 1 and 3 Linear Algebra Row Reduced Echelon Form Techniques for solving systems of linear equations lie at the heart of linear algebra. In high school we learn to solve systems with or variables using elimination

More information

Linear Equations in Linear Algebra

Linear Equations in Linear Algebra 1 Linear Equations in Linear Algebra 1.1 SYSTEMS OF LINEAR EQUATIONS LINEAR EQUATION x 1,, x n A linear equation in the variables equation that can be written in the form a 1 x 1 + a 2 x 2 + + a n x n

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

MATH 3511 Lecture 1. Solving Linear Systems 1

MATH 3511 Lecture 1. Solving Linear Systems 1 MATH 3511 Lecture 1 Solving Linear Systems 1 Dmitriy Leykekhman Spring 2012 Goals Review of basic linear algebra Solution of simple linear systems Gaussian elimination D Leykekhman - MATH 3511 Introduction

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

Linear Algebra. Solving Linear Systems. Copyright 2005, W.R. Winfrey

Linear Algebra. Solving Linear Systems. Copyright 2005, W.R. Winfrey Copyright 2005, W.R. Winfrey Topics Preliminaries Echelon Form of a Matrix Elementary Matrices; Finding A -1 Equivalent Matrices LU-Factorization Topics Preliminaries Echelon Form of a Matrix Elementary

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

SAMPLE OF THE STUDY MATERIAL PART OF CHAPTER 1 Introduction to Linear Algebra

SAMPLE OF THE STUDY MATERIAL PART OF CHAPTER 1 Introduction to Linear Algebra SAMPLE OF THE STUDY MATERIAL PART OF CHAPTER 1 Introduction to 1.1. Introduction Linear algebra is a specific branch of mathematics dealing with the study of vectors, vector spaces with functions that

More information

OR MSc Maths Revision Course

OR MSc Maths Revision Course OR MSc Maths Revision Course Tom Byrne School of Mathematics University of Edinburgh t.m.byrne@sms.ed.ac.uk 15 September 2017 General Information Today JCMB Lecture Theatre A, 09:30-12:30 Mathematics revision

More information

Chapter 7. Tridiagonal linear systems. Solving tridiagonal systems of equations. and subdiagonal. E.g. a 21 a 22 a A =

Chapter 7. Tridiagonal linear systems. Solving tridiagonal systems of equations. and subdiagonal. E.g. a 21 a 22 a A = Chapter 7 Tridiagonal linear systems The solution of linear systems of equations is one of the most important areas of computational mathematics. A complete treatment is impossible here but we will discuss

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

SAMPLE OF THE STUDY MATERIAL PART OF CHAPTER 1 Introduction to Linear Algebra

SAMPLE OF THE STUDY MATERIAL PART OF CHAPTER 1 Introduction to Linear Algebra 1.1. Introduction SAMPLE OF THE STUDY MATERIAL PART OF CHAPTER 1 Introduction to Linear algebra is a specific branch of mathematics dealing with the study of vectors, vector spaces with functions that

More information

Direct Methods for Solving Linear Systems. Simon Fraser University Surrey Campus MACM 316 Spring 2005 Instructor: Ha Le

Direct Methods for Solving Linear Systems. Simon Fraser University Surrey Campus MACM 316 Spring 2005 Instructor: Ha Le Direct Methods for Solving Linear Systems Simon Fraser University Surrey Campus MACM 316 Spring 2005 Instructor: Ha Le 1 Overview General Linear Systems Gaussian Elimination Triangular Systems The LU Factorization

More information

Numerical Methods Lecture 2 Simultaneous Equations

Numerical Methods Lecture 2 Simultaneous Equations Numerical Methods Lecture 2 Simultaneous Equations Topics: matrix operations solving systems of equations pages 58-62 are a repeat of matrix notes. New material begins on page 63. Matrix operations: Mathcad

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

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

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

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

Gaussian Elimination -(3.1) b 1. b 2., b. b n

Gaussian Elimination -(3.1) b 1. b 2., b. b n Gaussian Elimination -() Consider solving a given system of n linear equations in n unknowns: (*) a x a x a n x n b where a ij and b i are constants and x i are unknowns Let a n x a n x a nn x n a a a

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

Lectures on Linear Algebra for IT

Lectures on Linear Algebra for IT Lectures on Linear Algebra for IT by Mgr. Tereza Kovářová, Ph.D. following content of lectures by Ing. Petr Beremlijski, Ph.D. Department of Applied Mathematics, VSB - TU Ostrava Czech Republic 2. Systems

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

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

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 System of Equations

Linear System of Equations Linear System of Equations Linear systems are perhaps the most widely applied numerical procedures when real-world situation are to be simulated. Example: computing the forces in a TRUSS. F F 5. 77F F.

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

Chapter 4 No. 4.0 Answer True or False to the following. Give reasons for your answers.

Chapter 4 No. 4.0 Answer True or False to the following. Give reasons for your answers. MATH 434/534 Theoretical Assignment 3 Solution Chapter 4 No 40 Answer True or False to the following Give reasons for your answers If a backward stable algorithm is applied to a computational problem,

More information