← 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 7× in 14 yrs · Read the full method →

Question

Apply Newton–Raphson method to determine a root of the equation cos⁡x−xex=0\cos x-xe^{x}=0 correct up to four decimal places.

Technique

Standard Newton–Raphson; quadratic convergence near simple root.

Solution

Setup. f(x)=cos⁡x−xexf(x)=\cos x-xe^{x}. f′(x)=−sin⁡x−(1+x)exf'(x)=-\sin x-(1+x)e^{x}.

Newton iteration: xn+1=xn−f(xn)/f′(xn)x_{n+1}=x_n-f(x_n)/f'(x_n).

Step 1 — Bracket the root

f(0)=cos⁡0−0=1>0f(0)=\cos 0-0=1>0. f(1)=cos⁡1−e≈0.5403−2.7183=−2.178<0f(1)=\cos 1-e\approx 0.5403-2.7183=-2.178<0.

Root in (0,1)(0,1). Refine: f(0.5)=cos⁡0.5−0.5 e0.5≈0.8776−0.8244=0.0532>0f(0.5)=\cos 0.5-0.5\,e^{0.5}\approx 0.8776-0.8244=0.0532>0.

Root in (0.5,1)(0.5,1). Start with x0=0.5x_0=0.5.

Step 2 — Iterations

Iteration 1. f(0.5)=0.05322f(0.5)=0.05322, f′(0.5)=−sin⁡0.5−1.5 e0.5≈−0.4794−2.4731=−2.9525f'(0.5)=-\sin 0.5-1.5\,e^{0.5}\approx -0.4794-2.4731=-2.9525.

x1=0.5−0.05322−2.9525=0.5+0.01803=0.51803.x_1=0.5-\dfrac{0.05322}{-2.9525}=0.5+0.01803=0.51803.

Iteration 2. cos⁡(0.51803)≈0.86880\cos(0.51803)\approx 0.86880, e0.51803≈1.67872e^{0.51803}\approx 1.67872, 0.51803⋅1.67872≈0.869610.51803\cdot 1.67872\approx 0.86961.

f(x1)≈0.86880−0.86961=−0.00081f(x_1)\approx 0.86880-0.86961=-0.00081.

sin⁡(0.51803)≈0.49524\sin(0.51803)\approx 0.49524, f′(x1)≈−0.49524−1.51803⋅1.67872≈−3.04358f'(x_1)\approx -0.49524-1.51803\cdot 1.67872\approx -3.04358.

x2=0.51803−−0.00081−3.04358=0.51803−0.00027=0.51776.x_2=0.51803-\dfrac{-0.00081}{-3.04358}=0.51803-0.00027=0.51776.

Iteration 3. Approximate f(0.51776)≈0.00000f(0.51776)\approx 0.00000 (very small). Quadratic convergence has kicked in.

nnxnx_n
00.50000.5000
10.518030.51803
20.517760.51776
3≈0.51776\approx 0.51776

Successive iterates agree to 4 decimal places after iteration 2.

Answer

  Root≈0.5178.  \boxed{\;\text{Root}\approx 0.5178.\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 14 years, mapped. Get the take-away PDF free.