Linear Systems. Singular and Nonsingular Matrices. Find x 1, x 2, x 3 such that the following three equations hold:


 Rachel Jordan
 1 years ago
 Views:
Transcription
1 Linear Systems Example: Find x, x, x such that the following three equations hold: x + x + x = 4x + x + x = x + x + x = 6 We can write this using matrixvector notation as 4 {{ A x x x {{ x = 6 {{ b General case: We can have n equations for n unknowns: Given: Coefficients a,, a nn, right hand side entries b,, b n Wanted: Numbers x,, x n such that a x + + a n x n = b a n x + + a nn x n = b n Using matrixvector notation this can be written as follows: Given a matrix A R n n and a righthand side vector b R n, find a vector x R n such that a a n x b = a n {{ a nn x n {{ b n {{ A x b Singular and Nonsingular Matrices Definition: We call a matrix A R n n singular if there exists a nonzero vector x R n such that Ax = 0 [ ] ( ) ( ) 0 Example: The matrix A = is singular since for x = we have Ax = 4 0 [ ] ( ) b The matrix A = is nonsingular: Ax = implies x 0 4 b = b /4, x = b + x Therefore Ax = 0 implies x = 0
2 Observation: If A is singular, the linear system Ax = b has either no solution or infinitely many solutions: As A is singular there exists a nonzero vector y with Ay = 0 If Ax = b has a solution x, then x + αy is also a solution for any α R We will later prove: If A is nonsingular, then the linear system Ax = b has a unique solution x for any given b R n We only want to consider problems where there is a unique solution, ie where the matrix A is nonsingular How can we check whether a given matrix A is nonsingular? If we use exact arithmetic we can use Gaussian elimination with pivoting (which will be explained later) to show that A is nonsingular But in machine arithmetic we can only assume that a machine approximation for the matrix A is known, and we will have to use a different method to decide whether A is nonsingular in this case Gaussian Elimination without Pivoting Basic Algorithm: We can add (or subtract) a multiple of one equation to another equation, without changing the solution of the linear system By repeatedly using this idea we can eliminate unknowns from the equations until we finally get an equation which just contains one unknown variable Elimination: step : eliminate x from equation,, equation n by subtracting multiples of equation : eq := eq l eq,, eq n := eq n l n eq step : eliminate x from equation,, equation n by subtracting multiples of equation : eq := eq l eq,, eq n := eq n l n eq step n : eliminate x n from equation n by subtracting a multiple of equation n : eq n := eq n l n,n eq n Back substitution: Solve equation n for x n Solve equation n for x n Solve equation for x The elimination transforms the original linear system Ax = b into a new linear system Ux = y with an upper triangular matrix U, and a new right hand side vector y Example: We consider the linear system 4 {{ A x x x {{ x = 6 {{ b Elimination: To eliminate x from equation we choose l = 4/ = and subtract l times equation from equation To eliminate x from equation we choose l = / = and subtract l times equation from equation Then the
3 linear system becomes x x x = 4 7 To eliminate x from equation we choose l = 5/( ) and subtract l times equation from equation, yielding the linear system 0 {{ U x x x = 4 {{ y Now we have obtained a linear system with an upper triangular matrix (denoted by U) and a new right hand side vector (denoted by y) Back substitution: The third equation is x = and gives x = Then the second equation becomes x = 4, yielding x = Then the first equation becomes x + + =, yielding x = Transforming the matrix and right hand side vector separately: We can split the elimination into two parts: The first part acts only on the matrix A, generating the upper triangular matrix U and the multipliers l jk The second part uses the multipliers l jk to transform the right hand side vector b to the vector y Elimination for matrix: Given the matrix A, find an upper triangular matrix U and multipliers l jk : Let U := A and perform the following operations on the rows of U: step : l := u /u, row := row l row,, l n := u n /u, row n := row n l n row step : l := u /u, row := row l row,, l n := u n /u, row n := row n l n row step n : l n,n := u n,n /u n,n, row n := row n l n,n row n Transform right hand side vector: Given the vector b and the multiplies l jk find the transformed vector y: Let y := b and perform the following operations on y: step : y := y l y,, y n := y n l n y step : y := y l y,, y n := y n l n y step n : y n := y n l n,n y n Back substitution: Given the matrix U and the vector y find the vector x by solving Ux = y: x n := b n /u n,n x n := (b n u n,n x n )/u n,n x := (b u x u n x n )/u
4 What can possibly go wrong: Note that we have to divide by the socalled pivot elements u,, u n,n in part, and we divide by u,, u nn in part If we encounter a zero pivot we have to stop the algorithm with an error message Part of the algorithm therefore becomes step : If u = 0 then stop with error message else l := u /u, row := row l row, step : If u = 0 then stop with error message else l := u /u, row := row l row, step n : If u n,n = 0 then stop with error message else l n,n := u n,n /u n,n, row n := row n l n,n row n If u n,n = 0 then stop with error message Observation: If for a given matrix A part of the algorithm finishes without an error message, then parts and work, and the linear system ( has) a unique solution Hence the matrix A must be nonsingular However, the converse is not true: For 0 the matrix A = the algorithm stops immediately since u 0 = 0, but the matrix A is nonsingular Reformulating part as forward substitution: Now we want to express the relation between b and y in a different way Assume we are given y, and we want to reconstruct b by reversing the operations: For n = we would perform the operations y := y + l y, y := y + l y, y := y + l y and obtain b b b = y y + l y y + l y + l y = l 0 l l {{ L y y y with the lower triangular matrix L Therefore we can rephrase the transformation step as follows: Given L and b, solve the linear system Ly = b for y Since L is lower triangular, we can solve this linear system by forward substitution: We first solve the first equation for y, then solve the second equation for y, The LU decomposition: In the same way as we reconstructed the vector b from the vector y, we can reconstruct the matrix A from the matrix U: For n = we obtain row of A (row of U) 0 0 row of U row of A = (row of U) + l, (row of U) = l 0 row of U row of A (row of U) + l, (row of U) + l, (row of U) l l {{ row of U L Therefore we have A = LU We have written the matrix A as the product of a lower triangular matrix (with s on the diagonal) and an upper triangular matrix U This is called the LUdecomposition of A 4
5 Summary: Now we can rephrase the parts,, of the algorithm as follows: Find the LUdecomposition A = LU: Perform elimination on the matrix A, yielding an upper triangular matrix U Store the multipliers in a matrix L and put s on the diagonal of the matrix L: 0 0 L := l 0 l n, l n,n Solve Ly = b using forward substitution Solve U x = y using back substitution The matrix decomposition A = LU allows us to solve the linear system Ax = b in two steps: Since L {{ Ux = b y we can first solve Ly = b to find y, and then solve Ux = y to find x Example: We start with U := A and L being the zero matrix: L =, U = step : step : L = L = 5 0 We put s on the diagonal of L and obtain L = We solve the linear system Ly = b 0 5, U =, U = 0 5 y y y , U = = 0 by forward substitution: The first equation gives y = Then the second equation becomes + y = yielding y = 4 Then the third equation becomes 5 ( 4) + y = 6, yielding y = The back substitution for solving Ux = b is performed as explained above 6 5
6 Gaussian Elimination with Pivoting There is a problem with Gaussian elimination without pivoting: If we have at step j that u jj = 0 we cannot continue since we have to divide by u jj This element u jj by which we have to divide is called the pivot 4 Example: For A = we use l = 4, l = 4 and obtain after step of the elimination U = 4 4 Now we have u = 0 and cannot continue 0 Gaussian elimination with pivoting uses row interchanges to overcome this problem For step j of the algorithm we consider the pivot candidates u j,j, u j+,j,, u nj, ie, the diagonal element and all elements below If there is a nonzero pivot candidate, say u kj we interchange rows j and k of the matrix U Then we can continue with the elimination Since we want that the multipliers correspond to the appropriate row of U, we also interchange the rows of L whenever we interchange the rows of L In order to keep track of the interchanges we use a vector p which is initially (,,, n), and we interchange its rows whenever we interchange the rows of U Algorithm: Gaussian Elimination with pivoting: Input: matrix A Output: matrix L (lower triangular), matrix U (upper triangular), vector p (contains permutation of,, n) 0 0 L := ; U := A ; p := 0 0 n For j = to n If (U jj,, U nj ) = (0,, 0) Stop with error message Matrix is singular Else Pick k {j, j +,, n such that U kj 0 End Interchange row j and row k of U Interchange row j and row k of L Interchange p j and p k For k = j + to n L kj := U kj /U jj (row k of U) := (row k of U) L kj (row j of U) End End If U nn = 0 Stop with error message Matrix is singular End For j = to n L jj := End Note that we can have several nonzero pivot candidates, and we still have to specify which one we pick This is called a pivoting strategy Here are two examples: 6
7 Pivoting strategy : Pick the smallest k such that U kj 0 Pivoting strategy : Pick k so that U kj is maximal If we use exact arithmetic, it does not matter which nonzero pivot we choose However, in machine arithmetic the choice of the pivot can make a big difference for the accuracy of the result, as we will see below Example: L =, U = Here the pivot candidates are 4,,, and we use 4: L =, U = , p =, p = Here the pivot candidates are 0,, and we use Therefore we interchange rows and of L, U, p: 4 L =, U = 0, p = 4 For column we have l = 0 and U does not change Finally we put s on the diagonal of L and get the final result 4 L = 0, U = 0, p = 0 4 LU Decomposition for Gaussian elimination with pivoting: If we perform row interchanges during the algorithm we no longer have LU = A Instead we obtain a matrix Ã which contains the rows of A in a different order: row p of A LU = Ã := row p n of A The reason for this is the following: If we applied Gaussian elimination without pivoting to the matrix Ã, we would get the same L and U that we got for the matrix A with pivoting Solving a linear system using Gaussian elimination with pivoting: In order to solve a linear system Ax = b we first apply Gaussian elimination with pivoting to the matrix A, yielding L, U, p Then we know that LU = Ã By reordering the equations of Ax = b in the order p,, p n we obtain the linear system row p of A x b p = row p n of A {{ x n b pn {{ Ã=LU b ie, we have L(Ux) = b We set y = Ux Then we solve the linear system Ly = b using forward substitution, and finally we solve the linear system Ux = y using back substitution 7
8 Summary: Apply Gaussian elimination with pivoting to the matrix A, yielding L, U, p such that LU = Solve Ly = b p b pn using forward substitution Solve U x = y using back substitution row p of A row p n of A Note that this algorithm is also known as Gaussian elimination with partial pivoting (partial means that we perform row interchanges, but no column interchanges) Example: Solve Ax = b for A = 4, b = linear system Ly = (b p, b p,b p ) = (b, b, b ) is 0 0 y y y 4 = With L and p from the Gaussian elimination the 4 yielding y = (, 5, ) using forward substitution Then we solve U x = y 4 x 0 x = 5 4 x using back substitution and obtain x =, x =, x = Existence and Uniqueness of Solutions If we perform Gaussian elimination with pivoting on a matrix A (in exact arithmetic), there are two possibilities: The algorithm can be performed without an error message In this case the diagonal elements u,, u nn are all nonzero For an arbitrary right hand side vector b we can then perform forward substitution (since the diagonal elements of L are ), and back substitution, without having to divide by zero Therefore this yields exactly one solution x for our linear system The algorithm stops with an error message Eg, assume that the algorithm stops in column j = since all pivot candidates are zero This means that a linear system Ax = b is equivalent to the linear system of the form 0 x x x x n = c c c c n 8
9 Here denots an arbitrary number, and denotes a nonzero number Let us first consider equations through n of this system These equations only contain x 4, x n There are two possibilities: (a) There is a solution x 4,, x n of equations through n Then we can choose x arbitrarily Now we can use equation to find x, and finally equation to find x (note that the diagonal elements are nonzero) Therefore we have infinitely many solutions for our linear system (b) There is no solution x 4,, x n of equations through n That means that our original linear system has no solution Observation: In case the linear system has a unique solution for any b In particular, Ax = 0 implies x = 0 Hence A is nonsingular In case we can construct a nonzero solution x for the linear system Ax = 0 Hence A is singular We have shown: Theorem: If a square matrix A is nonsingular, then the linear system Ax = b has a unique solution x for any right hand side vector x If the matrix A is singular, then the linear system Ax = b has either infinitely many solutions, or it has no solution, depending on the right hand side vector [ ] [ ] 4 Example: Consider A = The first step of Gaussian elimination gives l = 4 4 and U = Now we have u = 0, therefore the algorithm stops Therefore A is singular [ ] ( ) ( ) 4 x Consider the linear system = x 4 [ ] ( ) ( ) 4 x By the first step of elimination this becomes = Note that the second equation has no solution, x 5 and therefore the linear system has no solution [ ] ( ) ( ) 4 x Now consider = x [ ] ( ) ( ) 4 x By the first step of elimination this becomes = Note that the second equation is always true x 0 We can choose x arbitrarily, and then determine x from equation : 4x x =, yielding x = ( + x )/4 This gives infinitely many solutions Gaussian Elimination with Pivoting in Machine Arithmetic For a numerical computation we can only expect to find a reasonable answer if the original problem has a unique solution For a linear system Ax = b this means that the matrix A should be nonsingular In this case we have found that Gaussian elimination with pivoting, together with forward and back substitution always gives us the answer, at least in exact arithmetic It turns out that Gaussian elimination with pivoting can give us solutions with an unnecessarily large roundoff error, depending on the choice of the pivots 9
10 Example ) In the first column we have the two pivot candidates 00 and Consider the linear system [ 00 If we choose 00 as pivot we get l = 000 and ] ( x x ) = [ ( ] ( x x ) = ( 998 ) Now back substitution gives x = and x = ( )/00 Note that we have subtractive cancellation in the computation of x : We have to expect a roundoff error of ε M in x When we compute x we get a relative error of x ε M = 999ε M, ie, we lose about three digits of accuracy [ ] ( ) x Alternatively, we can choose as the pivot in the first column and interchange the two equations: = 00 x ( ) [ ] ( ) ( ) x Now we get l = 00 and = This yields x x 998 = = , and x = Note that there is no subtractive cancellation, and we obtain x with almost the full machine accuracy This example is typical: Choosing very small pivot elements leads to subtractive cancellation during back substitution Therefore we have to use a pivoting strategy which avoids small pivot elements The simplest way to do this is the following: Select the pivot candidate with the largest absolute value In most practical cases this leads to a numerically stable algorithm, ie, no unnecessary magnification of roundoff error 0
Direct Methods for Solving Linear Systems. Matrix Factorization
Direct Methods for Solving Linear Systems Matrix Factorization Numerical Analysis (9th Edition) R L Burden & J D Faires Beamer Presentation Slides prepared by John Carroll Dublin City University c 2011
More information7 Gaussian Elimination and LU Factorization
7 Gaussian Elimination and LU Factorization In this final section on matrix factorization methods for solving Ax = b we want to take a closer look at Gaussian elimination (probably the best known method
More informationMATRIX ALGEBRA AND SYSTEMS OF EQUATIONS
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 informationSolution of Linear Systems
Chapter 3 Solution of Linear Systems In this chapter we study algorithms for possibly the most commonly occurring problem in scientific computing, the solution of linear systems of equations. We start
More informationWe seek a factorization of a square matrix A into the product of two matrices which yields an
LU Decompositions We seek a factorization of a square matrix A into the product of two matrices which yields an efficient method for solving the system where A is the coefficient matrix, x is our variable
More informationMATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m
MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS 1. SYSTEMS OF EQUATIONS AND MATRICES 1.1. Representation of a linear system. The general system of m equations in n unknowns can be written a 11 x 1 + a 12 x 2 +
More informationAbstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix multiplication).
MAT 2 (Badger, Spring 202) LU Factorization Selected Notes September 2, 202 Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix
More information7. LU factorization. factorsolve method. LU factorization. solving Ax = b with A nonsingular. the inverse of a nonsingular matrix
7. LU factorization EE103 (Fall 201112) factorsolve method LU factorization solving Ax = b with A nonsingular the inverse of a nonsingular matrix LU factorization algorithm effect of rounding error sparse
More informationDETERMINANTS. b 2. x 2
DETERMINANTS 1 Systems of two equations in two unknowns A system of two equations in two unknowns has the form a 11 x 1 + a 12 x 2 = b 1 a 21 x 1 + a 22 x 2 = b 2 This can be written more concisely in
More informationSolving Linear Systems, Continued and The Inverse of a Matrix
, Continued and The of a Matrix Calculus III Summer 2013, Session II Monday, July 15, 2013 Agenda 1. The rank of a matrix 2. The inverse of a square matrix Gaussian Gaussian solves a linear system by reducing
More informationLinear Dependence Tests
Linear Dependence Tests The book omits a few key tests for checking the linear dependence of vectors. These short notes discuss these tests, as well as the reasoning behind them. Our first test checks
More informationFactorization Theorems
Chapter 7 Factorization Theorems This chapter highlights a few of the many factorization theorems for matrices While some factorization results are relatively direct, others are iterative While some factorization
More informationSolving Systems of Linear Equations. Substitution
Solving Systems of Linear Equations There are two basic methods we will use to solve systems of linear equations: Substitution Elimination We will describe each for a system of two equations in two unknowns,
More information6. Cholesky factorization
6. Cholesky factorization EE103 (Fall 201112) triangular matrices forward and backward substitution the Cholesky factorization solving Ax = b with A positive definite inverse of a positive definite matrix
More informationSolving 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 informationScientific Computing: An Introductory Survey
Scientific Computing: An Introductory Survey Chapter 3 Linear Least Squares Prof. Michael T. Heath Department of Computer Science University of Illinois at UrbanaChampaign Copyright c 2002. Reproduction
More informationMATH10212 Linear Algebra. Systems of Linear Equations. Definition. An ndimensional vector is a row or a column of n numbers (or letters): a 1.
MATH10212 Linear Algebra Textbook: D. Poole, Linear Algebra: A Modern Introduction. Thompson, 2006. ISBN 0534405967. Systems of Linear Equations Definition. An ndimensional vector is a row or a column
More informationSOLVING LINEAR SYSTEMS
SOLVING LINEAR SYSTEMS Linear systems Ax = b occur widely in applied mathematics They occur as direct formulations of real world problems; but more often, they occur as a part of the numerical analysis
More informationOperation Count; Numerical Linear Algebra
10 Operation Count; Numerical Linear Algebra 10.1 Introduction Many computations are limited simply by the sheer number of required additions, multiplications, or function evaluations. If floatingpoint
More informationSolving Linear Systems of Equations. Gerald Recktenwald Portland State University Mechanical Engineering Department gerry@me.pdx.
Solving Linear Systems of Equations Gerald Recktenwald Portland State University Mechanical Engineering Department gerry@me.pdx.edu These slides are a supplement to the book Numerical Methods with Matlab:
More informationSystems of Linear Equations
Systems of Linear Equations Beifang Chen Systems of linear equations Linear systems A linear equation in variables x, x,, x n is an equation of the form a x + a x + + a n x n = b, where a, a,, a n and
More information4. MATRICES Matrices
4. MATRICES 170 4. Matrices 4.1. Definitions. Definition 4.1.1. A matrix is a rectangular array of numbers. A matrix with m rows and n columns is said to have dimension m n and may be represented as follows:
More informationElementary Matrices and The LU Factorization
lementary Matrices and The LU Factorization Definition: ny matrix obtained by performing a single elementary row operation (RO) on the identity (unit) matrix is called an elementary matrix. There are three
More information8 Square matrices continued: Determinants
8 Square matrices continued: Determinants 8. Introduction Determinants give us important information about square matrices, and, as we ll soon see, are essential for the computation of eigenvalues. You
More information5.3 Determinants and Cramer s Rule
290 5.3 Determinants and Cramer s Rule Unique Solution of a 2 2 System The 2 2 system (1) ax + by = e, cx + dy = f, has a unique solution provided = ad bc is nonzero, in which case the solution is given
More informationDiagonal, Symmetric and Triangular Matrices
Contents 1 Diagonal, Symmetric Triangular Matrices 2 Diagonal Matrices 2.1 Products, Powers Inverses of Diagonal Matrices 2.1.1 Theorem (Powers of Matrices) 2.2 Multiplying Matrices on the Left Right by
More information9. Numerical linear algebra background
Convex Optimization Boyd & Vandenberghe 9. Numerical linear algebra background matrix structure and algorithm complexity solving linear equations with factored matrices LU, Cholesky, LDL T factorization
More informationLINEAR ALGEBRA. September 23, 2010
LINEAR ALGEBRA September 3, 00 Contents 0. LUdecomposition.................................... 0. Inverses and Transposes................................. 0.3 Column Spaces and NullSpaces.............................
More informationby the matrix A results in a vector which is a reflection of the given
Eigenvalues & Eigenvectors Example Suppose Then So, geometrically, multiplying a vector in by the matrix A results in a vector which is a reflection of the given vector about the yaxis We observe that
More information1. LINEAR EQUATIONS. A linear equation in n unknowns x 1, x 2,, x n is an equation of the form
1. LINEAR EQUATIONS A linear 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, b are given real numbers. For example, with x and
More informationMatrix Algebra and Applications
Matrix Algebra and Applications Dudley Cooke Trinity College Dublin Dudley Cooke (Trinity College Dublin) Matrix Algebra and Applications 1 / 49 EC2040 Topic 2  Matrices and Matrix Algebra Reading 1 Chapters
More informationRow Echelon Form and Reduced Row Echelon Form
These notes closely follow the presentation of the material given in David C Lay s textbook Linear Algebra and its Applications (3rd edition) These notes are intended primarily for inclass presentation
More informationNUMERICALLY EFFICIENT METHODS FOR SOLVING LEAST SQUARES PROBLEMS
NUMERICALLY EFFICIENT METHODS FOR SOLVING LEAST SQUARES PROBLEMS DO Q LEE Abstract. Computing the solution to Least Squares Problems is of great importance in a wide range of fields ranging from numerical
More informationLecture 6. Inverse of Matrix
Lecture 6 Inverse of Matrix Recall that any linear system can be written as a matrix equation In one dimension case, ie, A is 1 1, then can be easily solved as A x b Ax b x b A 1 A b A 1 b provided that
More informationLINEAR SYSTEMS. Consider the following example of a linear system:
LINEAR SYSTEMS Consider the following example of a linear system: Its unique solution is x +2x 2 +3x 3 = 5 x + x 3 = 3 3x + x 2 +3x 3 = 3 x =, x 2 =0, x 3 = 2 In general we want to solve n equations in
More informationBasic Terminology for Systems of Equations in a Nutshell. E. L. Lady. 3x 1 7x 2 +4x 3 =0 5x 1 +8x 2 12x 3 =0.
Basic Terminology for Systems of Equations in a Nutshell E L Lady A system of linear equations is something like the following: x 7x +4x =0 5x +8x x = Note that the number of equations is not required
More informationCS3220 Lecture Notes: QR factorization and orthogonal transformations
CS3220 Lecture Notes: QR factorization and orthogonal transformations Steve Marschner Cornell University 11 March 2009 In this lecture I ll talk about orthogonal matrices and their properties, discuss
More information4. Matrix inverses. left and right inverse. linear independence. nonsingular matrices. matrices with linearly independent columns
L. Vandenberghe EE133A (Spring 2016) 4. Matrix inverses left and right inverse linear independence nonsingular matrices matrices with linearly independent columns matrices with linearly independent rows
More informationMath 115A HW4 Solutions University of California, Los Angeles. 5 2i 6 + 4i. (5 2i)7i (6 + 4i)( 3 + i) = 35i + 14 ( 22 6i) = 36 + 41i.
Math 5A HW4 Solutions September 5, 202 University of California, Los Angeles Problem 4..3b Calculate the determinant, 5 2i 6 + 4i 3 + i 7i Solution: The textbook s instructions give us, (5 2i)7i (6 + 4i)(
More informationUsing row reduction to calculate the inverse and the determinant of a square matrix
Using row reduction to calculate the inverse and the determinant of a square matrix Notes for MATH 0290 Honors by Prof. Anna Vainchtein 1 Inverse of a square matrix An n n square matrix A is called invertible
More information10.2 ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS. The Jacobi Method
578 CHAPTER 1 NUMERICAL METHODS 1. ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS As a numerical technique, Gaussian elimination is rather unusual because it is direct. That is, a solution is obtained after
More informationMatrix Norms. Tom Lyche. September 28, Centre of Mathematics for Applications, Department of Informatics, University of Oslo
Matrix Norms Tom Lyche Centre of Mathematics for Applications, Department of Informatics, University of Oslo September 28, 2009 Matrix Norms We consider matrix norms on (C m,n, C). All results holds for
More informationNotes on Determinant
ENGG2012B Advanced Engineering Mathematics Notes on Determinant Lecturer: Kenneth Shum Lecture 918/02/2013 The determinant of a system of linear equations determines whether the solution is unique, without
More information1 Determinants and the Solvability of Linear Systems
1 Determinants and the Solvability of Linear Systems In the last section we learned how to use Gaussian elimination to solve linear systems of n equations in n unknowns The section completely sidestepped
More informationMath 215 HW #1 Solutions
Math 25 HW # Solutions. Problem.2.3. Describe the intersection of the three planes u+v+w+z = 6 and u+w+z = 4 and u + w = 2 (all in fourdimensional space). Is it a line or a point or an empty set? What
More informationLinear Programming. March 14, 2014
Linear Programming March 1, 01 Parts of this introduction to linear programming were adapted from Chapter 9 of Introduction to Algorithms, Second Edition, by Cormen, Leiserson, Rivest and Stein [1]. 1
More informationReduced echelon form: Add the following conditions to conditions 1, 2, and 3 above:
Section 1.2: Row Reduction and Echelon Forms Echelon form (or row echelon form): 1. All nonzero rows are above any rows of all zeros. 2. Each leading entry (i.e. left most nonzero entry) of a row is in
More information13 MATH FACTS 101. 2 a = 1. 7. The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions.
3 MATH FACTS 0 3 MATH FACTS 3. Vectors 3.. Definition We use the overhead arrow to denote a column vector, i.e., a linear segment with a direction. For example, in threespace, we write a vector in terms
More information1 Introduction to Matrices
1 Introduction to Matrices In this section, important definitions and results from matrix algebra that are useful in regression analysis are introduced. While all statements below regarding the columns
More informationLecture 3: Finding integer solutions to systems of linear equations
Lecture 3: Finding integer solutions to systems of linear equations Algorithmic Number Theory (Fall 2014) Rutgers University Swastik Kopparty Scribe: Abhishek Bhrushundi 1 Overview The goal of this lecture
More informationTypical Linear Equation Set and Corresponding Matrices
EWE: Engineering With Excel Larsen Page 1 4. Matrix Operations in Excel. Matrix Manipulations: Vectors, Matrices, and Arrays. How Excel Handles Matrix Math. Basic Matrix Operations. Solving Systems of
More information2.1: MATRIX OPERATIONS
.: MATRIX OPERATIONS What are diagonal entries and the main diagonal of a matrix? What is a diagonal matrix? When are matrices equal? Scalar Multiplication 45 Matrix Addition Theorem (pg 0) Let A, B, and
More information1 Solving LPs: The Simplex Algorithm of George Dantzig
Solving LPs: The Simplex Algorithm of George Dantzig. Simplex Pivoting: Dictionary Format We illustrate a general solution procedure, called the simplex algorithm, by implementing it on a very simple example.
More informationSolving 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 informationUnit 18 Determinants
Unit 18 Determinants Every square matrix has a number associated with it, called its determinant. In this section, we determine how to calculate this number, and also look at some of the properties of
More informationLecture Notes 2: Matrices as Systems of Linear Equations
2: Matrices as Systems of Linear Equations 33A Linear Algebra, Puck Rombach Last updated: April 13, 2016 Systems of Linear Equations Systems of linear equations can represent many things You have probably
More informationVector and Matrix Norms
Chapter 1 Vector and Matrix Norms 11 Vector Spaces Let F be a field (such as the real numbers, R, or complex numbers, C) with elements called scalars A Vector Space, V, over the field F is a nonempty
More informationMath 240: Linear Systems and Rank of a Matrix
Math 240: Linear Systems and Rank of a Matrix Ryan Blair University of Pennsylvania Thursday January 20, 2011 Ryan Blair (U Penn) Math 240: Linear Systems and Rank of a Matrix Thursday January 20, 2011
More informationWe know a formula for and some properties of the determinant. Now we see how the determinant can be used.
Cramer s rule, inverse matrix, and volume We know a formula for and some properties of the determinant. Now we see how the determinant can be used. Formula for A We know: a b d b =. c d ad bc c a Can we
More informationEC9A0: Presessional Advanced Mathematics Course
University of Warwick, EC9A0: Presessional Advanced Mathematics Course Peter J. Hammond & Pablo F. Beker 1 of 55 EC9A0: Presessional Advanced Mathematics Course Slides 1: Matrix Algebra Peter J. Hammond
More informationSYSTEMS OF EQUATIONS AND MATRICES WITH THE TI89. by Joseph Collison
SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI89 by Joseph Collison Copyright 2000 by Joseph Collison All rights reserved Reproduction or translation of any part of this work beyond that permitted by Sections
More informationLinear Programming Notes V Problem Transformations
Linear Programming Notes V Problem Transformations 1 Introduction Any linear programming problem can be rewritten in either of two standard forms. In the first form, the objective is to maximize, the material
More informationMethods for Finding Bases
Methods for Finding Bases Bases for the subspaces of a matrix Rowreduction methods can be used to find bases. Let us now look at an example illustrating how to obtain bases for the row space, null space,
More informationDecember 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS
December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B KITCHENS The equation 1 Lines in twodimensional space (1) 2x y = 3 describes a line in twodimensional space The coefficients of x and y in the equation
More informationLecture 5: Singular Value Decomposition SVD (1)
EEM3L1: Numerical and Analytical Techniques Lecture 5: Singular Value Decomposition SVD (1) EE3L1, slide 1, Version 4: 25Sep02 Motivation for SVD (1) SVD = Singular Value Decomposition Consider the system
More informationCofactor Expansion: Cramer s Rule
Cofactor Expansion: Cramer s Rule MATH 322, Linear Algebra I J. Robert Buchanan Department of Mathematics Spring 2015 Introduction Today we will focus on developing: an efficient method for calculating
More informationSolving Systems of Linear Equations; Row Reduction
Harvey Mudd College Math Tutorial: Solving Systems of Linear Equations; Row Reduction Systems of linear equations arise in all sorts of applications in many different fields of study The method reviewed
More informationMAT 200, Midterm Exam Solution. a. (5 points) Compute the determinant of the matrix A =
MAT 200, Midterm Exam Solution. (0 points total) a. (5 points) Compute the determinant of the matrix 2 2 0 A = 0 3 0 3 0 Answer: det A = 3. The most efficient way is to develop the determinant along the
More informationMathematics of Cryptography Modular Arithmetic, Congruence, and Matrices. A Biswas, IT, BESU SHIBPUR
Mathematics of Cryptography Modular Arithmetic, Congruence, and Matrices A Biswas, IT, BESU SHIBPUR McGrawHill The McGrawHill Companies, Inc., 2000 Set of Integers The set of integers, denoted by Z,
More informationa 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.
Chapter 1 LINEAR EQUATIONS 1.1 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,..., a n, b are given
More informationChapter 2 Determinants, and Linear Independence
Chapter 2 Determinants, and Linear Independence 2.1 Introduction to Determinants and Systems of Equations Determinants can be defined and studied independently of matrices, though when square matrices
More information1 VECTOR SPACES AND SUBSPACES
1 VECTOR SPACES AND SUBSPACES What is a vector? Many are familiar with the concept of a vector as: Something which has magnitude and direction. an ordered pair or triple. a description for quantities such
More informationThe Inverse of a Matrix
The Inverse of a Matrix 7.4 Introduction In number arithmetic every number a ( 0) has a reciprocal b written as a or such that a ba = ab =. Some, but not all, square matrices have inverses. If a square
More information5.5. Solving linear systems by the elimination method
55 Solving linear systems by the elimination method Equivalent systems The major technique of solving systems of equations is changing the original problem into another one which is of an easier to solve
More informationSolutions to Review Problems
Chapter 1 Solutions to Review Problems Chapter 1 Exercise 42 Which of the following equations are not linear and why: (a x 2 1 + 3x 2 2x 3 = 5. (b x 1 + x 1 x 2 + 2x 3 = 1. (c x 1 + 2 x 2 + x 3 = 5. (a
More informationPractical Guide to the Simplex Method of Linear Programming
Practical Guide to the Simplex Method of Linear Programming Marcel Oliver Revised: April, 0 The basic steps of the simplex algorithm Step : Write the linear programming problem in standard form Linear
More informationSolutions to Math 51 First Exam January 29, 2015
Solutions to Math 5 First Exam January 29, 25. ( points) (a) Complete the following sentence: A set of vectors {v,..., v k } is defined to be linearly dependent if (2 points) there exist c,... c k R, not
More informationLU Decomposition. The original equation is to solve. Ax b =0ff At the end of the Gauss elimination, the resulting equations were
LU Decomposition LU decomposition is a better way to implement Gauss elimination, especially for repeated solving a number of equations with the same lefthand side That is, for solving the equation Ax
More informationNumerical Solution of Linear Systems
Numerical Solution of Linear Systems Chen Greif Department of Computer Science The University of British Columbia Vancouver B.C. Tel Aviv University December 17, 2008 Outline 1 Direct Solution Methods
More informationIntroduction to Matrix Algebra I
Appendix A Introduction to Matrix Algebra I Today we will begin the course with a discussion of matrix algebra. Why are we studying this? We will use matrix algebra to derive the linear regression model
More informationDefinition: A square matrix A is block diagonal if A has the form A 1 O O O A 2 O A =
The question we want to answer now is the following: If A is not similar to a diagonal matrix, then what is the simplest matrix that A is similar to? Before we can provide the answer, we will have to introduce
More informationSECTION 8.3: THE INVERSE OF A SQUARE MATRIX
(Section 8.3: The Inverse of a Square Matrix) 8.47 SECTION 8.3: THE INVERSE OF A SQUARE MATRIX PART A: (REVIEW) THE INVERSE OF A REAL NUMBER If a is a nonzero real number, then aa 1 = a 1 a = 1. a 1, or
More informationThese axioms must hold for all vectors ū, v, and w in V and all scalars c and d.
DEFINITION: A vector space is a nonempty set V of objects, called vectors, on which are defined two operations, called addition and multiplication by scalars (real numbers), subject to the following axioms
More informationOrthogonal Bases and the QR Algorithm
Orthogonal Bases and the QR Algorithm Orthogonal Bases by Peter J Olver University of Minnesota Throughout, we work in the Euclidean vector space V = R n, the space of column vectors with n real entries
More informationSimilar matrices and Jordan form
Similar matrices and Jordan form We ve nearly covered the entire heart of linear algebra once we ve finished singular value decompositions we ll have seen all the most central topics. A T A is positive
More informationThe basic unit in matrix algebra is a matrix, generally expressed as: a 11 a 12. a 13 A = a 21 a 22 a 23
(copyright by Scott M Lynch, February 2003) Brief Matrix Algebra Review (Soc 504) Matrix algebra is a form of mathematics that allows compact notation for, and mathematical manipulation of, highdimensional
More informationSolution to Homework 2
Solution to Homework 2 Olena Bormashenko September 23, 2011 Section 1.4: 1(a)(b)(i)(k), 4, 5, 14; Section 1.5: 1(a)(b)(c)(d)(e)(n), 2(a)(c), 13, 16, 17, 18, 27 Section 1.4 1. Compute the following, if
More informationA Direct Numerical Method for Observability Analysis
IEEE TRANSACTIONS ON POWER SYSTEMS, VOL 15, NO 2, MAY 2000 625 A Direct Numerical Method for Observability Analysis Bei Gou and Ali Abur, Senior Member, IEEE Abstract This paper presents an algebraic method
More information1.2 Solving a System of Linear Equations
1.. SOLVING A SYSTEM OF LINEAR EQUATIONS 1. Solving a System of Linear Equations 1..1 Simple Systems  Basic De nitions As noticed above, the general form of a linear system of m equations in n variables
More informationSolving Linear Diophantine Matrix Equations Using the Smith Normal Form (More or Less)
Solving Linear Diophantine Matrix Equations Using the Smith Normal Form (More or Less) Raymond N. Greenwell 1 and Stanley Kertzner 2 1 Department of Mathematics, Hofstra University, Hempstead, NY 11549
More informationL12. Special Matrix Operations: Permutations, Transpose, Inverse, Augmentation 12 Aug 2014
L12. Special Matrix Operations: Permutations, Transpose, Inverse, Augmentation 12 Aug 2014 Unfortunately, no one can be told what the Matrix is. You have to see it for yourself.  Morpheus Primary concepts:
More information2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system
1. Systems of linear equations We are interested in the solutions to systems of linear equations. A linear equation is of the form 3x 5y + 2z + w = 3. The key thing is that we don t multiply the variables
More informationThe Characteristic Polynomial
Physics 116A Winter 2011 The Characteristic Polynomial 1 Coefficients of the characteristic polynomial Consider the eigenvalue problem for an n n matrix A, A v = λ v, v 0 (1) The solution to this problem
More informationLinear Codes. In the V[n,q] setting, the terms word and vector are interchangeable.
Linear Codes Linear Codes In the V[n,q] setting, an important class of codes are the linear codes, these codes are the ones whose code words form a subvector space of V[n,q]. If the subspace of V[n,q]
More information3 Does the Simplex Algorithm Work?
Does the Simplex Algorithm Work? In this section we carefully examine the simplex algorithm introduced in the previous chapter. Our goal is to either prove that it works, or to determine those circumstances
More information1 Eigenvalues and Eigenvectors
Math 20 Chapter 5 Eigenvalues and Eigenvectors Eigenvalues and Eigenvectors. Definition: A scalar λ is called an eigenvalue of the n n matrix A is there is a nontrivial solution x of Ax = λx. Such an x
More informationLS.6 Solution Matrices
LS.6 Solution Matrices In the literature, solutions to linear systems often are expressed using square matrices rather than vectors. You need to get used to the terminology. As before, we state the definitions
More informationUniversity of Lille I PC first year list of exercises n 7. Review
University of Lille I PC first year list of exercises n 7 Review Exercise Solve the following systems in 4 different ways (by substitution, by the Gauss method, by inverting the matrix of coefficients
More informationLecture Notes: Matrix Inverse. 1 Inverse Definition
Lecture Notes: Matrix Inverse Yufei Tao Department of Computer Science and Engineering Chinese University of Hong Kong taoyf@cse.cuhk.edu.hk Inverse Definition We use I to represent identity matrices,
More informationMatrix Solution of Equations
Contents 8 Matrix Solution of Equations 8.1 Solution by Cramer s Rule 2 8.2 Solution by Inverse Matrix Method 13 8.3 Solution by Gauss Elimination 22 Learning outcomes In this Workbook you will learn to
More information