Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.

Slides:



Advertisements
Similar presentations
Linear Inverse Problems
Advertisements

Chapter 2 Solutions of Systems of Linear Equations / Matrix Inversion
Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
Algebraic, transcendental (i.e., involving trigonometric and exponential functions), ordinary differential equations, or partial differential equations...
MATH 685/ CSI 700/ OR 682 Lecture Notes
Scientific Computing Linear Systems – Gaussian Elimination.
Linear Systems of Equations
Solving Linear Systems (Numerical Recipes, Chap 2)
Chapter 8 Numerical Technique 大葉大學 資訊工程系 黃鈴玲 Linear Algebra.
1.5 Elementary Matrices and a Method for Finding
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.
Solution of linear system of equations
Chapter 9 Gauss Elimination The Islamic University of Gaza
Linear Algebraic Equations
Matrix Operations. Matrix Notation Example Equality of Matrices.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 17 Solution of Systems of Equations.
Matrices and Systems of Equations
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.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
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.
10.1 Gaussian Elimination Method
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
Elementary Linear Algebra Howard Anton Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 1.
Linear Algebra - Chapter 1 [YR2005]
Elementary Linear Algebra Howard Anton Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 1.
Scientific Computing Linear Systems – LU Factorization.
Square n-by-n Matrix.
Copyright © 2011 Pearson, Inc. 7.3 Multivariate Linear Systems and Row Operations.
MA2213 Lecture 5 Linear Equations (Direct Solvers)
Systems of Linear Equation and Matrices
Matrix Algebra. Quick Review Quick Review Solutions.
Linear Systems Gaussian Elimination CSE 541 Roger Crawfis.
Chap. 2 Matrices 2.1 Operations with Matrices
Using LU Decomposition to Optimize the modconcen.m Routine Matt Tornowske April 1, 2002.
MATH 250 Linear Equations and Matrices
CHAPTER 2 MATRIX. CHAPTER OUTLINE 2.1 Introduction 2.2 Types of Matrices 2.3 Determinants 2.4 The Inverse of a Square Matrix 2.5 Types of Solutions to.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Chapter 3 Solution of Algebraic Equations 1 ChE 401: Computational Techniques for Chemical Engineers Fall 2009/2010 DRAFT SLIDES.
CHAPTER 2 MATRICES 2.1 Operations with Matrices Matrix
Lecture 8 Matrix Inverse and LU Decomposition
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
Section 7-3 Solving 3 x 3 systems of equations. Solving 3 x 3 Systems  substitution (triangular form)  Gaussian elimination  using an augmented matrix.
Chapter 9 Gauss Elimination The Islamic University of Gaza
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Arab Open University Faculty of Computer Studies M132: Linear Algebra
1 Chapter 7 Numerical Methods for the Solution of Systems of Equations.
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,
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
2 - 1 Chapter 2A Matrices 2A.1 Definition, and Operations of Matrices: 1 Sums and Scalar Products; 2 Matrix Multiplication 2A.2 Properties of Matrix Operations;
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
1 SYSTEM OF LINEAR EQUATIONS BASE OF VECTOR SPACE.
Numerical Computation Lecture 6: Linear Systems – part II United International College.
Copyright © Cengage Learning. All rights reserved. 8 Matrices and Determinants.
1 Numerical Methods Solution of Systems of Linear Equations.
Simultaneous Linear Equations
Linear Equations.
Chapter 8: Lesson 8.1 Matrices & Systems of Equations
Linear Algebra Lecture 15.
RECORD. RECORD Gaussian Elimination: derived system back-substitution.
Elementary Matrix Methid For find Inverse
CSE 541 – Numerical Methods
RECORD. RECORD COLLABORATE: Discuss: Is the statement below correct? Try a 2x2 example.
Lecture 8 Matrix Inverse and LU Decomposition
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
Presentation transcript:

Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology

2 Today’s Topics Linear Algebra  Systems of Linear Equations  Matrices  Vector Spaces

3 Systems of Linear Equations Linear Equation System of Linear Equations (n equations, m unknowns)

4 Systems of Linear Equations Solve a system of n linear equations in m unknown variables  A common problem in applications  In most cases m = n.  The system has three cases No solutions, one solution or infinitely many solutions How to solve the system?  Forward elimination followed by back substitution

