SlideShare a Scribd company logo
1 of 37
CHAPTER IV: LINEAR ALGEBRAIC EQUATIONS Maria FernandaVergara Mendoza Petroleum engineering UIS-COLOMBIA 2010
MATHEMATICAL BACKGROUND To study the methods to solve linear algebraic equations it’s necessary to familiarize with matrices. A matrix is a rectangular array of elements represented by a single symbol. The horizontal and vertical lines in a matrix are called rows and columns, respectively. The numbers in the matrix are called its entries or its elements. To specify a matrix's size, a matrix with m rows and n columns is called an m-by-n matrix or m × n matrix, while m and n are called its dimensions. Matrices where n=m are called square matrices
MATHEMATICAL BACKGROUND SPECIAL TYPES OF SQUARE MATRICES Symmetric Matrix: aij = aji Diagonal Matrix:  All elements off the main diagonal are zero Identity Matrix: Diagonal matrix where all elements on the main diagonal are equal to 1 Upper triangular matrix:  all elements below the main diagonal are zero
SPECIAL TYPES OF SQUARE MATRICES Lower triangular matrix:  All the elements above the main diagonal are zero Banded matrix:  all the elements are equal to zero with the exception of a band centered on the main diagonal
MATHEMATICAL BACKGROUND MATRIX OPERATION RULES ,[object Object]
Multiplication: is an m-by-n matrix and B is an n-by-p matrix, then their matrix productAB is the m-by-p matrix whose entries are given by dot product of the corresponding row of A and the corresponding column of B:,[object Object]
Gauss elimination
SOLVING SMALL NUMBERS OF EQUATIONS
1. The graphical method This method is appropriate for solving small sets of simultaneous equations , n≤3. A graphical solution of two equations is obtained by plotting them on cartesian coordinates, one axis belongs to one variable (x) and the other corresponds to the another variable (y).  Each equation is a straight line because they are linear equations. Both equations can be solved for x2:
1. The graphical method The equations are in form of straight lines, the next step is to plot these lines on Cartesian coordinates (x2 ordinate, x1 abscissa). The values of x1 and x2 at the intersection of the lines is the solution.  For example: Use the graphical method to solve 		3x1+2x2=18 		-x1+2x2=2 Solution: Solvetheeq. For x2 Thenweplotthetwolines: Thesolutionis 4, you can checkthis replacing in the x.
2. Determinants and Cramer’s Rule Determinants:  The determinant D of  a system is formed from the coefficients of the equation For example, the value of the second order determinant: 	Is calculated by: For the third-order case, a single numerical value for the determinant can be computed as
2. Determinants and Cramer’s Rule Cramer’s Rule:  “Each unknown in a system of linear algebraic equations may be expressed as a fraction of two determinants with denominator D and with the numerator obtained from D by replacing the column of coefficients of the unknown in question by the constants b1, b2, …, bn.” For example, x1 would be:
3.  The elimination of unknowns The process is to multiply the equations by constants so that one of the unknowns will be eliminated when the two equations are combined. Then, the other variable can be found by substitution. For example: Use the elimination of unknowns to solve 	Solution:
NAIVE GAUSS ELIMINATION This process is based in two simple steps:
NAIVE GAUSS ELIMINATION Forward Elimination of Unknowns:  Reduce the set of equations to an upper triangular system. Back Substitution: Find xn ,this result can be back-substituted into the (n-1) equation, repeat this procedure to evaluate the remaining x’s. Forward  elimination Back substitution
EXAMPLE 1 2
3
PITFALLS OF ELIMINATION METHODS
GAUSS-JORDAN Is a variation of Gauss elimination. When an unknown is eliminated in this method, it’s eliminated from all other equations rather than just the subsequent ones. The elimination step results in an identity matrix. It is not necessary to employ back substitution to obtain the solution.
MATHEMATICAL ALGORITHM Express the coefficients and the right-hand side as an augmented matrix.  Go to the left column, get zeros below this front element adding appropriate multiples of the top to the rows below it. The process is done through the following operations: (a) Multiply an equation by a nonzero scalar; (b) Exchange of position two equations; (c) Add to a multiple of another equation.
Cover the top row and repeat the above process with the remaining submatrix. Repeat with the rest of the lines (at this point the array is in the form of step).
Starting with the last line is not zero, move up: for each row get a 1 up front and introduce zero multiples of this sum for the corresponding rows.   Repeat this process until you get an identity matrix, and with this result get the solutions clearing the unknowns
EXAMPLE Use the Gauss-Jordan technique to solve: The augmented matrix is:
Solution:
Solution:
LU DECOMPOSITION AND MATRIX INVERSION
LU DECOMPOSITION The LU decomposition is a matrix decomposition which writes a matrix as the product of a lower triangular matrix and an upper triangular matrix. This decomposition is used in numerical analysis to solve systems of linear equations or calculate the determinant. Row swapping is not allowed. If you swap rows, then an LU decomposition will not exist. It is not necessary to get leading ones on the main diagonal when using Gaussian Elimination. In some matrices, however, it is recommended to get leading ones to use nice row operations. When using Gaussian Elimination to find such an LU decomposition, record all row operations involved. The row operations will help find the lower triangular matrix using the identity matrix. An LU decomposition is not unique. There can be more than one such LU decomposition for a matrix.
LU DECOMPOSITION To get the matrix U, just use row operations until an upper triangular matrix is formed. To get L, start with the identity matrix and use the following rules: Any row operations that involves adding a multiple of one row to another, for example, Ri + kRj, put the value –k in the ith-row, jth- column of the identity matrix.  Any row operations that involves getting a leading one on the main diagonal, for example, kRi, put the value 1/k in the position of the identity matrix where the leading one occurs. Example: Find an LU decomposition of the following matrix:
LU DECOMPOSITION First use Gauss elimination to get the upper triangular matrix: Second Form the lower triangular matrix L by using the rules mentioned above for the row operations involved to get U.
LU DECOMPOSITION LU decomposition can also be used to solve system of equations. STEPS TO SOLVE A SYSTEM OF EQUATION USING LU DECOMPOSITION
EXAMPLE Solve the following system using an LU decomposition Solution:  Set up the equation Ax = b. Find an LU decomposition for A. This will yield the equation (LU)x = b. *Note: We found the LU composition for A earlier. Its given by
Let y = Ux. Then solve the equation Ly = b for y. where y = Ux
Now solving for y gives the following values: Take the values for y and solve the equation y = Ux for x. This will give the solution to the system Ax = b. The solution is: x1 = 1 x2= -1 x3= 2.
THE MATRIX INVERSE Matrix inverse:  A and B are nxn matrices. Guess that A∙B=B∙A=In . ThenB iscalledtheinverse of A and isdenotedby A-1.  Thusmustbe: Thismethodis a necessarytool for solving systems of linear equations and matrix equations. It represents an alternative operation unable to perform the division of matrices. When A has an inverse, then we say that A is invertible.For a matrix has inverse matrix must meet two conditions: Must be a square matrix. Its determinant must be different from zero A∙ A-1= A-1∙ A=In
Methods to find the inverse of a matrix
BIBLIOGRAPHY CHAPRA S., Numerical methods for engineers. Mc Graw Hill Documents from The university of Texas at Dallas. GROSSMAN, Stanley l. Elementary Linear algebra. Mc Graw Hill.

