SlideShare a Scribd company logo
1 of 15
Numerical Matrix methods
for solving the
System of Linear algebraic
equations
By Poonam Deshpande
Team 5 - RC 1229
Pre-requisites for this topic
Students should have the knowledge of
• Definition of a Matrix
• Different types of matrices
• Upper and lower triangular matrices
• Matrix algebra like addition, subtraction and
multiplication of matrices
• System of Linear Algebraic Equations
Learning Objectives:
• To understand how to write a System of Linear Algebraic
Equations in the matrix equation form.
• To enable students to understand how to solve the large
system of Linear algebraic equations using iterative
numerical methods and how to write a programing code
for these matrix methods
• To master the numerical methods like Gauss-Jordan
method, Crout’s Method, Iterative Method, and Gauss-
Seidel Method for solving the System of Linear Algebraic
Equations
• To develop the analytical ability to apply these learnings to
the real world problems
Learning Outcomes
• Students will be able to understand what is the System of
Linear Algebraic Equations and how to write a System of
Linear Algebraic Equations in the matrix equation form
• Students will be able to understand and master the
numerical methods like Gauss-Jordan method, Crout’s
Method, Iterative Method, and Gauss-Seidal Method for
solving the large System of Linear Algebraic Equations
• Students will be able to write a programing code for these
matrix methods
• Students will develop the analytical ability to apply these
learnings to the real world problems
System of linear algebraic equations
Consider the system of linear algebraic equations given by
𝑎11 𝑥1 + 𝑎12 𝑥2 + ⋯ … … + 𝑎1𝑛 𝑥 𝑛 = 𝑏1
𝑎21 𝑥1 + 𝑎22 𝑥2 + ⋯ … … + 𝑎2𝑛 𝑥 𝑛 = 𝑏2
.
.
𝑎 𝑚1 𝑥1 + 𝑎 𝑚2 𝑥2 + ⋯ … … + 𝑎 𝑚𝑛 𝑥 𝑛 = 𝑏 𝑚
Which can be written in the matrix equation form as
𝐴𝑋 = 𝐵
Here
• A is the Co-efficient matrix
• X the solution matrix (which to be calculated) and
• B is the constant matrix.
Numerical Matrix methods
• Gauss-Jordan Method
• Crout’s Method
• Iterative Method
• Gauss-Seidel method
Crout’s Method
Consider the matrix equation of the system of 3 equations in
3 unknowns
𝐴𝑋 = 𝐵
We write matrix A as a product of an Upper and Lower
Triangular matrices[1]
𝐴 = 𝐿𝑈
Where, 𝐿 =
𝑙11 0 0
𝑙21 𝑙22 0
𝑙31 𝑙32 𝑙33
𝑎𝑛𝑑 𝑈 =
1 𝑢12 𝑢13
0 1 𝑢23
0 0 1
[1] http://ktuce.ktu.edu.tr/~pehlivan/numerical_analysis/chap02/Cholesky.pdf
Crout’s Method (cont.)
Since 𝑨 = 𝑳𝑼 ∴ 𝑨𝑿 = 𝑩 (1)
Gives 𝑳𝑼𝑿 = 𝑩 (2)
Let us take 𝑼𝑿 = 𝒀 (3)
𝑌 is some unknown matrix which is to be evaluated
Then 𝐋𝐘 = 𝐁 (4)
Therefore to find the solution of the system (1) we will have
to solve (4) and then (3), but before that we will have to
evaluate the values of L and U
Algorithm for Crout’s Method
Use the following steps to solve the System of Linear algebraic
equations.
• Step 1: Write 𝐴 = 𝐿𝑈 =
𝑙11 0 0
𝑙21 𝑙22 0
𝑙31 𝑙32 𝑙33
1 𝑢12 𝑢13
0 1 𝑢23
0 0 1
• Step 2: Calculate the Product of L and U
𝑎11 𝑎12 𝑎13
𝑎21 𝑎22 𝑎23
𝑎31 𝑎32 𝑎33
=
𝑙11 𝑙11 𝑢12 𝑙11 𝑢13
𝑙21 𝑙21 𝑢12 + 𝑙22 𝑙21 𝑢13 + 𝑙22 𝑢23
𝑙31 𝑙31 𝑢12 + 𝑙32 𝑙31 𝑢13 + 𝑙32 𝑢23 + 𝑙33
Algorithm for Crout’s Method (cont.)
• Step 3: write 𝐿 and 𝑈
• Step 4: Solve 𝐿𝑌 = 𝐵 by forward substitution
• Step 5: Solve 𝑈𝑋 = 𝑌 by backward substitution
Thank You
Example
Solve the following system of equations by Crout’s Method
2𝑥1 − 4𝑥2 + 𝑥3 = 4,
6𝑥1 + 2𝑥2 − 𝑥3 = 10,
−2𝑥1 + 6𝑥2 − 2𝑥3 = −6
Thank You

