SlideShare a Scribd company logo
1 of 34
DIRECT  METHODS  FOR SOLVING  SYSTEMS  OF LINEAR EQUATIONS Presented by: Acosta CreusMileidy Lorena    2073699 Teacher: Ph.D. Eduardo Carrillo Zambrano Numerical Methods in Petroleum Engineering INDUSTRIAL UNIVERSITY OF SANTANDER 2010
CONTENT CONVENTIONAL METHODS OF SOLUTION 1.1. Mathematical background 1.2. Solving Small Numbers Of Equations 1.2.1. Graphical method  1.2.2. Cramer’s rule  1.2.3. Elimination of Unknowns
CONTENT 2. TECHIQUES FOR IMPROVING SOLUTIONS 2.1. Use of more significant figures 2. 2.Pivoting 2.3. Scaling 3. COMPLEMENTARY TECHNIQUES 3.1. Gauss-Jordan 3.2. LU Decomposition 4. BIBLIOGRAPHY
1. CONVENTIONAL METHODS OF  SOLUTION 1.1.  MATHEMATICAL BACKGROUND  Matriz An matrix A of mxn is a rectangular array of mn numbers arranged in m rows and n columns. The component or element ij of A, denoted by aij is the number that appears in the row i and column j of A.  SCHOOL OF PETROLEUM ENGINEERING
Types of matrixes SCHOOL OF PETROLEUM ENGINEERING
Types of matrixes SCHOOL OF PETROLEUM ENGINEERING
Types of matrixes SCHOOL OF PETROLEUM ENGINEERING
CONVENTIONAL METHODS OF  SOLUTION 1.2. Solving Small Numbers Of Equations The following are several methods that are appropriate for solving small (n ≤3) sets of simultaneous equations and that don’t require a computer.  These are:  ,[object Object]
Determinants and Cramer’s rule
Elimination of UnknownsSCHOOL OF PETROLEUM ENGINEERING
1.2.1. Graphical Method  A graphical solution is obtainable for two equations by plotting them on Cartesian coordinates with one axis corresponding to x1 and the other to x2, because each equation is a straight line.  2 3 5 a11x1 + a12x2 = b1 a21 x1 + a22x2 = b2 Despejando x2 SCHOOL OF PETROLEUM ENGINEERING
1.2.1. Graphical Method  Beyond three equations, graphical methods break down and, consequently, have little practical value for solving simultaneous equations.  There are three cases that can pose problems when solving sets of linear equations: 2 3 5 -1/2x1+ x2= 1 -1/2x1 + x2 = 1/2 x2 x2 x2 (-2.3/5)x1+ x2= 1.1 -1/2x1 + x2 = 1 -1/2x1+ x2= 1 -x1+ 2x2= 2 x1  x1  x1  a) No solution	              b) Infinite solutions   	         c) ill-conditioned system  SCHOOL OF PETROLEUM ENGINEERING
1.2.1. Graphical Method  EXAMPLE: Let x1 be theabscissa. Solvebothequationsfor x2: 2 3 Withthegraphicalmethodtosolve: Solve: X1=4 ; X2=3 3x1 + 2x2 = 18 - x1 + 2x2 = 2 3x1 + 2x2 = 18 5 - x1 + 2x2 = 2 𝑥2=−32𝑥1+9 𝑥2=12𝑥1+1   SCHOOL OF PETROLEUM ENGINEERING
1.2.2. 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, 2 3 5 Gabriel Cramer FUENTE: http://auladeblanca.blogspot.com SCHOOL OF PETROLEUM ENGINEERING
1.2.2. Cramer’s rule  EXAMPLE WithCramer’s rule tosolve: 0.3x1+ 0.52x2 + x3= -0.01 0.5x1 + x2 + 1.9x3= 0.67 0.1x1 + 0.3x2 + 0.5x3= -0.44 Solution D=0.30.5210.511.90.10.30.5   2 3 5 1 Towritethedeterminant D: SCHOOL OF PETROLEUM ENGINEERING
1.2.2. Cramer’s rule  2 3 Tosolvetheminors: Evaluatingthedeterminant 2 3 A1=11.90.30.5=1(0.5)-1.9(0.3)=-0.07 A1=0.51.90.10.5=0.5(0.5)-1.9(0.1)=0.06 A1=0.510.10.3=0.5(0.3)-1(0.1)=0.05   These can be used to evaluate the determinant, so: 5 D=0.3(-0.07)-0.52(0.06)+1(0.05) D=-0.0022 SCHOOL OF PETROLEUM ENGINEERING
1.2.2. Cramer’s rule  4 Employing Cramer’s rule: x1=−0.010.5210.6711.9−0.440.30.5−0.0022=0.03278−0.0022=-14.9 x2=0.3−0.0110.50.671.90.1−0.440.5−0.0022=0.0649−0.0022=-29.5 x3=0.30.52−0.010.510.670.10.3−0.445−0.0022=−0.04356−0.0022=19.8   2 3 «For more thanthreeequations, Cramer´s rule becomesimpractcalbecause, as thenumber of equatiomsincreases, thedeterminants are time consumingtoevaluatebyhand» 5 SCHOOL OF PETROLEUM ENGINEERING
1.2.3. Elimination of Unknowns The basic strategy is to multiply the equations by constants so that one of the unknowns will be eliminated when the two equations are combined.   The result is a single equation that can be solved for the remaining unknown.  2 3 a11x1 + a12x2 = b1		 a21a11x1 + a21a12x2 = b1a21 a21 x1 + a22x2 = b2		a21a11x1 + a22a11x2= b1a11 5 SCHOOL OF PETROLEUM ENGINEERING
1.2.1. Elimination of Unknowns 2 EXAMPLE: Withelimination of unknownse: 3 3x1 + 2x2 = 18 - x1 + 2x2 = 2 5 Usingthelastequations: 𝑥1=218−2(2)32−2(−1)=4                𝑥2=32−18(−1)32−2(−1)=3   Thesevaluesare equalstographicalmethods. SCHOOL OF PETROLEUM ENGINEERING
2. TECHIQUES FOR IMPROVING SOLUTIONS ESCUELA DE INGENIERÍA DE PETRÓLEOS
3. COMPLEMENTARY TECHNIQUES 3.1. Gauss-Jordan 3.2. LU Decomposition ESCUELA DE INGENIERÍA DE PETRÓLEOS
3.1. GAUSS-JORDAN Gaussian elimination is an algorithm of linear algebra to determine the solutions of a system of linear equations, matrices and inverse found. STEPS 1 To convert linear equation system to banded matrix ESCUELA DE INGENIERÍA DE PETRÓLEOS
3.1. GAUSS-JORDAN 2 Go to the leftmost nonzero column 3 If the first line has a zero in this column, swap it with another  that does not have ESCUELA DE INGENIERÍA DE PETRÓLEOS
3.1. GAUSS-JORDAN 4 Get zeros below the pivot, adding appropriate multiples of row  than the row below it ESCUELA DE INGENIERÍA DE PETRÓLEOS
3.1. GAUSS-JORDAN 3 Repeat the operations with of the other rows to obtain the higher triangular matrix 3 Starting with the last line is not zero, move up to get the identity matrix. ESCUELA DE INGENIERÍA DE PETRÓLEOS
3.1. GAUSS-JORDAN 3 Solution of the system of equations ESCUELA DE INGENIERÍA DE PETRÓLEOS
3.1. GAUSS-JORDAN EXAMPLE To find the unknowns of the linear equation system using the method Gauss-Jordan Solution ESCUELA DE INGENIERÍA DE PETRÓLEOS
3.1. GAUSS-JORDAN EXAMPLE ESCUELA DE INGENIERÍA DE PETRÓLEOS
3.1. GAUSS-JORDAN EXAMPLE ESCUELA DE INGENIERÍA DE PETRÓLEOS
3.1. GAUSS-JORDAN EXAMPLE ESCUELA DE INGENIERÍA DE PETRÓLEOS
3.2. LU DECOMPOSITION The primary appeal of LU decomposition is that the time-consuming elimination step can be formulated so that it involves only operations on the matrix of coefficients (A), Thus it is well suited for those situations where many right-hand-side vectors (B) must be evaluated for a single value of (A).  STEPS 1 The linear equation system can be rearranged to give [A][x]=[B] ESCUELA DE INGENIERÍA DE PETRÓLEOS
3.2. LU DECOMPOSITION 2 Assume that there is a lower diagonal matrix with 1’s on the diagonal [L][D]=[B] L=100𝑙1210𝑙13𝑙231   3 To express the linear equation system as an upper triangular system [U][x]=[D] 𝑈=𝑢11𝑢12𝑢130𝑢22𝑢2300𝑢∗𝑥1𝑥2𝑥3=𝑑1𝑑2𝑑3   ESCUELA DE INGENIERÍA DE PETRÓLEOS
3.2. LU DECOMPOSITION Summary of steps       [A]   [X]= [B] [U]    [L]          [L]  [D]= [B]               [ D ] [U] [X]= [D]     [X] a) Decomposition b) Forwards c) Backward Substitution ESCUELA DE INGENIERÍA DE PETRÓLEOS
3.2. LU DECOMPOSITION Consider solving the system of equations by LU decomposition EXAMPLE Solution ESCUELA DE INGENIERÍA DE PETRÓLEOS

