2 Elimination methods for solving linear equations
|
|
- Sabina McLaughlin
- 7 years ago
- Views:
Transcription
1 Elimination methos for solving linear equations Elimination methos for solving linear equations.... Overview.... Gaussian elimination Writing the program - Gaussian elimination Writing the program - Back substitution Partial pivoting....4 Why we shouln t use this algorithm?....5 Problems with Gaussian elimination....6 LU ecomposition What happens if we have to o a row swap uring the Gaussian elimination? recipe for oing LU ecomposition Summary....8 ppenix: Coe to o Gaussian elimination with partial pivoting... Overview In this lecture we will take another look at linear equations. ore importantly, we are going to start using computers to o the har work for us. - -
2 In this lecture, we are going to write a program, which can solve a set of linear equations, using the metho of Gaussian elimination. The program you will meet in this lecture will contain the following elements. We want to write a program (a program or subprogram is referre to as a function in atlab), which will take a matrix, an a right-han sie vector b as inputs, an give back a vector which contains the solution to xb. function [x] GaussianEliminate(, b) %work out the number of equations N length(b) comment return We nee to write our program in a text file an make sure that it has the extension GaussianEliminate.m. To call the program in atlab, we use woul write in the comman line: GaussianEliminate(atrix, RightHanSie) Note : in these lecture notes, computer coe will in a ifferent font, an enclose in a box. - -
3 . Gaussian elimination You will have probably seen Gaussian elimination before, so hopefully this will just be a review. Here we will attempt to write an algorithm which can be performe by a computer. lso, for the time being we will assume that we have a square system of equations with a unique solution to our equations. robust algorithm woul check to make sure there was a solution before proceeing. Lets consier the system of equations x b (-) 3 3 x x x 3 b b b We coul write this in augmente form as 3 3 b b b 3 3 (-) (-3) Whilst we go through the metho of solving these equations in the hanout, we will go through (in parallel, on the boar) the following example: x x x 3-3 -
4 Now we can o our row operations (equivalent to aing multiples of equations together to eliminate variables, or if you prefer, to multiplying both sies of Eq. - by an elementary matrix which performs the same row operation). Now we begin trying to reuce our system of equations to a simpler form. Using row, we can eliminate element by subtracting / times row from row. Row is the pivot row an is the pivot element 3 3 b b b 3 (-3) The following operations -> (,)/(,) -> -> 3 b ->b b give 3 3 b b b 3 (,) (,) (,)* (,) (,) (,)* (,3) (,3) (,3)* b() b() b()* (-4) Similarly, we can perform a similar operation to eliminate 3 by subtracting 3 / 3 times row from row
5 3 -> 3 3 -> 3 -> 3 3 b 3 ->b 3 b 3 b b b 3 (3,)/(,) (3,) (3,) (,)* (3,) (3,) (,)* (3,3) (3,3) (,3)* b(3) b(3) b()* (-5) Having mae all the elements below the pivot in this column zero, we move onto the next column. The pivot is now the element Now we can eliminate using row / (3,)/(,) -> -> (3,) (3,) (,)* (3,3) (3,3) (,3)* b 3 ->b 3 b b(3) b(3) b()* giving 3 b b b 3 (-6) Now that the system of equations is in a triangular form, the solution can reaily obtaine by back-substitution. Notice, that to get to this stage, we worke on each column in turn, eliminating all the elements below the iagonal (pivot) element
6 Now we have an upper triangular system, we can use back substitution x 3 b 3 / x(3) b(3)/(3,3); x (b - x 3 )/ x() (b()-(,3)*x(3))/(,); x (b - x - 3 x 3 )/ x() (b()-(,)*x()- (,3)*x(3))/(,);.. Writing the program - Gaussian elimination Rather than type out each comman into atlab, we can use "for loops", to loop through these operations. We can also take avantage of atlab s ability to work with whole rows an columns of a matrix. If you want to access an entire row or column of a matrix, you can use o the following: (,:) [,, 3 ] (:,) [,, ] T or parts of a matrix (,:en) [, 3 ] So a row operation, e.g. subtracting *row from row i is: (i,:) (i,:) * (,:) We nee two loops, one to loop through the columns (we fin the iagonal element on each column an eliminate each element below it) an an inner loop to go through each row uner the pivot element. for column:(n-) %work on all the rows below the iagonal element for row (column+):n % the row operation goes here en%loop through rows en %loop through columns - 6 -
7 If we a the coe to o a row operation within these loops our program looks like: function [x] GaussianEliminate(, b) %work out the number of equations N length(b) %Gaussian elimination for column:(n-) %work on all the rows below the iagonal element for row (column+):n %work out the value of (row,column)/(column,column); %o the row operation (row,:) (row,:)-*(column,:) b(row) b(row)-*b(column) en%loop through rows en %loop through columns return We still havent finishe, but we are half way there
8 .. Writing the program - Back substitution For the back substitution, we start at the bottom row an work upwars. For each row we nee to o: x i, i bi jx j j i+ to N i,i We can write a for loop to accomplish the back-substitution %back substitution for rown:-: x(row) b(row); for i(row+):n x(row) x(row)-(row,i)*x(i); en x(row) x(row)/(row,row); en ing the back substitution the main program gives: - 8 -
9 function [x] GaussianEliminate(, b) %work out the number of equations N length(b) %Gaussian elimination for column:(n-) %work on all the rows below the iagonal element for row (column+):n %work out the value of (row,column)/(column,column); %o the row operation (row,:) (row,:)-*(column,:) b(row) b(row)-*b(column) en%loop through rows en %loop through columns %back substitution for rown:-: x(row) b(row); for i(row+):n x(row) x(row)-(row,i)*x(i); en x(row) x(row)/(row,row); en %return the answer x x ; return - 9 -
10 .3 Partial pivoting This basically means row swapping. Before performing elimination on a column, it is avantageous to swap rows an promote the row with the largest value in that column to the iagonal. e.g. if our matrix is 3 Our algorithm woul fail (ivie by zero). But we can swap row, with row, which has the largest absolute value in this column. (note that we must also swap the rows in the RHS vector b) 3 Now our algorithm can procee as normal. If we always swap rows to move the largest element to iagonal, the values of ij will always be less than one. This reuces the amount of accumulate numerical error in the calculation. (Note: we woul also have to swap the rows in the right han sie vector too, since all we are oing is re-orering the equations) - -
11 .4 Why we shouln t use this algorithm? There any several reasons why we shoul not use this algorithm.. atlab will compute the solution to x b using its own (more efficient solvers) with the comman \b. Our algorithm contains lots of for loops. peculiarity of atlab makes for loops very slow, but vector or matrix operations very fast. The vector or matrix operations are compile. However, each step in our algorithm (incluing each loop of the for loop) must first be interprete before execution. 3. There are funamental problems with Gaussian elimination. - -
12 .5 Problems with Gaussian elimination We can moify the algorithm to work out how many subtraction + multiplication operations it performs for a given size of matrix. NumOperations ; %Gaussian elimination for column:(n-) %work on all the rows below the iagonal element for row (column+):n %work out the value of (row,column)/(column,column); %o the row operation (row,column:en) (row,column:en)-... *(column,column:en); b(row) b(row)-*b(column); NumOperations NumOperations+N-column+; en%loop through rows en %loop through columns - -
13 35 3 Gaussian Elimination Back substitution Number of operations 5 5 y.*x 3 -.*x 5 y.5*x -.5*x Number of equations We fin that the number of operations require to perform Gaussian elimination is O(N 3 ), where N is the number of equations. For large systems of equations Gaussian elimination is very inefficient even for the fastest super computer! On the other han, the number of operations require for back-substitution scales with O(N ). Back substitution is much more efficient for large systems than Gaussian elimination
14 .6 LU ecomposition Suppose we want to solve the same set of equations but with several ifferent right han sies. We on t want to use the expense of Gaussian elimination every time we solve the equations, ieally we woul like to only o the Gaussian elimination once. e.g. x b, x b, x 3 b 3 which may be written as 3 3 b b b x x x If by Gaussian elimination, we coul factor our matrix into two matrices, L an U, such that LU * * * * * * * * * 3 3, (-7) we coul then solve for each right han sie using only forwar, followe by backwar substitution
15 x b LUx b let y Ux Ly b Then solve Ux y (Forwar substitution) (Backwar substitution) Lets start with the matrix from our previous example When we eliminate the element (subtract / times row from row ), we can keep multiplying by a matrix that unoes this row operation, so that the prouct remains equal to When we eliminate the element 3 (subtract 3 3 / times row from row 3), we can multiply by a matrix that unoes this row operation, so that the prouct remains equal to
16 When we eliminate the element (subtract / times row from row 3), we can keep multiply by a matrix that unoes this row operation, so that the prouct remains equal to I.e. we have performe LU ecomposition. In practice we ont bother recoring the matrices, we can just write own the matrix L
17 .6. What happens if we have to o a row swap uring the Gaussian elimination? Suppose we ha reache the following stage in the elimination process This is a permutation matrix an we neee to exchange rows an ultiplying by a permutation matrix will swap the rows of a matrix. The permutation matrix is just an ientity matrix, whose rows have been interchange. We can then continue as normal
18 .6. recipe for oing LU ecomposition. Write own a permutation matrix, P (which is initially the ientity matrix) P. Write own the atrix you want to ecompose 3. Starting with column, row swap to promote the largest value in the column to the iagonal. Do exactly the same row swap to the atrix P. P 4. Eliminate all the elements below the iagonal in column. Recor the multiplier use for elimination where you create the zero. Here we i row 3 row 3 -.5*row
19 5. ove onto the next column. Swap rows to move the largest element to the iagonal. (Do the same row swap to P) P 6. Eliminate the elements below the iagonal row 3 row 3 - /3*row /3 4/3 7. Repeat 5 an 6 for all columns 8. Write own L, U an P.5.5 /3.5 4/3 implies U.5.5 L 4/3.5 /3 an P - 9 -
20 .7 Summary Gaussian elimination can be slow (the number of operations require to o Gaussian elimination is O(N 3 ) where N is the number of equations. Back substitution only takes O(N ) If we want to solve the set of equations repeately with ifferent right han sies, LU ecomposition means that we ont have to o Gaussian elimination every time. This is a consierable saving. atlab has inbuilt atlab routines for solving linear equations (\) an LU ecomposition (LU). They will generally be better than any you write yourself - -
21 .8 ppenix: Coe to o Gaussian elimination with partial pivoting function [x] GaussianEliminate(,b) % Solves x b by Gaussian elimination %work out the number of equations N length(b); %Gaussian elimination for column:(n-) %swap rows so that the row we are using to eliminate %the entries in the rows below is larger than the %values to be eliminate. [ummy,inex] max(abs((column:en,column))); inexinex+column-; temp (column,:); (column,:) (inex,:); (inex,:) temp; temp b(column) b(column) b(inex); b(inex) temp; %work on all the rows below the iagonal element for row (column+):n %work out the value of (row,column)/(column,column); %o the row operation (result isplaye on screen) (row,column:en) (row,column:en)-*(column,column:en) ; b(row) b(row)-*b(column); en%loop through rows en %loop through columns %back substitution for rown:-: x(row) b(row); for i(row+):n x(row) x(row)-(row,i)*x(i); en x(row) x(row)/(row,row); en x x return - -
10.2 Systems of Linear Equations: Matrices
SECTION 0.2 Systems of Linear Equations: Matrices 7 0.2 Systems of Linear Equations: Matrices OBJECTIVES Write the Augmente Matrix of a System of Linear Equations 2 Write the System from the Augmente Matrix
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 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 informationDirect 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 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 information7. LU factorization. factor-solve method. LU factorization. solving Ax = b with A nonsingular. the inverse of a nonsingular matrix
7. LU factorization EE103 (Fall 2011-12) factor-solve method LU factorization solving Ax = b with A nonsingular the inverse of a nonsingular matrix LU factorization algorithm effect of rounding error sparse
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 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 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 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 informationSolving Systems of Linear Equations Using Matrices
Solving Systems of Linear Equations Using Matrices What is a Matrix? A matrix is a compact grid or array of numbers. It can be created from a system of equations and used to solve the system of equations.
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 informationMATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional 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 0-534-40596-7. Systems of Linear Equations Definition. An n-dimensional vector is a row or a column
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 informationSection 8.2 Solving a System of Equations Using Matrices (Guassian Elimination)
Section 8. Solving a System of Equations Using Matrices (Guassian Elimination) x + y + z = x y + 4z = x 4y + z = System of Equations x 4 y = 4 z A System in matrix form x A x = b b 4 4 Augmented Matrix
More informationLinear Equations ! 25 30 35$ & " 350 150% & " 11,750 12,750 13,750% MATHEMATICS LEARNING SERVICE Centre for Learning and Professional Development
MathsTrack (NOTE Feb 2013: This is the old version of MathsTrack. New books will be created during 2013 and 2014) Topic 4 Module 9 Introduction Systems of to Matrices Linear Equations Income = Tickets!
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 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 informationMath 230.01, Fall 2012: HW 1 Solutions
Math 3., Fall : HW Solutions Problem (p.9 #). Suppose a wor is picke at ranom from this sentence. Fin: a) the chance the wor has at least letters; SOLUTION: All wors are equally likely to be chosen. The
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 in-class presentation
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 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 informationNotes on Determinant
ENGG2012B Advanced Engineering Mathematics Notes on Determinant Lecturer: Kenneth Shum Lecture 9-18/02/2013 The determinant of a system of linear equations determines whether the solution is unique, without
More informationQuestion 2: How do you solve a matrix equation using the matrix inverse?
Question : How do you solve a matrix equation using the matrix inverse? In the previous question, we wrote systems of equations as a matrix equation AX B. In this format, the matrix A contains the coefficients
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 informationCalculating Viscous Flow: Velocity Profiles in Rivers and Pipes
previous inex next Calculating Viscous Flow: Velocity Profiles in Rivers an Pipes Michael Fowler, UVa 9/8/1 Introuction In this lecture, we ll erive the velocity istribution for two examples of laminar
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 informationSYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison
SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89 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 information6. Cholesky factorization
6. Cholesky factorization EE103 (Fall 2011-12) triangular matrices forward and backward substitution the Cholesky factorization solving Ax = b with A positive definite inverse of a positive definite matrix
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 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 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 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 floating-point
More informationSystems of Linear Equations
Chapter 1 Systems of Linear Equations 1.1 Intro. to systems of linear equations Homework: [Textbook, Ex. 13, 15, 41, 47, 49, 51, 65, 73; page 11-]. Main points in this section: 1. Definition of Linear
More informationThe Determinant: a Means to Calculate Volume
The Determinant: a Means to Calculate Volume Bo Peng August 20, 2007 Abstract This paper gives a definition of the determinant and lists many of its well-known properties Volumes of parallelepipeds are
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 informationMeasures of distance between samples: Euclidean
4- Chapter 4 Measures of istance between samples: Eucliean We will be talking a lot about istances in this book. The concept of istance between two samples or between two variables is funamental in multivariate
More informationLecture 1: Systems of Linear Equations
MTH Elementary Matrix Algebra Professor Chao Huang Department of Mathematics and Statistics Wright State University Lecture 1 Systems of Linear Equations ² Systems of two linear equations with two variables
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 informationInverse Trig Functions
Inverse Trig Functions c A Math Support Center Capsule February, 009 Introuction Just as trig functions arise in many applications, so o the inverse trig functions. What may be most surprising is that
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 two-dimensional space (1) 2x y = 3 describes a line in two-dimensional space The coefficients of x and y in the equation
More informationLINEAR ALGEBRA. September 23, 2010
LINEAR ALGEBRA September 3, 00 Contents 0. LU-decomposition.................................... 0. Inverses and Transposes................................. 0.3 Column Spaces and NullSpaces.............................
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 informationExcel supplement: Chapter 7 Matrix and vector algebra
Excel supplement: Chapter 7 atrix and vector algebra any models in economics lead to large systems of linear equations. These problems are particularly suited for computers. The main purpose of this chapter
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 non-empty
More informationLinearly Independent Sets and Linearly Dependent Sets
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 in-class presentation
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 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 informationDIFFRACTION AND INTERFERENCE
DIFFRACTION AND INTERFERENCE In this experiment you will emonstrate the wave nature of light by investigating how it bens aroun eges an how it interferes constructively an estructively. You will observe
More informationRecall that two vectors in are perpendicular or orthogonal provided that their dot
Orthogonal Complements and Projections Recall that two vectors in are perpendicular or orthogonal provided that their dot product vanishes That is, if and only if Example 1 The vectors in are orthogonal
More informationAu = = = 3u. Aw = = = 2w. so the action of A on u and w is very easy to picture: it simply amounts to a stretching by 3 and 2, respectively.
Chapter 7 Eigenvalues and Eigenvectors In this last chapter of our exploration of Linear Algebra we will revisit eigenvalues and eigenvectors of matrices, concepts that were already introduced in Geometry
More informationChapter 6. Linear Programming: The Simplex Method. Introduction to the Big M Method. Section 4 Maximization and Minimization with Problem Constraints
Chapter 6 Linear Programming: The Simplex Method Introduction to the Big M Method In this section, we will present a generalized version of the simplex method that t will solve both maximization i and
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 informationMathematics. Circles. hsn.uk.net. Higher. Contents. Circles 119 HSN22400
hsn.uk.net Higher Mathematics UNIT OUTCOME 4 Circles Contents Circles 119 1 Representing a Circle 119 Testing a Point 10 3 The General Equation of a Circle 10 4 Intersection of a Line an a Circle 1 5 Tangents
More informationMATH2210 Notebook 1 Fall Semester 2016/2017. 1 MATH2210 Notebook 1 3. 1.1 Solving Systems of Linear Equations... 3
MATH0 Notebook Fall Semester 06/07 prepared by Professor Jenny Baglivo c Copyright 009 07 by Jenny A. Baglivo. All Rights Reserved. Contents MATH0 Notebook 3. Solving Systems of Linear Equations........................
More informationPythagorean Triples Over Gaussian Integers
International Journal of Algebra, Vol. 6, 01, no., 55-64 Pythagorean Triples Over Gaussian Integers Cheranoot Somboonkulavui 1 Department of Mathematics, Faculty of Science Chulalongkorn University Bangkok
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 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 informationOutline. Generalize Simple Example
Solving Simultaneous Nonlinear Algebraic Equations Larry Caretto Mechanical Engineering 309 Numerical Analysis of Engineering Systems March 5, 014 Outline Problem Definition of solving simultaneous nonlinear
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 informationAnswers to the Practice Problems for Test 2
Answers to the Practice Problems for Test 2 Davi Murphy. Fin f (x) if it is known that x [f(2x)] = x2. By the chain rule, x [f(2x)] = f (2x) 2, so 2f (2x) = x 2. Hence f (2x) = x 2 /2, but the lefthan
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 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 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 y-axis We observe that
More informationLecture notes on linear algebra
Lecture notes on linear algebra David Lerner Department of Mathematics University of Kansas These are notes of a course given in Fall, 2007 and 2008 to the Honors sections of our elementary linear algebra
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 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 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 side-stepped
More informationLinear Programming Problems
Linear Programming Problems Linear programming problems come up in many applications. In a linear programming problem, we have a function, called the objective function, which depends linearly on a number
More informationwww.kickstartcommerce.com
Using Google Webmaster Tools to Verify an Submit a Website Sitemap Kickstart Commerce Generate greater customer an revenue growth. www.kickstartcommerce.com Open a web browser, an type in or copy an paste
More informationTO DETERMINE THE SHELF LIFE OF IBUPROFEN SOLUTION
TO DETERMINE THE SHELF LIFE OF IBUPROFEN SOLUTION AIM: To etermine the shelf life of solution using accelerate stability stuies. MATERIAL REQUIREMENT, ethanol, phenolphthalein, soium hyroxie (0.1N), glass
More informationy or f (x) to determine their nature.
Level C5 of challenge: D C5 Fining stationar points of cubic functions functions Mathematical goals Starting points Materials require Time neee To enable learners to: fin the stationar points of a cubic
More informationLecture 2 Matrix Operations
Lecture 2 Matrix Operations transpose, sum & difference, scalar multiplication matrix multiplication, matrix-vector product matrix inverse 2 1 Matrix transpose transpose of m n matrix A, denoted A T or
More informationMSc. Econ: MATHEMATICAL STATISTICS, 1995 MAXIMUM-LIKELIHOOD ESTIMATION
MAXIMUM-LIKELIHOOD ESTIMATION The General Theory of M-L Estimation In orer to erive an M-L estimator, we are boun to make an assumption about the functional form of the istribution which generates the
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 informationT ( a i x i ) = a i T (x i ).
Chapter 2 Defn 1. (p. 65) Let V and W be vector spaces (over F ). We call a function T : V W a linear transformation form V to W if, for all x, y V and c F, we have (a) T (x + y) = T (x) + T (y) and (b)
More informationIntroduction to Integration Part 1: Anti-Differentiation
Mathematics Learning Centre Introuction to Integration Part : Anti-Differentiation Mary Barnes c 999 University of Syney Contents For Reference. Table of erivatives......2 New notation.... 2 Introuction
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 informationMath 215 HW #6 Solutions
Math 5 HW #6 Solutions Problem 34 Show that x y is orthogonal to x + y if and only if x = y Proof First, suppose x y is orthogonal to x + y Then since x, y = y, x In other words, = x y, x + y = (x y) T
More informationLecture 2 Mathcad Basics
Operators Lecture 2 Mathcad Basics + Addition, - Subtraction, * Multiplication, / Division, ^ Power ( ) Specify evaluation order Order of Operations ( ) ^ highest level, first priority * / next priority
More informationHull, Chapter 11 + Sections 17.1 and 17.2 Additional reference: John Cox and Mark Rubinstein, Options Markets, Chapter 5
Binomial Moel Hull, Chapter 11 + ections 17.1 an 17.2 Aitional reference: John Cox an Mark Rubinstein, Options Markets, Chapter 5 1. One-Perio Binomial Moel Creating synthetic options (replicating options)
More informationLinear Programming in Matrix Form
Linear Programming in Matrix Form Appendix B We first introduce matrix concepts in linear programming by developing a variation of the simplex method called the revised simplex method. This algorithm,
More information160 CHAPTER 4. VECTOR SPACES
160 CHAPTER 4. VECTOR SPACES 4. Rank and Nullity In this section, we look at relationships between the row space, column space, null space of a matrix and its transpose. We will derive fundamental results
More informationMathematics Review for Economists
Mathematics Review for Economists by John E. Floy University of Toronto May 9, 2013 This ocument presents a review of very basic mathematics for use by stuents who plan to stuy economics in grauate school
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 information3.2 Matrix Multiplication
3.2 Matrix Multiplication Question : How do you multiply two matrices? Question 2: How do you interpret the entries in a product of two matrices? When you add or subtract two matrices, you add or subtract
More informationHere are some examples of combining elements and the operations used:
MATRIX OPERATIONS Summary of article: What is an operation? Addition of two matrices. Multiplication of a Matrix by a scalar. Subtraction of two matrices: two ways to do it. Combinations of Addition, Subtraction,
More informationLagrangian and Hamiltonian Mechanics
Lagrangian an Hamiltonian Mechanics D.G. Simpson, Ph.D. Department of Physical Sciences an Engineering Prince George s Community College December 5, 007 Introuction In this course we have been stuying
More informationSimplex method summary
Simplex method summary Problem: optimize a linear objective, subject to linear constraints 1. Step 1: Convert to standard form: variables on right-hand side, positive constant on left slack variables for
More informationII. Linear Systems of Equations
II. Linear Systems of Equations II. The Definition We are shortly going to develop a systematic procedure which is guaranteed to find every solution to every system of linear equations. The fact that such
More informationPrerequisites: TSI Math Complete and high school Algebra II and geometry or MATH 0303.
Course Syllabus Math 1314 College Algebra Revision Date: 8-21-15 Catalog Description: In-depth study and applications of polynomial, rational, radical, exponential and logarithmic functions, and systems
More informationSensor Network Localization from Local Connectivity : Performance Analysis for the MDS-MAP Algorithm
Sensor Network Localization from Local Connectivity : Performance Analysis for the MDS-MAP Algorithm Sewoong Oh an Anrea Montanari Electrical Engineering an Statistics Department Stanfor University, Stanfor,
More informationBasic numerical skills: EQUATIONS AND HOW TO SOLVE THEM. x + 5 = 7 2 + 5-2 = 7-2 5 + (2-2) = 7-2 5 = 5. x + 5-5 = 7-5. x + 0 = 20.
Basic numerical skills: EQUATIONS AND HOW TO SOLVE THEM 1. Introduction (really easy) An equation represents the equivalence between two quantities. The two sides of the equation are in balance, and solving
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 three-space, we write a vector in terms
More information3 Some Integer Functions
3 Some Integer Functions A Pair of Fundamental Integer Functions The integer function that is the heart of this section is the modulo function. However, before getting to it, let us look at some very simple
More informationPartial Fractions Decomposition
Partial Fractions Decomposition Dr. Philippe B. Laval Kennesaw State University August 6, 008 Abstract This handout describes partial fractions decomposition and how it can be used when integrating rational
More informationRisk Management for Derivatives
Risk Management or Derivatives he Greeks are coming the Greeks are coming! Managing risk is important to a large number o iniviuals an institutions he most unamental aspect o business is a process where
More informationGeneral Framework for an Iterative Solution of Ax b. Jacobi s Method
2.6 Iterative Solutions of Linear Systems 143 2.6 Iterative Solutions of Linear Systems Consistent linear systems in real life are solved in one of two ways: by direct calculation (using a matrix factorization,
More informationRules for Finding Derivatives
3 Rules for Fining Derivatives It is teious to compute a limit every time we nee to know the erivative of a function. Fortunately, we can evelop a small collection of examples an rules that allow us to
More information