More Related Content

What's hot

Generalized Nonlinear Models in R
Generalized Nonlinear Models in RGeneralized Nonlinear Models in R
Generalized Nonlinear Models in Rhtstatistics
 
Differential equations of first order
Differential equations of first orderDifferential equations of first order
Differential equations of first orderUzair Saiyed
 
QR Algorithm Presentation
QR Algorithm PresentationQR Algorithm Presentation
QR Algorithm Presentationkmwangi
 
NUMERICAL METHODS MULTIPLE CHOICE QUESTIONS
NUMERICAL METHODS MULTIPLE CHOICE QUESTIONSNUMERICAL METHODS MULTIPLE CHOICE QUESTIONS
NUMERICAL METHODS MULTIPLE CHOICE QUESTIONSnaveen kumar
 
Higher Differential Equation
Higher Differential Equation Higher Differential Equation
Higher Differential Equation Abdul Hannan
 
False Point Method / Regula falsi method
False Point Method / Regula falsi methodFalse Point Method / Regula falsi method
False Point Method / Regula falsi methodNasima Akhtar
 
3.2 implicit equations and implicit differentiation
3.2 implicit equations and implicit differentiation3.2 implicit equations and implicit differentiation
3.2 implicit equations and implicit differentiationmath265
 
Spearman's Rank calculations
Spearman's Rank calculationsSpearman's Rank calculations
Spearman's Rank calculationsGuerillateacher
 
