Question
Question: What is the value of \(\sqrt {12} \) by Newton- Raphson’s method after the first iteration?...
What is the value of 12 by Newton- Raphson’s method after the first iteration?
Solution
We know that Newton- Raphson is a root finding algorithm which produces successively better approximations for roots or zero of real valued functions. We know that the iterative equation of Newton Raphson method is xn+1=xn−f′(xn)f(xn). We should know that the first iteration is x0, thus the formula is x1=x0−f′(x0)f(x0).
Complete step by step solution:
Here we have to find the value of 12 by Newton- Raphson’s method after the first iteration.
Let us assume x=12. By squaring both the sides we have x2=(12)2.
So we have x2=12. By taking the constant term to the left side of the equation we have
x2−12=0.
Now the formula of the iterative equation of Newton Raphson method is xn+1=xn−f′(xn)f(xn).
If f(x)=x2−12, then we need the derivative so we have f′(x)=2x.
We will substitute f(x)=x2−12 in the formula, and it can be written as xn+1=xn−2xnf(x2n−12).
Now we have to find the first iteration i.e. n=0, so we have x1=x0−2x0f(x20−12)=2x0x02+12.
We know that 3<12<4 or it can be written as 9<12<16.
From this our first iteration i.e. x0=3. By putting this in the formula we have 2×332+12=69+12.
It gives us the value 3.5.
Now we put 3.5 in the equation i.e. x1=3.5−2×3.5(3.5)2−12.
On simplifying we have 3.5−712.25−12⇒3.5−0.0357=3.4643.
Hence the required value is x1=3.4643.
Note:
We should note that the formula of first iteration is x1=x0−2x0x02−A=2x0x02+A, so if we have a guess x0. We can get the more accurate value by calculating 2x0x02+A, where A is the number which square root we are trying to find as we did in the above solution. We should know that x0 is our initial guess and x1 is a more accurate one.