More Related Content

What's hot

Solving systems of Linear Equations
Solving systems of Linear EquationsSolving systems of Linear Equations
Solving systems of Linear Equationsswartzje
 
Solving system of linear equations
Solving system of linear equationsSolving system of linear equations
Solving system of linear equationsMew Aornwara
 
Mathematics 8 Systems of Linear Inequalities
Mathematics 8 Systems of Linear InequalitiesMathematics 8 Systems of Linear Inequalities
Mathematics 8 Systems of Linear InequalitiesJuan Miguel Palero
 
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
 
System of equations
System of equationsSystem of equations
System of equationsmariacadena
 
Systems of Equations by Elimination
Systems of Equations by EliminationSystems of Equations by Elimination
Systems of Equations by Eliminationmelissabarnhart
 
Lu decomposition
Lu decompositionLu decomposition
Lu decompositiongilandio
 
Lesson 19: Exponential and Logarithmic Functions
Lesson 19: Exponential and Logarithmic FunctionsLesson 19: Exponential and Logarithmic Functions
Lesson 19: Exponential and Logarithmic FunctionsKevin Johnson
 
Lesson 5: Polynomials
Lesson 5: PolynomialsLesson 5: Polynomials
Lesson 5: PolynomialsKevin Johnson
 
Math Project 2ppt
Math Project 2pptMath Project 2ppt
Math Project 2pptguest7461b8
 