5 Systems of Linear Equations A closer look at two equations in two unknowns When the solution method needs to be implemented for a computer, a practical concern is the amount of time required to compute a solution.

6 Systems of Linear Equations Division is more expensive than multiplication and addition. 3 additions 3 multiplications 3 divisions 3 additions 5 multiplications 2 divisions

7 Gaussian Elimination Forward elimination + back substitution = Gaussian elimination

8 Gaussian Elimination Basic Operations for Forward Elimination

9 Gaussian Elimination Basic Operations for Forward Elimination

10 Gaussian Elimination Basic Operations for Forward Elimination

11 Gaussian Elimination Basic Operations for Back Substitution

12 Gaussian Elimination Example

13 Geometry of Linear Systems Consider

14 Geometry of Linear Systems Consider 3 equations and 3 unknowns

15 Numerical Issues If the pivot is nearly zero, the division can be a source of numerical errors.  Use of floating point arithmetic with limited precision is the main cause.

16 Numerical Issues A better algorithm involves searching the entries with the pivot that is largest in absolute magnitude. No division by ε. -> Numerically robust and stable.

17 Numerical Issues However, even the previous approach can be a problem. Swap columns to avoid such problem.  Blackboard!!!

18 Numerical Issues Generally, for a system of n equations in n unknowns…  Full Pivoting: Search the entire matrix of coefficients looking for the entry of largest absolute magnitude to be used as the pivot.  If that entry occurs in row r and column c, then rows r and 1 are swapped followed by a swap of column c and column 1.  After both swaps, the entry in row 1 and column 1 is the largest absolute magnitude entry in the matrix.

19 Numerical Issues Generally, for a system of n equations in n unknowns…  If that entry is nearly zero, the linear system is ill- conditioned and notify the user.  If you choose to continue, the division is performed and forward elimination begins.

20 Iterative Methods for Solving Linear Systems Look for a good numerical approximation instead of the exact mathematical solution.  Useful in sparse linear systems  Approaches Splitting Method Minimization problem

21 Iterative Methods for Solving Linear Systems Splitting Method Issues Convergence Numerical Stability

22 Iterative Methods for Solving Linear Systems Formulate the linear system Ax=b as a minimization problem

23 Matrices Square matrices Identity matrix Transpose of a matrix Symmetric matrix: A = A T Skew-symmetric: A = -A T

24 Matrices Upper echelon matrix  U = [u ij ](nxm) if u ij = 0 for i > j  If m=n, upper triangular matrix Lower echelon matrix  L = [l ij ](nxm) if l ij = 0 for i < j  If m=n, lower triangular matrix

25 Matrices Elementary Row Matrices

26 Matrices Elementary Row Matrices

27 Matrices Elementary Row Matrices  The final result of forward elimination can be stated in terms of elementary row matrices E k, … E 1 applied to the augmented matrix [A|b]. [U|v] = E k … E 1 [A|b]

28 Matrices Inverse Matrix  PA = I: P is a left inverse  A -1 A = I, AA -1 = I.  Inverses are unique  If A and B are invertible, so is AB. Its inverse is (AB) -1 = B -1 A -1

29 Matrices LU Decomposition of the matrix A  The forward elimination of a matrix A produces an upper echelon matrix U. The corresponding elementary row matrices are E k …E 1  U = E k …E 1 A., L = (E k …E 1 ) -1. L is lower triangular.  A = LU: L is lower triangular and U is upper echelon.

30 Matrices LDU Decomposition of the matrix A  L is lower triangular, D is a diagonal matrix, and U is upper echelon with diagonal entries either 1 or 0.

31 Matrices LDU Decomposition of the matrix A

32 Matrices In general the factorization can be written as PA = LDU.

33 Matrices If A is invertible, its LDU decomposition is unique If A is symmetric, U in the LDU decomposition must be U = L T.  A = LDL T.  If the diagonal entries of D are nonnegative, A = (LD 1/2 ) (LD 1/2 ) T

34 Vector Spaces The central theme of linear algebra is the study of vectors and the sets in which they live, called vector spaces. What is the vector???

35 Vector Spaces Definition of a Vector Space (the triple (V,+, ᆞ ) )

36 Q & A?