Presentation 3 CE316
Presentation 3 CE316
OF LINEAR Numerical
Solutions to
CE Problems
EQUATIONS
Fernando, JPP
LINEAR SYSTEMS
𝑨𝒙 = 𝑩
NOTE:
▪ No. of Columns = No. of Unknowns
▪ No. of Rows = No. of Equations
Fernando, JPP
UNIQUE AND MULTIPLE Solving
System of
Linear
SOLUTIONS Equations
Fernando, JPP
LINEAR SYSTEMS
1. Unique Solution
2. No Solution
3. Infinitely Many Solutions
Fernando, JPP
LINEAR SYSTEMS
1. Unique Solution
1 0 0 𝑎
0 1 0 𝑏൩
0 0 1 𝑐
Fernando, JPP
LINEAR SYSTEMS
2. No Solution
1 0 0 𝑎
0 1 0 𝑏൩
0 0 0 𝑐
Fernando, JPP
LINEAR SYSTEMS
1 0 0 𝑎
0 1 0 𝑏൩
0 0 0 0
Fernando, JPP
TRIVIAL AND NON- Solving
System of
Linear
TRIVIAL SOLUTIONS Equations
Fernando, JPP
TRIVIAL AND NON-TRIVIAL SOLUTIONS
(HOMOGENOUS SYSTEMS)
A system of linear equations is said to be homogenous if it is of
the form:
𝑎 11 𝑥 1 + 𝑎 12 𝑥 2 + ⋯ + 𝑎 𝑛 𝑥 𝑛 = 0
𝑎 21 𝑥 1 + 𝑎 22 𝑥 2 + ⋯ + 𝑎 2𝑛 𝑥 𝑛 = 0
…
𝑎 𝑚1 𝑥 1 + 𝑎 𝑚2 𝑥 2 + ⋯ + 𝑎 𝑚𝑛 𝑥 𝑛 = 0
𝑎 11 𝑎 12 … 𝑎 1𝑛 𝑥1 0
𝑎 21 𝑎 22 … 𝑎 2𝑛 𝑥2 0
… … … … … =
…
𝑎 𝑚1 𝑎 𝑚2 … 𝑎 𝑚𝑛 𝑥𝑛 0
Fernando, JPP
TRIVIAL AND NON-TRIVIAL SOLUTIONS
(HOMOGENOUS SYSTEMS)
A homogenous system always has at least one
solution.
Consider:
5𝑥 + 4𝑦 = 0
2𝑥 − 2𝑦 = 0
Fernando, JPP
Solving
System of
DIRECT METHODS Linear
Equations
Fernando, JPP
DIRECT METHODS
Fernando, JPP
DIRECT METHODS
Example 1:
𝑥 1 − 2𝑥 2 + 𝑥 3 = 0
6𝑥 2 − 3𝑥 3 = 0
𝑥 1 − 2𝑥 2 − 𝑥 3 = 0
Example 2:
𝑥 1 + 2𝑥 2 + 3𝑥 3 + 2𝑥 4 = 0
𝑥 1 + 3𝑥 2 + 5𝑥 3 + 5𝑥 4 = 0
2𝑥 1 + 4𝑥 2 + 7𝑥 3 + 𝑥 4 = 0
−𝑥1 − 2𝑥 2 − 6𝑥 3 + 7𝑥 4 = 0
Fernando, JPP
GAUSS ELIMINATION Solving
System of
Linear
METHODS Equations
Fernando, JPP
GAUSS ELIMINATION METHODS
Example 1:
𝑥 1 + 2𝑥 2 + 𝑥 3 = 9
𝑥 1 + 3𝑥 2 + 4𝑥 3 = 11
−6𝑥 2 − 10𝑥 3 = −24
Fernando, JPP
GAUSS ELIMINATION Solving
System of
Linear
WITH ROW PIVOTING Equations
Fernando, JPP
GAUSS ELIMINATION WITH ROW
PIVOTING
Example 1:
𝑥1 − 𝑥 2 + 𝑥 3 = 2
−6𝑥1 + 𝑥 2 − 𝑥 3 = 3
3𝑥 1 + 𝑥 2 + 𝑥 3 = 4
Fernando, JPP
Solving
System of
ITERATIVE METHODS Linear
Equations
Fernando, JPP
ITERATIVE METHODS
Fernando, JPP
Solving
System of
JACOBI METHOD Linear
Equations
Fernando, JPP
JACOBI METHOD
Use:
𝑎 1 𝑥1 + 𝑎 2 𝑥 2 + 𝑎 3 𝑥 3 = 𝑎 4
𝑎 5 𝑥1 + 𝑎 6 𝑥 2 + 𝑎 7 𝑥 3 = 𝑎 8
𝑎 9 𝑥1 + 𝑎 10 𝑥 2 + 𝑎 11 𝑥 3 = 𝑎 12
Fernando, JPP
JACOBI METHOD
Example:
10𝑥 1 + 2𝑥 2 − 𝑥 3 = 7
𝑥 1 + 8𝑥 2 + 3𝑥 3 = −4
−2𝑥 1 − 𝑥 2 + 10𝑥 3 = 9
Fernando, JPP
Solving
System of
GAUSS-SEIDEL METHOD Linear
Equations
Fernando, JPP
GAUSS-SEIDEL METHOD
𝑥 1 = (−𝑎 2 𝑥 2 − 𝑎 3 𝑥 3 + 𝑎 4 )/𝑎 1
𝑥 2 = (−𝑎 5 𝑥 1 − 𝑎 7 𝑥 3 + 𝑎 8 )/𝑎 6
𝑥 3 = (−𝑎 9 𝑥 1 − 𝑎 10 𝑥 2 + 𝑎 12 )/𝑎 11
Fernando, JPP
GAUSS-SEIDEL METHOD
Example:
10𝑥 1 + 2𝑥 2 − 𝑥 3 = 7
𝑥 1 + 8𝑥 2 + 3𝑥 3 = −4
−2𝑥 1 − 𝑥 2 + 10𝑥 3 = 9
Fernando, JPP
CE 316:
Fernando, JPP