Systems of linear equations and augmented matrices
Systems of linear equations and augmented matricesSystems of linear equations and augmented matrices
Systems of linear equations and augmented matricesST ZULAIHA NURHAJARURAHMAH
 
Systems of Linear Equations
Systems of Linear EquationsSystems of Linear Equations
Systems of Linear Equationsalrosiemae
 
linear equation system with 2 and 3 variables
linear equation system with 2 and 3 variableslinear equation system with 2 and 3 variables
linear equation system with 2 and 3 variablesWanda Sari
 
7.7 Solving Radical Equations
7.7 Solving Radical Equations7.7 Solving Radical Equations
7.7 Solving Radical Equationsswartzje
 
Lecture 05 b radicals multiplication and division
Lecture 05 b radicals multiplication and divisionLecture 05 b radicals multiplication and division
Lecture 05 b radicals multiplication and divisionHazel Joy Chong
 
GATE Preparation : Matrix Algebra
GATE Preparation : Matrix AlgebraGATE Preparation : Matrix Algebra
GATE Preparation : Matrix AlgebraParthDave57
 
Simultaneous equations elimination 2
Simultaneous equations elimination 2Simultaneous equations elimination 2
Simultaneous equations elimination 2castellanos72hector
 

What's hot (20)

Systems of equations
Systems of equationsSystems of equations
Systems of equations
 
Solving systems of Linear Equations
Solving systems of Linear EquationsSolving systems of Linear Equations
Solving systems of Linear Equations
 
Solving system of linear equations
Solving system of linear equationsSolving system of linear equations
Solving system of linear equations
 
Mathematics 8 Systems of Linear Inequalities
Mathematics 8 Systems of Linear InequalitiesMathematics 8 Systems of Linear Inequalities
Mathematics 8 Systems of Linear Inequalities
 
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
 
System of equations
System of equationsSystem of equations
System of equations
 
Systems of Equations by Elimination
Systems of Equations by EliminationSystems of Equations by Elimination
Systems of Equations by Elimination
 
Lu decomposition
Lu decompositionLu decomposition
Lu decomposition
 
Lesson 19: Exponential and Logarithmic Functions
Lesson 19: Exponential and Logarithmic FunctionsLesson 19: Exponential and Logarithmic Functions
Lesson 19: Exponential and Logarithmic Functions
 
Lesson 5: Polynomials
Lesson 5: PolynomialsLesson 5: Polynomials
Lesson 5: Polynomials
 
Math Project 2ppt
Math Project 2pptMath Project 2ppt
Math Project 2ppt
 
LU FACTORIZATION METHOD
 LU FACTORIZATION METHOD LU FACTORIZATION METHOD
