Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)

Slides:



Advertisements
Similar presentations
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Advertisements

Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Algebraic, transcendental (i.e., involving trigonometric and exponential functions), ordinary differential equations, or partial differential equations...
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
MATH 685/ CSI 700/ OR 682 Lecture Notes
Scientific Computing Linear Systems – Gaussian Elimination.
Linear Systems of Equations
LU Factorization LU-factorization Matrix factorization Forward substitution Back substitution.
Lecture 13 - Eigen-analysis CVEN 302 July 1, 2002.
Grayson Ishihara Math 480 April 15,  What is Partial Pivoting?  What is the PA=LU Factorization?  What kinds of things can we use these tools.
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
CISE301_Topic3KFUPM1 SE301: Numerical Methods Topic 3: Solution of Systems of Linear Equations Lectures 12-17: KFUPM Read Chapter 9 of the textbook.
Table of Contents Solving Linear Systems of Equations - Triangular Form Consider the following system of equations... The system is easily solved by starting.
Lecture 17 Introduction to Eigenvalue Problems
Solution of linear system of equations
Chapter 9 Gauss Elimination The Islamic University of Gaza
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 3 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
1cs542g-term Notes  Assignment 1 will be out later today (look on the web)
1cs542g-term Notes  Assignment 1 is out (questions?)
Linear Algebraic Equations
Part 3 Chapter 10 LU Factorization PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill Companies,
Linear Systems What is the Matrix?. Outline Announcements: –Homework III: due Wed. by 5, by Office Hours: Today & tomorrow, 11-1 –Ideas for Friday?
ECIV 520 Structural Analysis II Review of Matrix Algebra.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 18 LU Decomposition and Matrix Inversion.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Chapter 8 Objectives Understanding matrix notation.
Computational Methods in Physics PHYS 3437 Dr Rob Thacker Dept of Astronomy & Physics (MM-301C)
LU Decomposition 1. Introduction Another way of solving a system of equations is by using a factorization technique for matrices called LU decomposition.
Scientific Computing Linear Systems – LU Factorization.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Part 31 Linear.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
MATH 250 Linear Equations and Matrices
G AUSSIAN E LIMINATION Presented by: Max Le Max Le Justin Lavorgna Data Structures II: Algorithm Design & Analysis Algorithm Design & Analysis.
1 Iterative Solution Methods Starts with an initial approximation for the solution vector (x 0 ) At each iteration updates the x vector by using the sytem.
Yasser F. O. Mohammad Assiut University Egypt. Previously in NM Introduction to NM Solving single equation System of Linear Equations Vectors and Matrices.
10/17/ Gauss-Siedel Method Industrial Engineering Majors Authors: Autar Kaw
Chapter 3 Solution of Algebraic Equations 1 ChE 401: Computational Techniques for Chemical Engineers Fall 2009/2010 DRAFT SLIDES.
EE616 Dr. Janusz Starzyk Computer Aided Analysis of Electronic Circuits Innovations in numerical techniques had profound import on CAD: –Sparse matrix.
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 21.
Triangular Form and Gaussian Elimination Boldly on to Sec. 7.3a… HW: p odd.
Lecture 7 - Systems of Equations CVEN 302 June 17, 2002.
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 4. Least squares.
Lesson 3 CSPP58001.
MECN 3500 Inter - Bayamon Lecture 8 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Chapter 9 Gauss Elimination The Islamic University of Gaza
1 Chapter 7 Numerical Methods for the Solution of Systems of Equations.
Linear Systems Dinesh A.
Dr. Mubashir Alam King Saud University. Outline LU Factorization (6.4) Solution by LU Factorization Compact Variants of Gaussian Elimination, (Doolittle’s.
Gaoal of Chapter 2 To develop direct or iterative methods to solve linear systems Useful Words upper/lower triangular; back/forward substitution; coefficient;
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
Numerical Computation Lecture 6: Linear Systems – part II United International College.
1 Numerical Methods Solution of Systems of Linear Equations.
Linear Equations.
Linear Algebra Lecture 15.
Chapter 10: Solving Linear Systems of Equations
Chapter 10.
Metode Eliminasi Pertemuan – 4, 5, 6 Mata Kuliah : Analisis Numerik
Matrix Solutions to Linear Systems
Numerical Computation and Optimization
Linear Systems Numerical Methods.
Pivoting, Perturbation Analysis, Scaling and Equilibration
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)

