Module 3 - Direct Methods
Module 3 - Direct Methods
This chapter covers the numerical solution of linear and non-linear systems of equations.
Systems of linear equations that have to be solved simultaneously arise in problems that include
several (possibly many) variables that are dependent to one another. Such problems occur not only
in engineering and science, which is the focus of this module, but also in any discipline
(economics, statistics, business, etc.). A system of two (or three) equations with two (or three)
unknowns can be solved manually by substitution or other mathematical methods (e.g. Cramer’s
rule). Solving a system in this way is practically impossible as the number of unknowns (or
equations) increases beyond three.
At the end of this module, it is expected that the students will be able to:
1. Know the fundamental differences between Gauss elimination and the Gauss-Jordan
elimination.
2. Apply Gauss elimination and Gauss-Jordan elimination method in solving systems of
linear equations.
3. Apply Gauss-Seidel and Jacobi iteration in solving systems of linear equations.
4. Know how to assess diagonal dominance of a system of equations and how it related
whether the system can be solved with the Gauss-Seidel and Jacobi iteration.
Where 𝑎𝑖𝑗 (𝑖, 𝑗 = 1, 2, … . , 𝑛) and 𝑏𝑘 (𝑘 = 1, 2, … . , 𝑛) are known constants, and 𝑎𝑖𝑗 are the
coefficients. If every 𝑏𝑘 is zero, the system is homogeneous, otherwise it is nonhomogeneous.
Expressing equation 3.1 into its equivalent matrix form, we have:
𝑨𝒙 = 𝒃 eq. 3.2
With:
Where A is the coefficient of the matrix. A set of values for 𝑥1 , 𝑥2 , … . , 𝑥𝑛 satisfying equation 3.2
forms a solution of the system. The vector x with components 𝑥1 , 𝑥2 , … . , 𝑥𝑛 is the solution vector
for equation 3.2. If 𝑥1 = 0 = 𝑥2 = 𝑥𝑛 , the solution 𝒙 = 0𝑛𝑥1 is called the trivial solution. The
augmented matric for the equation 3.2 is defined as:
eventually converges to the actual solution. Unlike direct methods, the number of operations
required by iterative methods is not known in advance.
NUMERICAL SOLUTION
OF LINEAR SYSTEMS
𝑨𝒙 = 𝒃
Indirect or
Direct Methods Iterative
Methods
Gauss
Jacobi Iteration
Elimination
Gauss-Jordan Gauss-Seidel
Elimination Method
The Gauss elimination method is the most familiar method for solving a system of linear
equations. This method consists of two parts: the elimination phase and the solution phase. In this
method, a system of equations that is given in a general form is manipulated to be in the upper
triangular form, which is then be solved by using the back substitution.
Gaussian elimination, also known as row reduction, is an algorithm in linear algebra for
solving a system of linear equations. It is usually understood as a sequence of operations performed
on the corresponding matrix of coefficients.
To perform row reduction on a matrix, one uses a sequence of elementary row operations to
modify the matrix until the lower left-hand corner of the matrix is filled with zeros, as much as
possible. There are three types of elementary row operations:
➢ GAUSS-JORDAN METHOD
The Gauss-Jordan method is the refinement of the Gauss elimination method. Gauss–
Jordan elimination is a procedure for converting a matrix to reduced row echelon form using
elementary row operations. It is a refinement of Gaussian elimination. A matrix is in reduced-
row echelon form is also known as row canonical form. The reduced row echelon form of a matrix
is unique, but the steps of the procedure are not.
1. Swap the rows so that all rows with all zero entries are on the bottom
2. Swap the rows so that the row with the largest, leftmost nonzero entry is on top.
3. Multiply the top row by a scalar so that top row's leading entry becomes 1.
4. Add/subtract multiples of the top row to the other rows so that all other entries in the
column containing the top row's leading entry are all zero.
5. Repeat steps 2-4 for the next leftmost nonzero entry until all the leading entries are 1.
6. Swap the rows so that the leading entry of each nonzero row is to the right of the leading
entry of the row above it.