LU FACTORIZATION METHOD
 
Systems of linear equations and augmented matrices
Systems of linear equations and augmented matricesSystems of linear equations and augmented matrices
Systems of linear equations and augmented matrices
 
Systems of Linear Equations
Systems of Linear EquationsSystems of Linear Equations
Systems of Linear Equations
 
linear equation system with 2 and 3 variables
linear equation system with 2 and 3 variableslinear equation system with 2 and 3 variables
linear equation system with 2 and 3 variables
 
7.7 Solving Radical Equations
7.7 Solving Radical Equations7.7 Solving Radical Equations
7.7 Solving Radical Equations
 
Matriks
MatriksMatriks
Matriks
 
Lecture 05 b radicals multiplication and division
Lecture 05 b radicals multiplication and divisionLecture 05 b radicals multiplication and division
Lecture 05 b radicals multiplication and division
 
GATE Preparation : Matrix Algebra
GATE Preparation : Matrix AlgebraGATE Preparation : Matrix Algebra
GATE Preparation : Matrix Algebra
 
Simultaneous equations elimination 2
Simultaneous equations elimination 2Simultaneous equations elimination 2
Simultaneous equations elimination 2
 

Viewers also liked

Thyroid Function
Thyroid FunctionThyroid Function
Thyroid Functionjgaryfaj
 
Dossier de veille 104
Dossier de veille 104Dossier de veille 104
Dossier de veille 104Rémi Thibert
 
Ejercicio 9 de word
Ejercicio 9 de wordEjercicio 9 de word
Ejercicio 9 de wordmeribello
 
vivian's resume
vivian's resumevivian's resume
vivian's resumevivian ng
 
Mojo – Simple REST Server
Mojo – Simple REST ServerMojo – Simple REST Server
Mojo – Simple REST Serverhendrikvb
 
RESULTADOS PRIMER TORNEO
RESULTADOS PRIMER TORNEORESULTADOS PRIMER TORNEO
RESULTADOS PRIMER TORNEOanatael74
 
Harry stack sullivan descripción
Harry stack sullivan descripciónHarry stack sullivan descripción
Harry stack sullivan descripciónPaul Mocarro
 
Los planetas interiores rodrigo
Los planetas interiores rodrigoLos planetas interiores rodrigo
Los planetas interiores rodrigovictorserranov
 
Даниленко Маргатита (География 9 класс)
Даниленко Маргатита (География 9 класс)Даниленко Маргатита (География 9 класс)
Даниленко Маргатита (География 9 класс)YuliyaVladimirovna
 

Viewers also liked (14)

Thyroid Function
Thyroid FunctionThyroid Function
Thyroid Function
 
Dossier de veille 104
Dossier de veille 104Dossier de veille 104
Dossier de veille 104
 
Ejercicio 9 de word
Ejercicio 9 de wordEjercicio 9 de word
Ejercicio 9 de word
 
vivian's resume
vivian's resumevivian's resume
vivian's resume
 
Mojo – Simple REST Server
Mojo – Simple REST ServerMojo – Simple REST Server
Mojo – Simple REST Server
 
RESULTADOS PRIMER TORNEO
RESULTADOS PRIMER TORNEORESULTADOS PRIMER TORNEO
RESULTADOS PRIMER TORNEO
 
5152522_28566
5152522_285665152522_28566
5152522_28566
 
Andres gomez actividad1_2mapac
Andres gomez actividad1_2mapacAndres gomez actividad1_2mapac
Andres gomez actividad1_2mapac
 
Ogräs och ogräsbekämpning, avsnitt 4 by Sarbast wali
Ogräs och ogräsbekämpning, avsnitt 4 by Sarbast waliOgräs och ogräsbekämpning, avsnitt 4 by Sarbast wali
Ogräs och ogräsbekämpning, avsnitt 4 by Sarbast wali
 
Dv 111-affiche
Dv 111-afficheDv 111-affiche
Dv 111-affiche
 
Harry stack sullivan descripción
Harry stack sullivan descripciónHarry stack sullivan descripción
Harry stack sullivan descripción
 
osvehicle-connected-20160429
osvehicle-connected-20160429osvehicle-connected-20160429
osvehicle-connected-20160429
 
Los planetas interiores rodrigo
Los planetas interiores rodrigoLos planetas interiores rodrigo
Los planetas interiores rodrigo
 
Даниленко Маргатита (География 9 класс)
Даниленко Маргатита (География 9 класс)Даниленко Маргатита (География 9 класс)
Даниленко Маргатита (География 9 класс)
 