More Related Content

What's hot

Ode powerpoint presentation1
Ode powerpoint presentation1Ode powerpoint presentation1
Ode powerpoint presentation1
Pokkarn Narkhede
 
Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Second order homogeneous linear differential equations
Second order homogeneous linear differential equations
Viraj Patel
 
Eigen values and eigenvectors
Eigen values and eigenvectorsEigen values and eigenvectors
Eigen values and eigenvectors
Amit Singh
 
systems of linear equations & matrices
systems of linear equations & matricessystems of linear equations & matrices
systems of linear equations & matrices
Student
 

What's hot (20)

Gauss sediel
Gauss sedielGauss sediel
Gauss sediel
 
Bisection
BisectionBisection
Bisection
 
Cayley – hamiltion theorem By Sunny
Cayley – hamiltion theorem By SunnyCayley – hamiltion theorem By Sunny
Cayley – hamiltion theorem By Sunny
 
Application of vector integration
Application of vector integration Application of vector integration
Application of vector integration
 
Numerical Differentiation and Integration
 Numerical Differentiation and Integration Numerical Differentiation and Integration
Numerical Differentiation and Integration
 
Ode powerpoint presentation1
Ode powerpoint presentation1Ode powerpoint presentation1
Ode powerpoint presentation1
 
Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Second order homogeneous linear differential equations
Second order homogeneous linear differential equations
 
Rank of a matrix
Rank of a matrixRank of a matrix
Rank of a matrix
 
Differential equations
Differential equationsDifferential equations
Differential equations
 
Eigenvalues and Eigenvectors
Eigenvalues and EigenvectorsEigenvalues and Eigenvectors
Eigenvalues and Eigenvectors
 
Exact Differential Equations
Exact Differential EquationsExact Differential Equations
Exact Differential Equations
 
Eigenvalues and Eigenvector
Eigenvalues and EigenvectorEigenvalues and Eigenvector
Eigenvalues and Eigenvector
 
rank of matrix
rank of matrixrank of matrix
rank of matrix
 
LINEAR DIFFERENTIAL EQUATION & BERNOULLI`S EQUATION
LINEAR DIFFERENTIAL EQUATION & BERNOULLI`S EQUATIONLINEAR DIFFERENTIAL EQUATION & BERNOULLI`S EQUATION
LINEAR DIFFERENTIAL EQUATION & BERNOULLI`S EQUATION
 
newton raphson method
newton raphson methodnewton raphson method
newton raphson method
 
Eigen values and eigenvectors
Eigen values and eigenvectorsEigen values and eigenvectors
Eigen values and eigenvectors
 
Time Response Analysis
Time Response AnalysisTime Response Analysis
Time Response Analysis
 
Newton's forward & backward interpolation
Newton's forward & backward interpolationNewton's forward & backward interpolation
Newton's forward & backward interpolation
 
Matlab solved problems
Matlab solved problemsMatlab solved problems
Matlab solved problems
 
systems of linear equations & matrices
systems of linear equations & matricessystems of linear equations & matrices
systems of linear equations & matrices
 

Viewers also liked

Solution of System of Linear Equations
Solution of System of Linear EquationsSolution of System of Linear Equations
Solution of System of Linear Equations
mofassair
 
Cholesky method and Thomas
Cholesky method and ThomasCholesky method and Thomas
Cholesky method and Thomas
jorgeduardooo
 
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
Lizeth Paola Barrero
 
