The math optional, made finite.

← 2025 Paper 2

UPSC Maths 2025 Paper 2 Q7b — Solution

15 marks · Section B

Question

Find the unique polynomial of degree 2 or less which fits the following data: x:0,1,3f(x):1,3,55x : 0, 1, 3 \qquad f(x) : 1, 3, 55 Also obtain the bound on the truncation error.

Technique

Use Newton’s divided-difference interpolation on the three unequally spaced points to get the unique polynomial of degree 2\le 2. The truncation error uses the standard remainder f(x)P2(x)=f(ξ)3!ω(x)f(x) - P_2(x) = \dfrac{f'''(\xi)}{3!}\,\omega(x) with ω(x)=(xx0)(xx1)(xx2)\omega(x) = (x-x_0)(x-x_1)(x-x_2).

Solution

Data points: (x0,f0)=(0,1)(x_0,f_0) = (0,1), (x1,f1)=(1,3)(x_1,f_1) = (1,3), (x2,f2)=(3,55)(x_2,f_2) = (3,55).

Newton’s divided differences

First order: f[x0,x1]=3110=2,f[x1,x2]=55331=522=26.f[x_0,x_1] = \frac{3 - 1}{1 - 0} = 2,\qquad f[x_1,x_2] = \frac{55 - 3}{3 - 1} = \frac{52}{2} = 26. Second order: f[x0,x1,x2]=26230=243=8.f[x_0,x_1,x_2] = \frac{26 - 2}{3 - 0} = \frac{24}{3} = 8.

Newton form

P2(x)=f0+f[x0,x1](xx0)+f[x0,x1,x2](xx0)(xx1).P_2(x) = f_0 + f[x_0,x_1](x - x_0) + f[x_0,x_1,x_2](x - x_0)(x - x_1). P2(x)=1+2(x0)+8(x0)(x1)=1+2x+8x28x.P_2(x) = 1 + 2(x - 0) + 8(x - 0)(x - 1) = 1 + 2x + 8x^2 - 8x. P2(x)=8x26x+1.\boxed{P_2(x) = 8x^2 - 6x + 1.}

Check: P2(0)=1P_2(0)=1, P2(1)=86+1=3P_2(1)=8-6+1=3, P2(3)=7218+1=55P_2(3)=72-18+1=55. ✓

Truncation-error bound

For interpolation at three nodes, the error at a point xx is E(x)=f(x)P2(x)=f(ξ)3!ω(x),ω(x)=x(x1)(x3),E(x) = f(x) - P_2(x) = \frac{f'''(\xi)}{3!}\,\omega(x),\qquad \omega(x) = x(x-1)(x-3), for some ξ\xi in the smallest interval containing {0,1,3,x}\{0,1,3,x\}. Hence E(x)M36ω(x),M3=max[0,3]f(ξ).|E(x)| \le \frac{M_3}{6}\,|\omega(x)|,\qquad M_3 = \max_{[0,3]}|f'''(\xi)|.

To bound ω(x)|\omega(x)| on [0,3][0,3]: ω(x)=3x28x+3=0\omega'(x) = 3x^2 - 8x + 3 = 0 gives x=8±64366=4±73x = \dfrac{8 \pm \sqrt{64-36}}{6} = \dfrac{4 \pm \sqrt7}{3}, i.e. x0.4514,2.2153x \approx 0.4514,\,2.2153. Evaluating: ω(0.4514)0.6311,ω(2.2153)2.1126,|\omega(0.4514)| \approx 0.6311,\qquad |\omega(2.2153)| \approx 2.1126, and ω=0\omega = 0 at the nodes. So max[0,3]ω(x)=ω(2.2153)2.1126(exactly at x=4+73).\max_{[0,3]}|\omega(x)| = |\omega(2.2153)| \approx 2.1126\quad\Big(\text{exactly at } x = \tfrac{4+\sqrt7}{3}\Big).

Therefore the uniform bound on the truncation error over [0,3][0,3] is f(x)P2(x)M36max[0,3]ω(x)M36(2.1126)0.3521M3,M3=max[0,3]f.\boxed{\,|f(x) - P_2(x)| \le \frac{M_3}{6}\,\max_{[0,3]}|\omega(x)| \approx \frac{M_3}{6}(2.1126) \approx 0.3521\,M_3,\quad M_3 = \max_{[0,3]}|f'''|.} (If the underlying ff is itself a polynomial of degree 2\le 2, then f0f''' \equiv 0 and the interpolation is exact.)

Answer

P2(x)=8x26x+1P_2(x) = 8x^2 - 6x + 1. Truncation error E(x)=f(ξ)6x(x1)(x3)E(x) = \dfrac{f'''(\xi)}{6}\,x(x-1)(x-3), bounded on [0,3][0,3] by M36maxω0.3521M3\dfrac{M_3}{6}\max|\omega| \approx 0.3521\,M_3, the maximum of ω|\omega| occurring at x=4+73x = \tfrac{4+\sqrt7}{3}.

We've mapped all 13 years of this exam. Get new solutions, tools, and guides as we release them — free.