← 2014 Paper 2
UPSC 2014 Maths Optional Paper 2 Q5b — Step-by-Step Solution
10 marks · Section B
Newton-Raphson method (convergence, geometric meaning) · Numerical Analysis · asked 6× in 13 yrs · Read the full method →
Question
Apply Newton–Raphson method to determine a root of the equation cosx−xex=0 correct up to four decimal places.
Technique
Standard Newton–Raphson; quadratic convergence near simple root.
Solution
Setup. f(x)=cosx−xex. f′(x)=−sinx−(1+x)ex.
Newton iteration: xn+1=xn−f(xn)/f′(xn).
Step 1 — Bracket the root
f(0)=cos0−0=1>0.
f(1)=cos1−e≈0.5403−2.7183=−2.178<0.
Root in (0,1). Refine: f(0.5)=cos0.5−0.5e0.5≈0.8776−0.8244=0.0532>0.
Root in (0.5,1). Start with x0=0.5.
Step 2 — Iterations
Iteration 1. f(0.5)=0.05322, f′(0.5)=−sin0.5−1.5e0.5≈−0.4794−2.4731=−2.9525.
x1=0.5−−2.95250.05322=0.5+0.01803=0.51803.
Iteration 2. cos(0.51803)≈0.86880, e0.51803≈1.67872, 0.51803⋅1.67872≈0.86961.
f(x1)≈0.86880−0.86961=−0.00081.
sin(0.51803)≈0.49524, f′(x1)≈−0.49524−1.51803⋅1.67872≈−3.04358.
x2=0.51803−−3.04358−0.00081=0.51803−0.00027=0.51776.
Iteration 3. Approximate f(0.51776)≈0.00000 (very small). Quadratic convergence has kicked in.
| n | xn |
|---|
| 0 | 0.5000 |
| 1 | 0.51803 |
| 2 | 0.51776 |
| 3 | ≈0.51776 |
Successive iterates agree to 4 decimal places after iteration 2.
Answer
Root≈0.5178.