Question #60838

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 .
1

Expert's answer

2016-07-20T08:49:03-0400

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=xnf(xn)f(xn)x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}


Write the equation in the form f(x)=0f(x) = 0:


xlog10x4.772393=0x \log_{10} x - 4.772393 = 0


Firstly find f(x)f'(x):


f(x)=log10x+1ln10f'(x) = \log_{10} x + \frac{1}{\ln 10}


Let's do the first approximation:


f(x0)=6log1064.772393=0.103485f(x_0) = 6 \cdot \log_{10} 6 - 4.772393 = -0.103485f(x0)=1.212446f'(x_0) = 1.212446x1=x0f(x0)f(x0)=60.1034851.212446=6.085352x_1 = x_0 - \frac{f(x_0)}{f'(x_0)} = 6 - \frac{-0.103485}{1.212446} = 6.085352


Then do the second approximation:


f(x0)=6.085352log106.0853524.772393=0.000262f(x_0) = 6.085352 \cdot \log_{10} 6.085352 - 4.772393 = 0.000262f(x0)=1.21858f'(x_0) = 1.21858x2=x1f(x1)f(x1)=6.0853520.0002621.21858=6.085136x_2 = x_1 - \frac{f(x_1)}{f'(x_1)} = 6.085352 - \frac{0.000262}{1.21858} = 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.085x = 6.085.

ii) In the second case we have


f(x)=x2sinxf(x) = x - 2 \sin x


Similarly do all the operations like in the first one.

Find f(x)f'(x):


f(x)=12cosxf'(x) = 1 - 2 \cos x


First approximation:


f(x0)=f(2)=22sin2=0.181405f(x_0) = f(2) = 2 - 2 \sin 2 = 0.181405f(x0)=12cos2=1.832294f'(x_0) = 1 - 2 \cos 2 = 1.832294x1=x0f(x0)f(x0)=20.1814051.832294=1.900996x_1 = x_0 - \frac{f(x_0)}{f'(x_0)} = 2 - \frac{0.181405}{1.832294} = 1.900996


Second approximation:


f(x1)=1.9009962sin1.900996=0.009041f(x_1) = 1.900996 - 2 \cdot \sin 1.900996 = 0.009041f(x1)=12cos1.900996=1.648464f'(x_1) = 1 - 2 \cdot \cos 1.900996 = 1.648464x2=x1f(x1)f(x1)=1.9009960.0090411.648464=1.895511x_2 = x_1 - \frac{f(x_1)}{f'(x_1)} = 1.900996 - \frac{0.009041}{1.648464} = 1.895511


Third approximation:


f(x2)=1.8955112sin1.895511=0.000027f(x_2) = 1.895511 - 2 \cdot \sin 1.895511 = 0.000027f(x2)=12cos1.895511=1.638077f'(x_2) = 1 - 2 \cdot \cos 1.895511 = 1.638077x3=x2f(x2)f(x2)=1.8955110.0000271.638077=1.895495x_3 = x_2 - \frac{f(x_2)}{f'(x_2)} = 1.895511 - \frac{0.000027}{1.638077} = 1.895495


After three approximations we estimate the answer to three places of decimals.

Answer: x=1.895x = 1.895.

www.AssignmentgExpert.com


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS