Question Statement
(a) Find the root of the equation x=cosx in the interval [0,1] correct to two decimal places using the Regula Falsi method.
(b) Using Newton's Raphson method, find a root correct to three decimal places with an initial guess of x0=2.
Background and Explanation
The Regula Falsi method (False Position method) is a bracketing numerical technique that uses linear interpolation to approximate the root of an equation f(x)=0 within an interval [a,b] where the function changes sign. It successively narrows the interval containing the root.
Solution
We begin by rewriting the equation x=cosx in standard form:
x−cosx=0
Define the function:
f(x)=x−cosx
Step 1: Verify the root exists in [0,1]
Evaluate the function at the endpoints to check for a sign change:
f(x)=x−cosxf(0)=0−cos0=−1<0f(1)=1−cos1=0.4597>0
Since f(0)<0 and f(1)>0, the root lies between 0 and 1.
Step 2: Apply the Regula Falsi formula
The Regula Falsi formula for finding the next approximation is:
x=f(b)−f(a)af(b)−bf(a)
First iteration on the interval [0,1]:
x0=f(1)−f(0)0⋅f(1)−1⋅f(0)=0.4597−(−1)0−(−1)=0.6851
Evaluate f(x0):
f(x0)=f(0.6851)=0.6851−cos(0.6851)=−0.0893<0
Since f(0.6851)<0 and f(1)>0, the updated interval is [0.6851,1].
Second iteration on the interval [0.6851,1]:
x1=f(1)−f(0.6851)0.6851⋅f(1)−1⋅f(0.6851)=0.4597−(−0.0893)0.6851(0.4597)−(−0.0873)=0.7363
Evaluate f(x1):
f(x1)=f(0.7363)=0.7363−cos(0.7363)=−0.0047<0
The updated interval is [0.7363,1].
Third iteration on the interval [0.7363,1]:
x2=f(1)−f(0.7363)0.7363⋅f(1)−1⋅f(0.7363)=0.4597−(−0.0047)0.7363(0.4597)−(−0.0047)=0.7390
Conclusion:
Up to two decimal places, the values of x1 and x2 are the same. Hence, correct up to two decimal places, the root of the equation is 0.73.
Note: The solution steps for this part were not provided in the source data. The problem requires finding a root of the equation correct to three decimal places using Newton's Raphson method with an initial approximation x0=2.
- Regula Falsi (False Position) Formula: x=f(b)−f(a)af(b)−bf(a)
- Intermediate Value Theorem: Used to confirm that a root exists in [0,1] since f(0)⋅f(1)<0
- Newton-Raphson Formula: xn+1=xn−f′(xn)f(xn) (applicable for Part b, where f′(x)=1+sinx for the given equation)
Summary of Steps
- Define f(x)=x−cosx and verify f(0)=−1<0 and f(1)≈0.4597>0
- Apply Regula Falsi to [0,1] to obtain x0≈0.6851
- Check sign of f(0.6851)≈−0.0893 and update interval to [0.6851,1]
- Apply Regula Falsi again to get x1≈0.7363
- Check sign of f(0.7363)≈−0.0047 and update interval to [0.7363,1]
- Apply Regula Falsi third time to get x2≈0.7390
- Verify that x1≈0.74 and x2≈0.74 agree to two decimal places
- Conclude that the root is 0.73 (or 0.739) correct to two decimal places