Similar to Métodos directos para la solución de sistemas de ecuaciones lineales

Business Math Chapter 3
Business Math Chapter 3Business Math Chapter 3
Business Math Chapter 3Nazrin Nazdri
 
Ch9-Gauss_Elimination4.pdf
Ch9-Gauss_Elimination4.pdfCh9-Gauss_Elimination4.pdf
Ch9-Gauss_Elimination4.pdfRahulUkhande
 
Linear Algebra- Gauss Elim-converted.pptx
Linear Algebra- Gauss Elim-converted.pptxLinear Algebra- Gauss Elim-converted.pptx
Linear Algebra- Gauss Elim-converted.pptxMazwan3
 
Numerical Method Analysis: Algebraic and Transcendental Equations (Linear)
Numerical Method Analysis: Algebraic and Transcendental Equations (Linear)Numerical Method Analysis: Algebraic and Transcendental Equations (Linear)
Numerical Method Analysis: Algebraic and Transcendental Equations (Linear)Minhas Kamal
 
algebra lesson notes (best).pdf
algebra lesson notes (best).pdfalgebra lesson notes (best).pdf
algebra lesson notes (best).pdfCyprianObota
 
Method of simple gauss
Method of simple gaussMethod of simple gauss
Method of simple gaussJeannie
 
Method Of Simple Gauss
Method Of Simple GaussMethod Of Simple Gauss
Method Of Simple GaussJeannie
 
Method of simple gauss
Method of simple gaussMethod of simple gauss
Method of simple gaussJeannie
 
Final presentation
Final presentationFinal presentation
Final presentationpaezp
 
Sistem pertidaksamaan kuadrat 2 variabel
Sistem pertidaksamaan kuadrat 2 variabelSistem pertidaksamaan kuadrat 2 variabel
Sistem pertidaksamaan kuadrat 2 variabelAlya Titania Annisaa
 
Partial fractions
Partial fractionsPartial fractions
Partial fractionsThivagar
 
C language numanal
C language numanalC language numanal
C language numanalaluavi
 
A BRIEF SURVEY OF METHODS FOR SOLVING NONLINEAR LEAST-SQUARES PROBLEMS
A BRIEF SURVEY OF METHODS FOR SOLVING NONLINEAR LEAST-SQUARES PROBLEMSA BRIEF SURVEY OF METHODS FOR SOLVING NONLINEAR LEAST-SQUARES PROBLEMS
A BRIEF SURVEY OF METHODS FOR SOLVING NONLINEAR LEAST-SQUARES PROBLEMSShannon Green
 

Similar to Métodos directos para la solución de sistemas de ecuaciones lineales (20)

Business Math Chapter 3
Business Math Chapter 3Business Math Chapter 3
Business Math Chapter 3
 
Ch9-Gauss_Elimination4.pdf
Ch9-Gauss_Elimination4.pdfCh9-Gauss_Elimination4.pdf
Ch9-Gauss_Elimination4.pdf
 
Linear Algebra- Gauss Elim-converted.pptx
Linear Algebra- Gauss Elim-converted.pptxLinear Algebra- Gauss Elim-converted.pptx
Linear Algebra- Gauss Elim-converted.pptx
 
Numerical Method Analysis: Algebraic and Transcendental Equations (Linear)
Numerical Method Analysis: Algebraic and Transcendental Equations (Linear)Numerical Method Analysis: Algebraic and Transcendental Equations (Linear)
Numerical Method Analysis: Algebraic and Transcendental Equations (Linear)
 
algebra lesson notes (best).pdf
algebra lesson notes (best).pdfalgebra lesson notes (best).pdf
algebra lesson notes (best).pdf
 
algebra
algebraalgebra
algebra
 
Method of simple gauss
Method of simple gaussMethod of simple gauss
Method of simple gauss
 
Method Of Simple Gauss
Method Of Simple GaussMethod Of Simple Gauss
Method Of Simple Gauss
 
Method of simple gauss
Method of simple gaussMethod of simple gauss
Method of simple gauss
 
Final presentation
Final presentationFinal presentation
Final presentation
 
Numerical Methods
Numerical MethodsNumerical Methods
Numerical Methods
 
system linear equations
 system linear equations  system linear equations
system linear equations
 
Linear and non linear equation
Linear and non linear equationLinear and non linear equation
Linear and non linear equation
 
Sistem pertidaksamaan kuadrat 2 variabel
Sistem pertidaksamaan kuadrat 2 variabelSistem pertidaksamaan kuadrat 2 variabel
Sistem pertidaksamaan kuadrat 2 variabel
 