System of linear equations
System of linear equationsSystem of linear equations
System of linear equationsCesar Mendoza
 
Eigen values and eigen vectors engineering
Eigen values and eigen vectors engineeringEigen values and eigen vectors engineering
Eigen values and eigen vectors engineeringshubham211
 
02 first order differential equations
02 first order differential equations02 first order differential equations
02 first order differential equationsvansi007
 
Lesson 11: Limits and Continuity
Lesson 11: Limits and ContinuityLesson 11: Limits and Continuity
Lesson 11: Limits and ContinuityMatthew Leingang
 
Solving systems of equations in 3 variables
Solving systems of equations in 3 variablesSolving systems of equations in 3 variables
Solving systems of equations in 3 variablesJessica Garcia
 
Lesson 9: Gaussian Elimination
Lesson 9: Gaussian EliminationLesson 9: Gaussian Elimination
Lesson 9: Gaussian EliminationMatthew Leingang
 
Dihedral groups & abeliangroups
Dihedral groups & abeliangroupsDihedral groups & abeliangroups
Dihedral groups & abeliangroupsdianageorge27
 
Matrices and System of Linear Equations ppt
Matrices and System of Linear Equations pptMatrices and System of Linear Equations ppt
Matrices and System of Linear Equations pptDrazzer_Dhruv
 

What's hot (20)

Generalized Nonlinear Models in R
Generalized Nonlinear Models in RGeneralized Nonlinear Models in R
Generalized Nonlinear Models in R
 
Differential equations of first order
Differential equations of first orderDifferential equations of first order
Differential equations of first order
 
QR Algorithm Presentation
QR Algorithm PresentationQR Algorithm Presentation
QR Algorithm Presentation
 
Ordinary differential equation
Ordinary differential equationOrdinary differential equation
Ordinary differential equation
 
NUMERICAL METHODS MULTIPLE CHOICE QUESTIONS
NUMERICAL METHODS MULTIPLE CHOICE QUESTIONSNUMERICAL METHODS MULTIPLE CHOICE QUESTIONS
NUMERICAL METHODS MULTIPLE CHOICE QUESTIONS
 
Higher Differential Equation
Higher Differential Equation Higher Differential Equation
Higher Differential Equation
 
False Point Method / Regula falsi method
False Point Method / Regula falsi methodFalse Point Method / Regula falsi method
False Point Method / Regula falsi method
 
Numerical analysis ppt
Numerical analysis pptNumerical analysis ppt
Numerical analysis ppt
 
3.2 implicit equations and implicit differentiation
3.2 implicit equations and implicit differentiation3.2 implicit equations and implicit differentiation
3.2 implicit equations and implicit differentiation
 
Spearman's Rank calculations
Spearman's Rank calculationsSpearman's Rank calculations
Spearman's Rank calculations
 
System of linear equations
System of linear equationsSystem of linear equations
System of linear equations
 
Eigen values and eigen vectors engineering
Eigen values and eigen vectors engineeringEigen values and eigen vectors engineering
Eigen values and eigen vectors engineering
 
02 first order differential equations
02 first order differential equations02 first order differential equations
02 first order differential equations
 
Lesson 11: Limits and Continuity
Lesson 11: Limits and ContinuityLesson 11: Limits and Continuity
Lesson 11: Limits and Continuity
 
Solving systems of equations in 3 variables
Solving systems of equations in 3 variablesSolving systems of equations in 3 variables
Solving systems of equations in 3 variables
 
