Top Banner
Page | 1 Chapter 5 Numerical Solutions of Algebraic and Transcendental Equations 5.1 Introduction An expression of the form = 0 + 1 โˆ’1 + โ‹ฏ + โˆ’1 + , 0 โ‰  0 is called a polynomial of degree โ€˜โ€™and the polynomial =0 is called an algebraic equation of โ„Ž degree.If contains trigonometric, logarithmic or exponential functions, then =0 is called a transcendental equation. For example 2 + 2 sin + =0 is a transcendental equation. If is an algebraic polynomial of degree less than or equal to 4, direct methods for finding the roots of such equation are available. But if is of higher degree or it involves transcendental functions, direct methods do not exist and we need to apply numerical methods to find the roots of the equation =0. Some useful results If is root of the equation =0, then =0 Every equation of โ„Ž degree has exactly roots (real or imaginary) Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then the equation =0 has atleast one real root or odd number of roots between and . If is a continuous function in the closed interval , and & are of same signs, then the equation =0 has no root or even number of roots between and . 5.2Numerical methods to find roots of algebraic and transcendental equations Most numerical methods use iterative procedures to find an approximate root of an equation =0. They require an initial guess of the root as starting value and each subsequent iteration leads closer to the actual root. Order of convergence: For any iterative numerical method, each successive iteration gives an approximation that moves progressively closer to actual solution. This is known as convergence. Any numerical method is said have order of convergence , if is the largest positive number such that +1 โ‰ค , where and +1 are errors in โ„Ž and ( + 1) โ„Ž iterations, is a finite positive constant.
22

Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Apr 18, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 1

Chapter 5

Numerical Solutions of Algebraic and Transcendental Equations

5.1 Introduction

An expression of the form ๐‘“ ๐‘ฅ = ๐‘Ž0๐‘ฅ๐‘›+๐‘Ž1๐‘ฅ

๐‘›โˆ’1 + โ‹ฏ + ๐‘Ž๐‘›โˆ’1๐‘ฅ + ๐‘Ž๐‘› , ๐‘Ž0 โ‰  0 is

called a polynomial of degree โ€˜๐‘›โ€™and the polynomial ๐‘“ ๐‘ฅ = 0 is called an algebraic

equation of ๐‘›๐‘กโ„Ž degree.If ๐‘“ ๐‘ฅ contains trigonometric, logarithmic or exponential

functions, then ๐‘“ ๐‘ฅ = 0 is called a transcendental equation. For example ๐‘ฅ2 +2 sin ๐‘ฅ + ๐‘’๐‘ฅ = 0 is a transcendental equation.

If ๐‘“ ๐‘ฅ is an algebraic polynomial of degree less than or equal to 4, direct methods for

finding the roots of such equation are available. But if ๐‘“ ๐‘ฅ is of higher degree or it

involves transcendental functions, direct methods do not exist and we need to apply

numerical methods to find the roots of the equation ๐‘“ ๐‘ฅ = 0.

Some useful results

If ๐›ผ is root of the equation ๐‘“ ๐‘ฅ = 0, then ๐‘“ ๐›ผ = 0 Every equation of ๐‘›๐‘กโ„Ždegree has exactly ๐‘› roots (real or imaginary)

Intermediate Value Theorem: If ๐‘“ ๐‘ฅ is a continuous function in a closed

interval ๐‘Ž, ๐‘ and ๐‘“ ๐‘Ž &๐‘“ ๐‘ are having opposite signs, then the equation

๐‘“ ๐‘ฅ = 0 has atleast one real root or odd number of roots between ๐‘Žand ๐‘.

If ๐‘“ ๐‘ฅ is a continuous function in the closed interval ๐‘Ž, ๐‘ and ๐‘“ ๐‘Ž & ๐‘“ ๐‘

are of same signs, then the equation ๐‘“ ๐‘ฅ = 0 has no root or even number of

roots between ๐‘Žand ๐‘.

5.2Numerical methods to find roots of algebraic and transcendental equations

Most numerical methods use iterative procedures to find an approximate root of an

equation ๐‘“ ๐‘ฅ = 0. They require an initial guess of the root as starting value and each

subsequent iteration leads closer to the actual root.

Order of convergence: For any iterative numerical method, each successive iteration

gives an approximation that moves progressively closer to actual solution. This is known

as convergence. Any numerical method is said have order of convergence ๐œŒ, if ๐œŒ is the

largest positive number such that ๐œ–๐‘›+1 โ‰ค ๐‘˜ ๐œ–๐‘› ๐œŒ , where ๐œ–๐‘› and ๐œ–๐‘›+1 are errors in

๐‘›๐‘กโ„Žand (๐‘› + 1)๐‘กโ„Ž iterations, ๐‘˜ is a finite positive constant.

Page 2: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 2

5.2.1 Bisection Method (or Bolzano Method) Bisection method is used to find an

approximate root in an interval by repeatedly

bisecting into subintervals. It is a very simple

and robust method but it is also relatively

slow. Because of this it is often used to obtain

a rough approximation to a solution which is

then used as a starting point for more rapidly

converging methods. This method is based on

the intermediate value theorem for continuous

functions.

Algorithm:

Let ๐‘“ ๐‘ฅ be a continuous function in the interval ๐‘Ž, ๐‘ , such that ๐‘“ ๐‘Ž and ๐‘“ ๐‘ are of

opposite signs, i.e. ๐‘“ ๐‘Ž . ๐‘“ ๐‘ < 0.

Step1. Take the initial approximation given by ๐‘ฅ0 =๐‘Ž+๐‘

2, one of the three conditions

arises for finding the 1st approximation ๐‘ฅ1

i. ๐‘“(๐‘ฅ0) = 0, we have a root at ๐‘ฅ0.

ii. If ๐‘“ ๐‘Ž . ๐‘“ ๐‘ฅ0 < 0, the root lies between ๐‘Ž and ๐‘ฅ0 โˆด ๐‘ฅ1 =๐‘Ž+ ๐‘ฅ0

2 and repeat the

procedure by halving the interval again.

iii. I๐‘“ ๐‘“ ๐‘ . ๐‘“ ๐‘ฅ0 < 0, the root lies between ๐‘ฅ0 and ๐‘ โˆด ๐‘ฅ1 = ๐‘ฅ0+๐‘

2 and repeat the

procedure by halving the interval again.

iv. Continue the process until root is found to be of desired accuracy.

Remarks:

Convergence is not unidirectional as none of the end points is fixed. As a result

convergence of Bisection method is very slow.

Repeating the procedure ๐‘› times, the new interval will be exactly half the length of

the previous one, until the root is found of desired accuracy (error less than โˆˆ). โˆด

and at the end of๐‘›๐‘กโ„Ž iteration, the interval containing the root will be of length ๐‘โˆ’๐‘Ž

2๐‘›, such that

๐‘โˆ’๐‘Ž

2๐‘›<โˆˆ

โ‡’ log ๐‘โˆ’๐‘Ž

2๐‘›< log โˆˆ

โ‡’ log ๐‘ โˆ’ ๐‘Ž โˆ’ log 2๐‘› < log โˆˆ

โ‡’ log ๐‘ โˆ’ ๐‘Ž โˆ’ log โˆˆ < ๐‘› log 2

โ‡’ ๐‘› >log ๐‘โˆ’๐‘Ž โˆ’log โˆˆ

log 2

Page 3: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 3

โˆดIn bisection method, the minimum number of iterations required to achieve the

desired accuracy (error less than โˆˆ)are log

๐‘โˆ’๐‘Ž

โˆˆ

log 2.

Example1Apply bisection method to find a root of the equation ๐‘ฅ4 + 2๐‘ฅ3 โˆ’ ๐‘ฅ โˆ’ 1 = 0

Solution:๐‘“ ๐‘ฅ = ๐‘ฅ4 + 2๐‘ฅ3 โˆ’ ๐‘ฅ โˆ’ 1

Here ๐‘“ 0 = โˆ’1and ๐‘“ 1 = 1 โ‡’ ๐‘“ 0 . ๐‘“ 1 < 0

Also ๐‘“ ๐‘ฅ is continuous in 0,1 , โˆด atleast one root exists in 0,1

Initial approximation: ๐‘Ž = 0, ๐‘ = 1

๐‘ฅ0 =0+1

2= .5, ๐‘“ 0.5 = โˆ’1.1875, ๐‘“ 0.5 . ๐‘“ 1 < 0

First approximation: ๐‘Ž = 0.5, ๐‘ = 1

๐‘ฅ1 =0.5+1

2= 0.75, ๐‘“ 0.75 = โˆ’0.5898, ๐‘“ 0.75 . ๐‘“ 1 < 0

Second approximation: ๐‘Ž = 0.75, ๐‘ = 1

๐‘ฅ2 =0.75+1

2= 0.875, ๐‘“ 0.875 = 0.051, ๐‘“ 0.75 . ๐‘“ 0.875 < 0

Third approximation: ๐‘Ž = 0.75, ๐‘ = 0.875

๐‘ฅ3 =0.75+0.875

2= 0.8125, ๐‘“ 0.8125 = โˆ’0.30394, ๐‘“ 0.8125 . ๐‘“ 0.875 < 0

Fourth approximation: ๐‘Ž = 0.8125, ๐‘ = 0.875

๐‘ฅ4 =0.8125+0.875

2= 0.84375,๐‘“ 0.84375 = โˆ’0.135, ๐‘“ 0.84375 . ๐‘“ 0.875 < 0

Fifth approximation: ๐‘Ž = 0.84375, ๐‘ = 0.875

๐‘ฅ5 =0.84375+0.875

2= 0.8594, ๐‘“ 0.8594 = โˆ’0.0445, . ๐‘“ 0.8594 . ๐‘“ 0.875 < 0

