SlideShare a Scribd company logo
1 of 34
Download to read offline
Numerical Methods
Dr. Md. Abdul Hasib
Associate Professor
Department of Mechanical Engineering
Khulna University of Engineering & Technology (KUET)
Content
References
You may follow any book, whatever you want
 Introductory Methods of Numerical Analysis
S. S. Sastry
 Numerical Methods
E-Balaguruswamy
 Numerical Methods for Engineers
S. C. Chapra and R. P. Canale
o Internet
Content
For the Students
3
 Always come in time
 Be attentive
 Ask questions
 If you face any problem, never hesitate to contact with me
You may contact through…
Email or Mobile Phone
ahasib@me.kuet.ac.bd
CSE-2303
Numerical Methods
Solution of Linear Algebraic Equations
5
Solution of Linear Algebraic Equations
Solution of linear algebraic equations
 Indirect Methods
 Jacobi Method
 Gauss-Seidel Method
 Conjugate Gradient Method
 Direct Method
 Gauss Elimination Method
 Gauss Jordan Method
 Matrix Inversion Method
 LU Decomposition Method
Solve:
6
n 0 1 2 3 4 5 6 7
0.0 -0.200 0.146 0.192 0.181 0.185 0.186 0.186
0.0 0.222 0.203 0.328 0.332 0.329 0.331 0.331
0.0 -0.429 -0.517 -0.416 0.421 -0.424 -0.423 -0.423
Jacobi Method
7
n 0 1 2 3 4 5
0.0 -0.200 0.167 0.191 0.186 0.186
0.0 0.156 0.334 0.333 0.331 0.331
0.0 -0.508 -0.429 -0.429 -0.423 -0.423
Gauss-Seidel Method
8
n 0 1 2 3 4 5
0.0 -4 -34 -194 -6124 -42874
0.0 -6 -34 -244 -8574 -42874
Limitations of Jacobi & Gauss-Seidel Method
n 0 1 2 3 4 5
0.0 -4 -174 -6124 -214374 -7503124
0.0 -34 -1224 --42874 -1580624 -52521874
9
n 0 1 2 3 4 5
0.0 0.8571 0.9959 0.9999 1.0000 1.0000
0.0 0.9714 0.9991 1.0000 1.0000 1.0000
Pivoting
• Partial Pivoting
• Complete Pivoting
Limitations: How to Solve
Gauss Elimination Method
A method to solve simultaneous linear equations of the form
[A][X]=[C]
Two steps:
1. Forward Elimination
2. Back Substitution
A set of n equations and n unknowns
1
1
3
13
2
12
1
11 ... b
x
a
x
a
x
a
x
a n
n 




2
2
3
23
2
22
1
21 ... b
x
a
x
a
x
a
x
a n
n 




n
n
nn
n
n
n b
x
a
x
a
x
a
x
a 



 ...
