Numerical Analysis – Linear Equations(I) Hanyang University Jong-Il Park.

Slides:



Advertisements
Similar presentations
E. T. S. I. Caminos, Canales y Puertos1 Engineering Computation Lecture 6.
Advertisements

Chapter 2 Solutions of Systems of Linear Equations / Matrix Inversion
Algebraic, transcendental (i.e., involving trigonometric and exponential functions), ordinary differential equations, or partial differential equations...
Scientific Computing Linear Systems – Gaussian Elimination.
Linear Systems of Equations
Solving Linear Systems (Numerical Recipes, Chap 2)
Chapter 8 Numerical Technique 大葉大學 資訊工程系 黃鈴玲 Linear Algebra.
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.
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Part 3 Chapter 9 Gauss Elimination
Solution of linear system of equations
Chapter 9 Gauss Elimination The Islamic University of Gaza
Lecture 11 - LU Decomposition
Chapter 2, Linear Systems, Mainly LU Decomposition.
Linear Algebraic Equations
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 12 System of Linear Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 17 Solution of Systems of Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 20 Solution of Linear System of Equations - Iterative Methods.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 15 Solution of Systems of Equations.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
Ordinary least squares regression (OLS)
1 Systems of Linear Equations (Optional) Special Matrices.
Thomas algorithm to solve tridiagonal matrices
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
Systems of Linear Equations
1 Systems of Linear Equations Gauss-Jordan Elimination and LU Decomposition.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Linear Algebraic Equations ~ Gauss Elimination Chapter.
Major: All Engineering Majors Author(s): Autar Kaw
Chapter 8 Objectives Understanding matrix notation.
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.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
ΑΡΙΘΜΗΤΙΚΕΣ ΜΕΘΟΔΟΙ ΜΟΝΤΕΛΟΠΟΙΗΣΗΣ 4. Αριθμητική Επίλυση Συστημάτων Γραμμικών Εξισώσεων Gaussian elimination Gauss - Jordan 1.
Chapter 3 Solution of Algebraic Equations 1 ChE 401: Computational Techniques for Chemical Engineers Fall 2009/2010 DRAFT SLIDES.
 6.2 Pivoting Strategies 1/17 Chapter 6 Direct Methods for Solving Linear Systems -- Pivoting Strategies Example: Solve the linear system using 4-digit.
Lecture 8 Matrix Inverse and LU Decomposition
Lecture 7 - Systems of Equations CVEN 302 June 17, 2002.
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 9 Linear Systems of Equations: Gauss Elimination.
Chapter 5 MATRIX ALGEBRA: DETEMINANT, REVERSE, EIGENVALUES.
Lesson 3 CSPP58001.
Chapter 9 Gauss Elimination The Islamic University of Gaza
Linear Systems Numerical Methods. Linear equations N unknowns, M equations N unknowns, M equations where coefficient matrix.
Lecture 6 - Single Variable Problems & Systems of Equations CVEN 302 June 14, 2002.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
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.
A ij i = row j = column A [ A ] Definition of a Matrix.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
Numerical Methods.  LU Decomposition is another method to solve a set of simultaneous linear equations  For most non-singular matrix [A] that one could.
Lecture 9 Numerical Analysis. Solution of Linear System of Equations Chapter 3.
1 Numerical Methods Solution of Systems of Linear Equations.
Pitfalls of Gauss Elimination ● Division by zero (avoid by pivoting) ● Round-off errors – Important with >100 eqns – Substitute answer into original eqn.
LU Decomposition ● In Gauss elimination; Forward elimination Backward substitution Major computational effort Low computational effort can be used for.
Part 3 Chapter 9 Gauss Elimination
Chapter 8 Numerical Technique
Simultaneous Linear Equations
Spring Dr. Jehad Al Dallal
Linear Equations.
Lecture 11 Matrices and Linear Algebra with MATLAB
Numerical Analysis Lecture14.
Numerical Computation and Optimization
Numerical Analysis Lecture10.
Linear Systems Numerical Methods.
Lecture 8 Matrix Inverse and LU Decomposition
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

Numerical Analysis – Linear Equations(I) Hanyang University Jong-Il Park

Linear equations N unknowns, M equations where coefficient matrix

Solving methods Direct methods  Gauss elimination  Gauss-Jordan elimination  LU decomposition  Singular value decomposition  … Iterative methods  Jacobi iteration  Gauss-Seidel iteration  …

Basic properties of matrices(I) Definition  element  row  column  row matrix, column matrix  square matrix  order= MxN (M rows, N columns)  diagonal matrix  identity matrix : I  upper/lower triangular matrix  tri-diagonal matrix  transposed matrix: A t  symmetric matrix: A= A t  orthogonal matrix: A t A= I

Diagonal dominance Transpose facts Basic properties of matrices(II)

Basic properties of matrices(III) Matrix multiplication

Determinant C

Determinant facts(I)

Determinant facts(II)

Geometrical interpretation of determinant

Over-determined/ Under-determined problem Over-determined problem (m>n)  least-square estimation,  robust estimation etc. Under-determined problem (n<m)  singular value decomposition

Augmented matrix

Cramer’s rule

Triangular coefficient matrix

Substitution Upper triangular matrix Lower triangular matrix

Gauss elimination 1. Step 1: Gauss reduction  =Forward elimination  Coefficient matrix  upper triangular matrix 2. Step 2: Backward substitution

Gauss reduction Gauss reduction

Eg. Gauss elimination(I)

Eg. Gauss elimination(II)

Troubles in Gauss elimination Harmful effect of round-off error in pivot coefficient Pivoting strategy

Eg. Trouble(I)

Eg. Trouble(II)

Pivoting strategy To determine the smallest such that and perform  Partial pivoting dramatic enhancement!

Effect of partial pivoting

Scaled partial pivoting Scaling is to ensure that the largest element in each row has a relative magnitude of 1 before the comparison for row interchange is performed.

Eg. Effect of scaling

Complexity of Gauss elimination  Too much!

Summary: Gauss elimination 1) Augmented matrix 의 행을 최대값이 1 이 되도록 scaling(= normalization) 2) 첫 번째 열에 가장 큰 원소가 오도록 partial pivoting 3) 둘째 행 이하의 첫 열을 모두 0 이 되도록 eliminating 4) 2 행에서 n 행까지 1)- 3) 을 반복 5) backward substitution 으로 해를 구함 0 0 0

Gauss-Jordan elimination

Eg. Obtaining inverse matrix(I)

Eg. Obtaining inverse matrix(II) Backward substitution For each column

LU decomposition Principle: Solving a set of linear equations based on decomposing the given coefficient matrix into a product of lower and upper triangular matrix. Ax = b  LUx = b  L -1 LUx = L -1 b A=LUL -1  L -1 b=c  U x = c L L L -1 b = Lc  L c = b (1) (2) By solving the equations (2) and (1) successively, we get the solution x. Upper triangular Lower triangular

Various LU decompositions Doolittle decomposition  L 의 diagonal element 를 모두 1 로 만들어줌 Crout decomposition  U 의 diagonal element 를 모두 1 로 만들어줌 Cholesky decomposition  L 과 U 의 diagonal element 를 같게 만들어줌  symmetric, positive-definite matrix 에 적합

Crout decomposition

Implementation of Crout method

Programming using NR in C(I) Solving a set of linear equations

Programming using NR in C(II) Obtaining inverse matrix

Programming using NR in C(III) Calculating the determinant of a matrix

Homework #5 (Cont’) [Due: 10/22]

(Cont’) Homework #5