← 2020 Paper 2

UPSC 2020 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

Show that the equation f(x)=cosπ(x+1)8+0.148x0.9062=0f(x)=\cos\frac{\pi(x+1)}{8}+0.148x-0.9062=0 has one root in the interval (1,0)(-1,0) and one in (0,1)(0,1). Calculate the negative root correct to four decimal places using Newton–Raphson method.

Technique

IVT for existence (sign changes at 1,0,1-1,0,1); Newton–Raphson xn+1=xnf/fx_{n+1}=x_n-f/f' for the negative root.

Solution

Step 1 — Existence of the two roots (sign changes)

f(x)=cosπ(x+1)8+0.148x0.9062.f(x)=\cos\frac{\pi(x+1)}{8}+0.148x-0.9062.

Evaluate at the endpoints:

Since ff is continuous,

f(1)<0, f(0)>0  a root in (1,0);f(0)>0, f(1)<0  a root in (0,1).f(-1)<0,\ f(0)>0\ \Rightarrow\ \text{a root in }(-1,0);\qquad f(0)>0,\ f(1)<0\ \Rightarrow\ \text{a root in }(0,1).

By the Intermediate Value Theorem there is at least one root in each interval. \blacksquare

Step 2 — Newton–Raphson setup for the negative root

f(x)=π8sinπ(x+1)8+0.148,xn+1=xnf(xn)f(xn).f'(x)=-\frac{\pi}{8}\sin\frac{\pi(x+1)}{8}+0.148,\qquad x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)}.

Take x0=0.5x_0=-0.5 (interior of (1,0)(-1,0)).

Step 3 — Iterations

Working to 6 decimals (angle θn=π(xn+1)8\theta_n=\tfrac{\pi(x_n+1)}{8}):

nnxnx_nf(xn)f(x_n)f(xn)f'(x_n)xn+1x_{n+1}
00.500000-0.500000+0.000585+0.0005850.0713880.0713880.508199-0.508199
10.508199-0.5081990.000005-0.0000050.0726290.0726290.508129-0.508129
20.508129-0.5081290\approx 00.0726180.0726180.508129-0.508129

The iterate is stable from n=2n=2:

x0.508129 (to 6 d.p.).x\to -0.508129\ (\text{to 6 d.p.}).

(Convergence is quadratic: starting at x0=0.5x_0=-0.5 the value is correct to 4 d.p. after a single step.)

Answer

  xneg0.5081  \boxed{\;x_{\text{neg}}\approx -0.5081\;}
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.