Lesson 9: Gaussian Elimination
Lesson 9: Gaussian EliminationLesson 9: Gaussian Elimination
Lesson 9: Gaussian Elimination
 
Aitken's Method
Aitken's MethodAitken's Method
Aitken's Method
 
Dihedral groups & abeliangroups
Dihedral groups & abeliangroupsDihedral groups & abeliangroups
Dihedral groups & abeliangroups
 
LinearAlgebra.ppt
LinearAlgebra.pptLinearAlgebra.ppt
LinearAlgebra.ppt
 
Matrices and System of Linear Equations ppt
Matrices and System of Linear Equations pptMatrices and System of Linear Equations ppt
Matrices and System of Linear Equations ppt
 

Viewers also liked

Math Geophysics-system of linear algebraic equations
Math Geophysics-system of linear algebraic equationsMath Geophysics-system of linear algebraic equations
Math Geophysics-system of linear algebraic equationsAmin khalil
 
Applied numerical methods lec7
Applied numerical methods lec7Applied numerical methods lec7
Applied numerical methods lec7Yasser Ahmed
 
Crout s method for solving system of linear equations
Crout s method for solving system of linear equationsCrout s method for solving system of linear equations
Crout s method for solving system of linear equationsSugathan Velloth
 
System of linear algebriac equations nsm
System of linear algebriac equations nsmSystem of linear algebriac equations nsm
System of linear algebriac equations nsmRahul Narang
 
Math chapter 4
Math chapter 4Math chapter 4
Math chapter 4aelowans
 
Matrix factorization
Matrix factorizationMatrix factorization
Matrix factorizationrubyyc
 
Lecture 6 lu factorization & determinants - section 2-5 2-7 3-1 and 3-2
Lecture 6   lu factorization & determinants - section 2-5 2-7 3-1 and 3-2Lecture 6   lu factorization & determinants - section 2-5 2-7 3-1 and 3-2
Lecture 6 lu factorization & determinants - section 2-5 2-7 3-1 and 3-2njit-ronbrown
 
Specials Methods
Specials MethodsSpecials Methods
Specials MethodsUIS
 
Choleskymethod
CholeskymethodCholeskymethod
Choleskymethoduis
 
Applied numerical methods lec6
Applied numerical methods lec6Applied numerical methods lec6
Applied numerical methods lec6Yasser Ahmed
 
Midpoint-Based Parallel Sparse Matrix-Matrix Multiplication Algorithm
Midpoint-Based Parallel Sparse Matrix-Matrix Multiplication AlgorithmMidpoint-Based Parallel Sparse Matrix-Matrix Multiplication Algorithm
Midpoint-Based Parallel Sparse Matrix-Matrix Multiplication AlgorithmAlexander Pozdneev
 
Factorization from Gaussian Elimination
  Factorization from Gaussian Elimination  Factorization from Gaussian Elimination
Factorization from Gaussian EliminationMudassir Parvi
 
Matrix Completion Presentation
Matrix Completion PresentationMatrix Completion Presentation
Matrix Completion PresentationMichael Hankin
 
Cholesky method and Thomas
Cholesky method and ThomasCholesky method and Thomas
Cholesky method and Thomasjorgeduardooo
 

Viewers also liked (20)

Math Geophysics-system of linear algebraic equations
Math Geophysics-system of linear algebraic equationsMath Geophysics-system of linear algebraic equations
Math Geophysics-system of linear algebraic equations
 
Applied numerical methods lec7
Applied numerical methods lec7Applied numerical methods lec7
Applied numerical methods lec7
 
Nsm
Nsm Nsm
Nsm
 
Es272 ch4a
Es272 ch4aEs272 ch4a
Es272 ch4a
 
Systems of linear equations; matrices
Systems of linear equations; matricesSystems of linear equations; matrices
Systems of linear equations; matrices
 
Crout s method for solving system of linear equations
Crout s method for solving system of linear equationsCrout s method for solving system of linear equations
Crout s method for solving system of linear equations
 
System of linear algebriac equations nsm
System of linear algebriac equations nsmSystem of linear algebriac equations nsm
System of linear algebriac equations nsm
 
