Tema 3.. en
Tema 3.. en
Tema 3.. en
Group: 3b2B
𝒊−𝟏 𝒏
(𝒌) (𝒌−𝟏)
𝒙𝒊 = (𝒃𝒊 − ∑ 𝒂𝒊𝒋 𝒙𝒌𝒋 − ∑ 𝒂𝒊𝒋 𝒙𝒋 )/𝒂𝒊𝒋
𝒋=𝟏 𝒋=𝒊+𝟏
This criterion applies not only to the linear equations solved with the Gauss-
Seidel method but also for the iterative fixed point method and the Jacobi
method. Therefore, by applying this criterion on the Gauss-Seidel equations
and evaluating with respect to each of the unknowns, we obtain the following
expression:
𝒂𝟐𝟏 𝒂𝟏𝟐
| |<𝟏 | |<𝟏
𝒂𝟐𝟐 𝒂𝟏𝟏
The absolute value of the slopes in the equation must be less than unity to
ensure convergence.
That is, the diagonal element must be greater than the off-diagonal element
for each row of equations. The generalization of the above criterion for a
system of n equations is:
𝒏
|𝒂𝒊𝒊 | > ∑|𝒂𝒊,𝒋|
𝒋=𝟏
𝒋≠𝒊
The Gauss-Seidel method is based on the fixed point concept, i.e. (xi=gi(x),
i=1..n), to solve systems of linear equations. To guarantee convergence it
must be fulfilled that the system has a dominant diagonal, that is to say that
the following inequality is fulfilled, if the order of the equations is changed this
can diverge.
𝒏
Example
ξ= 0.001.
Solution
First we order the equations, so that in the main diagonal are the largest
coefficients to ensure convergence.
𝟕. 𝟖𝟓 + 𝟎. 𝟏𝒙𝟐 + 𝟎. 𝟐𝒙𝟑
𝒙𝟏 =
𝟑
−𝟏𝟗. 𝟑𝟎 − 𝟎. 𝟏𝒙𝟏 + 𝟎. 𝟑𝒙𝟑
𝒙𝟐 =
𝟕
𝟕𝟏. 𝟒𝟎 − 𝟎. 𝟑𝒙𝟏 + 𝟎. 𝟐𝒙𝟐
𝒙𝟑 =
𝟏𝟎
𝟕. 𝟖𝟓
𝒙𝟎𝟏 = = 𝟐. 𝟔𝟏𝟔 𝟔𝟔𝟔
𝟑
This value together with the value of 𝒙𝟑 can be used to obtain 𝒙𝟐 .
Comparing the values calculated between the first and the second iteration
We then take the values calculated in the last iteration and take them as
assumptions for the next iteration. The process is then repeated:
As can be seen, the following condition has not yet been met
So we do another iteration
𝑥1 = 3.0
𝑥2 = −2.5
𝑥3 = 7.0
SOR method
Upright Method
The Montante Method was discovered in 1973, named after its discoverer, René
Mario Montante Pardo. The Montante Method is a linear algebra algorithm for
determining the solutions of a system of linear equations, finding inverse matrices,
adjoint matrices and determinants. The method consists of "pivoting" on the main
diagonal. The line where the pivot is will be the base line of the whole system and
the column where the pivot is will be the base column. With respect to that line and
that column, where the pivot is, determinants of two by two are formed, and we
always work with whole numbers, if any fraction appears there is an error. The main
characteristic of the Upright Method is that it works with integers.
Example:
3𝑥1 – 2𝑥2 + 𝑥3 = 2
2𝑥1 + 𝑥2 – 𝑥3 = 3
Solution
The following pivots will be obtained on the main diagonal of the augmented
matrix.
Then zeros must be made in the pivot column (zeros above and below it).
The following equation is applied to obtain the new matrix elements that are
needed:
It is solved by multiplying the element by the pivot, minus the product of the two
elements of the row and the column where the pivot is and the element between
the previous pivot.
New Element=(Current Pivot)(Current Element)-(Pivot Column Element)(Pivot Row
Element)/Previous Pivot
((3)(3) − (−2)(4))
𝑁𝐸(2,2) = = 17
1
((3)(−5) − (1)(4))
𝑁𝐸(2,3) = = −19
1
((3)(4) − (2)(4))
𝑁𝐸(2,4) = =4
1
((3)(1) − (2)(2))
𝑁𝐸(3,2) = =7
1
((3)(−1) − (1)(2))
𝑁𝐸(3,3) = = −5
1
((3)(3) − (2)(2))
𝑁𝐸(3,4) = =5
1
3 −2 1 |2
|0 17 −19 |4 |
0 7 −5 |5
The new elements of the new matrix will be obtained with the same formula.
((17)(1) − (−2)(−19))
𝑁𝐸(1,3) = = −7
3
((17)(2) − (−2)(4))
𝑁𝐸(1,4) = = 14
3
((17)(−5) − (7)(−19))
𝑁𝐸(3,3) = = 16
3
((17)(5) − (7)(4))
𝑁𝐸(3,4) = = 19
3
17 0 −7 |14
|0 17 −19 |4 |
0 0 16 |19
The new elements of the new matrix will be obtained with the same formula.
The previous pivots that are 17 will change to the current pivot 16.
((16)(14) − (−7)(19))
𝑁𝐸(1,4) = = 21
17
((16)(4) − (−19)(19))
𝑁𝐸(2,4) = = 25
17
16 0 0 |21
| 0 16 0 |25|
0 0 16 |19
At the end of the matrix we find the values of 𝑥, 𝑦, 𝑧, these are the elements that are
left over between the last pivot:
𝑋 = 21/16
𝑌 = 25/16
𝑍 = 19/16
Bibliographies
https://metodosnumericos121.wordpress.com/metodo-de-
montante/#:~:text=The%20M%C3%A9all%20of%20Montante%20is,pivoting%C2%BB%20on%20th
e%20main%20diagonal%20.
https://metnum2016.wordpress.com/2016/10/11/228/
https://esimecuanalisisnumerico.wordpress.com/2014/05/05/metodo-de-gauss-seidel/
Career: Industrial Engineering
Group: 3b2B
3𝑥1 – 2𝑥2 + 𝑥3 = 2
2𝑥1 + 𝑥2 – 𝑥3 = 3
Solution
Start by making the previous pivot equal to 1.
The following pivots will be obtained on the main diagonal of the augmented
matrix.
The first pivot is element 3.
Then you must make zeros in the pivot column (zeroes above and below it).
While the pivot row continues with the same values
To obtain the new elements of the matrix that are needed, the following equation is
applied:
It is solved by multiplying the element by the pivot, minus the product of the two
elements of the row and the column where the pivot and the element between the
previous pivot are.
New Element= (Current Pivot)(Current Element)-(Pivot Column Element)(Pivot
Row Element)/Previous Pivot
((3)(3) − (−2)(4))
𝑁𝐸(2,2) = = 17
1
((3)(−5) − (1)(4))
𝑁𝐸(2,3) = = −19
1
((3)(4) − (2)(4))
𝑁𝐸(2,4) = =4
1
((3)(1) − (2)(2))
𝑁𝐸(3,2) = =7
1
((3)(−1) − (1)(2))
𝑁𝐸(3,3) = = −5
1
((3)(3) − (2)(2))
𝑁𝐸(3,4) = =5
1
3 −2 1 |2
|0 17 −19 |4 |
0 7 −5 |5
The new elements of the new matrix will be obtained with the same formula.
17 0 −7 |14
|0 17 −19 |4 |
0 0 16 |19
The new elements of the new matrix will be obtained with the same formula.
The previous pivots that are 17 will change to the current pivot 16.
((16)(14) − (−7)(19))
𝑁𝐸(1,4) = = 21
17
((16)(4) − (−19)(19))
𝑁𝐸(2,4) = = 25
17
16 0 0 |21
| 0 16 0 |25|
0 0 16 |19
At the end of the matrix we find the values of x,y,z, these are the elements that
remain between the last pivot:
𝑋 = 21/16
𝑌 = 25/16
𝑍 = 19/16
Bibliographies