Question Statement
Find the root of the equation x2+4sin(x)=0 correct to three decimal places using the Newton-Raphson method, starting with the initial approximation x0=2.
Background and Explanation
The Newton-Raphson method is an iterative technique for finding successively better approximations to the roots of a real-valued function. It requires the function f(x) and its derivative f′(x), converging rapidly when the initial guess is sufficiently close to the true root.
Solution
The Newton-Raphson formula is given by:
xn+1=xn−f′(xn)f(xn)
where f′(xn)=0 and n=0,1,2,…
Given the function:
f(x)=x2+4sinx
Differentiate with respect to x:
f′(x)=2x+4cosx
Therefore:
f(xn)=xn2+4sinxn
f′(xn)=2xn+4cosxn
Substituting into the Newton-Raphson formula:
xn+1xn+1=xn−2xn+4cosxnxn2+4sinxn=2xn+4cosxnxn(2xn+4cosxn)−(xn2+4sinxn)=2xn+4cosxn2xn2+4xncosxn−xn2−4sinxn=2xn+4cosxnxn2+4(xncosxn−sinxn)
Put n=0 in equation (i):
x1=2x0+4cosx0x02+4(x0cosx0−sinx0)=2(2)+4cos222+4(2cos2−sin2)
⇒x1=−1.2702
Put n=1 in equation (i):
x2=2x1+4cosx1x1+4(x1cosx1−sinx1)=2(−1.2702)+4cos(−1.2702)(−1.2702)2+4((−1.2702)cos(−1.2702)−sin(−1.2702))
⇒x2=−2.8981
Put n=2 in equation (i):
x3=2x2+4cosx2x22+4(x2cosx2−sinx2)=2(−2.8981)+4cos(−2.8981)(−2.8981)2+4((−2.8981)cos(−2.8981)−sin(−2.8981))
⇒x3=−2.1299
Put n=3 in equation (i):
x4=2x3+4cosx3x32+4(x3cosx3−sinx3)
=2(−2.1299)+4cos(−2.1299)(−2.1299)2+4((−2.1299)cos(−2.1299)−sin(−2.1299))
⇒x4=−1.9504
Put n=4 in equation (i):
x5=2x4+4cosx4x42+4(x4cosx4−sinx4)=2(−1.9504)+4cos(−1.9504)(−1.9504)2+4((−1.9504)cos(−1.9504)−sin(−1.9504))
⇒x5=−1.9339
Put n=5 in equation (i):
x6=2x5+4cosx5x52+4(x5cosx5−sinx5)
=2(−1.9339)+4cos(−1.9339)(−1.9339)2+4((−1.9339)cos(−1.9339)−sin(−1.9339))
⇒x6=−1.9337
Upto three decimal places, the values of x5 and x6 are the same (−1.933).
Hence, correct upto three decimal places, the root of the equation is −1.933.
- Newton-Raphson Iteration Formula: xn+1=xn−f′(xn)f(xn)
- Function: f(x)=x2+4sinx
- Derivative: f′(x)=2x+4cosx
- Simplified Iteration Formula: xn+1=2xn+4cosxnxn2+4(xncosxn−sinxn)
Summary of Steps
- Define the function f(x)=x2+4sinx and find its derivative f′(x)=2x+4cosx.
- Set up the iteration formula by substituting f(xn) and f′(xn) into the Newton-Raphson equation.
- Simplify the formula to obtain xn+1=2xn+4cosxnxn2+4(xncosxn−sinxn).
- Start with initial guess x0=2 and calculate successive approximations:
- x1=−1.2702
- x2=−2.8981
- x3=−2.1299
- x4=−1.9504
- x5=−1.9339
- x6=−1.9337
- Check for convergence: When x5 and x6 agree to three decimal places (−1.933), stop the iteration.
- State the final answer: The root is −1.933 (to three decimal places).