SlideShare una empresa de Scribd logo
1 de 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.

Más contenido relacionado

La actualidad más candente

Numerical Analysis and Its application to Boundary Value Problems
Numerical Analysis and Its application to Boundary Value ProblemsNumerical Analysis and Its application to Boundary Value Problems
Numerical Analysis and Its application to Boundary Value ProblemsGobinda Debnath
 
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsGauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsJanki Shah
 
Application of Numerical method in Real Life
Application of Numerical method in Real LifeApplication of Numerical method in Real Life
Application of Numerical method in Real LifeTaqwa It Center
 
Linear Algebra and Matrix
Linear Algebra and MatrixLinear Algebra and Matrix
Linear Algebra and Matrixitutor
 
Introduction to Numerical Analysis
Introduction to Numerical AnalysisIntroduction to Numerical Analysis
Introduction to Numerical AnalysisMohammad Tawfik
 
Presentation on Solution to non linear equations
Presentation on Solution to non linear equationsPresentation on Solution to non linear equations
Presentation on Solution to non linear equationsRifat Rahamatullah
 
System Of Linear Equations
System Of Linear EquationsSystem Of Linear Equations
System Of Linear Equationssaahil kshatriya
 
False Point Method / Regula falsi method
False Point Method / Regula falsi methodFalse Point Method / Regula falsi method
False Point Method / Regula falsi methodNasima Akhtar
 
system linear equations and matrices
 system linear equations and matrices system linear equations and matrices
system linear equations and matricesAditya Vaishampayan
 
Matrices and determinants
Matrices and determinantsMatrices and determinants
Matrices and determinantssom allul
 
Boundary Value Problems - Finite Difference
Boundary Value Problems - Finite DifferenceBoundary Value Problems - Finite Difference
Boundary Value Problems - Finite DifferenceMohammad Tawfik
 
Fundamentals of Finite Difference Methods
Fundamentals of Finite Difference MethodsFundamentals of Finite Difference Methods
Fundamentals of Finite Difference Methods1rj
 
Numerical Methods - Power Method for Eigen values
Numerical Methods - Power Method for Eigen valuesNumerical Methods - Power Method for Eigen values
Numerical Methods - Power Method for Eigen valuesDr. Nirav Vyas
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson methodBijay Mishra
 

La actualidad más candente (20)

Numerical Analysis and Its application to Boundary Value Problems
Numerical Analysis and Its application to Boundary Value ProblemsNumerical Analysis and Its application to Boundary Value Problems
Numerical Analysis and Its application to Boundary Value Problems
 
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsGauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
 
APPLICATION OF NUMERICAL METHODS IN SMALL SIZE
APPLICATION OF NUMERICAL METHODS IN SMALL SIZEAPPLICATION OF NUMERICAL METHODS IN SMALL SIZE
APPLICATION OF NUMERICAL METHODS IN SMALL SIZE
 
Application of Numerical method in Real Life
Application of Numerical method in Real LifeApplication of Numerical method in Real Life
Application of Numerical method in Real Life
 
Linear Algebra and Matrix
Linear Algebra and MatrixLinear Algebra and Matrix
Linear Algebra and Matrix
 
Introduction to Numerical Analysis
Introduction to Numerical AnalysisIntroduction to Numerical Analysis
Introduction to Numerical Analysis
 
Presentation on Solution to non linear equations
Presentation on Solution to non linear equationsPresentation on Solution to non linear equations
Presentation on Solution to non linear equations
 
System Of Linear Equations
System Of Linear EquationsSystem Of Linear Equations
System Of Linear Equations
 
Gauss sediel
Gauss sedielGauss sediel
Gauss sediel
 
False Point Method / Regula falsi method
False Point Method / Regula falsi methodFalse Point Method / Regula falsi method
False Point Method / Regula falsi method
 
Bisection method
Bisection methodBisection method
Bisection method
 
system linear equations and matrices
 system linear equations and matrices system linear equations and matrices
system linear equations and matrices
 
Numerical Analysis
Numerical AnalysisNumerical Analysis
Numerical Analysis
 
Matrices and determinants
Matrices and determinantsMatrices and determinants
Matrices and determinants
 
Riemann sumsdefiniteintegrals
Riemann sumsdefiniteintegralsRiemann sumsdefiniteintegrals
Riemann sumsdefiniteintegrals
 
Boundary Value Problems - Finite Difference
Boundary Value Problems - Finite DifferenceBoundary Value Problems - Finite Difference
Boundary Value Problems - Finite Difference
 
Fundamentals of Finite Difference Methods
Fundamentals of Finite Difference MethodsFundamentals of Finite Difference Methods
Fundamentals of Finite Difference Methods
 
Numerical Methods - Power Method for Eigen values
Numerical Methods - Power Method for Eigen valuesNumerical Methods - Power Method for Eigen values
Numerical Methods - Power Method for Eigen values
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 
Newton Raphson
Newton RaphsonNewton Raphson
Newton Raphson
 

Destacado

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
 

Destacado (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 a Chapter 4: Linear Algebraic Equations

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 a Chapter 4: Linear Algebraic Equations (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
 

Más de 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
 

Más de 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
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
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
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...apidays
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 

Último (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

Chapter 4: Linear Algebraic Equations

  • 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.