LECTURE 9. In the example above, we have a total of n equations and m unknowns. However, for the most part we

Similar documents
CS412: Lecture #17. Mridul Aanjaneya. March 19, 2015

2.1 Gaussian Elimination

Solving Systems of Linear Equations

LECTURE 17. Algorithms for Polynomial Interpolation

Direct Methods for Solving Linear Systems. Matrix Factorization

Solving Linear Systems Using Gaussian Elimination. How can we solve

Illustration of Gaussian elimination to find LU factorization. A = a 11 a 12 a 13 a 14 a 21 a 22 a 23 a 24 a 31 a 32 a 33 a 34 a 41 a 42 a 43 a 44

Continuity of Bçezier patches. Jana Pçlnikovça, Jaroslav Plaçcek, Juraj ç Sofranko. Faculty of Mathematics and Physics. Comenius University

Engineering Computation

I = i 0,

LECTURE Review. In this lecture we shall study the errors and stability properties for numerical solutions of initial value.

Chapter 6 Higher Dimensional Linear Systems

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

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 )

CHAPTER 6. Direct Methods for Solving Linear Systems

JACOBI S ITERATION METHOD

If we remove the cyclotomic factors of fèxè, must the resulting polynomial be 1 or irreducible? This is in fact not the case. A simple example is give

Deænition 1 A set S is ænite if there exists a number N such that the number of elements in S èdenoted jsjè is less than N. If no such N exists, then

Lecture 2 INF-MAT : , LU, symmetric LU, Positve (semi)definite, Cholesky, Semi-Cholesky

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

LU Factorization. LU Decomposition. LU Decomposition. LU Decomposition: Motivation A = LU

MATH 3511 Lecture 1. Solving Linear Systems 1

Formula for the inverse matrix. Cramer s rule. Review: 3 3 determinants can be computed expanding by any row or column

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

International Competition in Mathematics for Universtiy Students in Plovdiv, Bulgaria 1994

Mundaneum #reopening

5 Solving Systems of Linear Equations

The purpose of computing is insight, not numbers. Richard Wesley Hamming

CHAPTER 6 : LITERATURE REVIEW

P E R E N C O - C H R I S T M A S P A R T Y

To keep things simple, let us just work with one pattern. In that case the objective function is defined to be. E = 1 2 xk d 2 (1)

MULTI-RESTRAINED STIRLING NUMBERS

Linear Algebra Section 2.6 : LU Decomposition Section 2.7 : Permutations and transposes Wednesday, February 13th Math 301 Week #4

JUST THE MATHS UNIT NUMBER 9.3. MATRICES 3 (Matrix inversion & simultaneous equations) A.J.Hobson

5. Direct Methods for Solving Systems of Linear Equations. They are all over the place...

April 26, Applied mathematics PhD candidate, physics MA UC Berkeley. Lecture 4/26/2013. Jed Duersch. Spd matrices. Cholesky decomposition

LU Factorization a 11 a 1 a 1n A = a 1 a a n (b) a n1 a n a nn L = l l 1 l ln1 ln 1 75 U = u 11 u 1 u 1n 0 u u n 0 u n...

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

Gaussian Elimination and Back Substitution

SOLVING LINEAR SYSTEMS

Lecture 12 Simultaneous Linear Equations Gaussian Elimination (1) Dr.Qi Ying

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

Section 1.6. M N = [a ij b ij ], (1.6.2)

JUST THE MATHS SLIDES NUMBER 9.3. MATRICES 3 (Matrix inversion & simultaneous equations) A.J.Hobson

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

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

Process Model Formulation and Solution, 3E4

LECTURE 12. Special Solutions of Laplace's Equation. 1. Separation of Variables with Respect to Cartesian Coordinates. Suppose.

1 Determinants. 1.1 Determinant

Solution of Linear systems

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

Gaussian Elimination for Linear Systems

CS475: Linear Equations Gaussian Elimination LU Decomposition Wim Bohm Colorado State University

LOWELL. MICHIGAN, THURSDAY, AUGUST 16, Specialty Co. Sells to Hudson Mfg. Company. Ada Farmer Dies When Boat Tips

Introduction to PDEs and Numerical Methods Lecture 7. Solving linear systems