Chapter 4: Linear Algebraic Equations
Chapter 4: Linear Algebraic EquationsChapter 4: Linear Algebraic Equations
Chapter 4: Linear Algebraic Equations
Maria Fernanda
 
Solving systems substitution
Solving systems substitutionSolving systems substitution
Solving systems substitution
chrystal_brinson
 
3.3 solving systems of inequalities
3.3 solving systems of inequalities3.3 solving systems of inequalities
3.3 solving systems of inequalities
fthrower
 
Choleskymethod
CholeskymethodCholeskymethod
Choleskymethod
uis
 
Specials Methods
Specials MethodsSpecials Methods
Specials Methods
UIS
 
Matrix factorization
Matrix factorizationMatrix factorization
Matrix factorization
rubyyc
 
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
njit-ronbrown
 

Viewers also liked (20)

Solution of System of Linear Equations
Solution of System of Linear EquationsSolution of System of Linear Equations
Solution of System of Linear Equations
 
Matlab code for crout method
Matlab code for crout methodMatlab code for crout method
Matlab code for crout method
 
Cholesky method and Thomas
Cholesky method and ThomasCholesky method and Thomas
Cholesky method and Thomas
 
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
 
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
 
Numerical Methods
Numerical MethodsNumerical Methods
Numerical Methods
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
 
Chapter 4: Linear Algebraic Equations
Chapter 4: Linear Algebraic EquationsChapter 4: Linear Algebraic Equations
Chapter 4: Linear Algebraic Equations
 
NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)
 
LINEAR EQUATION IN TWO VARIABLES PPT
LINEAR EQUATION  IN  TWO VARIABLES PPTLINEAR EQUATION  IN  TWO VARIABLES PPT
LINEAR EQUATION IN TWO VARIABLES PPT
 
Linear Equations
Linear EquationsLinear Equations
Linear Equations
 
Lecture#3 Algorithms and computing
Lecture#3 Algorithms and computingLecture#3 Algorithms and computing
Lecture#3 Algorithms and computing
 
Linear equations
Linear equationsLinear equations
Linear equations
 
Slope & rate of change practice
Slope & rate of change practiceSlope & rate of change practice
Slope & rate of change practice
 
Solving systems substitution
Solving systems substitutionSolving systems substitution
Solving systems substitution
 
3.3 solving systems of inequalities
3.3 solving systems of inequalities3.3 solving systems of inequalities
3.3 solving systems of inequalities
 
Choleskymethod
CholeskymethodCholeskymethod
Choleskymethod
 
Specials Methods
Specials MethodsSpecials Methods
Specials Methods
 
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
 

Similar to Crout s method for solving system 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
Wanda Sari
 
Alg II 3-6 Solving Systems - Matrices
Alg II 3-6 Solving Systems - MatricesAlg II 3-6 Solving Systems - Matrices
Alg II 3-6 Solving Systems - Matrices
jtentinger
 
Alg II Unit 3-6-solvingsystemsmatrices
Alg II Unit 3-6-solvingsystemsmatricesAlg II Unit 3-6-solvingsystemsmatrices
Alg II Unit 3-6-solvingsystemsmatrices
jtentinger
 
Algebra 2 01-Systems of Linear Equations and Matrices (RW 2022).pptx
Algebra 2 01-Systems of Linear Equations and Matrices (RW 2022).pptxAlgebra 2 01-Systems of Linear Equations and Matrices (RW 2022).pptx
Algebra 2 01-Systems of Linear Equations and Matrices (RW 2022).pptx
BivekRegmi1
 
algebra lineal ada5c97a-340b-4ae9-afce-b864c9f851df.pdf
algebra lineal ada5c97a-340b-4ae9-afce-b864c9f851df.pdfalgebra lineal ada5c97a-340b-4ae9-afce-b864c9f851df.pdf
algebra lineal ada5c97a-340b-4ae9-afce-b864c9f851df.pdf
enigmagb9
 

Similar to Crout s method for solving system of linear equations (20)

Data Analysis and Algorithms Lecture 1: Introduction
 Data Analysis and Algorithms Lecture 1: Introduction Data Analysis and Algorithms Lecture 1: Introduction