Sixth approximation: ๐‘Ž = 0.8594, ๐‘ = 0.875

๐‘ฅ6 =0.8594 + 0.875

2= 0.8672, ๐‘“ 0.8672 = 0.0027, ๐‘“ 0.8594 . ๐‘“ 0.8672 . < 0

Seventh approximation: ๐‘Ž = 0.8594, ๐‘ = 0.8672

๐‘ฅ7 =0.8594+0.8672

2= 0.8633

First 2 decimal places have been stabilized; hence 0.8633 is the real root correct to two

decimal places.

Example2 Apply bisection method to find a root of the equation ๐‘ฅ3 โˆ’ 2๐‘ฅ2 โˆ’ 4 = 0

correct to three decimal places.

Solution:๐‘“ ๐‘ฅ = ๐‘ฅ3 โˆ’ 2๐‘ฅ2 โˆ’ 4

Page 4: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 4

Here ๐‘“ 2 = โˆ’4 and ๐‘“ 3 = 5 โ‡’ ๐‘“ 2 . ๐‘“ 3 < 0

Also ๐‘“ ๐‘ฅ is continuous in 2,3 , โˆด atleast one root exists in 2,3

Initial approximation: ๐‘Ž = 2, ๐‘ = 3

๐‘ฅ0 =2+3

2= 2.5, ๐‘“ 2.5 = โˆ’1.8750, ๐‘“ 2.5 . ๐‘“ 3 < 0

First approximation: ๐‘Ž = 2.5, ๐‘ = 3

๐‘ฅ1 =2.5+3

2= 2.75, ๐‘“ 2.75 = 1.6719, ๐‘“ 2.5 . ๐‘“ 2.75 < 0

Second approximation: ๐‘Ž = 2.5, ๐‘ = 2.75

๐‘ฅ2 =2.5+2.75

2= 2.625, ๐‘“ 2.625 = 0.3066, ๐‘“ 2.5 . ๐‘“ 2.625 < 0

Third approximation: ๐‘Ž = 2.5, ๐‘ = 2.625

๐‘ฅ3 =2.5+2.625

2= 2.5625, ๐‘“ 2.5625 = โˆ’.3640, ๐‘“ 2.5625 . ๐‘“ 2.625 < 0

Fourth approximation: ๐‘Ž = 2.5625, ๐‘ = 2.625

๐‘ฅ4 =2.5625+2.625

2= 2.59375, ๐‘“ 2.59375 = โˆ’.0055, ๐‘“ 2.59375 . ๐‘“ 2.625 < 0

Fifth approximation: ๐‘Ž = 2.59375, ๐‘ = 2.625

๐‘ฅ5 =2.59375+2.625

2= 2.60938, ๐‘“ 2.60938 = .1488, ๐‘“ 2.59375 . ๐‘“ 2.60938 < 0

Sixth approximation: ๐‘Ž = 2.59375, ๐‘ = 2.60938

๐‘ฅ6 =2.59375+2.60938

2= 2.60157,๐‘“ 2.60157 = .0719, ๐‘“ 2.59375 . ๐‘“ 2.60157 < 0

Seventh approximation: ๐‘Ž = 2.59375, ๐‘ = 2.60157

๐‘ฅ7 =2.59375+2.60157

2= 2.59765, ๐‘“ 2.59765 = .0329, ๐‘“ 2.59375 . ๐‘“ 2.59765 < 0

Eighth approximation: ๐‘Ž = 2.59375, ๐‘ = 2.59765

๐‘ฅ8 =2.59375+2.59765

2= 2.5957, ๐‘“ 2.5957 = .0136, ๐‘“ 2.59375 . ๐‘“ 2.5957 < 0

Ninth approximation: ๐‘Ž = 2.59375, ๐‘ = 2.5957

๐‘ฅ9 =2.59375+2.5957

2= 2.5947, ๐‘“ 2.5947 = โˆ’.004, ๐‘“ 2.5947 . ๐‘“ 2.5957 < 0

Tenth approximation: ๐‘Ž = 2.5947, ๐‘ = 2.5957

๐‘ฅ10 =2.5947+2.5957

2= 2.5952

Hence 2.5952 is the real root correct to three decimal places.

Example3 Apply bisection method to find a root of the equation ๐‘ฅ๐‘’๐‘ฅ = 1 correct to

three decimal places.

Page 5: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 5

Solution:๐‘“ ๐‘ฅ = ๐‘ฅ๐‘’๐‘ฅ โˆ’ 1

Here ๐‘“ 0 = โˆ’1 and ๐‘“ 1 = ๐‘’ โˆ’ 1 = 1.718 โ‡’ ๐‘“ 0 . ๐‘“ 1 < 0

Also ๐‘“ ๐‘ฅ is continuous in 0,1 , โˆด atleast one root exists in 0,1

Initial approximation: ๐‘Ž = 0, ๐‘ = 1

๐‘ฅ0 =0+1

2= 0.5, ๐‘“ 0.5 = โˆ’0.1756, ๐‘“ 0.5 . ๐‘“ 1 < 0

First approximation: ๐‘Ž = 0.5, ๐‘ = 1

๐‘ฅ1 =0.5+1

2= 0.75, ๐‘“ 0.75 = 0.5877, ๐‘“ 0.5 . ๐‘“ 0.75 < 0

Second approximation: ๐‘Ž = 0.5, ๐‘ = 0.625

๐‘ฅ2 =0.5+0.75

2= 0.625, ๐‘“ 0.625 = 0.8682, ๐‘“ 0.5 . ๐‘“ 0.625 < 0

Third approximation: ๐‘Ž = 0.5, ๐‘ = 0.625

๐‘ฅ3 =0.5+0.625

2= 0.5625, ๐‘“ 0.5625 = โˆ’0.0128, ๐‘“ 0.5625 . ๐‘“ 0.625 < 0

Fourth approximation: ๐‘Ž = 0.5625, ๐‘ = 0.625

๐‘ฅ4 =0.5625+0.625

2= 0.59375, ๐‘“ 0.59375 = 0.0751, ๐‘“ 0.5625 . ๐‘“ 0.59375 < 0

Fifth approximation: ๐‘Ž = 0.5625, ๐‘ = 0.59375

๐‘ฅ5 =0.5625+0.59375

2= 0.5781, ๐‘“ 0.5781 = 0.0305, ๐‘“ 0.5625 . ๐‘“ 0.5781 < 0

Sixth approximation: ๐‘Ž = 0.5625, ๐‘ = 0.5781

๐‘ฅ6 =0.5625+0.5781

2= 0.5703,๐‘“ 0.5703 = .0087, ๐‘“ 0.5625 . ๐‘“ 0.5703 < 0

Seventh approximation: ๐‘Ž = 0.5625, ๐‘ = 0.5703

๐‘ฅ7 =0.5625+0.5703

2= 0.5664, ๐‘“ 0.5664 = โˆ’.002, ๐‘“ 0.5664 . ๐‘“ 0.5703 < 0

Eighth approximation: ๐‘Ž = 0.5664, ๐‘ = 0.5703

๐‘ฅ8 =0.5664+0.5703

2= 0.5684, ๐‘“ 0.5684 = 0.0035, ๐‘“ 0.5664 . ๐‘“ 0.5684 < 0

Ninth approximation: ๐‘Ž = 0.5664, ๐‘ = 0.5684

๐‘ฅ9 =0.5664+0.5684

2= 0.5674, ๐‘“ 0.5674 = .0007, ๐‘“ 0.5664 . ๐‘“ 0.5674 < 0

Tenth approximation: ๐‘Ž = 0.5664, ๐‘ = 0.5674

๐‘ฅ10 =0.5664+0.5674

2= 0.5669, ๐‘“ 0.5669 = โˆ’.0007, ๐‘“ 0.5669 . ๐‘“ 0.5674 < 0

Eleventh approximation: ๐‘Ž = 0.5669, ๐‘ = 0.5674

๐‘ฅ11 =0.5669+0.5674

2= 0.56715, ๐‘“ 0.56715 = .00001~0

Page 6: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 6

Hence 0.56715 is the real root correct to three decimal places.

Example4 Using bisection method find an approximate root of the equation sin ๐‘ฅ =1

๐‘ฅ

correct to two decimal places.

Solution:๐‘“ ๐‘ฅ = ๐‘ฅsin ๐‘ฅ โˆ’ 1

Here ๐‘“ 1 = sin 1 โˆ’ 1 = โˆ’0.1585 and ๐‘“ 2 = 2sin 2 โˆ’ 1 = 0.8186

Also ๐‘“ ๐‘ฅ is continuous in 1,2 , โˆด atleast one root exists in 1,2

Initial approximation: ๐‘Ž = 1, ๐‘ = 2

๐‘ฅ0 =1+2

2= 1.5, ๐‘“ 1.5 = 0.4963, ๐‘“ 1 . ๐‘“ 1.5 < 0

First approximation: ๐‘Ž = 1, ๐‘ = 1.5

๐‘ฅ1 =1+1.5

2= 1.25, ๐‘“ 1.25 = 0.1862, ๐‘“ 1 . ๐‘“ 1.25 < 0

Second approximation: ๐‘Ž = 1, ๐‘ = 1.25

๐‘ฅ2 =1+1.25

2= 1.125, ๐‘“ 1.125 = 0.0151, ๐‘“ 1 . ๐‘“ 1.125 < 0

Third approximation: ๐‘Ž = 1, ๐‘ = 1.125

๐‘ฅ3 =1+1.125

2= 1.0625, ๐‘“ 1.0625 = โˆ’0.0718, ๐‘“ 1.0625 . ๐‘“ 1.125 < 0

Fourth approximation: ๐‘Ž = 1.0625, ๐‘ = 1.125

๐‘ฅ4 =1.0625+1.125

