Answer on Question #60838 – Math – Algorithms | Quantitative Methods
Question
2. a) Find by Newton's method the roots of the following equations correct to three places of decimals.
i) log .4 772393 x 10 x = near x = 6 .
ii) f (x) = x - 2sin x near x = 2 .
Solution
i) By Newton's method
xn+1=xn−f′(xn)f(xn)
Write the equation in the form f(x)=0:
xlog10x−4.772393=0
Firstly find f′(x):
f′(x)=log10x+ln101
Let's do the first approximation:
f(x0)=6⋅log106−4.772393=−0.103485f′(x0)=1.212446x1=x0−f′(x0)f(x0)=6−1.212446−0.103485=6.085352
Then do the second approximation:
f(x0)=6.085352⋅log106.085352−4.772393=0.000262f′(x0)=1.21858x2=x1−f′(x1)f(x1)=6.085352−1.218580.000262=6.085136
We see that after this approximation first three digits didn't change, so we've got it to three decimal places.
Answer: x=6.085.
ii) In the second case we have
f(x)=x−2sinx
Similarly do all the operations like in the first one.
Find f′(x):
f′(x)=1−2cosx
First approximation:
f(x0)=f(2)=2−2sin2=0.181405f′(x0)=1−2cos2=1.832294x1=x0−f′(x0)f(x0)=2−1.8322940.181405=1.900996
Second approximation:
f(x1)=1.900996−2⋅sin1.900996=0.009041f′(x1)=1−2⋅cos1.900996=1.648464x2=x1−f′(x1)f(x1)=1.900996−1.6484640.009041=1.895511
Third approximation:
f(x2)=1.895511−2⋅sin1.895511=0.000027f′(x2)=1−2⋅cos1.895511=1.638077x3=x2−f′(x2)f(x2)=1.895511−1.6380770.000027=1.895495
After three approximations we estimate the answer to three places of decimals.
Answer: x=1.895.
www.AssignmentgExpert.com
Comments