Data Analysis and Algorithms Lecture 1: Introduction
 
Math ppt.pptx ,
Math ppt.pptx                                      ,Math ppt.pptx                                      ,
Math ppt.pptx ,
 
How to Solve Linear Equation with the help of Liner Equation Calculator?
How to Solve Linear Equation with the help of Liner Equation Calculator?How to Solve Linear Equation with the help of Liner Equation Calculator?
How to Solve Linear Equation with the help of Liner Equation Calculator?
 
System of linear equations
System of linear equationsSystem of linear equations
System of linear equations
 
system of linear equations by Diler
system of linear equations by Dilersystem of linear equations by Diler
system of linear equations by Diler
 
Paper Study: Melding the data decision pipeline
Paper Study: Melding the data decision pipelinePaper Study: Melding the data decision pipeline
Paper Study: Melding the data decision pipeline
 
Linear Algebra and Matlab tutorial
Linear Algebra and Matlab tutorialLinear Algebra and Matlab tutorial
Linear Algebra and Matlab tutorial
 
Linear Programing.pptx
Linear Programing.pptxLinear Programing.pptx
Linear Programing.pptx
 
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
 
Lecture 6.1 6.2 bt
Lecture 6.1 6.2 btLecture 6.1 6.2 bt
Lecture 6.1 6.2 bt
 
Alg II 3-6 Solving Systems - Matrices
Alg II 3-6 Solving Systems - MatricesAlg II 3-6 Solving Systems - Matrices
Alg II 3-6 Solving Systems - Matrices
 
Alg II Unit 3-6-solvingsystemsmatrices
Alg II Unit 3-6-solvingsystemsmatricesAlg II Unit 3-6-solvingsystemsmatrices
Alg II Unit 3-6-solvingsystemsmatrices
 
CS345-Algorithms-II-Lecture-1-CS345-2016.pdf
CS345-Algorithms-II-Lecture-1-CS345-2016.pdfCS345-Algorithms-II-Lecture-1-CS345-2016.pdf
CS345-Algorithms-II-Lecture-1-CS345-2016.pdf
 
Algebra 2 01-Systems of Linear Equations and Matrices (RW 2022).pptx
Algebra 2 01-Systems of Linear Equations and Matrices (RW 2022).pptxAlgebra 2 01-Systems of Linear Equations and Matrices (RW 2022).pptx
Algebra 2 01-Systems of Linear Equations and Matrices (RW 2022).pptx
 
algebra lineal ada5c97a-340b-4ae9-afce-b864c9f851df.pdf
algebra lineal ada5c97a-340b-4ae9-afce-b864c9f851df.pdfalgebra lineal ada5c97a-340b-4ae9-afce-b864c9f851df.pdf
algebra lineal ada5c97a-340b-4ae9-afce-b864c9f851df.pdf
 
Systems of Linear Algebra
Systems of Linear AlgebraSystems of Linear Algebra
Systems of Linear Algebra
 
Linear equations
Linear equationsLinear equations
Linear equations
 
1_Introduction.pptx
1_Introduction.pptx1_Introduction.pptx
1_Introduction.pptx
 
Research Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and ScienceResearch Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and Science
 
Elements of Statistical Learning 読み会 第2章
Elements of Statistical Learning 読み会 第2章Elements of Statistical Learning 読み会 第2章
Elements of Statistical Learning 読み会 第2章
 

Recently uploaded

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 

Recently uploaded (20)

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 