Partial fractions
Partial fractionsPartial fractions
Partial fractions
 
Gauss simple
Gauss simpleGauss simple
Gauss simple
 
C language numanal
C language numanalC language numanal
C language numanal
 
Linear Algebra(1).pptx
Linear Algebra(1).pptxLinear Algebra(1).pptx
Linear Algebra(1).pptx
 
A BRIEF SURVEY OF METHODS FOR SOLVING NONLINEAR LEAST-SQUARES PROBLEMS
A BRIEF SURVEY OF METHODS FOR SOLVING NONLINEAR LEAST-SQUARES PROBLEMSA BRIEF SURVEY OF METHODS FOR SOLVING NONLINEAR LEAST-SQUARES PROBLEMS
A BRIEF SURVEY OF METHODS FOR SOLVING NONLINEAR LEAST-SQUARES PROBLEMS
 
CHAPTER 3 numer.pdf
CHAPTER 3 numer.pdfCHAPTER 3 numer.pdf
CHAPTER 3 numer.pdf
 

More from Mileacre

Ejercicios propuestos diferenciacion e integracion o1
Ejercicios propuestos diferenciacion e integracion o1Ejercicios propuestos diferenciacion e integracion o1
Ejercicios propuestos diferenciacion e integracion o1Mileacre
 
Exercises roots equations
Exercises roots equationsExercises roots equations
Exercises roots equationsMileacre
 
Roots of equations
Roots of equationsRoots of equations
Roots of equationsMileacre
 
Roots of equations
Roots of equationsRoots of equations
Roots of equationsMileacre
 
Equations root
Equations rootEquations root
Equations rootMileacre
 
Numerical approximation
Numerical approximationNumerical approximation
Numerical approximationMileacre
 
Numerical approximation
Numerical approximationNumerical approximation
Numerical approximationMileacre
 
Numerical approximation
Numerical approximationNumerical approximation
Numerical approximationMileacre
 
Mathematical models
Mathematical  modelsMathematical  models
Mathematical modelsMileacre
 
Ley de darcy o1 grupo 5
Ley de darcy o1 grupo 5Ley de darcy o1 grupo 5
Ley de darcy o1 grupo 5Mileacre
 
Cap. 1 resumen
Cap. 1 resumenCap. 1 resumen
Cap. 1 resumenMileacre
 

More from Mileacre (11)

Ejercicios propuestos diferenciacion e integracion o1
Ejercicios propuestos diferenciacion e integracion o1Ejercicios propuestos diferenciacion e integracion o1
Ejercicios propuestos diferenciacion e integracion o1
 
Exercises roots equations
Exercises roots equationsExercises roots equations
Exercises roots equations
 
Roots of equations
Roots of equationsRoots of equations
Roots of equations
 
Roots of equations
Roots of equationsRoots of equations
Roots of equations
 
Equations root
Equations rootEquations root
Equations root
 
Numerical approximation
Numerical approximationNumerical approximation
Numerical approximation
 
Numerical approximation
Numerical approximationNumerical approximation
Numerical approximation
 
Numerical approximation
Numerical approximationNumerical approximation
Numerical approximation
 
Mathematical models
Mathematical  modelsMathematical  models
Mathematical models
 
Ley de darcy o1 grupo 5
Ley de darcy o1 grupo 5Ley de darcy o1 grupo 5
Ley de darcy o1 grupo 5
 
Cap. 1 resumen
Cap. 1 resumenCap. 1 resumen
Cap. 1 resumen
 