DEN: Linear algebra numerical view (GEM: Gauss elimination method for reducing a full rank matrix to upper-triangular

CME 302: NUMERICAL LINEAR ALGEBRA FALL 2005/06 LECTURE 6

Lecture 12 (Tue, Mar 5) Gaussian elimination and LU factorization (II)

Inverses. Stephen Boyd. EE103 Stanford University. October 28, 2017

CSE 160 Lecture 13. Numerical Linear Algebra

SyDe312 (Winter 2005) Unit 1 - Solutions (continued)

A196837: Ordinary Generating Functions for Sums of Powers of the First n Positive Integers

AMS526: Numerical Analysis I (Numerical Linear Algebra)

12/1/2015 LINEAR ALGEBRA PRE-MID ASSIGNMENT ASSIGNED BY: PROF. SULEMAN SUBMITTED BY: M. REHAN ASGHAR BSSE 4 ROLL NO: 15126

7.3. Determinants. Introduction. Prerequisites. Learning Outcomes

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

arxiv: v1 [math.co] 25 May 2011

COURSE Iterative methods for solving linear systems

MAT 1332: CALCULUS FOR LIFE SCIENCES. Contents. 1. Review: Linear Algebra II Vectors and matrices Definition. 1.2.

Finite Math - J-term Section Systems of Linear Equations in Two Variables Example 1. Solve the system

1 Problem 1 Solution. 1.1 Common Mistakes. In order to show that the matrix L k is the inverse of the matrix M k, we need to show that

Solving Dense Linear Systems I

4.2 Floating-Point Numbers

LOWELL, MICHIGAN, MAY 28, Every Patriotic American Salutes His Nation's Flag

IEOR 6711: Stochastic Models I. Solutions to Homework Assignment 9

Linear Algebra. James Je Heon Kim

Linear System of Equations

2 2 + x =

Mathematical Induction Assignments

A Review of Matrix Analysis

MATH 1372, SECTION 33, MIDTERM 3 REVIEW ANSWERS

Numerical Methods I: Numerical linear algebra

Introduction to Groups

1 - Systems of Linear Equations

Linear Algebra (Review) Volker Tresp 2017

The Cayley-Hamilton Theorem and the Jordan Decomposition

Numerical Solution Techniques in Mechanical and Aerospace Engineering

A Matrix Method for Efficient Computation of Bernstein Coefficients

A New Invariance Property of Lyapunov Characteristic Directions S. Bharadwaj and K.D. Mease Mechanical and Aerospace Engineering University of Califor

Matrix Basic Concepts

DETERMINANTS. , x 2 = a 11b 2 a 21 b 1

CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction. Linda Shapiro Spring 2016

Elementary Matrices. MATH 322, Linear Algebra I. J. Robert Buchanan. Spring Department of Mathematics

ENGR-1100 Introduction to Engineering Analysis. Lecture 21. Lecture outline

INTRODUCTION TO THE DFS AND THE DFT

Computations in Modules over Commutative Domains

Linear Algebra March 16, 2019

On the Stability of LU-Factorizations

Numerical methods for solving linear systems

Numerical Analysis: Solving Systems of Linear Equations

Transcription:

LECTURE 9 Review of Matrix lgebra We shall now look at algorithms for solving systems of linear equations system of linear equations is a set of equations of the form è9è 8 é é: a x + a x + æææ+ a m x m = b a x + a x + æææ+ a m x m = b a n,;x + a n,;x + æææ+ a n,;mx m = b n, a n x + a n x + æææ+ a nm x m = b n In the example above, we have a total of n equations and m unknowns However, for the most part we shall be considering systems of equations where the total number of equations equals the total number of unknowns; for in this case, we generally have a unique solution èif we have fewer equations than unknowns we don't have enough information to get a unique solution; and if we have more èindependentè equations than unknowns that we won't have any solutionsè The ærst step in casting the problem of solving systems of linear equations into the realm on numerical analysis, is to represent such a systems as a matrix equation Thus, if we then denote by, x, and b the matrices a a æææ a ;n, a n a a æææ a ;n, a n a n,; a n,; æææ a n,;n, a n,;n a n a n; æææ a n;n, x = then è9è èwith m = nè can be written x x x n, x n ; b = x = b b b b n, b n Now what makes this formulation accessible to numerical analysis is the fact that most èif not allè numerical programming languages have anumerical array data type In Maple, for example, a matrix like can be identiæed with a array constructed as follows: := arrayè,è; ë,ë := ; @

THREE SIMPLE CSES or more succinctly ë,ë := ; ë,ë := ; ë,ë := ; ë,ë := ; ë,ë := ; ë,ë := ; ë,ë := ; ë,ë := ; := arrayè,è; := ëë,,ë,ë,,ë,ë,ëë; Three Simple Cases Diagonal Matrices matrix equation x = b is trivial to solve if the matrix is purely diagonal For if the corresponding system of equations reduces to a æææ a æææ æææ a n,;n, æææ a x = b è x = b a a x = b è x = b a x n = b n è x n = b n Lower Triangular Matrices If the matrix has the form a æææ a a æææ a n,; a n,; æææ a n,;n, a n a n; æææ a n;n, èwith zeros everywhere above the diagonal from a to è, then it is called lower triangular matrix equation x = b in which is lower triangular is also fairly easy to solve For it is equivalent ot a system of equations of the form a x = b a x + a x = b a x + a x + a x = b a n x + a n x + a n x + æææ+ x n = b n

THREE SIMPLE CSES To ænd the solution of such a system one solves the ærst equation for x and then substitutes its solution b =a for the variable x in the second equation a b a + a x = b è x = a b, a b a One can now substitute the numerical expressions for x, and x into the third equation and get a numerical expression for x Continuing in this manner we can solve the system completely t this point, it might be worthwhile to develop an explicit algorithm for carrying out the solution of a lower triangular linear system Let n denote the number of equations èand the number of unknownsè We shall assume the matrix is lower triangular so that ccording to the discusion above, we have a ij = ; if jéi x = b a and if we know x ;x ;::: ;x k, we can compute x k from the k th equation x k = èb k, a k x, a k x k,æææ,a k;k,x k è a kk = X b k, k, a ki x i a kk a kk i= Upper Triangular Matrices We can do a similar thing for systems of equations characterized by an upper triangular matrices For if then the corresponding system of equations will be a a æææ a ;n, a n a æææ a ;n, a n æææ a n,;n æææ a x + a x+æææ+ a n x n = b a x + æææ+ a n x n = b a n,;n,x n, + a n,;nx n = b n, x n = b n which can be solved by substituting the solution of the last equation into the penultimate equation and solving for x n, x n, = a n,;n, x n = b n b n,, a n,;n bn and then substituting this result into the third from last equation, etc then becomes x n,i = a n,i;n,i è b i, ix k= a n,i;n,kx n,k! The formula for a particular x i

THREE SIMPLE CSES Example 9 Write a Maple program that solves the following system of equations x = x + x = x +x + x = x + x +x + x = 8 æ First note that this system corresponds to a lower triangular matrix B @ We can thus solve the equations x = b by forward substitution: for each k from to we set è! x k = k, X b k, a ks x s a kk In Maple this can be coded as follows: s= C n := ; := arrayèn,nè; b := arrayènè; x := arrayènè; := ëë,,,ë,ë,,,ë,ë,,,ë,ë,,,ëë; b := ë,,,9ë; for k from to n do xëkë := èbëkë - sumèëk,së*xësë,s=k-èèèëk,kë; od; Example 9 Write a Maple program that solves the following system of equations x +x + x, x = x + x, x =,x + x = x = 8 æ First note that this system corresponds to a lower triangular matrix B @,,, We can thus solve the equations x = b by backward substitution: for each k from to we set x,k = a,k;,k In Maple this can be coded as follows: n := ; := arrayèn,nè; b := arrayènè; x := arrayènè; è X C k, b,k, a,k;,sx,s s=!

THREE SIMPLE CSES := ëë,,,-ë,ë,,,-ë,ë,,-,ë,ë,,,ëë; b := ë,,,8ë; for k from to èn-è do xën-kë := èbën-kë - sumèën-k,n-së*xën-së,s=k-èèèën-k,n-kë; od;