Note 4 - Numerical Solutions To System of Linear Eqns
Note 4 - Numerical Solutions To System of Linear Eqns
• A system of linear equations (or linear system) is a collection of two or more linear
equations involving the same set of variables.
for each i = 1, 2, . . . , n.
1 UoM
In20 S2 MA1024
1. Rearrange the given equations, if possible, such that the system becomes diagonally
dominanta .
(0)
2. Select the intial approximation xi for i = 1, 2, . . . , n.
4. Generate the sequence of approximate solution using the equation (4.5) until a good
enough approximation is obtained.
is smaller than some prescribed tolerance. For this purpose, any convenient
norm can be used, the usual being the `∞ b norm.
a
Definition 4.1 – Diagonally Dominant Matrices. The n×n matrix A is said to be diagonally dominant
when
n
X
|aii | ≥ |aij | (4.6)
j=1,j6=i
Theorem 4.1. The `∞ norm of a matrix is the maximum of the sum of the magnitude of the column
entries of the matrix. That is, if A is an n × n matrix, then
n
X
kAk∞ = max |aij | (4.9)
1≤i≤n
j=1
• In general, iterative techniques for solving linear systems involve a process that convert-
sthe system AX ~ =B ~ into an equivalent system of the form X ~ = TX ~ +C~ for some fixed
matrix T and vector C. ~
2 UoM
In20 S2 MA1024
– Let, D be the diagonal matrix whose diagonal entries are those of A, −L be the
strictly lower-triangular part of A, and −U be the strictlyupper-triangular part of
A.
– With this notation,
A=D−L−U (4.11)
– Then,
~ j = D−1 B
– Introducing the notation Tj = D−1 (L+U ) and C ~ gives the Jacobi technique
the form
~ (k) = Tj X
X ~ (k−1) + C
~ j , k = 1, 2, 3, . . . (4.17)
– In practice, equation (4.5) is used in computation and equation (4.17) for theoretical
purposes.
k2 (x2 − x1 ) = k1 x1 , (4.18)
k3 (x3 − x2 ) = k2 (x2 − x1 ) (4.19)
k4 (x4 − x3 ) = k3 (x3 − x2 ), (4.20)
F = k4 (x4 − x3 ) (4.21)
where the k 0 s are spring constants. If k1 through k4 are 150, 50, 75, and 225
N/m, respectively, compute the x0 s.
3 UoM
In20 S2 MA1024
Figure 4.1
for each i = 1, 2, . . . , n,
and
~ (k) = (D − L)−1 U X
X ~ (k−1) + (D − L)−1 B
~ , k = 1, 2, 3, . . . (4.24)
example 4.2 Apply Gauss-Seidal Method and find the solution to the system given in
Example 4.1.
4 UoM
In20 S2 MA1024
~ (k) = T X
X ~ (k−1) + C,
~ for each k ≥ 1, (4.26)
~ = TX
converges to the unique solution of X ~ +C
~ if and only if ρ(T ) < 1.a
a
Definition 4.2 – Spectral Radius. The spectral radius ρ(A) of a matrix A is defined by
Corollary 4.1. If kT k < 1 for any natural matrix norm and C ~ is a given vector, then the
sequence{X ~ (k) = T X
~ (k) }∞ defined by X ~ (k−1) + C
~ converges, for any X~ (0) ∈ Rn , to a vector
k=0
X~ ∈ Rn , with X ~ = TX
~ + C,
~ and the following error bounds hold:
~ −X
(i) kX ~ (k) k ≤ kT kk kX
~ −X
~ (0) k
~ −X
~ (k) k ≤ kT kk ~ (1) − X
~ (0) k
(ii) kX kX
1 − kT k
0
REFERENCES
(i) Numerical Analysis, Richard L. Burden, J.Douglas Faires.
(ii) Numerical Methods for Engineers, Steven C. Chapra, Raymond P. Canale
5 UoM