2= 1.09375, ๐‘“ 1.09375 = โˆ’0.0284, ๐‘“ 1.09375 . ๐‘“ 1.125 < 0

Fifth approximation: ๐‘Ž = 1.09375, ๐‘ = 1.125

๐‘ฅ5 =1.09375+1.125

2= 1.10937, ๐‘“ 1.10937 = โˆ’0.0066, ๐‘“ 1.10937 . ๐‘“ 1.125 < 0

Sixth approximation: ๐‘Ž = 1.10937, ๐‘ = 1.125

๐‘ฅ6 =1.10937+1.125

2= 1.11719,๐‘“ 1.11719 = .0042, ๐‘“ 1.10937 . ๐‘“ 1.11719 < 0

Seventh approximation: ๐‘Ž = 1.10937, ๐‘ = 1.11719

๐‘ฅ7 =1.10937+1.11719

2= 1.11328, ๐‘“ 1.11328 = โˆ’.0012~0

Hence 1.11328 is the real root correct to two decimal places.

5.2.2 Regula- Falsi Method (Geometrical Interpretation) Regula-Falsi method is also known as method of false position as false position of curve

is taken as initial approximation. Let ๐‘ฆ = ๐‘“(๐‘ฅ) be represented by the curve ๐ด๐ต.The real

root of equation ๐‘“ ๐‘ฅ = 0 is ๐›ผ as shown in adjoining figure. The false position of curve

๐ด๐ต is taken as chord ๐ด๐ต and initial approximation ๐‘ฅ0 is the point of intersection of chord

Page 7: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 7

๐ด๐ต with ๐‘ฅ-axis. Successive approximations ๐‘ฅ1, ๐‘ฅ2 , โ€ฆare given by point of intersection of

chord ๐ดโ€ฒ๐ต, ๐ดโ€ฒโ€ฒ ๐ต, โ€ฆwith ๐‘ฅ โˆ’ axis, until the root is found to be of desired accuracy.

Now equation of chord AB in two-point form is given by:

๐‘ฆ โˆ’ ๐‘“ ๐‘Ž =๐‘“ ๐‘ โˆ’๐‘“ ๐‘Ž

๐‘โˆ’๐‘Ž(๐‘ฅ โˆ’ ๐‘Ž)

To find ๐‘ฅ0 (point of intersection of chord AB with ๐‘ฅ -

axis), put ๐‘ฆ = 0

โ‡’ โˆ’๐‘“ ๐‘Ž =๐‘“ ๐‘ โˆ’๐‘“ ๐‘Ž

๐‘โˆ’๐‘Ž ๐‘ฅ0 โˆ’ ๐‘Ž

โ‡’ (๐‘ฅ0 โˆ’ ๐‘Ž) = โˆ’ ๐‘โˆ’๐‘Ž ๐‘“ ๐‘Ž

๐‘“(๐‘)โˆ’๐‘“(๐‘Ž)

โ‡’ ๐‘ฅ0 = ๐‘Ž โˆ’ ๐‘โˆ’๐‘Ž

๐‘“ ๐‘ โˆ’๐‘“ ๐‘Ž ๐‘“(๐‘Ž)

Repeat the procedure until the root is found to the desired

accuracy.

Remarks:

Rate of convergence is much faster than that of bisection method.

Unlike bisection method, one end point will converge to the actual root ๐‘Ž , whereas the other end point always remains fixed. As a result Regula- Falsi

method has linear convergence.

Example5 Apply Regula-Falsi method to find a root of the equation ๐‘ฅ3 + ๐‘ฅ โˆ’ 1 =0 correct to two decimal places.

Solution:๐‘“ ๐‘ฅ = ๐‘ฅ3 + ๐‘ฅ โˆ’ 1

Here ๐‘“ 0 = โˆ’1 and ๐‘“ 1 = 1 โ‡’ ๐‘“ 0 . ๐‘“ 1 < 0

Also ๐‘“ ๐‘ฅ is continuous in 0,1 , โˆด atleast one root exists in 0,1

Initial approximation:๐‘ฅ0 = ๐‘Ž โˆ’ ๐‘โˆ’๐‘Ž

๐‘“ ๐‘ โˆ’๐‘“ ๐‘Ž ๐‘“(๐‘Ž) ; ๐‘Ž = 0, ๐‘ = 1

โ‡’ ๐‘ฅ0 = 0 โˆ’ 1โˆ’0

๐‘“ 1 โˆ’๐‘“ 0 ๐‘“ 0 = 0 โˆ’

1

1โˆ’ โˆ’1 (โˆ’1) = 0.5

๐‘“ 0.5 = โˆ’0.375, ๐‘“ 0.5 . ๐‘“ 1 < 0

First approximation: ๐‘Ž = 0.5, ๐‘ = 1

๐‘ฅ1 = 0.5 โˆ’ 1โˆ’0.5

๐‘“ 1 โˆ’๐‘“ 0.5 ๐‘“ 0.5 = 0 โˆ’

0.5

1โˆ’ โˆ’0.375 (โˆ’0.375) = 0.636

๐‘“ 0.636 = โˆ’0.107, ๐‘“ 0.636 . ๐‘“ 1 < 0

Second approximation: ๐‘Ž = 0.636, ๐‘ = 1

๐‘ฅ2 = 0.636 โˆ’ 1โˆ’0.636

๐‘“ 1 โˆ’๐‘“ 0.636 ๐‘“ 0.636 = 0.636 โˆ’

0.364

1โˆ’ โˆ’0.107 โˆ’0.107 = 0.6711

Page 8: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 8

๐‘“ 0.6711 = โˆ’0.0267, ๐‘“ 0.6711 . ๐‘“ 1 < 0

Third approximation: ๐‘Ž = 0.6711, ๐‘ = 1

๐‘ฅ3 = .6711 โˆ’ 1โˆ’0.6711

๐‘“ 1 โˆ’๐‘“ 0.6711 ๐‘“ . 6711 = .6711 โˆ’

0.3289

1โˆ’ โˆ’0.0267 โˆ’.0267 = 0.6796

First 2 decimal places have been stabilized; hence 0.6796 is the real root correct to

two decimal places.

Example6 Use Regula-Falsi method to find a root of the equation ๐‘ฅ log10 ๐‘ฅ โˆ’ 1.2 = 0 correct to two decimal places.

Solution:๐‘“ ๐‘ฅ = ๐‘ฅ log10 ๐‘ฅ โˆ’ 1.2

Here ๐‘“ 2 = โˆ’0.5979 and ๐‘“ 3 = 0.2314 โ‡’ ๐‘“ 2 . ๐‘“ 3 < 0

Also ๐‘“ ๐‘ฅ is continuous in 2,3 , โˆด atleast one root exists in 2,3

Initial approximation: ๐‘ฅ0 = ๐‘Ž โˆ’ ๐‘โˆ’๐‘Ž

๐‘“ ๐‘ โˆ’๐‘“ ๐‘Ž ๐‘“(๐‘Ž) ; ๐‘Ž = 2, ๐‘ = 3

โ‡’ ๐‘ฅ0 = 2 โˆ’ 3โˆ’2

๐‘“ 3 โˆ’๐‘“ 2 ๐‘“ 2 = 2 โˆ’

1

0.2314โˆ’ โˆ’0.5979 (โˆ’0.5979) = 2.721

๐‘“ 2.721 = โˆ’0.0171, ๐‘“ 2.721 . ๐‘“ 3 < 0

First approximation: ๐‘Ž = 2.721, ๐‘ = 3

๐‘ฅ1 = 2.721 โˆ’ 3โˆ’2.721

๐‘“ 3 โˆ’๐‘“ 2.721 ๐‘“ 2.721 = 2.721 โˆ’

0.279

.2314โˆ’ โˆ’0.0171 โˆ’0.0171 = 2.7402

๐‘“ 2.7402 = โˆ’0.0004, ๐‘“ 2.7402 . ๐‘“ 3 < 0

Second approximation: ๐‘Ž = 2.7402, ๐‘ = 3

๐‘ฅ2 = 2.7402 โˆ’ 3โˆ’2.7402

๐‘“ 3 โˆ’๐‘“ 2.7402 ๐‘“ 2.7402 = 2.7402 โˆ’

0.2598

.2314โˆ’ โˆ’.0004 โˆ’.0004 = 2.7407

First two decimal places have been stabilized; hence 2.7407 is the real root correct to

two decimal places.

Example7 Use Regula-Falsi method to find a root of the equation tan ๐‘ฅ + tanh ๐‘ฅ =0 upto three iterations only.

Solution:๐‘“ ๐‘ฅ = tan ๐‘ฅ + tanh ๐‘ฅ

Here ๐‘“ 2 = โˆ’1.2210 and ๐‘“ 3 = 0.8525 โ‡’ ๐‘“ 2 . ๐‘“ 3 < 0

Also ๐‘“ ๐‘ฅ is continuous in 2,3 , โˆด atleast one root exists in 2,3

Initial approximation:๐‘ฅ0 = ๐‘Ž โˆ’ ๐‘โˆ’๐‘Ž

๐‘“ ๐‘ โˆ’๐‘“ ๐‘Ž ๐‘“(๐‘Ž) ; ๐‘Ž = 2, ๐‘ = 3

โ‡’ ๐‘ฅ0 = 2 โˆ’ 3โˆ’2

๐‘“ 3 โˆ’๐‘“ 2 ๐‘“ 2 = 2 โˆ’

1

0.8525โˆ’ โˆ’1.221 (โˆ’1.221) = 2.5889

๐‘“ 2.5889 = 0.3720, ๐‘“ 2 . ๐‘“ 2.5889 < 0

Page 9: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 9

First approximation: ๐‘Ž = 2, ๐‘ = 2.5889

๐‘ฅ1 = 2 โˆ’ 2.5889โˆ’2