Math chapter 4
Math chapter 4Math chapter 4
Math chapter 4
 
04 gaussmethods
04 gaussmethods04 gaussmethods
04 gaussmethods
 
Matrix factorization
Matrix factorizationMatrix factorization
Matrix factorization
 
Lecture 6 lu factorization & determinants - section 2-5 2-7 3-1 and 3-2
Lecture 6   lu factorization & determinants - section 2-5 2-7 3-1 and 3-2Lecture 6   lu factorization & determinants - section 2-5 2-7 3-1 and 3-2
Lecture 6 lu factorization & determinants - section 2-5 2-7 3-1 and 3-2
 
Specials Methods
Specials MethodsSpecials Methods
Specials Methods
 
Choleskymethod
CholeskymethodCholeskymethod
Choleskymethod
 
Lu decomposition
Lu decompositionLu decomposition
Lu decomposition
 
Met num 6
Met num 6Met num 6
Met num 6
 
Applied numerical methods lec6
Applied numerical methods lec6Applied numerical methods lec6
Applied numerical methods lec6
 
Midpoint-Based Parallel Sparse Matrix-Matrix Multiplication Algorithm
Midpoint-Based Parallel Sparse Matrix-Matrix Multiplication AlgorithmMidpoint-Based Parallel Sparse Matrix-Matrix Multiplication Algorithm
Midpoint-Based Parallel Sparse Matrix-Matrix Multiplication Algorithm
 
Factorization from Gaussian Elimination
  Factorization from Gaussian Elimination  Factorization from Gaussian Elimination
Factorization from Gaussian Elimination
 
Matrix Completion Presentation
Matrix Completion PresentationMatrix Completion Presentation
Matrix Completion Presentation
 
Cholesky method and Thomas
Cholesky method and ThomasCholesky method and Thomas
Cholesky method and Thomas
 

Similar to LU decomposition and matrix inversion methods

Direct Methods to Solve Lineal Equations
Direct Methods to Solve Lineal EquationsDirect Methods to Solve Lineal Equations
Direct Methods to Solve Lineal EquationsLizeth Paola Barrero
 
Direct Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsDirect Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsLizeth Paola Barrero
 
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeksBeginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeksJinTaek Seo
 
Directs Methods
Directs MethodsDirects Methods
Directs MethodsUIS
 
Some methods for small systems of equations solutions
Some methods for small systems of equations solutionsSome methods for small systems of equations solutions
Some methods for small systems of equations solutionsmarcelafernandagarzon
 
Direct Methods For The Solution Of Systems Of
Direct Methods For The Solution Of Systems OfDirect Methods For The Solution Of Systems Of
Direct Methods For The Solution Of Systems OfMarcela Carrillo
 
Numerical Solution of Linear algebraic Equation
Numerical Solution of Linear algebraic EquationNumerical Solution of Linear algebraic Equation
Numerical Solution of Linear algebraic Equationpayalpriyadarshinisa1
 
Matrix and its applications by mohammad imran
Matrix and its applications by mohammad imranMatrix and its applications by mohammad imran
Matrix and its applications by mohammad imranMohammad Imran
 
System of equations
System of equationsSystem of equations
System of equationsmariacadena
 
System of equations
System of equationsSystem of equations
System of equationsmariacadena
 
System of equations
System of equationsSystem of equations
System of equationsmariacadena
 
System of equations
System of equationsSystem of equations
System of equationsmariacadena
 
System of equations
System of equationsSystem of equations
System of equationsmariacadena
 
Determinants
DeterminantsDeterminants
DeterminantsRivan001
 
Linear Algebra Presentation including basic of linear Algebra
Linear Algebra Presentation including basic of linear AlgebraLinear Algebra Presentation including basic of linear Algebra
Linear Algebra Presentation including basic of linear AlgebraMUHAMMADUSMAN93058
 

Similar to LU decomposition and matrix inversion methods (20)

Direct Methods to Solve Lineal Equations
Direct Methods to Solve Lineal EquationsDirect Methods to Solve Lineal Equations
Direct Methods to Solve Lineal Equations
 
