Ders
Ders
(p − p0 )2 00
f (p) = f (p0 ) + (p − p0 )f 0 (p0 ) + f (ξ (p))
2
where ξ(p) lies between p and p0 . Since f (p) = 0, this equation gives
(p − p0 )2 00
0 = f (p0 ) + (p − p0 )f 0 (p0 ) + f (ξ (p))
2
Since |p − p0 | is small, the term involving (p − p0 )2 is much smaller, so
0 ≈ f (p0 ) + (p − p0 )f 0 (p0 )
f (pn−1 )
pn = pn−1 − for n ≥ 1
f 0 (pn−1 )
1
Similarly, we have f 0 ( 72 ) = 7, f ( 72 ) = 25
4 and
f (p1 )
p2 = p1 −
f 0 (p1 )
7 f(7)
= − 0 27
2 f (2)
= 2.6071
Finally,
f (p2 )
p3 = p2 −
f 0 (p2 )
f (2.6071)
= 2.6071 − 0
f (2.6071)
0.7970
= 2.6071 −
5.2142
= 2.4542
√ √
NOTE: Exact solution is x2 − 6 = 0 ⇒ x1 = − 6 and x2 = 6 ≈
2.4494897
f (x) − f (pn−1 )
f 0 (pn−1 ) = lim
x→pn−1 x − pn−1
2
Using this approximation for f 0 (pn−1 ) in Newton’s formula gives
This gives
f (p1 )(p1 − p0 )
p2 = p1 −
f (p1 ) − f (p0 )
Since f (p1 ) = f (2) = −2 and f (p0 ) = f (3) = 3, we have
−2(−1)
p2 = 2 − = 2.4
−5
Similarly, f (p2 ) = f (2.4) = −0.24 and
f (p2 )(p2 − p1 )
p3 = p2 −
f (p2 ) − f (p1 )
(−0.24) (0.4)
= 2.4 −
−0.24 + 2
0.096
= 2.4 +
1.76
= 2.4545