Crout s method for solving system of linear equations

  • 1. Numerical Matrix methods for solving the System of Linear algebraic equations By Poonam Deshpande Team 5 - RC 1229
  • 2. Pre-requisites for this topic Students should have the knowledge of • Definition of a Matrix • Different types of matrices • Upper and lower triangular matrices • Matrix algebra like addition, subtraction and multiplication of matrices • System of Linear Algebraic Equations
  • 3. Learning Objectives: • To understand how to write a System of Linear Algebraic Equations in the matrix equation form. • To enable students to understand how to solve the large system of Linear algebraic equations using iterative numerical methods and how to write a programing code for these matrix methods • To master the numerical methods like Gauss-Jordan method, Crout’s Method, Iterative Method, and Gauss- Seidel Method for solving the System of Linear Algebraic Equations • To develop the analytical ability to apply these learnings to the real world problems
  • 4. Learning Outcomes • Students will be able to understand what is the System of Linear Algebraic Equations and how to write a System of Linear Algebraic Equations in the matrix equation form • Students will be able to understand and master the numerical methods like Gauss-Jordan method, Crout’s Method, Iterative Method, and Gauss-Seidal Method for solving the large System of Linear Algebraic Equations • Students will be able to write a programing code for these matrix methods • Students will develop the analytical ability to apply these learnings to the real world problems
  • 5. System of linear algebraic equations Consider the system of linear algebraic equations given by 𝑎11 𝑥1 + 𝑎12 𝑥2 + ⋯ … … + 𝑎1𝑛 𝑥 𝑛 = 𝑏1 𝑎21 𝑥1 + 𝑎22 𝑥2 + ⋯ … … + 𝑎2𝑛 𝑥 𝑛 = 𝑏2 . . 𝑎 𝑚1 𝑥1 + 𝑎 𝑚2 𝑥2 + ⋯ … … + 𝑎 𝑚𝑛 𝑥 𝑛 = 𝑏 𝑚 Which can be written in the matrix equation form as 𝐴𝑋 = 𝐵 Here • A is the Co-efficient matrix • X the solution matrix (which to be calculated) and • B is the constant matrix.
  • 6. Numerical Matrix methods • Gauss-Jordan Method • Crout’s Method • Iterative Method • Gauss-Seidel method
  • 7. Crout’s Method Consider the matrix equation of the system of 3 equations in 3 unknowns 𝐴𝑋 = 𝐵 We write matrix A as a product of an Upper and Lower Triangular matrices[1] 𝐴 = 𝐿𝑈 Where, 𝐿 = 𝑙11 0 0 𝑙21 𝑙22 0 𝑙31 𝑙32 𝑙33 𝑎𝑛𝑑 𝑈 = 1 𝑢12 𝑢13 0 1 𝑢23 0 0 1 [1] http://ktuce.ktu.edu.tr/~pehlivan/numerical_analysis/chap02/Cholesky.pdf
  • 8. Crout’s Method (cont.) Since 𝑨 = 𝑳𝑼 ∴ 𝑨𝑿 = 𝑩 (1) Gives 𝑳𝑼𝑿 = 𝑩 (2) Let us take 𝑼𝑿 = 𝒀 (3) 𝑌 is some unknown matrix which is to be evaluated Then 𝐋𝐘 = 𝐁 (4) Therefore to find the solution of the system (1) we will have to solve (4) and then (3), but before that we will have to evaluate the values of L and U
  • 9. Algorithm for Crout’s Method Use the following steps to solve the System of Linear algebraic equations. • Step 1: Write 𝐴 = 𝐿𝑈 = 𝑙11 0 0 𝑙21 𝑙22 0 𝑙31 𝑙32 𝑙33 1 𝑢12 𝑢13 0 1 𝑢23 0 0 1 • Step 2: Calculate the Product of L and U 𝑎11 𝑎12 𝑎13 𝑎21 𝑎22 𝑎23 𝑎31 𝑎32 𝑎33 = 𝑙11 𝑙11 𝑢12 𝑙11 𝑢13 𝑙21 𝑙21 𝑢12 + 𝑙22 𝑙21 𝑢13 + 𝑙22 𝑢23 𝑙31 𝑙31 𝑢12 + 𝑙32 𝑙31 𝑢13 + 𝑙32 𝑢23 + 𝑙33
  • 10. Algorithm for Crout’s Method (cont.) • Step 3: write 𝐿 and 𝑈 • Step 4: Solve 𝐿𝑌 = 𝐵 by forward substitution • Step 5: Solve 𝑈𝑋 = 𝑌 by backward substitution
  • 12. Example Solve the following system of equations by Crout’s Method 2𝑥1 − 4𝑥2 + 𝑥3 = 4, 6𝑥1 + 2𝑥2 − 𝑥3 = 10, −2𝑥1 + 6𝑥2 − 2𝑥3 = −6
  • 13.
  • 14.