In the previous slide Accelerating convergence –linearly convergent –Newton’s method on a root of multiplicity >1 –(exercises) Proceed to systems of equations –linear algebra review –pivoting strategies 2

In this slide Error estimation in system of equations –vector/matrix norms LU decomposition –split a matrix into the product of a lower and a upper triangular matrices –efficient in dealing with a lots of right-hand-side vectors Direct factorization –as an systems of n 2 +n equations –Crout decomposition –Dollittle decomposition 3

3.3 4 Vector and Matrix Norms

Vector and matrix norms Pivoting strategies are designed to reduce the impact roundoff error The size of a vector/matrix is necessary to measure the error 5

Vector norm 6

7 The two most commonly used norms in practice

8

9

Vector norm Equivalent One of the other uses of norms is to establish the convergence Two trivial questions: –converge or diverge in different norms? –converge to different limit values in different norms? The answer to both is no –all vector norms are equivalent 10

11

12 The Euclidean norm and the maximum norm are equivalent

Matrix norms Similarly, there are various matrix norms, here we focus on those norms related to vector norms –natural matrix norms 13

Matrix norms Natural matrix norms 14

15

Natural matrix norms Computing maximum norm 16

17

18

Natural matrix norms Computing Euclidean norm Is, unfortunately, not as straightforward as computing maximum matrix norms Requires knowledge of the eigenvalues of the matrix 19

Eigenvalue review 20 later

21

Eigenvalue review 22

23

24 In action

25

26

Any Questions? Vector and Matrix Norms

Error Estimates and Condition Number

Error estimation A linear system Ax=b, and x’ is an approximate solution The error, e=x’-x, cannot be directly computed ( x is never known) The residue vector, r=Ax’-b, can be easily computed – r=0  x’=x  e=0 29

Any Questions? 30

Is ||r|| a good estimation of ||e|| ? Construct the relationship between r and e From the definition r=Ax’-b=Ax’-Ax=A(x’-x)=Ae answer 31 hint#1 hint#2 hint#4hint#3

32

33

34

35

Condition number 36

37

Perturbations (skipped)

Any Questions? Error Estimates and Condition Number

LU Decomposition

LU decomposition Motivation Gaussian elimination solve a linear system, Ax=b, with n unknowns – (2/3)n 3 + (3/2)n 2 – (7/6)n –with back substitution –the minimum number of operations If there are a lots of right-hand-side vectors –how many operations for a new RHS? –with Gaussian elimination, all operations are also carried out on the RHS 41

LU decomposition Given a matrix A, a lower triangular matrix L and an upper triangular matrix U for which LU=A are said to form an LU decomposition of A Here we replace mathematical descriptions with an example to show how use Gaussian elimination to obtain an LU decomposition 42

43

44

45

46

Any Questions? 47

Is there any other LU decompositions in addition to using modified Gaussian elimination? –degree of freedoms (number of unknowns) – A  n 2, LU  n 2 +n Direct factorization (3.6) –as an systems of n 2 +n equations 48 hint answer

Solving a linear system A  LU When a new RHS comes – Ax=b  PAx=Pb  LUx=Pb –with z=Ux, actually to solve Lz=Pb and Ux=z both steps are easy notice that Pb does not require real matrix- vector multiplication 49

50

Solving a linear system In summary Anyway, the two-step algorithm (LU decomposition) is superior to Gaussian elimination with back substitution 51

Any Questions? LU Decomposition

3.6 Direct Factorization 53

Is there any other LU decompositions in addition to using modified Gaussian elimination? –degree of freedoms (number of unknowns) – A  n 2, LU  n 2 +n Direct factorization (3.6) –as an systems of n 2 +n equations 54 Recall that

Direct factorization Just add more n equations –ex: diagonal must be 1 Crout decomposition – l ii =1 for each i=1, 2, …, n Dollittle decomposition – u ii =1 for each i=1, 2, …, n 55

56

57

58

59

Any Questions? Direct Factorization