๐‘“ 2.5889 โˆ’๐‘“ 2 ๐‘“ 2 = 2 โˆ’

0.5889

0.3720โˆ’ โˆ’1.2210 (โˆ’1.2210) = 2.4514

๐‘“ 2.4514 = 0.1596, ๐‘“ 2 . ๐‘“ 2.4514 < 0

Second approximation: ๐‘Ž = 2, ๐‘ = 2.4514

๐‘ฅ2 = 2 โˆ’ 2.4514โˆ’2

๐‘“ 2.4514 โˆ’๐‘“ 2 ๐‘“ 2 = 2 โˆ’

0.4514

0.1596โˆ’ โˆ’1.2210 (โˆ’1.2210) = 2.3992

๐‘“ 2.3992 = 0.0662, ๐‘“ 2 . ๐‘“ 2.3992 < 0

Third approximation: ๐‘Ž = 2, ๐‘ = 2.3992

๐‘ฅ2 = 2 โˆ’ 2.3992โˆ’2

๐‘“ 2.3992 โˆ’๐‘“ 2 ๐‘“ 2 = 2 โˆ’

0.3992

0.0662โˆ’ โˆ’1.2210 (โˆ’1.2210) = 2.3787

โˆดReal root of the equationtan ๐‘ฅ + tanh ๐‘ฅ = 0 after three iterations is 2.3787

Example8 Use Regula-Falsi method to find a root of the equation ๐‘ฅ๐‘’๐‘ฅ โˆ’ 2 = 0 correct to

three decimal places.

Solution: ๐‘“ ๐‘ฅ = ๐‘ฅ๐‘’๐‘ฅ โˆ’ 2

Here ๐‘“ 0 = โˆ’2 and ๐‘“ 1 = 0.7183 โ‡’ ๐‘“ 0 . ๐‘“ 1 < 0

Also ๐‘“ ๐‘ฅ is continuous in 0,1 , โˆด atleast one root exists in 0,1

Initial approximation: ๐‘ฅ0 = ๐‘Ž โˆ’ ๐‘โˆ’๐‘Ž

๐‘“ ๐‘ โˆ’๐‘“ ๐‘Ž ๐‘“(๐‘Ž) ; ๐‘Ž = 0, ๐‘ = 1

โ‡’ ๐‘ฅ0 = 0 โˆ’ 1โˆ’0

๐‘“ 1 โˆ’๐‘“ 0 ๐‘“ 0 = 0 โˆ’

1

0.7183โˆ’ โˆ’2 (โˆ’2) = 0.7358

๐‘“ 0.7358 = โˆ’0.4643, ๐‘“ 0.7358 . ๐‘“ 1 < 0

First approximation: ๐‘Ž = 0.7358, ๐‘ = 1

๐‘ฅ1 = 0.7358 โˆ’ 1โˆ’0.7358

๐‘“ 1 โˆ’๐‘“ 0.7358 ๐‘“ 0.7358 = 0.7358 โˆ’

0.2642

0.7183โˆ’ โˆ’0.4643 (โˆ’0.4643) =

0.8395

๐‘“ 0.8395 = โˆ’0.0564, ๐‘“ 0.8395 . ๐‘“ 1 < 0

Second approximation: ๐‘Ž = 0.8395, ๐‘ = 1

๐‘ฅ2 = 0.8395 โˆ’ 1โˆ’0.8395

๐‘“ 1 โˆ’๐‘“ 0.8395 ๐‘“ 0.8395 = 0.8395 โˆ’

0.1605

0.7183โˆ’ โˆ’0.0564 (โˆ’0.0564) =

0.8512

๐‘“ 0.8512 = โˆ’0.006, ๐‘“ 0.8512 . ๐‘“ 1 < 0

Third approximation: ๐‘Ž = 0.8512, ๐‘ = 1

๐‘ฅ2 = 0.8512 โˆ’ 1โˆ’0.8512

๐‘“ 1 โˆ’๐‘“ 0.8512 ๐‘“ 0.8512 = 0.8512 โˆ’

0.1488

0.7183โˆ’ โˆ’0.006 (โˆ’0.006) = 0.8524

๐‘“ 0.8524 = โˆ’0.009, ๐‘“ 0.8524 . ๐‘“ 1 < 0

Page 10: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 10

Fourth approximation: ๐‘Ž = 0.8474 ๐‘ = 1

๐‘ฅ4 = 0.8524 โˆ’ 1โˆ’0.8524

๐‘“ 1 โˆ’๐‘“ 0.8524 ๐‘“ 0.8524 = 0.8524 โˆ’

0.1476

0.7183โˆ’ โˆ’0.0009 (โˆ’0.0009) =

0.8526

๐‘“ 0.8526 = โˆ’0.00002~0,

โˆด Real root of the equation ๐‘ฅ๐‘’๐‘ฅ โˆ’ 2 = 0 correct to three decimal places is 0.8526

5.2.3 Newton-Raphson Method (Geometrical Interpretation) Newton-Raphson method named after Isaac Newton and Joseph Raphson is a powerful

technique for solving equations numerically. The Newton-Raphson method in one

variable is implemented as follows:

Let ๐›ผ be an exact root and ๐‘ฅ0 be the initial approximate

root of the equation ๐‘“ ๐‘ฅ = 0. First approximation ๐‘ฅ1 is

taken by drawing a tangent to curve ๐‘ฆ = ๐‘“ ๐‘ฅ at the

point ๐‘ฅ0, ๐‘“ ๐‘ฅ0 . If ๐œƒ is the angle which tangent

through the point ๐‘ฅ0, ๐‘“ ๐‘ฅ0 makes with ๐‘ฅ- axis, then

slope of the tangent is given by:

tan ๐œƒ = ๐‘“ ๐‘ฅ0

๐‘ฅ0โˆ’๐‘ฅ1= ๐‘“โ€ฒ ๐‘ฅ0

โ‡’ ๐‘ฅ1 = ๐‘ฅ0 โˆ’๐‘“ ๐‘ฅ0

๐‘“โ€ฒ ๐‘ฅ0

Similarly ๐‘ฅ2 = ๐‘ฅ1 โˆ’๐‘“ ๐‘ฅ1

๐‘“โ€ฒ ๐‘ฅ1

โ‹ฎ The required root to desired accuracy is obtained by drawing tangents to the curve

at points ๐‘ฅ๐‘› , ๐‘“ ๐‘ฅ๐‘› successively.

โˆด ๐‘ฅ๐‘›+1 = ๐‘ฅ๐‘› โˆ’๐‘“ ๐‘ฅ๐‘›

๐‘“โ€ฒ ๐‘ฅ๐‘›

Newton-Raphson method works very fast but sometimes it fails to converge as shown

below:

Case I:

If any of the approximations encounters a zero

derivative (extreme point), then the tangent at that

point goes parallel to ๐‘ฅ-axis, resulting in no further

approximations as shown in given figure where third

approximation tends to infinity.

Case II:

Sometimes Newton-Raphson method may run into an

infinite cycle or loop as shown in adjoining figure.

Change in initial approximation may untangle the

problem.

๐œฝ

๐’™๐ŸŽ,๐’‡ ๐’™๐ŸŽ

Page 11: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 11

Case III:

In case of a point of discontinuity, as shown in given

figure, subsequent roots may diverge instead of

converging.

Remarks:

Newton-Raphson method can be used for solving both algebraic and

transcendental equations and it can also be used when roots are complex.

Initial approximation ๐‘ฅ0 can be taken randomly in the interval ๐‘Ž, ๐‘ , such

that ๐‘“ ๐‘Ž . ๐‘“ ๐‘ < 0

Newton-Raphson method has quadratic convergence, but in case of bad choice

of ๐‘ฅ0 (the initial guess), Newton- Raphson method may fail to converge

This method is useful in case of large value of ๐‘“โ€ฒ ๐‘ฅ๐‘› i.e. when graph of ๐‘“ ๐‘ฅ

while crossing ๐‘ฅ -axis is nearly vertical

Example 9 Use Newton-Raphson method to find a root of the equation ๐‘ฅ3 โˆ’ 5๐‘ฅ + 3 = 0 correct to three decimal places.

Solution: ๐‘“ ๐‘ฅ = ๐‘ฅ3 โˆ’ 5๐‘ฅ + 3

โ‡’ ๐‘“โ€ฒ ๐‘ฅ = 3๐‘ฅ2 โˆ’ 5

Here ๐‘“ 0 = 3 and ๐‘“ 1 = โˆ’1 โ‡’ ๐‘“ 0 . ๐‘“ 1 < 0

Also ๐‘“ ๐‘ฅ is continuous in 0,1 , โˆด atleast one root exists in 0,1

Initial approximation: Let initial approximation ๐‘ฅ0 in the interval 0,1 be 0.8

By Newton-Raphson method ๐‘ฅ๐‘›+1 = ๐‘ฅ๐‘› โˆ’๐‘“ ๐‘ฅ๐‘›

๐‘“โ€ฒ ๐‘ฅ๐‘›

First approximation:

๐‘ฅ1 = ๐‘ฅ0 โˆ’๐‘“ ๐‘ฅ0

๐‘“โ€ฒ ๐‘ฅ0 , where ๐‘ฅ0 = 0.8, ๐‘“ 0.8 = โˆ’0.488, ๐‘“โ€ฒ 0.8 = โˆ’3.08

โ‡’ ๐‘ฅ1 = 0.8 โˆ’โˆ’0.488

โˆ’3.08= 0.6416

Second approximation:

๐‘ฅ2 = ๐‘ฅ1 โˆ’๐‘“ ๐‘ฅ1

๐‘“โ€ฒ ๐‘ฅ1 , where ๐‘ฅ1 = 0.6415 , ๐‘“ 0.6416 = 0.0561 , ๐‘“โ€ฒ 0.6416 = โˆ’3.7650

