Choleskys Method
Choleskys Method
CHOLESKY’S FACTORIZATION
METHOD
For cholesky’s factorization method the matrix A must be positive definite.
◼ Positive Definite:
For positive definite the determinent of the submatrices on leading diagonals are positive.(pg:414 from
Burten’s Book)
A matirx A is positive definite if A is symmetric and if xt Ax > 0 for every n-dimensional vector x (x is non
zero).
Also x must be conformable for multiplication with A.
In choleskeys factorization method the diagonal elements of both lower and upper triangular matrix are
same.In other words upper triangular matrix is the transpose of lower triangular matrix.
Suppose we have system of equation
AX = B → 1
LUX = B → 2
Let UX = Y → 3
This implies LY = B → 4
This implies Y = L-1 B
Put is eq. 3 and we get X by using cramers rule, inverse method or any other method
Today
Q:
A = {{10, - 1, 2, 0},
{- 1, 11, - 1, 3},
{2, - 1, 10, - 1},
{0, 3, - 1, 8}};
SymmetricMatrixQ[A]
True
PositiveSemidefiniteMatrixQ[A]
True
MatrixForm[U]
1 2
10 - 5
0
10
109 2 10
0 10
-4 545
3 109
5
17 1417
65
0 0 4 109
- 4
1479
13
0 0 0 4
L = Transpose[U];
A ⩵ L.U
True
y = LinearSolve[N[L], N[B]];
Task:
Make code for doolittle, crouts , and relaxation method
choleskys method.nb 3
LUDecomposition[A]
109 17 493
{- 1, 11, - 1, 3}, {0, 3, - 1, 8}, {- 2, 7, 15, - 51}, - 10, , ,- ,
3 9 3
{2, 4, 3, 1}, 0
MatrixForm[%]
109
{- 1, 11, - 1, 3}, {0, 3, - 1, 8}, {- 2, 7, 15, - 51}, - 10, 3
, 17
9
, - 493
3
{2, 4, 3, 1}
0
{a, b, c} = LUDecomposition[A];
MatrixForm[a]
- 1 11 - 1 3
0 3 -1 8
-2 7 15 - 51
- 10 109
3
17
9
- 493
3
MatrixForm[b]
2
4
3
1
MatrixForm[c]
0
Approximation: If we find a polynomial and then draw its curve , that curve may not pass through the
points of the given data.
Interpolation: If we find a polynomial and then draw its curve, that curve must pass through the points of
the given data.