Direct methods
Direct methodsDirect methods
Direct methods
 
Direct Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsDirect Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations Systems
 
Direct methods
Direct methodsDirect methods
Direct methods
 
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeksBeginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks
 
Directs Methods
Directs MethodsDirects Methods
Directs Methods
 
Some methods for small systems of equations solutions
Some methods for small systems of equations solutionsSome methods for small systems of equations solutions
Some methods for small systems of equations solutions
 
Direct Methods For The Solution Of Systems Of
Direct Methods For The Solution Of Systems OfDirect Methods For The Solution Of Systems Of
Direct Methods For The Solution Of Systems Of
 
Chapter v
Chapter vChapter v
Chapter v
 
Numerical Solution of Linear algebraic Equation
Numerical Solution of Linear algebraic EquationNumerical Solution of Linear algebraic Equation
Numerical Solution of Linear algebraic Equation
 
Matrix and its applications by mohammad imran
Matrix and its applications by mohammad imranMatrix and its applications by mohammad imran
Matrix and its applications by mohammad imran
 
System of equations
System of equationsSystem of equations
System of equations
 
System of equations
System of equationsSystem of equations
System of equations
 
System of equations
System of equationsSystem of equations
System of equations
 
System of equations
System of equationsSystem of equations
System of equations
 
System of equations
System of equationsSystem of equations
System of equations
 
Determinants
DeterminantsDeterminants
Determinants
 
Linear Algebra and its use in finance:
Linear Algebra and its use in finance:Linear Algebra and its use in finance:
Linear Algebra and its use in finance:
 
Linear Algebra Presentation including basic of linear Algebra
Linear Algebra Presentation including basic of linear AlgebraLinear Algebra Presentation including basic of linear Algebra
Linear Algebra Presentation including basic of linear Algebra
 
Matrices ppt
Matrices pptMatrices ppt
Matrices ppt
 

More from Maria Fernanda

Estudios de-casos-internacionales-de-ciudades-inteligentes-medellin-colombia
Estudios de-casos-internacionales-de-ciudades-inteligentes-medellin-colombiaEstudios de-casos-internacionales-de-ciudades-inteligentes-medellin-colombia
Estudios de-casos-internacionales-de-ciudades-inteligentes-medellin-colombiaMaria Fernanda
 
Smart cities a lesson from barcelona
Smart cities a lesson from barcelonaSmart cities a lesson from barcelona
Smart cities a lesson from barcelonaMaria Fernanda
 
Internet of things en las smart cities
Internet of things en las smart citiesInternet of things en las smart cities
Internet of things en las smart citiesMaria Fernanda
 
Chapter 3: Roots of Equations
Chapter 3: Roots of EquationsChapter 3: Roots of Equations
Chapter 3: Roots of EquationsMaria Fernanda
 
CHAPTER 2: Numerical Approximation
CHAPTER 2: Numerical ApproximationCHAPTER 2: Numerical Approximation
CHAPTER 2: Numerical ApproximationMaria Fernanda
 
Chapter 2: Numerical Approximation
Chapter 2: Numerical ApproximationChapter 2: Numerical Approximation
Chapter 2: Numerical ApproximationMaria Fernanda
 

More from Maria Fernanda (11)

Estudios de-casos-internacionales-de-ciudades-inteligentes-medellin-colombia
Estudios de-casos-internacionales-de-ciudades-inteligentes-medellin-colombiaEstudios de-casos-internacionales-de-ciudades-inteligentes-medellin-colombia
Estudios de-casos-internacionales-de-ciudades-inteligentes-medellin-colombia
 
Smart cities a lesson from barcelona
Smart cities a lesson from barcelonaSmart cities a lesson from barcelona
Smart cities a lesson from barcelona
 
Internet of things en las smart cities
Internet of things en las smart citiesInternet of things en las smart cities
Internet of things en las smart cities
 
Roots of polynomials
Roots of polynomialsRoots of polynomials
Roots of polynomials
 
Roots of polynomials
Roots of polynomialsRoots of polynomials
Roots of polynomials
 