3
3
2
2
1
1
. .
. .
. .
(n-1) steps of forward elimination
Forward Elimination
Step 1
For Equation 2, divide Equation 1 by and
multiply by .
)
...
( 1
1
3
13
2
12
1
11
11
21
b
x
a
x
a
x
a
x
a
a
a
n
n 










1
11
21
1
11
21
2
12
11
21
1
21 ... b
a
a
x
a
a
a
x
a
a
a
x
a n
n 



11
a
21
a
Forward Elimination
Forward Elimination
1
11
21
1
11
21
2
12
11
21
1
21 ... b
a
a
x
a
a
a
x
a
a
a
x
a n
n 



2
2
3
23
2
22
1
21 ... b
x
a
x
a
x
a
x
a n
n 




1
11
21
2
1
11
21
2
2
12
11
21
22 ... b
a
a
b
x
a
a
a
a
x
a
a
a
a n
n
n 





















'
2
'
2
2
'
22 ... b
x
a
x
a n
n 


Subtract the result from Equation 2.
−
_________________________________________________
or
Repeat this procedure for the remaining
equations to reduce the set of equations as
1
1
3
13
2
12
1
11 ... b
x
a
x
a
x
a
x
a n
n 




'
2
'
2
3
'
23
2
'
22 ... b
x
a
x
a
x
a n
n 



'
3
'
3
3
'
33
2
'
32 ... b
x
a
x
a
x
a n
n 



'
'
3
'
3
2
'
2 ... n
n
nn
n
n b
x
a
x
a
x
a 



. . .
. . .
. . .
End of Step 1
Forward Elimination
Step 2
Repeat the same procedure for the 3rd term of
Equation 3.
1
1
3
13
2
12
1
11 ... b
x
a
x
a
x
a
x
a n
n 




'
2
'
2
3
'
23
2
'
22 ... b
x
a
x
a
x
a n
n 



"
3
"
3
3
"
33 ... b
x
a
x
a n
n 


"
"
3
"
3 ... n
n
nn
n b
x
a
x
a 


. .
. .
. .
End of Step 2
Forward Elimination
At the end of (n-1) Forward Elimination steps, the
system of equations will look like
'
2
'
2
3
'
23
2
'
22 ... b
x
a
x
a
x
a n
n 



"
3
"
3
3
"
33 ... b
x
a
x
a n
n 


   
1
1 


n
n
n
n
nn b
x
a
. .
. .
. .
1
1
3
13
2
12
1
11 ... b
x
a
x
a
x
a
x
a n
n 




End of Step (n-1)
Forward Elimination
Matrix Form at End of Forward Elimination

















































 )
