RS - Lecture 6
RS - Lecture 6
RS - Lecture 6
Haval Hawez
Petroleum Engineering Department
Faculty of Engineering
Koya University
15.11.2018
Outline: Solution Methods
• Direct Method
Simplifying a Linear Systems of Equations.
Gaussian Elimination
• Iterative Method
2
Direct Method
We will consider direct methods for solving a linear
system of n equations in n variables. Such a system has
the form:
3
Direct Method
4
Direct Method
An n × (n+1) matrix can be used to represent the linear
system:
a11x1 + a12x2 + ・・・+ a1nxn = b1,
a21x1 + a22x2 + ・・・+ a2nxn = b2,
an1x1 + an2x2 + ・・・+ annxn= bn,
• by first constructing
5
Direct Method
6
Simplifying a Linear Systems of
Equations
•Returning to the linear system of n equations in
n variables:
7
Simplifying a Linear Systems of
Equations
We will use 3 operations to simplify the linear system:
8
Simplifying a Linear Systems of
Equations
We will solve for x1, x2, x3, and x4.
9
Simplifying a Linear Systems of
Equations
• After obtain E2:
10
Simplifying a Linear Systems of
Equations
•The X values will be as follows:
11
Gaussian Elimination
• Constructing an Algorithm to Solve the Linear
System.
12
Gaussian Elimination Procedure
• We will get
13
Gaussian Elimination Procedure
Example
Represent the linear system as an augmented
matrix and use Gaussian Elimination to find its
solution.
14
Gaussian Elimination Procedure
Solution
The augmented matrix is
15
Gaussian Elimination Procedure
• Perform the operation (E2)↔(E3) to obtain a
new matrix:
16
Gaussian Elimination Procedure
17
Iterative Method
• The idea of this method is to make a first guess
at the solution and then refine it in a stepwise
using suitable algorithm.
18
Iterative Method
19
Iterative Method
21
Iterative Method
Solution
write the system in the form
22
Iterative Method
23