โ‡’ ๐‘ฅ2 = 0.6416 โˆ’0.05611

โˆ’3.7650= 0.6565

Third approximation:

๐‘ฅ3 = ๐‘ฅ2 โˆ’๐‘“ ๐‘ฅ2

๐‘“โ€ฒ ๐‘ฅ2 , where ๐‘ฅ2 = 0.6565 , ๐‘“ 0.6565 = 0.0004 , ๐‘“โ€ฒ 0.6565 = โˆ’3.7070

โ‡’ ๐‘ฅ3 = 0.6565 โˆ’0.0004

โˆ’3.7070= 0.6566

Hence a root of the equation ๐‘ฅ3 โˆ’ 5๐‘ฅ + 3 = 0 correct to three decimal places is 0.6566

Page 12: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 12

Example 10 Find the approximate value of 28 correct to 3 decimal places using

Newton Raphson method.

Solution: ๐‘ฅ = 28 โ‡’ ๐‘ฅ2 โˆ’ 28 = 0

โˆด ๐‘“ ๐‘ฅ = ๐‘ฅ2 โˆ’ 28

โ‡’ ๐‘“โ€ฒ ๐‘ฅ = 2๐‘ฅ

Here ๐‘“ 5 = โˆ’3 and ๐‘“ 6 = 8 โ‡’ ๐‘“ 5 . ๐‘“ 6 < 0

Also ๐‘“ ๐‘ฅ is continuous in 5,6 , โˆด atleast one root exists in 5,6

Initial approximation: Let initial approximation ๐‘ฅ0 in the interval 5,6 be 5.5

By Newton-Raphson method ๐‘ฅ๐‘›+1 = ๐‘ฅ๐‘› โˆ’๐‘“ ๐‘ฅ๐‘›

๐‘“โ€ฒ ๐‘ฅ๐‘›

First approximation:

๐‘ฅ1 = ๐‘ฅ0 โˆ’๐‘“ ๐‘ฅ0

๐‘“โ€ฒ ๐‘ฅ0 , where ๐‘ฅ0 = 5.5, ๐‘“ 5.5 = 2.25, ๐‘“โ€ฒ 5.5 = 11

โ‡’ ๐‘ฅ1 = 5.5 โˆ’๐Ÿ.๐Ÿ๐Ÿ“

11= 5.2955

Second approximation:

๐‘ฅ2 = ๐‘ฅ1 โˆ’๐‘“ ๐‘ฅ1

๐‘“โ€ฒ ๐‘ฅ1 , where ๐‘ฅ1 = 5.2955, ๐‘“ 5.2955 = 0.0423, ๐‘“โ€ฒ 5.2955 = 10.591

โ‡’ ๐‘ฅ2 = 5.2955 โˆ’0.0423

10.591= 5.2915

Third approximation:

๐‘ฅ3 = ๐‘ฅ2 โˆ’๐‘“ ๐‘ฅ2

๐‘“โ€ฒ ๐‘ฅ2 , where ๐‘ฅ2 = 5.2915, ๐‘“ 5.2915 = โˆ’0.00003, ๐‘“โ€ฒ 5.2915 = 10.583

โ‡’ ๐‘ฅ3 = 5.2915 โˆ’โˆ’0.00003

10.583= 5.2915

Hence value of 28 correct to three decimal places is 5.2915

Example 11 Use Newton-Raphson method to find a root of the equation ๐‘ฅ sin ๐‘ฅ +cos ๐‘ฅ = 0 correct to three decimal places.

Solution: ๐‘“ ๐‘ฅ = ๐‘ฅ sin ๐‘ฅ + cos ๐‘ฅ

โ‡’ ๐‘“โ€ฒ ๐‘ฅ = ๐‘ฅ cos ๐‘ฅ + sin ๐‘ฅ โˆ’ sin ๐‘ฅ = ๐‘ฅ cos ๐‘ฅ

Here ๐‘“ ๐œ‹

2 = 1.5708 and ๐‘“ ๐œ‹ = โˆ’1 โ‡’ ๐‘“

๐œ‹

2 . ๐‘“ ๐œ‹ < 0

Also ๐‘“ ๐‘ฅ is continuous in ๐œ‹

2, ๐œ‹ โˆด atleast one root exists in

๐œ‹

2, ๐œ‹

Initial approximation: Let initial approximation ๐‘ฅ0 in the interval ๐œ‹

2, ๐œ‹ be ๐œ‹

Page 13: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 13

By Newton-Raphson method ๐‘ฅ๐‘›+1 = ๐‘ฅ๐‘› โˆ’๐‘“ ๐‘ฅ๐‘›

๐‘“โ€ฒ ๐‘ฅ๐‘›

First approximation:

๐‘ฅ1 = ๐‘ฅ0 โˆ’๐‘“ ๐‘ฅ0

๐‘“โ€ฒ ๐‘ฅ0 , where ๐‘ฅ0 = ๐œ‹, ๐‘“ ๐œ‹ = โˆ’1, ๐‘“โ€ฒ ๐œ‹ = โˆ’3.1416

โ‡’ ๐‘ฅ1 = 3.1416 โˆ’โˆ’1

โˆ’3.1416= 2.8233

Second approximation:

๐‘ฅ2 = ๐‘ฅ1 โˆ’๐‘“ ๐‘ฅ1

๐‘“โ€ฒ ๐‘ฅ1 , where ๐‘ฅ1 = 2.8233, ๐‘“ 2.8233 = โˆ’0.0662, ๐‘“โ€ฒ 2.8233 = โˆ’2.6815

โ‡’ ๐‘ฅ2 = 2.8233 โˆ’โˆ’0.0662

โˆ’2.6815= 2.7986

Third approximation:

๐‘ฅ3 = ๐‘ฅ2 โˆ’๐‘“ ๐‘ฅ2

๐‘“โ€ฒ ๐‘ฅ2 , where ๐‘ฅ2 = 2.798, ๐‘“ 2.7986 = โˆ’0.0006, ๐‘“โ€ฒ 2.7986 = โˆ’2.6356

โ‡’ ๐‘ฅ3 = 2.7986 โˆ’โˆ’0.0006

โˆ’2.6356= 2.7984

Hence a root of the equation ๐‘ฅ sin ๐‘ฅ + cos ๐‘ฅ = 0 correct to three decimal places is

2.7984

Example 12 Use Newton Raphson method to derive a formula to find ๐‘5

, ๐‘๐œ–๐‘….

Hence evaluate 435

correct to 3 decimal places.

Solution: ๐‘ฅ = ๐‘5

โ‡’ ๐‘ฅ5 โˆ’ ๐‘ = 0

๐‘“ ๐‘ฅ = ๐‘ฅ5 โˆ’ ๐‘

โ‡’ ๐‘“โ€ฒ ๐‘ฅ = 5๐‘ฅ4

By Newton-Raphson method ๐‘ฅ๐‘›+1 = ๐‘ฅ๐‘› โˆ’๐‘“ ๐‘ฅ๐‘›

๐‘“โ€ฒ ๐‘ฅ๐‘›

โ‡’ ๐‘ฅ๐‘›+1 = ๐‘ฅ๐‘› โˆ’๐‘ฅ๐‘›

5โˆ’๐‘

5๐‘ฅ๐‘›4 =

4

5๐‘ฅ๐‘› +

๐‘

5๐‘ฅ๐‘›4

To evaluate 435

, putting ๐‘ = 43 , โˆดNewton-Raphson formula is given by

๐‘ฅ๐‘›+1 =4

5๐‘ฅ๐‘› +

43

5๐‘ฅ๐‘›4

Let initial approximation ๐‘ฅ0 be 2

First approximation:

๐‘ฅ1 =4

5๐‘ฅ0 +

43

5๐‘ฅ04 , where ๐‘ฅ0 = 2

โ‡’ ๐‘ฅ1 =8

5+

43

80= 2.1375

Page 14: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 14

Second approximation:

๐‘ฅ2 =4

5๐‘ฅ1 +

43

5๐‘ฅ14 , where ๐‘ฅ1 = 2.1375

โ‡’ ๐‘ฅ2 =4(2.1375)

5+

43

5(2.1375)4= 2.1220

Third approximation:

๐‘ฅ3 =4

5๐‘ฅ2 +

43

5๐‘ฅ24 , where ๐‘ฅ2 = 2.1220

โ‡’ ๐‘ฅ3 =4(2.1220)

5+

43

5(2.1220)4= 2.1217

Fourth approximation:

๐‘ฅ4 =4

5๐‘ฅ3 +

43

5๐‘ฅ34 , where ๐‘ฅ3 = 2.1217

โ‡’ ๐‘ฅ4 =4(2.1217)

5+

43

5(2.1217)4= 2.1217

Hence value of 435

correct to four decimal places is 2.1217

5.2.3.1 Generalized Newtonโ€™s Method for Multiple Roots

Result: If ๐›ผ is a root of equation ๐‘“ ๐‘ฅ = 0 with multiplicity ๐‘š, then it is also a root of

equation ๐‘“โ€ฒ ๐‘ฅ = 0 with multiplicity (๐‘š โˆ’ 1) and also of the equation ๐‘“โ€ฒโ€ฒ ๐‘ฅ = 0 with

multiplicity (๐‘š โˆ’ 1) and so on.

For example (๐‘ฅ โˆ’ 1)3 = 0 has โ€˜1โ€™ as a root with multiplicity 3

3(๐‘ฅ โˆ’ 1)2 = 0 has โ€˜1โ€™ as the root with multiplicity 2

6(๐‘ฅ โˆ’ 1) = 0 has โ€˜1โ€™ as the root with multiplicity 1