Chapter 3: Roots of Equations
Chapter 3: Roots of EquationsChapter 3: Roots of Equations
Chapter 3: Roots of Equations
 
CHAPTER 2: Numerical Approximation
CHAPTER 2: Numerical ApproximationCHAPTER 2: Numerical Approximation
CHAPTER 2: Numerical Approximation
 
Chapter 2: Numerical Approximation
Chapter 2: Numerical ApproximationChapter 2: Numerical Approximation
Chapter 2: Numerical Approximation
 
Chapter 1: Darcy's law
Chapter 1: Darcy's lawChapter 1: Darcy's law
Chapter 1: Darcy's law
 
CHAPTER 1: Modeling
CHAPTER 1: ModelingCHAPTER 1: Modeling
CHAPTER 1: Modeling
 
Chapter I
Chapter IChapter I
Chapter I
 

Recently uploaded

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 

Recently uploaded (20)

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 

LU decomposition and matrix inversion methods

  • 1. CHAPTER IV: LINEAR ALGEBRAIC EQUATIONS Maria FernandaVergara Mendoza Petroleum engineering UIS-COLOMBIA 2010
  • 2. MATHEMATICAL BACKGROUND To study the methods to solve linear algebraic equations it’s necessary to familiarize with matrices. A matrix is a rectangular array of elements represented by a single symbol. The horizontal and vertical lines in a matrix are called rows and columns, respectively. The numbers in the matrix are called its entries or its elements. To specify a matrix's size, a matrix with m rows and n columns is called an m-by-n matrix or m × n matrix, while m and n are called its dimensions. Matrices where n=m are called square matrices
  • 3. MATHEMATICAL BACKGROUND SPECIAL TYPES OF SQUARE MATRICES Symmetric Matrix: aij = aji Diagonal Matrix: All elements off the main diagonal are zero Identity Matrix: Diagonal matrix where all elements on the main diagonal are equal to 1 Upper triangular matrix: all elements below the main diagonal are zero
  • 4. SPECIAL TYPES OF SQUARE MATRICES Lower triangular matrix: All the elements above the main diagonal are zero Banded matrix: all the elements are equal to zero with the exception of a band centered on the main diagonal
  • 5.
  • 6.
  • 8. SOLVING SMALL NUMBERS OF EQUATIONS
  • 9. 1. The graphical method This method is appropriate for solving small sets of simultaneous equations , n≤3. A graphical solution of two equations is obtained by plotting them on cartesian coordinates, one axis belongs to one variable (x) and the other corresponds to the another variable (y). Each equation is a straight line because they are linear equations. Both equations can be solved for x2:
  • 10. 1. The graphical method The equations are in form of straight lines, the next step is to plot these lines on Cartesian coordinates (x2 ordinate, x1 abscissa). The values of x1 and x2 at the intersection of the lines is the solution. For example: Use the graphical method to solve 3x1+2x2=18 -x1+2x2=2 Solution: Solvetheeq. For x2 Thenweplotthetwolines: Thesolutionis 4, you can checkthis replacing in the x.
  • 11. 2. Determinants and Cramer’s Rule Determinants: The determinant D of a system is formed from the coefficients of the equation For example, the value of the second order determinant: Is calculated by: For the third-order case, a single numerical value for the determinant can be computed as
  • 12. 2. Determinants and Cramer’s Rule Cramer’s Rule: “Each unknown in a system of linear algebraic equations may be expressed as a fraction of two determinants with denominator D and with the numerator obtained from D by replacing the column of coefficients of the unknown in question by the constants b1, b2, …, bn.” For example, x1 would be:
  • 13. 3. The elimination of unknowns The process is to multiply the equations by constants so that one of the unknowns will be eliminated when the two equations are combined. Then, the other variable can be found by substitution. For example: Use the elimination of unknowns to solve Solution:
  • 14. NAIVE GAUSS ELIMINATION This process is based in two simple steps:
  • 15. NAIVE GAUSS ELIMINATION Forward Elimination of Unknowns: Reduce the set of equations to an upper triangular system. Back Substitution: Find xn ,this result can be back-substituted into the (n-1) equation, repeat this procedure to evaluate the remaining x’s. Forward elimination Back substitution
  • 17. 3
  • 19. GAUSS-JORDAN Is a variation of Gauss elimination. When an unknown is eliminated in this method, it’s eliminated from all other equations rather than just the subsequent ones. The elimination step results in an identity matrix. It is not necessary to employ back substitution to obtain the solution.
  • 20. MATHEMATICAL ALGORITHM Express the coefficients and the right-hand side as an augmented matrix. Go to the left column, get zeros below this front element adding appropriate multiples of the top to the rows below it. The process is done through the following operations: (a) Multiply an equation by a nonzero scalar; (b) Exchange of position two equations; (c) Add to a multiple of another equation.
  • 21. Cover the top row and repeat the above process with the remaining submatrix. Repeat with the rest of the lines (at this point the array is in the form of step).
  • 22. Starting with the last line is not zero, move up: for each row get a 1 up front and introduce zero multiples of this sum for the corresponding rows. Repeat this process until you get an identity matrix, and with this result get the solutions clearing the unknowns
  • 23. EXAMPLE Use the Gauss-Jordan technique to solve: The augmented matrix is:
  • 26. LU DECOMPOSITION AND MATRIX INVERSION
  • 27. LU DECOMPOSITION The LU decomposition is a matrix decomposition which writes a matrix as the product of a lower triangular matrix and an upper triangular matrix. This decomposition is used in numerical analysis to solve systems of linear equations or calculate the determinant. Row swapping is not allowed. If you swap rows, then an LU decomposition will not exist. It is not necessary to get leading ones on the main diagonal when using Gaussian Elimination. In some matrices, however, it is recommended to get leading ones to use nice row operations. When using Gaussian Elimination to find such an LU decomposition, record all row operations involved. The row operations will help find the lower triangular matrix using the identity matrix. An LU decomposition is not unique. There can be more than one such LU decomposition for a matrix.
  • 28. LU DECOMPOSITION To get the matrix U, just use row operations until an upper triangular matrix is formed. To get L, start with the identity matrix and use the following rules: Any row operations that involves adding a multiple of one row to another, for example, Ri + kRj, put the value –k in the ith-row, jth- column of the identity matrix. Any row operations that involves getting a leading one on the main diagonal, for example, kRi, put the value 1/k in the position of the identity matrix where the leading one occurs. Example: Find an LU decomposition of the following matrix:
  • 29. LU DECOMPOSITION First use Gauss elimination to get the upper triangular matrix: Second Form the lower triangular matrix L by using the rules mentioned above for the row operations involved to get U.
  • 30.
  • 31. LU DECOMPOSITION LU decomposition can also be used to solve system of equations. STEPS TO SOLVE A SYSTEM OF EQUATION USING LU DECOMPOSITION
  • 32. EXAMPLE Solve the following system using an LU decomposition Solution: Set up the equation Ax = b. Find an LU decomposition for A. This will yield the equation (LU)x = b. *Note: We found the LU composition for A earlier. Its given by
  • 33. Let y = Ux. Then solve the equation Ly = b for y. where y = Ux
  • 34. Now solving for y gives the following values: Take the values for y and solve the equation y = Ux for x. This will give the solution to the system Ax = b. The solution is: x1 = 1 x2= -1 x3= 2.
  • 35. THE MATRIX INVERSE Matrix inverse: A and B are nxn matrices. Guess that A∙B=B∙A=In . ThenB iscalledtheinverse of A and isdenotedby A-1. Thusmustbe: Thismethodis a necessarytool for solving systems of linear equations and matrix equations. It represents an alternative operation unable to perform the division of matrices. When A has an inverse, then we say that A is invertible.For a matrix has inverse matrix must meet two conditions: Must be a square matrix. Its determinant must be different from zero A∙ A-1= A-1∙ A=In
  • 36. Methods to find the inverse of a matrix
  • 37. BIBLIOGRAPHY CHAPRA S., Numerical methods for engineers. Mc Graw Hill Documents from The university of Texas at Dallas. GROSSMAN, Stanley l. Elementary Linear algebra. Mc Graw Hill.