Professional Documents
Culture Documents
CE 223 Lesson - Newton-Raphson Method
CE 223 Lesson - Newton-Raphson Method
CE 223
BY ENGR. JUNNIE O. RASCO
Newton-Raphson Method
History
Isaac Newton (1643-1727)
𝑓 𝑥𝑛 − 0
𝑓′ 𝑥𝑛 =
𝑥𝑛 − 𝑥𝑛+1
𝑓 𝑥𝑛
𝑥𝑛 − 𝑥𝑛+1 = ′
𝑓 𝑥𝑛
𝑓(𝑥𝑛 )
𝑥𝑛+1 = 𝑥𝑛 −
𝑓′(𝑥𝑛 )
Newton-Raphson Method
The basic idea behind the Newton-Raphson method is to start with
an initial guess for the root of the equation and then iteratively
refine that guess to get closer and closer to the actual root. Here's
how it works:
Solution:
Assume an interval to check for the possible location of the root.
Say, [0,1]
𝑓 0 =2 0 3 + 0 2 − 1 = −1
𝑓 1 =2 1 3 + 1 2 −1 =2 The sign of the value of f(x) changed,
therefore, the root lies on the interval
Newton-Raphson Method
The process is repeated until the difference between consecutive
guesses (xn+1and xn) becomes very small, indicating that you're
getting close to the root.
Let x0=1
1st iteration
.75 − 1
% 𝑒𝑟𝑟𝑜𝑟 = ∗ 100 = 33.33%
.75
𝑓 𝑥0
𝑥1 = 𝑥0 −
𝑓′ 𝑥0
2 1 3+ 1 2 −1
𝑥1 = 1 − 2
= .75
6 1 +2 1
Newton-Raphson Method
2nd iteration
𝑓 𝑥1 2
𝑥2 = 𝑥1 − 3 − .75
𝑓′ 𝑥1 % 𝑒𝑟𝑟𝑜𝑟 = ∗ 100 = 12.5%
2
3
2 .75 3 + .75 2 − 1 2
𝑥2 = .75 − 2
=
6 .75 + 2 .75 3
3rd iteration
𝑓 𝑥2
𝑥3 = 𝑥2 −
𝑓′ 𝑥2 2
. 6574 − 3
3 2 % 𝑒𝑟𝑟𝑜𝑟 = ∗ 100 = 1.41%
2 2 .6574
2 2 3 + 3 −1
𝑥3 = − 2 = 0.6574
3 2 2
6 3 +2 3
Newton-Raphson Method
4th iteration
𝑓 𝑥3
𝑥4 = 𝑥3 −
𝑓′ 𝑥3
2 0.6574 3 + 0.6574 2 − 1
𝑥4 = 0.6574 − 2
= 0.6573
6 0.6574 + 2 0.6574
.6573 − .6574
% 𝑒𝑟𝑟𝑜𝑟 = ∗ 100 = 0.02%
.6573
Newton-Raphson Method
Assignment
Part 1
Newton-Raphson Method
The equation 𝑒 𝑥 + 𝑥 − 4 = 0 has exactly one root. Find its solution,
accurate to four decimal places using Newton-Raphson Method.
Solution:
Assume an interval to check for the possible location of the root.
Say, [1,2]
Newton-Raphson Method
Newton-Raphson Method
3𝑅 − ℎ 𝜋ℎ 3
𝑉 = 𝜋ℎ2 𝑉 = 𝜋𝑅ℎ2 −
3 3
3
𝜋ℎ
30 = 3𝜋ℎ2 − 90 = 9𝜋ℎ2 − 𝜋ℎ3 𝑓 ℎ = 𝜋ℎ3 − 9𝜋ℎ2 + 90
3
Solution:
Assume an interval to check for the possible location of the root.
Say, [8,9]
The sign of the value of f(x)
𝑓 8 = 𝜋(8)3 −9𝜋 8 2
+ 90 = −111.06 changed, therefore, the root
𝑓 9 = 𝜋(9)3 −9𝜋 9 2 + 90 = 90 lies on the interval
Newton-Raphson Method
𝑓 ℎ = 𝜋ℎ3 − 9𝜋ℎ2 + 90
𝑓′ ℎ = 3𝜋ℎ2 − 18𝜋ℎ
Let h0 = 9
1st iteration
8.6463 − 9
𝑓 ℎ0 % 𝑒𝑟𝑟𝑜𝑟 = ∗ 100 = 4.09%
ℎ1 = ℎ0 − 8.6463
𝑓′ ℎ0
𝜋 9 3 − 9𝜋 9 2 + 90
ℎ1 = 9 − 2
= 8.6463
3𝜋 9 − 18𝜋 9
Newton-Raphson Method
2nd iteration
𝑓 ℎ1 8.6142 − 8.6463
ℎ2 = ℎ1 − % 𝑒𝑟𝑟𝑜𝑟 = ∗ 100 = .37%
𝑓′ ℎ1 8.6142
𝜋 8.6463 3 − 9𝜋 8.6463 2 + 90
ℎ2 = 8.6463 − 2
= 8.6142
3𝜋 8.6463 − 18𝜋 8.6463
𝜋 8.6142 3 − 9𝜋 8.6142 2 + 90
ℎ3 = 8.6142 − 2
= 8.6139
3𝜋 8.6142 − 18𝜋 8.6142
Newton-Raphson Method
Assignment
Part 2
Newton-Raphson Method
3𝑅 − ℎ 𝜋ℎ 3
𝑉 = 𝜋ℎ2 𝑉 = 𝜋𝑅ℎ2 −
3 3
3
𝜋ℎ
30 = 3𝜋ℎ2 − 90 = 9𝜋ℎ2 − 𝜋ℎ3 𝑓 ℎ = 𝜋ℎ3 − 9𝜋ℎ2 + 90
3
Solution:
Assume an interval to check for the possible location of the root.
Say, [1,3]
Newton-Raphson Method
Practical Applications
1. Rapid Convergence
2. Accurate results when a good initial guess is available
3. Efficiency and Versatility
Newton-Raphson Method
Disadvantages of the Method