Formula:-
x =
xn – f(xn)
f '(xn')
Ques.1:-
x2 –
5x + 2
f(x) = x2 – 5x +
2
f '(x) = 2x – 5
x0 = 0 – 0 + 2 = 2
(+ ve)
x1 = 1 – 5 + 2 = -4 +2 = - 2 (-
ve)
so a root of f(x)=0
, lies b/w 0 and 1.
So, the mid value in 0
and 1 is 0.5
So,
x0 =
0.5
1st
x1 = x0 – f(x0)
f '(x0)
= 0.5 – (0.5)2 – 5(0.5)
+ 2
2(0.5) – 5
[x1 = 0.4375]
2nd
x2 = x1 – f(x1)
f '(x1)
= 0.4375 – (0.4375)2 –
5(0.4375) + 2
2(0.4375) – 5
=0.4375 – 0.191406 –
2.1875 + 2
0.875 – 5
=0.4375 – 0.0039
-4.125
=0.437 + 0.00094
[x2= 0.4379]
Clearly, x1 = x2 .
Hence the required root is 0.437
No comments:
Post a Comment