โˆด The expressions ๐‘ฅ๐‘› โˆ’ ๐‘š๐‘“ ๐‘ฅ๐‘›

๐‘“โ€ฒ ๐‘ฅ๐‘› , ๐‘ฅ๐‘› โˆ’ (๐‘š โˆ’ 1)

๐‘“โ€ฒ ๐‘ฅ๐‘›

๐‘“โ€ฒโ€ฒ ๐‘ฅ๐‘› , ๐‘ฅ๐‘› โˆ’ (๐‘š โˆ’ 2)

๐‘“โ€ฒโ€ฒ ๐‘ฅ๐‘›

๐‘“โ€ฒโ€ฒโ€ฒ ๐‘ฅ๐‘› are

equivalent

Generalized Newtonโ€™s method is used to find repeated roots of an equation as is given as:

If ๐›ผ be a root of equation ๐‘“ ๐‘ฅ = 0 which is repeated ๐‘š times,

Then ๐‘ฅ๐‘›+1 = ๐‘ฅ๐‘› โˆ’ ๐‘š๐‘“ ๐‘ฅ๐‘›

๐‘“โ€ฒ ๐‘ฅ๐‘› ~ ๐‘ฅ๐‘› โˆ’ (๐‘š โˆ’ 1)

๐‘“โ€ฒ ๐‘ฅ๐‘›

๐‘“โ€ฒโ€ฒ ๐‘ฅ๐‘›

Example 13 Use Newton-Raphson method to find a double root of the equation

๐‘ฅ3 โˆ’ ๐‘ฅ2 โˆ’ ๐‘ฅ + 1 = 0 upto three iterations.

Solution: ๐‘“ ๐‘ฅ = ๐‘ฅ3 โˆ’ ๐‘ฅ2 โˆ’ ๐‘ฅ + 1

๐‘“โ€ฒ ๐‘ฅ = 3๐‘ฅ2 โˆ’ 2๐‘ฅ โˆ’ 1

๐‘“ โ€ฒโ€ฒ (๐‘ฅ) = 6๐‘ฅ โˆ’ 2

Page 15: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 15

Let the initial approximation ๐‘ฅ0 = 0.7

First approximation:

๐‘ฅ1 = ๐‘ฅ0 โˆ’2๐‘“ ๐‘ฅ0

๐‘“โ€ฒ ๐‘ฅ0 Also ๐‘ฅ1 = ๐‘ฅ0 โˆ’

๐‘“โ€ฒ ๐‘ฅ0

๐‘“โ€ฒโ€ฒ ๐‘ฅ0

โ‡’ ๐‘ฅ1 = 0.7 โˆ’0.306

โˆ’0.93= 1.0290 And ๐‘ฅ1 = 0.7 โˆ’

โˆ’0.93

2.2= 1.1227

โˆด ๐‘ฅ1 =1.029+1.1227

2= 1.0759, ๐‘“(๐‘ฅ1) = .012

Second approximation:

๐‘ฅ2 = ๐‘ฅ1 โˆ’2๐‘“ ๐‘ฅ1

๐‘“โ€ฒ ๐‘ฅ1 Also ๐‘ฅ2 = ๐‘ฅ1 โˆ’

๐‘“โ€ฒ ๐‘ฅ1

๐‘“โ€ฒโ€ฒ ๐‘ฅ1

โ‡’ ๐‘ฅ2 = 1.0759 โˆ’0.0239

0.3209= 1.001 And ๐‘ฅ2 = 1.0759 โˆ’

0.3209

4.4554= 1.004

โˆด ๐‘ฅ2 =1.001+1.004

2= 1.0025 , ๐‘“(๐‘ฅ2) = .00001

Third approximation:

๐‘ฅ3 = ๐‘ฅ2 โˆ’2๐‘“ ๐‘ฅ2

๐‘“โ€ฒ ๐‘ฅ2 Also ๐‘ฅ3 = ๐‘ฅ2 โˆ’

๐‘“โ€ฒ ๐‘ฅ2

๐‘“โ€ฒโ€ฒ ๐‘ฅ2

โ‡’ ๐‘ฅ3 = 1.0025 โˆ’0.00003

0.0100= 0.995 And ๐‘ฅ3 = 1.0025 โˆ’

0.0100

4.015= 1.0000

โˆด ๐‘ฅ3 =0.995+1.000

2= 0.9975 , ๐‘“(๐‘ฅ3) = .00001

The double root of the equation ๐‘ฅ3 โˆ’ ๐‘ฅ2 โˆ’ ๐‘ฅ + 1 = 0 after three iterations is

0.9975.

5.2.3.1 Convergence of Newton Raphson Method

Let ๐›ผ be an exact root of the equation ๐‘“ ๐‘ฅ = 0

โ‡’ ๐‘“ ๐›ผ = 0

Also let ๐‘ฅ๐‘› and ๐‘ฅ๐‘›+1 be two successive approximations to the root ๐›ผ.

If โˆˆ๐‘› and โˆˆ๐‘›+1 are the corresponding errors in the approximations ๐‘ฅ๐‘› and ๐‘ฅ๐‘›+1

Then ๐‘ฅ๐‘› = ๐›ผ +โˆˆ๐‘› โ€ฆ โ‘ 

and ๐‘ฅ๐‘›+1 = ๐›ผ +โˆˆ๐‘›+1 โ€ฆ โ‘ก

Now by Newton Raphson method

๐‘ฅ๐‘›+1 = ๐‘ฅ๐‘› โˆ’๐‘“ ๐‘ฅ๐‘›

๐‘“โ€ฒ ๐‘ฅ๐‘› โ€ฆ โ‘ข

Using โ‘  and โ‘ก in โ‘ข

โ‡’ ๐›ผ +โˆˆ๐‘›+1= ๐›ผ +โˆˆ๐‘›โˆ’๐‘“ ๐›ผ+โˆˆ๐‘›

๐‘“โ€ฒ ๐›ผ+โˆˆ๐‘›

Page 16: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 16

โ‡’โˆˆ๐‘›+1=โˆˆ๐‘›๐‘“ โ€ฒ ๐›ผ+โˆˆ๐‘› โˆ’๐‘“(๐›ผ+โˆˆ๐‘› )

๐‘“ โ€ฒ (๐›ผ+โˆˆ๐‘› )

โ‡’โˆˆ๐‘›+1=โˆˆ๐‘› ๐‘“ โ€ฒ ๐›ผ +โˆˆ๐‘›๐‘“ โ€ฒโ€ฒ ๐›ผ + โ€ฆ โˆ’ ๐‘“ ๐›ผ +โˆˆ๐‘›๐‘“ โ€ฒ ๐›ผ +

โˆˆ๐‘›2

2!๐‘“ โ€ฒโ€ฒ ๐›ผ +โ‹ฏ

๐‘“ โ€ฒ ๐›ผ +โˆˆ๐‘›๐‘“ โ€ฒโ€ฒ ๐›ผ + โ€ฆ By Taylorโ€™s expansion

โ‡’โˆˆ๐‘›+1=โˆˆ๐‘›

2๐‘“ โ€ฒโ€ฒ ๐›ผ โˆ’ โˆˆ๐‘›

2

2!๐‘“ โ€ฒโ€ฒ ๐›ผ +โ‹ฏ

๐‘“ โ€ฒ ๐›ผ 1+โˆˆ๐‘›๐‘“โ€ฒโ€ฒ ๐›ผ

๐‘“โ€ฒ ๐›ผ +โ‹ฏ

โˆต ๐‘“ ๐›ผ = 0

โ‡’โˆˆ๐‘›+1= โˆˆ๐‘›

2

2

๐‘“ โ€ฒโ€ฒ (๐›ผ)

๐‘“ โ€ฒ (๐›ผ)+ โ‹ฏ 1 +

โˆˆ๐‘›๐‘“ โ€ฒโ€ฒ ๐›ผ

๐‘“ โ€ฒ ๐›ผ + โ‹ฏ

โˆ’1

โ‡’โˆˆ๐‘›+1= โˆˆ๐‘›

2

2

๐‘“ โ€ฒโ€ฒ (๐›ผ)

๐‘“ โ€ฒ (๐›ผ)+ โ‹ฏ 1 โˆ’

โˆˆ๐‘›๐‘“ โ€ฒโ€ฒ ๐›ผ

๐‘“ โ€ฒ ๐›ผ + โ‹ฏ

โ‡’โˆˆ๐‘›+1=โˆˆ๐‘›

2

2

๐‘“ โ€ฒโ€ฒ (๐›ผ)

๐‘“ โ€ฒ (๐›ผ) Neglecting higher order terms

โ‡’โˆˆ๐‘›+1= ๐พ โˆˆ๐‘›2 Where ๐‘˜ =

1

2

๐‘“ โ€ฒโ€ฒ (๐›ผ)

๐‘“ โ€ฒ (๐›ผ)

โˆด Newton Raphson method has convergence of order 2 or quadratic convergence.

5.3 Iterative Methods for Solving Simultaneous Linear Equations

Consider a system of linear equations:

๐‘Ž1๐‘ฅ + ๐‘1๐‘ฆ + ๐‘1๐‘ง = ๐‘‘1

๐‘Ž2๐‘ฅ + ๐‘2๐‘ฆ + ๐‘2๐‘ง = ๐‘‘2

๐‘Ž3๐‘ฅ + ๐‘3๐‘ฆ + ๐‘3๐‘ง = ๐‘‘3

โ€ฆโ‘ 

We have been using direct methods for solving a system of linear equations. Direct

methods produce exact solution after a finite number of steps whereas iterative

methods give a sequence of approximate solutions until solution is obtained up to

desired accuracy. Common iterative methods for solving a system of linear

equations are:

1. Gauss-Jacobiโ€™s iteration method

2. Gauss-Seidalโ€™s iteration method

