← 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 cosxxex=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)=cosxxexf(x)=\cos x-xe^{x}. f(x)=sinx(1+x)exf'(x)=-\sin x-(1+x)e^{x}.

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

Step 1 — Bracket the root

f(0)=cos00=1>0f(0)=\cos 0-0=1>0. f(1)=cos1e0.54032.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)=cos0.50.5e0.50.87760.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)=sin0.51.5e0.50.47942.4731=2.9525f'(0.5)=-\sin 0.5-1.5\,e^{0.5}\approx -0.4794-2.4731=-2.9525.

x1=0.50.053222.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.518031.67872e^{0.51803}\approx 1.67872, 0.518031.678720.869610.51803\cdot 1.67872\approx 0.86961.

f(x1)0.868800.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.495241.518031.678723.04358f'(x_1)\approx -0.49524-1.51803\cdot 1.67872\approx -3.04358.

x2=0.518030.000813.04358=0.518030.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
30.51776\approx 0.51776

Successive iterates agree to 4 decimal places after iteration 2.

Answer

  Root0.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 — 13 years, mapped. Get the take-away PDF free.