Lecture 4
Lecture 4
Numerical Methods
[MA-200]
Newton-Raphson Method
Newton-Raphson Method
Derivation of Newton’s Method
Newton's Method
Algorithm for Newton Method
Step 1: Evaluate 𝑓 ′ 𝑥
𝑓(𝑥𝑖 )
𝑥𝑖+1 = 𝑥𝑖 −
𝑓 ′ 𝑥𝑖
𝑥𝑖+1 − 𝑥𝑖
𝑅. 𝐸 = , 𝐴. 𝐸 = 𝑥𝑖+1 − 𝑥𝑖
𝑥𝑖
Example:
Find a root of the equation f(x)= 𝒙𝟐 -2 by using Newton Raphson Method, by
initial guess 𝒙𝟎 = 𝟏.
Solution:
Let
𝑓 𝑥 = 𝑥2 − 2
𝑓′ 𝑥 = 2𝑥
𝑥0 = 1
𝑓 𝑥𝑖
𝑥𝑖+1 = 𝑥𝑖 − ′
𝑓 𝑥𝑖
1st Iteration:
At i=0
𝑓(𝑥0 )
𝑥1 = 𝑥0 − ′
𝑓 𝑥0
𝑥0 = 1
𝑓 𝑥0 = 𝑥02 − 2 = −1
𝑓 ′ (𝑥0 ) = 2𝑥0 = 2
Cont.
(−1)
𝑥1 = 1 −
2
𝑥1 = 1.5
2nd Iteration:
At, i=1
𝑓(𝑥1 )
𝑥2 = 𝑥1 − ′
𝑓 𝑥1
𝑥1 = 1.5
𝑓 𝑥1 = 𝑥12 − 2 = 0.25
𝑓 ′ (𝑥1 ) = 2𝑥1 = 3
(0.25)
𝑥2 = 1.5 −
3
𝑥2 = 1.4167
Cont.
3rd Iteration:
At, i=2
𝑥2 = 1.4167
𝑓 𝑥2 = 𝑥22 − 2 = 0.0069
𝑓 ′ (𝑥2 ) = 2𝑥2 = 2.8333
(0.0069)
𝑥3 = 1.4167 −
2.8333
𝑥3 = 1.4142
4th Iteration:
At i=3
𝑥3 = 1.4142
𝑓 𝑥3 = 𝑥32 − 2 = 0
𝑓 ′ 𝑥3 = 2𝑥3 = 2.8284
Cont.
(0)
𝑥4 = 1.4142 −
2.8284
𝑥4 = 1.4142
Absolute Error:
n=1, 𝑥1+1 − 𝑥1 = 𝑥2 − 𝑥1 = 1.4167 − 1.5 = 0.0833
n=2, 𝑥2+1 − 𝑥2 = 𝑥3 − 𝑥2 = 1.4142 − 1.4167 = 0.0025
n=3, 𝑥3+1 − 𝑥3 = 𝑥4 − 𝑥3 = 1.4142 − 1.4142 = 0
Advantages of Newton Method
• Fast convergence: It converges fast, if it converges. Which means, in
most cases we get root (answer) in less number of steps.
• Root jumping might take place thereby not getting intended solution.
Exercise 2.3
Q1, Q2, Q5, Q6, Q11, Q12, Q13(c), Q15, Q16, Q18
Exercise 2.4
Q1 and Q2
END OF SECTION