These methods require partial pivoting before application.

Partial pivoting: It is about changing rows of a system of linear equations given by

โ‘  such that ๐‘Ž1 โ‰ฅ ๐‘Ž2 , ๐‘Ž3 ; ๐‘2 โ‰ฅ ๐‘3.

Complete pivoting: It is the process of selecting the largest element in the magnitude

as the pivot element by interchanging row as well as columns of the system. Order

of variables is also changed in the procedure. In particular for the system given by โ‘ ,

complete pivoting would require ๐‘Ž1 โ‰ฅ ๐‘Ž2, ๐‘Ž3 ; ๐‘2 โ‰ฅ ๐‘1, ๐‘3 , if ๐‘Ž1 and ๐‘2 are to be

taken as pivots.

Page 17: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 17

5.3.1 Gauss-Jacobiโ€™s Iteration Method

The concept of the Gauss- Jacobiโ€™s iteration scheme is extremely simple with the

assumptions that the system has unique solution and diagonal elements are non-zeros.

Algorithm: Gauss-Jacobiโ€™s iteration method

1. Take the system of linear equations given by โ‘  after partial pivoting and solve

each equation in the system for the diagonal value of variables such that

๐‘ฅ =1

๐‘Ž1(๐‘‘1 โˆ’ ๐‘1๐‘ฆ โˆ’ ๐‘1๐‘ง)

๐‘ฆ =1

๐‘2(๐‘‘2 โˆ’ ๐‘Ž2๐‘ฅ โˆ’ ๐‘2๐‘ง)

๐‘ง =1

๐‘3(๐‘‘3 โˆ’ ๐‘Ž3๐‘ฅ โˆ’ ๐‘3๐‘ฆ)

โ€ฆโ‘ก

2. Rewrite โ‘ก in generalized form given by:

๐‘ฅ๐‘›+1 =1

๐‘Ž1(๐‘‘1 โˆ’ ๐‘1๐‘ฆ๐‘› โˆ’ ๐‘1๐‘ง๐‘›)

๐‘ฆ๐‘›+1 =1

๐‘2(๐‘‘2 โˆ’ ๐‘Ž2๐‘ฅ๐‘› โˆ’ ๐‘2๐‘ง๐‘›)

๐‘ง๐‘›+1 =1

๐‘3(๐‘‘3 โˆ’ ๐‘Ž3๐‘ฅ๐‘› โˆ’ ๐‘3๐‘ฆ๐‘› )

โ€ฆโ‘ข

3. Take ๐‘ฅ0 = ๐‘ฆ0 = ๐‘ง0 = 0 as initial approximation (in general if a better

approximation can not be judged) and substitute in the system given by โ‘ข

โˆด ๐‘ฅ1 =๐‘‘1

๐‘Ž1 , ๐‘ฆ1 =

๐‘‘2

๐‘2 , ๐‘ง1 =

๐‘‘3

๐‘3

4. Putting ๐‘› = 1 , substitute the values of ๐‘ฅ1 , ๐‘ฆ1 and ๐‘ง1 in โ‘ข to get next

approximations of ๐‘ฅ2, ๐‘ฆ2 and ๐‘ง2. Continue the procedure until the difference

between two consecutive approximations is negligible.

Example 14 Solve the following system of equations using Gauss Jacobi's method

5๐‘ฅ โˆ’ 2๐‘ฆ + 3๐‘ง = โˆ’1

โˆ’3๐‘ฅ + 9๐‘ฆ + ๐‘ง = 2

2๐‘ฅ โˆ’ ๐‘ฆ โˆ’ 7๐‘ง = 3

Solution: The given system of equations is satisfying rules of partial pivoting.

Rewriting in general form as given in โ‘ข

๐‘ฅ๐‘›+1 =1

5(โˆ’1 + 2๐‘ฆ๐‘› โˆ’ 3๐‘ง๐‘›)

๐‘ฆ๐‘›+1 =1

9 2 + 3๐‘ฅ๐‘› โˆ’ ๐‘ง๐‘›

๐‘ง๐‘›+1 =1

7 โˆ’3 + 2๐‘ฅ๐‘› โˆ’ ๐‘ฆ๐‘›

Taking ๐‘ฅ0 = ๐‘ฆ0 = ๐‘ง0 = 0 as initial approximation

First Approximation:

๐‘ฅ1 = โˆ’1

5= โˆ’0.2 ๐‘ฆ1 =

2

9= 0.222 , ๐‘ง1 = โˆ’

3

7= โˆ’0.429

Page 18: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 18

Second Approximation:

๐‘ฅ2 =1

5 โˆ’1 + 2๐‘ฆ1 โˆ’ 3๐‘ง1 , ๐‘ฆ2 =

1

9 2 + 3๐‘ฅ1 โˆ’ ๐‘ง1 , ๐‘ง2 =

1

7(โˆ’3 + 2๐‘ฅ1 โˆ’ ๐‘ฆ1)

โ‡’ ๐‘ฅ2 =1

5 โˆ’1 + 2 0.222 โˆ’ 3(โˆ’0.429 ) = 0.146

๐‘ฆ2 =1

9 2 + 3(โˆ’0.2 + 0.429) = 0.203

๐‘ง2 =1

7 โˆ’3 + 2 โˆ’0.2 โˆ’ 0.222 = โˆ’0.517

Third Approximation:

๐‘ฅ3 =1

5 โˆ’1 + 2๐‘ฆ2 โˆ’ 3๐‘ง2 , ๐‘ฆ3 =

1

9 2 + 3๐‘ฅ2 โˆ’ ๐‘ง2 , ๐‘ง3 =

1

7(โˆ’3 + 2๐‘ฅ2 โˆ’ ๐‘ฆ2)

โ‡’ ๐‘ฅ3 =1

5 โˆ’1 + 2 0.203 โˆ’ 3(โˆ’0.517 ) = 0.191

๐‘ฆ3 =1

9 2 + 3(0.146 + 0.517) = 0.328

๐‘ง3 =1

7 โˆ’3 + 2 0.146 โˆ’ 0.203 = โˆ’0.416

Fourth Approximation:

๐‘ฅ4 =1

5 โˆ’1 + 2๐‘ฆ3 โˆ’ 3๐‘ง3 , ๐‘ฆ4 =

1

9 2 + 3๐‘ฅ3 โˆ’ ๐‘ง3 , ๐‘ง4 =

1

7(โˆ’3 + 2๐‘ฅ3 โˆ’ ๐‘ฆ3)

โ‡’ ๐‘ฅ4 =1

5 โˆ’1 + 2 0.328 โˆ’ 3(โˆ’0.416 ) = 0.181

๐‘ฆ4 =1

9 2 + 3(0.191 + 0.416) = 0.332

๐‘ง4 =1

7 โˆ’3 + 2 0.191 โˆ’ 0.328 = โˆ’0.421

Fifth Approximation:

๐‘ฅ5 =1

5 โˆ’1 + 2๐‘ฆ4 โˆ’ 3๐‘ง4 , ๐‘ฆ5 =

1

9 2 + 3๐‘ฅ4 โˆ’ ๐‘ง4 , ๐‘ง5 =

1

7(โˆ’3 + 2๐‘ฅ4 โˆ’ ๐‘ฆ4)

โ‡’ ๐‘ฅ5 =1

5 โˆ’1 + 2 0.332 โˆ’ 3(โˆ’0.421 ) = 0.185

๐‘ฆ5 =1

9 2 + 3(0.181 + 0.421) = 0.329

๐‘ง5 =1

7 โˆ’3 + 2 0.181 โˆ’ 0.332 = โˆ’0.424

Sixth Approximation:

๐‘ฅ6 =1

5 โˆ’1 + 2๐‘ฆ5 โˆ’ 3๐‘ง5 , ๐‘ฆ6 =

1

9 2 + 3๐‘ฅ5 โˆ’ ๐‘ง5 , ๐‘ง6 =

1

7(โˆ’3 + 2๐‘ฅ5 โˆ’ ๐‘ฆ5)

โ‡’ ๐‘ฅ6 =1

5 โˆ’1 + 2 0.329 โˆ’ 3(โˆ’0.424 ) = 0.186

๐‘ฆ6 =1

9 2 + 3(0.185 + 0.424) = 0.331

๐‘ง6 =1

7 โˆ’3 + 2 0.185 โˆ’ 0.329 = โˆ’0.423

Page 19: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 19

Values of variables have been stabilized, โˆด approximate solution is given by

๐‘ฅ = 0.186, ๐‘ฆ = 0.331and ๐‘ง = โˆ’0.423

Example 15 Compute 4 iterations to find an approximate solution of the given system of

equations using Gauss Jacobi's method.

๐‘ฅ + ๐‘ฆ + 5๐‘ง = โˆ’1

5๐‘ฅ โˆ’ ๐‘ฆ + ๐‘ง = 10

2๐‘ฅ + 4๐‘ฆ = 12

Solution: Rearranging the given equations by partial pivoting

5๐‘ฅ โˆ’ ๐‘ฆ + ๐‘ง = 10

2๐‘ฅ + 4๐‘ฆ = 12

๐‘ฅ + ๐‘ฆ + 5๐‘ง = โˆ’1

Rewriting in general form as given in โ‘ข

๐‘ฅ๐‘›+1 =1

5(10 + ๐‘ฆ๐‘› โˆ’ ๐‘ง๐‘› )

๐‘ฆ๐‘›+1 =1

4 12 โˆ’ 2๐‘ฅ๐‘›

๐‘ง๐‘›+1 =1

5(โˆ’1 โˆ’ ๐‘ฅ๐‘› โˆ’ ๐‘ฆ๐‘›)

Taking ๐‘ฅ0 = ๐‘ฆ0 = ๐‘ง0 = 0 as initial approximation

