MA3251 Unit 3
MA3251 Unit 3
UNIT III
SOLUTION OF EQUATIONS AND EIGENVALUE PROBLEMS
Solution of algebraic and transcendental equations - Fixed point iteration method – Newton
Raphson method- Solution of linear system of equations - Gauss elimination method –
Pivoting - Gauss Jordan method – Iterative methods of Gauss Jacobi and Gauss Seidel –
Eigen values of a matrix by Power method and Jacobi’s method for symmetric matrices.
Solution of Algebraic and Transcendental Equations
Fixed Point Iteration Method
Fixed Point Theorem:
Let 𝑓 𝑥 = 0 and let 𝑥 = 𝜀 ∈ 𝐼 be a root of an equation 𝑓 𝑥 = 0 . Rewrite the equation
𝑓 𝑥 = 0 as 𝑥 = 𝑔 𝑥 , where 𝑔(𝑥) and 𝑔′ (𝑥) must be continuous in 𝐼 . If 𝑔′ (𝑥) < 1,
∀ 𝑥 ∈ 𝐼, then the sequence of approximations 𝑥0 , 𝑥1 , 𝑥2 , ........ 𝑥𝑛 given by 𝑥𝑛+1 = 𝑔(𝑥𝑛 )
converge to the root "𝜀", provided that the initial approximation 𝑥0 is chosen in 𝐼 .
Note:
1. A point "𝑥" is said to be fixed of the equation 𝑓 𝑥 = 0 if 𝑓 𝑥 = 𝑥.
2. The sufficient condition for the convergence of the sequence of approximations in the
fixed point iteration method is “ 𝒙 = 𝒈(𝒙) such that 𝒈′ (𝒙) < 1, ∀ 𝒙 ∈ 𝑰 = [𝒂, 𝒃]”.
Procedure to find the solution of the equation 𝒇 𝒙 = 𝟎:
Given that , 𝑓 𝑥 = 0..................(1)
We rewrite the equation (1) as 𝑥 = 𝑔(𝑥)...............(2) such that 𝑔′ (𝑥) < 1, ∀ 𝑥 ∈ 𝐼 = [𝑎, 𝑏].
Let 𝑥0 be an initial root of the Eqn(1).
Then, the first approximation is given by
𝑥1 = 𝑔(𝑥0 )
The successive approximations are given by
𝑥2 = 𝑔(𝑥1 )
𝑥3 = 𝑔(𝑥2 )
⋮
𝑥𝑛 = 𝑔(𝑥𝑛−1 )
∴ In general, we can give the iteration process as: 𝑥𝑛+1 = 𝑔 𝑥𝑛 ;𝑛 = 0,1,2, … …
Note:
1. The order of convergence of the iteration method is "1".
(i.e.) the order of convergence is linear.
2. Order of Convergence of an Iterative Scheme:
Also, let 𝜀𝑛 = 𝑠 − 𝑥𝑛 and 𝜀𝑛+1 = 𝑠 − 𝑥𝑛+1 for 𝑛 ≥ 0 are the errors at 𝑛𝑡 and (𝑛 + 1)𝑡
iterations respectively.
If two positive constants 𝐴 ≠ 0 and 𝑅 > 0 exist, and
𝑠−𝑥 𝑛 +1 𝜀 𝑛 +1
lim𝑛→∞ = lim𝑛→∞ = 𝐴 , then the sequence is said to converge to "𝑠" with order
𝑠−𝑥 𝑛 𝑅 𝜀𝑛 𝑅
The exponent of 𝜀𝑛 in the first non-vanishing term after 𝑔 𝑠 is called the order of the
iteration process defined by 𝑔.
4. Since the convergence of this scheme depends on the choice of 𝑔 𝑥 and the only
information available about 𝑔′ 𝑥 is 𝑔′ (𝑥) < 1 in some interval which brackets the root,
𝑔′ 𝑥 at 𝑥 = 𝑠 may or may not be zero. That is the order of fixed point iterative scheme is
only one.
Problems:
1. Find the root of 𝑒 𝑥 − 3𝑥 = 0 by the fixed point iteration method.
Solution:
Let 𝑓 𝑥 = 𝑒 𝑥 − 3𝑥 = 0 .............(1)
Now, 𝑓 0 = 𝑒 0 − 0 =
𝑓 1 = 𝑒1 − 3 =
∴ The root lies in the interval 𝐼 =
𝑒𝑥
Rewriting the Eqn(1), 𝑥 = = 𝑔(𝑥)...................(2)
3
𝑒𝑥
Now, 𝑔′ 𝑥 = 3
Solution:
Similarly,
𝑓(𝑥 )
𝑥2 = 𝑥1 − 𝑓 ′ (𝑥1 ) , if 𝑓 ′ (𝑥1 ) ≠ 0.
1
...........................
𝑓(𝑥 )
𝑥𝑛+1 = 𝑥𝑛 − 𝑓 ′ (𝑥𝑛 ) , if 𝑓 ′ (𝑥𝑛 ) ≠ 0, 𝑛 = 0,1,2, … ….
𝑛
Note:
2
1. The condition for the convergence of Newton Raphson method is 𝑓 𝑥 𝑓 ′′ (𝑥) < 𝑓 ′ (𝑥) .
2. The order of convergence of Newton’s method is two and the rate of convergence is
quadratic
Problems:
1. Find the smallest positive root of the equation 3𝑥 3 − 9𝑥 2 + 8 = 0, correct to 4 places of
decimals, using Newton-Raphson method.
Solution:
Given, 𝑓 𝑥 = 3𝑥 3 − 9𝑥 2 + 8 = 0
square root of "𝑁" and hence find 5 correct to four places of decimals.
Solution:
Let 𝑥 = 𝑁 ⇒ 𝑥 2 = 𝑁
Let 𝑓 𝑥 = 𝑥 2 − 𝑁 = 0
Then, 𝑓 ′ 𝑥 = 2𝑥.
Now, the Newton’s iterative formula is:
𝑓(𝑥 )
𝑥𝑛+1 = 𝑥𝑛 − 𝑓 ′ (𝑥𝑛
𝑛 )
𝑥 𝑛 2 −𝑁
⇒𝑥𝑛+1 = 𝑥𝑛 − 2𝑥 𝑛
2𝑥 𝑛 2 −𝑥 𝑛 2 +𝑁
⇒𝑥𝑛+1 = 2𝑥 𝑛
𝑥𝑛 2 +𝑁
⇒𝑥𝑛+1 = 2𝑥 𝑛
1 𝑁
⇒𝑥𝑛+1 = 2 𝑥𝑛 + 𝑥 ...............(1)
𝑛
Solution:
1 1
Let 𝑥 = 𝑁 ⇒ 𝑥 = 𝑁
1
Let 𝑓 𝑥 = 𝑥 − 𝑁 = 0
1
Then, 𝑓 ′ 𝑥 = − 𝑥 2 .
⇒𝑥𝑛+1 = 𝑥𝑛 + (𝑥𝑛 − 𝑥𝑛 2 𝑁)
⇒𝑥𝑛+1 = 2𝑥𝑛 − 𝑥𝑛 2 𝑁
⇒𝑥𝑛+1 = 𝑥𝑛 (2 − 𝑁𝑥𝑛 )...............(1)
1
Eqn(2) ⇒ 𝑦 = 𝑎 𝑏2 − 𝑎21 𝑥 − 𝑎23 𝑧
22
1
Eqn(3) ⇒ 𝑧 = 𝑏3 − 𝑎31 𝑥 − 𝑎32 𝑦
𝑎 33
1
𝑦 (1) = 𝑎 𝑏2 − 𝑎21 𝑥 (0) − 𝑎23 𝑧 (0)
22
1
𝑧 (1) = 𝑎 𝑏3 − 𝑎31 𝑥 (0) − 𝑎32 𝑦 (0)
33
.............
In general
1
𝑥 (𝑛+1) = 𝑎 𝑏1 − 𝑎12 𝑦 (𝑛) − 𝑎13 𝑧 (𝑛 )
11
1
𝑦 (𝑛+1) = 𝑎 𝑏2 − 𝑎21 𝑥 (𝑛) − 𝑎23 𝑧 (𝑛)
22
1
𝑧 (𝑛+1) = 𝑎 𝑏3 − 𝑎31 𝑥 (𝑛) − 𝑎32 𝑦 (𝑛)
33
Note:
1. The iteration method can be applied only if the given system is diagonally dominant.
2. An 𝑛 ⨯ 𝑛 matrix 𝐴 is said to be diagonally dominant if the absolute value of each leading
diagonal element is greater than or equal to the sum of the absolute values of the remaining
elements in that row.
3. 𝑎11 𝑥 + 𝑎12 𝑦 + 𝑎13 𝑧 = 𝑏1 ;𝑎21 𝑥 + 𝑎22 𝑦 + 𝑎23 𝑧 = 𝑏2 ; 𝑎31 𝑥 + 𝑎32 𝑦 + 𝑎33 𝑧 = 𝑏3 .
This system is said to be diagonally dominant if
1
Eqn(2) ⇒ 𝑦 = 𝑎 𝑏2 − 𝑎21 𝑥 − 𝑎23 𝑧
22
1
Eqn(3) ⇒ 𝑧 = 𝑎 𝑏3 − 𝑎31 𝑥 − 𝑎32 𝑦
33
1
𝑦 (1) = 𝑎 𝑏2 − 𝑎21 𝑥 (1) − 𝑎23 𝑧 (0)
22
1
𝑧 (1) = 𝑎 𝑏3 − 𝑎31 𝑥 (1) − 𝑎32 𝑦 (1)
33
1
𝑦 (2) = 𝑎 𝑏2 − 𝑎21 𝑥 (2) − 𝑎23 𝑧 (1)
22
1
𝑧 (2) = 𝑎 𝑏3 − 𝑎31 𝑥 (2) − 𝑎32 𝑦 (2)
33
.
.
.
In general
1
𝑥 (𝑛+1) = 𝑎 𝑏1 − 𝑎12 𝑦 (𝑛) − 𝑎13 𝑧 (𝑛 )
11
1
𝑦 (𝑛+1) = 𝑎 𝑏2 − 𝑎21 𝑥 (𝑛+1) − 𝑎23 𝑧 (𝑛)
22
1
𝑧 (𝑛+1) = 𝑎 𝑏3 − 𝑎31 𝑥 (𝑛+1) − 𝑎32 𝑦 (𝑛+1)
33
3 2 0
⇒𝐵1 = 2 3 0
0 0 −1
Since, 𝐵1 is not a diagonal matrix, we proceed to find 𝐵2 .
Step 6: The numerically largest off-diagonal element of 𝐵1 is 𝑎12 = 2 .
1 2𝑎 12 1 4 1 1 𝜋 𝜋
Step 7: 𝜃 = 2 𝑡𝑎𝑛−1 = 2 𝑡𝑎𝑛−1 = 2 𝑡𝑎𝑛−1 ∞ = 2 = 4.
𝑎 11 −𝑎 22 3−3 2
𝜋 𝜋 1 1
𝑐𝑜𝑠𝜃 −𝑠𝑖𝑛𝜃 0 cos 4 −sin 0 − 0
4 2 2
Step 8: ∴ 𝑆2 = 𝑠𝑖𝑛𝜃 𝑐𝑜𝑠𝜃 0 = sin 𝜋 cos
𝜋
0 =
1 1
0 .
0 0 1 4 4 2 2
0 0 1 0 0 1
1 1
0
2 2
Step 9: 𝑆2𝑇 = − 1 1
0
2 2
0 0 1
1 1 1 1
0 3 2 0 − 0
2 2 2 2
Step 10: 𝐵2 = 𝑆2𝑇 𝐵1 𝑆2 = − 1 1
0 2 3 0
1 1
0
2 2 0 0 −1 2 2
0 0 1 0 0 1
1 1 5 1
0 − 0
2 2 2 2
⇒𝐵2 = − 1 1
0
5 1
0
2 2 2 2
0 10 0 0 −1
5 0 0
⇒𝐵2 = 0 1 0
0 0 −1
Here, 𝐵2 is a diagonal matrix and hence we terminate the process.
The required Eigen values are 𝜆1 = 5; 𝜆2 = 1; 𝜆3 = −1.
To find the Eigen vectors:
1 1 1
1
0 −
1 1
−
1
0 −2 −
2 2
2 2 2 2
1 1
𝑆1 𝑆2 = 0 1 0 1 1
0 = 0
2 2
1 1 2 2
0 1
−2
1 1
2 2 0 0 1 2 2
method.