(n-
n
"
'
n
)
(n
nn
"
n
"
'
n
'
'
n
b
b
b
b
x
x
x
x
a
a
a
a
a
a
a
a
a
a
1
3
2
1
3
2
1
1
3
33
2
23
22
1
13
12
11
0
0
0
0
0
0
0










Forward Elimination
Back Substitution
Solve each equation starting from the last equation
Example of a system of 3 equations
Back Substitution Starting Eqns.
'
2
'
2
3
'
23
2
'
22 ... b
x
a
x
a
x
a n
n 



"
3
"
3
"
33 ... b
x
a
x
a n
n 


   
1
1 


n
n
n
n
nn b
x
a
. .
. .
. .
1
1
3
13
2
12
1
11 ... b
x
a
x
a
x
a
x
a n
n 




Back Substitution
Start with the last equation because it has only one unknown
)
1
(
)
1
(


 n
nn
n
n
n
a
b
x
Back Substitution
       
  1
,...,
1
for
...
1
1
,
2
1
2
,
1
1
1
,
1






 








n
i
a
x
a
x
a
x
a
b
x i
ii
n
i
n
i
i
i
i
i
i
i
i
i
i
i
i
   
  1
,...,
1
for
1
1
1
1




 




n
i
a
x
a
b
x i
ii
n
i
j
j
i
ij
i
i
i
)
1
(
)
1
(


 n
nn
n
n
n
a
b
x
Gauss Elimination Method-Example
x + y + z = 6
x – y + z = 2
2x – y + 3z = 9
Back Substitution
z= 3, y=2 and x=1
Limitations: Gauss Elimination Method
0.w+2x – y + 3z = 9
2w+x + y + z = 6
3w-x – y + z = 2
5w+3x-5y+7z=10
Pivoting
• Partial Pivoting
2w+x + y + z = 6
0.w+2x – y + 3z = 9
3w-x – y + z = 2
5w+3x-5y+7z=10
2x +0.w– y + 3z = 9
x + 2w+ y + z = 6
-x +3w- y + z = 2
3x+5w+5y+7z=10
0.w+0.x – y + 3z = 9
0.w+x + y + z = 6
3w-x – y + z = 2
5w+3x-5y+7z=10
Pivoting
• Complete Pivoting
x + 0.w+ y + z = 6
0.x +0.w– y + 3z = 9
-x+3w – y + z = 2
3x+5w-5y+7z=10
OR
Gauss Jordan Method
A method to solve simultaneous linear equations of the form
[A][X]=[C]
Gauss Jordan Method-Example
z= 3, y=2 and x=1
x + y + z = 6
x – y + z = 2
2x – y + 3z = 9
Gauss Jordan Method-Example
Gauss Jordan Method-Example
Matrix Inversion Method
Matrix Inversion Method
Matrix Inversion Method
Matrix Inversion Method
Matrix Inversion Method
Home Work - Solution of Linear Algebraic Equations
x - 3y + 12z = 31
4x + y - z = 3
2x + 7y + z = 19
Solve the above equations using
• Jacobi Method
• Gauss-Seidel Method
• Gauss Elimination Method
• Gauss Jordan Method
• Matrix Inversion Method
Thank you very much
সবাইকে অকেে ধেযবাদ

More Related Content

Similar to Linear Equations-Dr. Hasib.pdf

Kunci Jawaban kalkulus edisi 9[yunusFairVry.blogspot.com].pdf
Kunci Jawaban kalkulus edisi 9[yunusFairVry.blogspot.com].pdfKunci Jawaban kalkulus edisi 9[yunusFairVry.blogspot.com].pdf
Kunci Jawaban kalkulus edisi 9[yunusFairVry.blogspot.com].pdfMutiaraPutri41
 
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
 
lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...
lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...
lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...wafahop
 
Solving quadratic equations
Solving quadratic equationsSolving quadratic equations
Solving quadratic equationsAsawari Warkad
 
18-21 Principles of Least Squares.ppt
18-21 Principles of Least Squares.ppt18-21 Principles of Least Squares.ppt
18-21 Principles of Least Squares.pptBAGARAGAZAROMUALD2
 
Numerical solutions for linear system of equations
Numerical solutions for linear system of equationsNumerical solutions for linear system of equations
Numerical solutions for linear system of equationsMohamed Mohamed El-Sayed
 
Maths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K MukhopadhyayMaths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K MukhopadhyayDr. Asish K Mukhopadhyay
 
Gauss Jorden and Gauss Elimination method.pptx
Gauss Jorden and Gauss Elimination method.pptxGauss Jorden and Gauss Elimination method.pptx
Gauss Jorden and Gauss Elimination method.pptxAHSANMEHBOOB12
 
Gaussian Elimination
Gaussian EliminationGaussian Elimination
Gaussian EliminationZunAib Ali
 
6.7 quadratic inequalities
6.7 quadratic inequalities6.7 quadratic inequalities
6.7 quadratic inequalitiesJessica Garcia
 
chapter1_part2.pdf
chapter1_part2.pdfchapter1_part2.pdf
chapter1_part2.pdfAliEb2
 
Bca3010 computer oriented numerical methods
Bca3010 computer oriented numerical methodsBca3010 computer oriented numerical methods
Bca3010 computer oriented numerical methodssmumbahelp
 
Multiple Choice Questions - Numerical Methods
Multiple Choice Questions - Numerical MethodsMultiple Choice Questions - Numerical Methods
Multiple Choice Questions - Numerical MethodsMeenakshisundaram N
 
Linear Algebra- Gauss Elim-converted.pptx
Linear Algebra- Gauss Elim-converted.pptxLinear Algebra- Gauss Elim-converted.pptx
Linear Algebra- Gauss Elim-converted.pptxMazwan3
 
Solucao_Marion_Thornton_Dinamica_Classic (1).pdf
Solucao_Marion_Thornton_Dinamica_Classic (1).pdfSolucao_Marion_Thornton_Dinamica_Classic (1).pdf
Solucao_Marion_Thornton_Dinamica_Classic (1).pdfFranciscoJavierCaedo
 

Similar to Linear Equations-Dr. Hasib.pdf (20)

Kunci Jawaban kalkulus edisi 9[yunusFairVry.blogspot.com].pdf
Kunci Jawaban kalkulus edisi 9[yunusFairVry.blogspot.com].pdfKunci Jawaban kalkulus edisi 9[yunusFairVry.blogspot.com].pdf
Kunci Jawaban kalkulus edisi 9[yunusFairVry.blogspot.com].pdf
 
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)
 
Matrix.pptx
Matrix.pptxMatrix.pptx
Matrix.pptx
 
lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...
lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...
lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...
 
Solving quadratic equations
Solving quadratic equationsSolving quadratic equations
Solving quadratic equations
 
18-21 Principles of Least Squares.ppt
18-21 Principles of Least Squares.ppt18-21 Principles of Least Squares.ppt
18-21 Principles of Least Squares.ppt
 
Numerical solutions for linear system of equations
Numerical solutions for linear system of equationsNumerical solutions for linear system of equations
Numerical solutions for linear system of equations
 
Maths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K MukhopadhyayMaths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K Mukhopadhyay
 
algebra
algebraalgebra
algebra
 
Gauss Jorden and Gauss Elimination method.pptx
Gauss Jorden and Gauss Elimination method.pptxGauss Jorden and Gauss Elimination method.pptx
Gauss Jorden and Gauss Elimination method.pptx
 
system linear equations
 system linear equations  system linear equations
system linear equations
 
Gaussian Elimination
Gaussian EliminationGaussian Elimination
Gaussian Elimination
 
6.7 quadratic inequalities
6.7 quadratic inequalities6.7 quadratic inequalities
6.7 quadratic inequalities
 
chapter1_part2.pdf
chapter1_part2.pdfchapter1_part2.pdf
chapter1_part2.pdf
 
Bca3010 computer oriented numerical methods
Bca3010 computer oriented numerical methodsBca3010 computer oriented numerical methods
Bca3010 computer oriented numerical methods
 
Multiple Choice Questions - Numerical Methods
Multiple Choice Questions - Numerical MethodsMultiple Choice Questions - Numerical Methods
Multiple Choice Questions - Numerical Methods
 
ge.ppt
ge.pptge.ppt
ge.ppt
 
Linear Algebra- Gauss Elim-converted.pptx
Linear Algebra- Gauss Elim-converted.pptxLinear Algebra- Gauss Elim-converted.pptx
Linear Algebra- Gauss Elim-converted.pptx
 
Matrix
MatrixMatrix
Matrix
 
Solucao_Marion_Thornton_Dinamica_Classic (1).pdf
Solucao_Marion_Thornton_Dinamica_Classic (1).pdfSolucao_Marion_Thornton_Dinamica_Classic (1).pdf
Solucao_Marion_Thornton_Dinamica_Classic (1).pdf
 

Recently uploaded

The Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptxThe Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptxMANASINANDKISHORDEOR
 
Insurance management system project report.pdf
Insurance management system project report.pdfInsurance management system project report.pdf
Insurance management system project report.pdfKamal Acharya
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...IJECEIAES
 
Artificial Intelligence in due diligence
Artificial Intelligence in due diligenceArtificial Intelligence in due diligence
Artificial Intelligence in due diligencemahaffeycheryld
 
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024EMMANUELLEFRANCEHELI
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfEr.Sonali Nasikkar
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...drjose256
 
Working Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdfWorking Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdfSkNahidulIslamShrabo
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsMathias Magdowski
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...archanaece3
 
Software Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfSoftware Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfssuser5c9d4b1
 
Seizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksSeizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksIJECEIAES
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxkalpana413121
 
Basics of Relay for Engineering Students
Basics of Relay for Engineering StudentsBasics of Relay for Engineering Students
Basics of Relay for Engineering Studentskannan348865
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdfAlexander Litvinenko
 
CLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalCLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalSwarnaSLcse
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxCHAIRMAN M
 
Artificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdfArtificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdfKira Dess
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.benjamincojr
 
Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxMustafa Ahmed
 

Recently uploaded (20)

The Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptxThe Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptx
 
Insurance management system project report.pdf
Insurance management system project report.pdfInsurance management system project report.pdf
Insurance management system project report.pdf
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...
 
Artificial Intelligence in due diligence
Artificial Intelligence in due diligenceArtificial Intelligence in due diligence
Artificial Intelligence in due diligence
 
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
 
Working Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdfWorking Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdf
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility Applications
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 
Software Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfSoftware Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdf
 
Seizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksSeizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networks
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
Basics of Relay for Engineering Students
Basics of Relay for Engineering StudentsBasics of Relay for Engineering Students
Basics of Relay for Engineering Students
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
 
CLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalCLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference Modal
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 
Artificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdfArtificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdf
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.
 
Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptx
 

Linear Equations-Dr. Hasib.pdf

  • 1. Numerical Methods Dr. Md. Abdul Hasib Associate Professor Department of Mechanical Engineering Khulna University of Engineering & Technology (KUET)
  • 2. Content References You may follow any book, whatever you want  Introductory Methods of Numerical Analysis S. S. Sastry  Numerical Methods E-Balaguruswamy  Numerical Methods for Engineers S. C. Chapra and R. P. Canale o Internet
  • 3. Content For the Students 3  Always come in time  Be attentive  Ask questions  If you face any problem, never hesitate to contact with me You may contact through… Email or Mobile Phone ahasib@me.kuet.ac.bd
  • 4. CSE-2303 Numerical Methods Solution of Linear Algebraic Equations
  • 5. 5 Solution of Linear Algebraic Equations Solution of linear algebraic equations  Indirect Methods  Jacobi Method  Gauss-Seidel Method  Conjugate Gradient Method  Direct Method  Gauss Elimination Method  Gauss Jordan Method  Matrix Inversion Method  LU Decomposition Method Solve:
  • 6. 6 n 0 1 2 3 4 5 6 7 0.0 -0.200 0.146 0.192 0.181 0.185 0.186 0.186 0.0 0.222 0.203 0.328 0.332 0.329 0.331 0.331 0.0 -0.429 -0.517 -0.416 0.421 -0.424 -0.423 -0.423 Jacobi Method
  • 7. 7 n 0 1 2 3 4 5 0.0 -0.200 0.167 0.191 0.186 0.186 0.0 0.156 0.334 0.333 0.331 0.331 0.0 -0.508 -0.429 -0.429 -0.423 -0.423 Gauss-Seidel Method
  • 8. 8 n 0 1 2 3 4 5 0.0 -4 -34 -194 -6124 -42874 0.0 -6 -34 -244 -8574 -42874 Limitations of Jacobi & Gauss-Seidel Method n 0 1 2 3 4 5 0.0 -4 -174 -6124 -214374 -7503124 0.0 -34 -1224 --42874 -1580624 -52521874
  • 9. 9 n 0 1 2 3 4 5 0.0 0.8571 0.9959 0.9999 1.0000 1.0000 0.0 0.9714 0.9991 1.0000 1.0000 1.0000 Pivoting • Partial Pivoting • Complete Pivoting Limitations: How to Solve
  • 10. Gauss Elimination Method A method to solve simultaneous linear equations of the form [A][X]=[C] Two steps: 1. Forward Elimination 2. Back Substitution
  • 11. A set of n equations and n unknowns 1 1 3 13 2 12 1 11 ... b x a x a x a x a n n      2 2 3 23 2 22 1 21 ... b x a x a x a x a n n      n n nn n n n b x a x a x a x a      ... 3 3 2 2 1 1 . . . . . . (n-1) steps of forward elimination Forward Elimination
  • 12. Step 1 For Equation 2, divide Equation 1 by and multiply by . ) ... ( 1 1 3 13 2 12 1 11 11 21 b x a x a x a x a a a n n            1 11 21 1 11 21 2 12 11 21 1 21 ... b a a x a a a x a a a x a n n     11 a 21 a Forward Elimination
  • 13. Forward Elimination 1 11 21 1 11 21 2 12 11 21 1 21 ... b a a x a a a x a a a x a n n     2 2 3 23 2 22 1 21 ... b x a x a x a x a n n      1 11 21 2 1 11 21 2 2 12 11 21 22 ... b a a b x a a a a x a a a a n n n                       ' 2 ' 2 2 ' 22 ... b x a x a n n    Subtract the result from Equation 2. − _________________________________________________ or
  • 14. Repeat this procedure for the remaining equations to reduce the set of equations as 1 1 3 13 2 12 1 11 ... b x a x a x a x a n n      ' 2 ' 2 3 ' 23 2 ' 22 ... b x a x a x a n n     ' 3 ' 3 3 ' 33 2 ' 32 ... b x a x a x a n n     ' ' 3 ' 3 2 ' 2 ... n n nn n n b x a x a x a     . . . . . . . . . End of Step 1 Forward Elimination
  • 15. Step 2 Repeat the same procedure for the 3rd term of Equation 3. 1 1 3 13 2 12 1 11 ... b x a x a x a x a n n      ' 2 ' 2 3 ' 23 2 ' 22 ... b x a x a x a n n     " 3 " 3 3 " 33 ... b x a x a n n    " " 3 " 3 ... n n nn n b x a x a    . . . . . . End of Step 2 Forward Elimination
  • 16. At the end of (n-1) Forward Elimination steps, the system of equations will look like ' 2 ' 2 3 ' 23 2 ' 22 ... b x a x a x a n n     " 3 " 3 3 " 33 ... b x a x a n n        1 1    n n n n nn b x a . . . . . . 1 1 3 13 2 12 1 11 ... b x a x a x a x a n n      End of Step (n-1) Forward Elimination
  • 17. Matrix Form at End of Forward Elimination                                                   ) (n- n " ' n ) (n nn " n " ' n ' ' n b b b b x x x x a a a a a a a a a a 1 3 2 1 3 2 1 1 3 33 2 23 22 1 13 12 11 0 0 0 0 0 0 0           Forward Elimination
  • 18. Back Substitution Solve each equation starting from the last equation Example of a system of 3 equations
  • 19. Back Substitution Starting Eqns. ' 2 ' 2 3 ' 23 2 ' 22 ... b x a x a x a n n     " 3 " 3 " 33 ... b x a x a n n        1 1    n n n n nn b x a . . . . . . 1 1 3 13 2 12 1 11 ... b x a x a x a x a n n     
  • 20. Back Substitution Start with the last equation because it has only one unknown ) 1 ( ) 1 (    n nn n n n a b x
  • 21. Back Substitution           1 ,..., 1 for ... 1 1 , 2 1 2 , 1 1 1 , 1                 n i a x a x a x a b x i ii n i n i i i i i i i i i i i i       1 ,..., 1 for 1 1 1 1           n i a x a b x i ii n i j j i ij i i i ) 1 ( ) 1 (    n nn n n n a b x
  • 22. Gauss Elimination Method-Example x + y + z = 6 x – y + z = 2 2x – y + 3z = 9 Back Substitution z= 3, y=2 and x=1
  • 23. Limitations: Gauss Elimination Method 0.w+2x – y + 3z = 9 2w+x + y + z = 6 3w-x – y + z = 2 5w+3x-5y+7z=10 Pivoting • Partial Pivoting 2w+x + y + z = 6 0.w+2x – y + 3z = 9 3w-x – y + z = 2 5w+3x-5y+7z=10 2x +0.w– y + 3z = 9 x + 2w+ y + z = 6 -x +3w- y + z = 2 3x+5w+5y+7z=10 0.w+0.x – y + 3z = 9 0.w+x + y + z = 6 3w-x – y + z = 2 5w+3x-5y+7z=10 Pivoting • Complete Pivoting x + 0.w+ y + z = 6 0.x +0.w– y + 3z = 9 -x+3w – y + z = 2 3x+5w-5y+7z=10 OR
  • 24. Gauss Jordan Method A method to solve simultaneous linear equations of the form [A][X]=[C]
  • 25. Gauss Jordan Method-Example z= 3, y=2 and x=1 x + y + z = 6 x – y + z = 2 2x – y + 3z = 9
  • 33. Home Work - Solution of Linear Algebraic Equations x - 3y + 12z = 31 4x + y - z = 3 2x + 7y + z = 19 Solve the above equations using • Jacobi Method • Gauss-Seidel Method • Gauss Elimination Method • Gauss Jordan Method • Matrix Inversion Method
  • 34. Thank you very much সবাইকে অকেে ধেযবাদ