First Approximation:

๐‘ฅ1 =10

5= 2 , ๐‘ฆ1 =

12

4= 3 , ๐‘ง1 = โˆ’

1

5

Second Approximation:

๐‘ฅ2 =1

5 10 + ๐‘ฆ1 โˆ’ ๐‘ง1 , ๐‘ฆ2 =

1

4 12 โˆ’ 2๐‘ฅ1 , ๐‘ง2 =

1

5(โˆ’1 โˆ’ ๐‘ฅ1 โˆ’ ๐‘ฆ1)

โ‡’ ๐‘ฅ2 =1

5 10 + 3 +

1

5 , ๐‘ฆ2 =

1

4 12 โˆ’ 4 , ๐‘ง2 =

1

5(โˆ’1 โˆ’ 2 โˆ’ 3)

โˆด ๐‘ฅ2 = 2.64 , ๐‘ฆ2 = 2 , ๐‘ง2 = โˆ’1.2

Third Approximation:

๐‘ฅ3 =1

5 10 + ๐‘ฆ2 โˆ’ ๐‘ง2 , ๐‘ฆ3 =

1

4 12 โˆ’ 2๐‘ฅ2 , ๐‘ง3 =

1

5(โˆ’1 โˆ’ ๐‘ฅ2 โˆ’ ๐‘ฆ2)

โ‡’ ๐‘ฅ3 =1

5 10 + 2 + 1.2 , ๐‘ฆ3 =

1

4 12 โˆ’ 2(2.64) , ๐‘ง3 =

1

5(โˆ’1 โˆ’ 2.64 โˆ’ 2)

โˆด ๐‘ฅ3 = 2.64 , ๐‘ฆ3 = 1.68 , ๐‘ง3 = โˆ’0.928

Fourth Approximation:

๐‘ฅ4 =1

5 10 + ๐‘ฆ3 โˆ’ ๐‘ง3 , ๐‘ฆ3 =

1

4 12 โˆ’ 2๐‘ฅ3 , ๐‘ง3 =

1

5(โˆ’1 โˆ’ ๐‘ฅ3 โˆ’ ๐‘ฆ3)

โ‡’ ๐‘ฅ4 =1

5 10 + 1.68 + 0.928 , ๐‘ฆ4 =

1

4 12 โˆ’ 2(2.64) , ๐‘ง4 =

1

5(โˆ’1 โˆ’ 2.64 โˆ’ 1.68)

Page 20: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 20

โˆด ๐‘ฅ4 = 2.52 , ๐‘ฆ4 = 1.68 , ๐‘ง4 = โˆ’1.064

Approximate solution after 4 iterations is given by ๐‘ฅ = 2.52, ๐‘ฆ = 1.68, ๐‘ง = โˆ’1.064

5.3.2Gauss-Seidalโ€™s Iteration Method

Gauss-Seidel method is an improvement of the basic Gauss-Jordan method. Here the

improved values of variables are utilized as soon as they are obtained.

โˆด System of equations given in โ‘ข is improved by taking latest values of the variables

as

๐‘ฅ๐‘›+1 =1

๐‘Ž1 ๐‘‘1 โˆ’ ๐‘1๐‘ฆ๐‘› โˆ’ ๐‘1๐‘ง๐‘›

๐‘ฆ๐‘›+1 =1

๐‘2 ๐‘‘2 โˆ’ ๐‘Ž2๐‘ฅ๐‘›+1 โˆ’ ๐‘2๐‘ง๐‘›

๐‘ง๐‘›+1 =1

๐‘3 ๐‘‘3 โˆ’ ๐‘Ž3๐‘ฅ๐‘›+1 โˆ’ ๐‘3๐‘ฆ๐‘›+1

Gauss-Seidel scheme usually converges faster than Jacobiโ€™s iteration method.

Example 16 Solve the system of equations given in Example 14 using Gauss Seidal's

method

5๐‘ฅ โˆ’ 2๐‘ฆ + 3๐‘ง = โˆ’1

โˆ’3๐‘ฅ + 9๐‘ฆ + ๐‘ง = 2

2๐‘ฅ โˆ’ ๐‘ฆ โˆ’ 7๐‘ง = 3

Also compare the results obtained in two methods.

Solution: The given system of equations is satisfying rules of partial pivoting.

Using Gauss Seidal's approximations, system can be rewritten as

๐‘ฅ๐‘›+1 =1

5 โˆ’1 + 2๐‘ฆ๐‘› โˆ’ 3๐‘ง๐‘›

๐‘ฆ๐‘›+1 =1

9 2 + 3๐‘ฅ๐‘›+1 โˆ’ ๐‘ง๐‘›

๐‘ง๐‘›+1 =1

7 โˆ’3 + 2๐‘ฅ๐‘›+1 โˆ’ ๐‘ฆ๐‘›+1

Taking ๐‘ฅ0 = ๐‘ฆ0 = ๐‘ง0 = 0 as initial approximation

First Approximation:

๐‘ฅ1 = โˆ’1

5= โˆ’0.2 ๐‘ฆ1 =

2

9= 0.222 , ๐‘ง1 = โˆ’

3

7= โˆ’0.429

Second Approximation:

๐‘ฅ2 =1

5 โˆ’1 + 2๐‘ฆ1 โˆ’ 3๐‘ง1 , ๐‘ฆ2 =

1

9 2 + 3๐‘ฅ2 โˆ’ ๐‘ง1 , ๐‘ง2 =

1

7(โˆ’3 + 2๐‘ฅ2 โˆ’ ๐‘ฆ2)

โ‡’ ๐‘ฅ2 =1

5 โˆ’1 + 2 0.222 โˆ’ 3(โˆ’0.429 ) = 0.146

๐‘ฆ2 =1

9 2 + 3(0.146 + 0.429) = 0.319

Page 21: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 21

๐‘ง2 =1

7 โˆ’3 + 2 0.146 โˆ’ 0.319 = โˆ’0.432

Third Approximation:

๐‘ฅ3 =1

5 โˆ’1 + 2๐‘ฆ2 โˆ’ 3๐‘ง2 , ๐‘ฆ3 =

1

9 2 + 3๐‘ฅ3 โˆ’ ๐‘ง2 , ๐‘ง3 =

1

7(โˆ’3 + 2๐‘ฅ3 โˆ’ ๐‘ฆ3)

โ‡’ ๐‘ฅ3 =1

5 โˆ’1 + 2 0.319 โˆ’ 3(โˆ’0.432 ) = 0.187

๐‘ฆ3 =1

9 2 + 3(0.187 + 0.432) = 0.333

๐‘ง3 =1

7 โˆ’3 + 2 0.187 โˆ’ 0.333 = โˆ’0.423

Fourth Approximation:

๐‘ฅ4 =1

5 โˆ’1 + 2๐‘ฆ3 โˆ’ 3๐‘ง3 , ๐‘ฆ4 =

1

9 2 + 3๐‘ฅ4 โˆ’ ๐‘ง3 , ๐‘ง4 =

1

7(โˆ’3 + 2๐‘ฅ4 โˆ’ ๐‘ฆ4)

โ‡’ ๐‘ฅ4 =1

5 โˆ’1 + 2 0.333 โˆ’ 3(โˆ’0.423 ) = 0.187

๐‘ฆ4 =1

9 2 + 3(0.187 + 0.423) = 0.332

๐‘ง4 =1

7 โˆ’3 + 2 0.187 โˆ’ 0.332 = โˆ’0.423

Values of variables have been stabilized, โˆด approximate solution is given by

๐‘ฅ = 0.187, ๐‘ฆ = 0.332 and ๐‘ง = โˆ’0.423

Clearly numbers of iterations for the solution to converge in Gauss Seidalโ€™s

method are much less than Gauss Jacobiโ€™s method.

Exercise 5A

1. Find the real root of the equation ๐‘ฅ3 โˆ’ 2๐‘ฅ โˆ’ 5 = 0 correct to three decimal

places using Bisection method.

2. Perform three iterations to find root of the equation ๐‘ฅ๐‘’๐‘ฅ โˆ’ cos ๐‘ฅ = 0 using

Regula-Falsi method.

3. Find the real root of the equation ๐‘ฅ3 โˆ’ 3๐‘ฅ โˆ’ 5 = 0 correct to three decimal

places using Newton- Raphson method.

4. Solve the system of equations:

10๐‘ฅ1 โˆ’ 2๐‘ฅ2 โˆ’ ๐‘ฅ3 โˆ’ ๐‘ฅ4 = 3

2๐‘ฅ1 โˆ’ 10๐‘ฅ2 + ๐‘ฅ3 + ๐‘ฅ4 = โˆ’15

๐‘ฅ1 + ๐‘ฅ2 โˆ’ 10๐‘ฅ3 + 2๐‘ฅ4 = โˆ’27

๐‘ฅ1 + ๐‘ฅ2 + 2๐‘ฅ3 โˆ’ 10๐‘ฅ4 = 9 using Gauss- Jacobi method. Compute results for 2 iterations.

5. Solve the system of equations given in Q4 upto 2 iterations, using Gauss-

Seidal method.

Page 22: Numerical Solutions of Algebraic and Transcendental Equationsย ยท Intermediate Value Theorem: If is a continuous function in a closed interval , and & are having opposite signs, then

Page | 22

Answers

1. 2.0944

2. 0.494015

3. 2.279

4. ๐‘ฅ1 = 0.78, ๐‘ฅ2 = 1.74, ๐‘ฅ3 = 2.7, ๐‘ฅ4 = โˆ’0.18 taking initial

approximations as zero.

5. ๐‘ฅ1 = 0.8869, ๐‘ฅ2 = 1.9523, ๐‘ฅ3 = 2.9566, ๐‘ฅ4 = โˆ’0.0248 taking

initial approximations as zero.