Métodos directos para la solución de sistemas de ecuaciones lineales

  • 1. DIRECT METHODS FOR SOLVING SYSTEMS OF LINEAR EQUATIONS Presented by: Acosta CreusMileidy Lorena 2073699 Teacher: Ph.D. Eduardo Carrillo Zambrano Numerical Methods in Petroleum Engineering INDUSTRIAL UNIVERSITY OF SANTANDER 2010
  • 2. CONTENT CONVENTIONAL METHODS OF SOLUTION 1.1. Mathematical background 1.2. Solving Small Numbers Of Equations 1.2.1. Graphical method 1.2.2. Cramer’s rule 1.2.3. Elimination of Unknowns
  • 3. CONTENT 2. TECHIQUES FOR IMPROVING SOLUTIONS 2.1. Use of more significant figures 2. 2.Pivoting 2.3. Scaling 3. COMPLEMENTARY TECHNIQUES 3.1. Gauss-Jordan 3.2. LU Decomposition 4. BIBLIOGRAPHY
  • 4. 1. CONVENTIONAL METHODS OF SOLUTION 1.1. MATHEMATICAL BACKGROUND  Matriz An matrix A of mxn is a rectangular array of mn numbers arranged in m rows and n columns. The component or element ij of A, denoted by aij is the number that appears in the row i and column j of A. SCHOOL OF PETROLEUM ENGINEERING
  • 5. Types of matrixes SCHOOL OF PETROLEUM ENGINEERING
  • 6. Types of matrixes SCHOOL OF PETROLEUM ENGINEERING
  • 7. Types of matrixes SCHOOL OF PETROLEUM ENGINEERING
  • 8.
  • 10. Elimination of UnknownsSCHOOL OF PETROLEUM ENGINEERING
  • 11. 1.2.1. Graphical Method A graphical solution is obtainable for two equations by plotting them on Cartesian coordinates with one axis corresponding to x1 and the other to x2, because each equation is a straight line. 2 3 5 a11x1 + a12x2 = b1 a21 x1 + a22x2 = b2 Despejando x2 SCHOOL OF PETROLEUM ENGINEERING
  • 12. 1.2.1. Graphical Method Beyond three equations, graphical methods break down and, consequently, have little practical value for solving simultaneous equations. There are three cases that can pose problems when solving sets of linear equations: 2 3 5 -1/2x1+ x2= 1 -1/2x1 + x2 = 1/2 x2 x2 x2 (-2.3/5)x1+ x2= 1.1 -1/2x1 + x2 = 1 -1/2x1+ x2= 1 -x1+ 2x2= 2 x1 x1 x1 a) No solution b) Infinite solutions c) ill-conditioned system SCHOOL OF PETROLEUM ENGINEERING
  • 13. 1.2.1. Graphical Method EXAMPLE: Let x1 be theabscissa. Solvebothequationsfor x2: 2 3 Withthegraphicalmethodtosolve: Solve: X1=4 ; X2=3 3x1 + 2x2 = 18 - x1 + 2x2 = 2 3x1 + 2x2 = 18 5 - x1 + 2x2 = 2 𝑥2=−32𝑥1+9 𝑥2=12𝑥1+1   SCHOOL OF PETROLEUM ENGINEERING
  • 14. 1.2.2. 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, 2 3 5 Gabriel Cramer FUENTE: http://auladeblanca.blogspot.com SCHOOL OF PETROLEUM ENGINEERING
  • 15. 1.2.2. Cramer’s rule EXAMPLE WithCramer’s rule tosolve: 0.3x1+ 0.52x2 + x3= -0.01 0.5x1 + x2 + 1.9x3= 0.67 0.1x1 + 0.3x2 + 0.5x3= -0.44 Solution D=0.30.5210.511.90.10.30.5   2 3 5 1 Towritethedeterminant D: SCHOOL OF PETROLEUM ENGINEERING
  • 16. 1.2.2. Cramer’s rule 2 3 Tosolvetheminors: Evaluatingthedeterminant 2 3 A1=11.90.30.5=1(0.5)-1.9(0.3)=-0.07 A1=0.51.90.10.5=0.5(0.5)-1.9(0.1)=0.06 A1=0.510.10.3=0.5(0.3)-1(0.1)=0.05   These can be used to evaluate the determinant, so: 5 D=0.3(-0.07)-0.52(0.06)+1(0.05) D=-0.0022 SCHOOL OF PETROLEUM ENGINEERING
  • 17. 1.2.2. Cramer’s rule 4 Employing Cramer’s rule: x1=−0.010.5210.6711.9−0.440.30.5−0.0022=0.03278−0.0022=-14.9 x2=0.3−0.0110.50.671.90.1−0.440.5−0.0022=0.0649−0.0022=-29.5 x3=0.30.52−0.010.510.670.10.3−0.445−0.0022=−0.04356−0.0022=19.8   2 3 «For more thanthreeequations, Cramer´s rule becomesimpractcalbecause, as thenumber of equatiomsincreases, thedeterminants are time consumingtoevaluatebyhand» 5 SCHOOL OF PETROLEUM ENGINEERING
  • 18. 1.2.3. Elimination of Unknowns The basic strategy is to multiply the equations by constants so that one of the unknowns will be eliminated when the two equations are combined. The result is a single equation that can be solved for the remaining unknown. 2 3 a11x1 + a12x2 = b1 a21a11x1 + a21a12x2 = b1a21 a21 x1 + a22x2 = b2 a21a11x1 + a22a11x2= b1a11 5 SCHOOL OF PETROLEUM ENGINEERING
  • 19. 1.2.1. Elimination of Unknowns 2 EXAMPLE: Withelimination of unknownse: 3 3x1 + 2x2 = 18 - x1 + 2x2 = 2 5 Usingthelastequations: 𝑥1=218−2(2)32−2(−1)=4  𝑥2=32−18(−1)32−2(−1)=3   Thesevaluesare equalstographicalmethods. SCHOOL OF PETROLEUM ENGINEERING
  • 20. 2. TECHIQUES FOR IMPROVING SOLUTIONS ESCUELA DE INGENIERÍA DE PETRÓLEOS
  • 21. 3. COMPLEMENTARY TECHNIQUES 3.1. Gauss-Jordan 3.2. LU Decomposition ESCUELA DE INGENIERÍA DE PETRÓLEOS
  • 22. 3.1. GAUSS-JORDAN Gaussian elimination is an algorithm of linear algebra to determine the solutions of a system of linear equations, matrices and inverse found. STEPS 1 To convert linear equation system to banded matrix ESCUELA DE INGENIERÍA DE PETRÓLEOS
  • 23. 3.1. GAUSS-JORDAN 2 Go to the leftmost nonzero column 3 If the first line has a zero in this column, swap it with another that does not have ESCUELA DE INGENIERÍA DE PETRÓLEOS
  • 24. 3.1. GAUSS-JORDAN 4 Get zeros below the pivot, adding appropriate multiples of row than the row below it ESCUELA DE INGENIERÍA DE PETRÓLEOS
  • 25. 3.1. GAUSS-JORDAN 3 Repeat the operations with of the other rows to obtain the higher triangular matrix 3 Starting with the last line is not zero, move up to get the identity matrix. ESCUELA DE INGENIERÍA DE PETRÓLEOS
  • 26. 3.1. GAUSS-JORDAN 3 Solution of the system of equations ESCUELA DE INGENIERÍA DE PETRÓLEOS
  • 27. 3.1. GAUSS-JORDAN EXAMPLE To find the unknowns of the linear equation system using the method Gauss-Jordan Solution ESCUELA DE INGENIERÍA DE PETRÓLEOS
  • 28. 3.1. GAUSS-JORDAN EXAMPLE ESCUELA DE INGENIERÍA DE PETRÓLEOS
  • 29. 3.1. GAUSS-JORDAN EXAMPLE ESCUELA DE INGENIERÍA DE PETRÓLEOS
  • 30. 3.1. GAUSS-JORDAN EXAMPLE ESCUELA DE INGENIERÍA DE PETRÓLEOS
  • 31. 3.2. LU DECOMPOSITION The primary appeal of LU decomposition is that the time-consuming elimination step can be formulated so that it involves only operations on the matrix of coefficients (A), Thus it is well suited for those situations where many right-hand-side vectors (B) must be evaluated for a single value of (A). STEPS 1 The linear equation system can be rearranged to give [A][x]=[B] ESCUELA DE INGENIERÍA DE PETRÓLEOS
  • 32. 3.2. LU DECOMPOSITION 2 Assume that there is a lower diagonal matrix with 1’s on the diagonal [L][D]=[B] L=100𝑙1210𝑙13𝑙231   3 To express the linear equation system as an upper triangular system [U][x]=[D] 𝑈=𝑢11𝑢12𝑢130𝑢22𝑢2300𝑢∗𝑥1𝑥2𝑥3=𝑑1𝑑2𝑑3   ESCUELA DE INGENIERÍA DE PETRÓLEOS
  • 33. 3.2. LU DECOMPOSITION Summary of steps [A] [X]= [B] [U] [L] [L] [D]= [B] [ D ] [U] [X]= [D] [X] a) Decomposition b) Forwards c) Backward Substitution ESCUELA DE INGENIERÍA DE PETRÓLEOS
  • 34. 3.2. LU DECOMPOSITION Consider solving the system of equations by LU decomposition EXAMPLE Solution ESCUELA DE INGENIERÍA DE PETRÓLEOS
  • 35. 3.2. LU DECOMPOSITION Ux=y So, Finally, the solution to the linear system is given: ESCUELA DE INGENIERÍA DE PETRÓLEOS
  • 36.
  • 37. GROSSMAN, Stanley l. Algebra lineal. 5ta Edición. Editorial Mc Graw Hill. 2008