
Procedure
1. Divide row 1 by the self-element
of
the row, in this case2.
2. Eliminate the element
(2,
1) by
multiplying the modified
row 1, by
element
(2,
I) and subtract
it from
row 2.
3' Divide the modified row
2 by its self-element
(f); and stop.
Following this
procedure,
we
get
the upper
triangular equation
as
[r
+
l[''-l t+l
l
z
il t=to_+l
lo
?:rll_
l-l
,
r
L t )Lxzl
Lt J
Upon back substituting,
that is first
solving for x2 and
then for 11,
we
get
o-+
1
x2=
--7:--
j
2
-
-
I
_
I
Y
-
I
_
11_3\-
5
Check
br
+ xz= 2(*)-tr
=
t
3x,
+
5rz- 3(+)
-
s(f)
=
o
Thus,
we have demonstrated
the use of the basic Gauss
elimination
and
back
substitution
procedure
for a simple
system, but the same
procedure
applies
to
any
general
system
of linear algebraic equations,
i.e.
Ax=b
(c-1)
An added
advantage of row
processing
(elimination
of
row elements below
the main
diagonal
and
normalization of the
self-element) is that
it is easily
amenable
to the
use of low storage
compact
storage
schemes-avoiding storage
of zero elements.
GAUSS ELIMINATION
USING
TABLE
OF
FACTORS
Where
repeated
solution of
vector-matrix Pq.
(C-1j
with cons tant Abut
varying
values
of
vector D is required,
it is computationally
advantageous to
split the
matrix A into triangular
f'actor
(termed
as
'Table
of
factors' or
'LU
decomposition') using the Gauss elimination
technique. If the
matrix A is
sparse,
so
is the table of factors
which can be compactly stored
thereby
not only
reducing
core storage
requirements, but
also
the
computational
effort.
Gauss
elimination using
the
table of
factors is illustrated in the
following
example.
Consider
the
following
system
of
linear equations:
(Z)xt
+
Q)x2
+
(3)x,
=
$
(2)xr+(3)xz+(4)xt=)
(3)xr
+(4)xr+(7)4=14
(c-2)
For computer
solution,
maximum
efficiency
is attained when elimination is
carried out
by
rows
rather than
the more
tamiliar
column order. The successive
reduced
sets
of
equations
are as
follows:
(l)xr
+
(t)*z+ (*)rt
=
*
(Z)xt+
(3)x2
+
(4)xt
=
)
(3)xr
+
(4)xz
+
(7)x3
=
14
(1).r,
+
(ilrr+ (|)xt
-z
(2)xz
+
(1)x,
=
l
(3)xr+(4)x2+(7)4=14
(1)x,+
(tr)rr+
(*)",
-3
(1)x2+
(*)r,
-+
(3)xr+(4)x2+Q)xt=14
(l)xr
+
(t)rr+
(J)x,
=
3
(l)x2+
(*)"r'
=
+,
i
(t),r+(*)r,-s
(1)x,
+
(t)rr+ (*)",
=
J
(t)xr+
(t)*t
-
+
(*)rt
=
+
(1)x,
+
(tr)*r+
(*)r,
(1)x,
+
(I)*t
(c-8)
x3=
These
steps
are referred
to as
'elimination'
operations.
The
solution
r may
be
immediately
determined
by
'back
substitution' operation
using
Eq.
(C-8).
(c-3)
(c-4)
(c-s)
(c-6)
(c_'7\
_J
3
2
I