Thomas Method Viviana Marcela Bayona Cardenas
Thomas Method Viviana Marcela Bayona Cardenas
Gauss con
Pivoteo
Direct Methods
Gauss-Jordan
Sistemas
Solution Especiales
Methods
Jacobi
Iterative Gauss-Seidel
Methods
Gauss-Seidel
with relaxation
These are example of matrices
Another example
A way to write matrices that is commonly to find at any place:
F y c
Thomas Method – thomas algorithm
This method emerge as a simplification of LU factorization but only if we have a
tri-diagonal matrix .
A x r
L U A
Note that the Lower matrix and the Upper were simplify as LU method
require but what we obtain for both of them are two diagonal of
numbers. Hence the way to solve had been simplified in order to find a
solution; specially L.
U 11 b1
an
Ln, n 1
U n 1,n 1
U n 1, n cn 1 Based on the matrix product showed
before we obtain these expressions
U n, n bn Ln,n 1U n 1, n
Donde,
a1 0 y cn 0
ak
Lk , k 1
U k 1, k 1
Now scanning from k=2 till n we finally U k 1, k ck 1
have
U k , k bk Lk , k 1U k 1, k
If LUx=r and Ux=d then Ld=r, hence:
1 d1 r1
L 1 r
21 d
2 2
L32 1 d 3 r3
Ln 1,n 2 1 d n 1 rn 1
Ln ,n 1 1 d n rn
L d r
d 1 r1
Base on a regressive From k 2 till n
substitution
d k rk L k , k 1 d k 1
Finally we solve Ux=d based on the regressive
substitution
U 11 U12 x1 d1
U U x d
22 23 2 2
U 33 U 34 x3 d 3
U n 1, n 1 U n 1, n xn 1 d n 1
U nn x n d n
U x d
Where , To k n 1 till 1,
n
xn
dn dk U
j k 1
kj x j
U n ,n xk
U k ,k
CHOLESKY DECOMPOSITION
Is a decomposition of a symmetric, positive-definite matrix into the
product of a lower triangle matrix and its conjugate transpose. When
is applicable this method is twice as efficient as LU decomposition
for solving systems
T
U L
Ax b
HENCE
LL x b
T
What was mention before shows that:
L LT
L11 L11 L21 Ln2,1 Ln1,1 Ln,1
L
21 L22 L22 Ln2, 2 Ln1, 2 Ln, 2
Ln2,1 Ln2,2 Ln2,n2 Ln2,n2 Ln1,n2 Ln,n2
Ln1,1 Ln1,2 Ln1,n2 Ln1,n1 Ln1,n1 Ln,n1
Ln,1 Ln,2 Ln,n2 Ln,n1 Ln,n Ln,n
A
From the product of the nth row of L and the nth column LT
of we obtain that:
Ln,12 Ln, 2 2 Ln, n 2 2 Ln, n 12 Lnn 2 a nn
Lnn 2 ann Ln,12 Ln, 2 2 Ln, n 2 2 Ln, n 12
n 1
2
Lnn ann j 1
Ln, j 2
n 1
Lnn a nn j 1
Ln, j 2
Once again
scanning
k 1 from k=1 till
Lkk a kk L
j 1
k, j
2
n we obtain
In the other way if we multiply the nth row of L with the (n-1) column
of LT we will have:
donde 1 i k 1
APPLICATIONS
Linear least squares: Systems of the form Ax = b with A symmetric
and positive definite arise quite often in applications. For instance,
the normal equations in linear least squares problems are of this
form.
mposition#Applications
http://math.fullerton.edu/mathews/n2003/C
holeskyMod.html