← 2017 Paper 2
UPSC 2017 Maths Optional Paper 2 Q6b — Step-by-Step Solution
15 marks · Section B
Lagrange's interpolation · Numerical Analysis · asked 5× in 13 yrs · Read the full method →
Question
For given equidistant values u−1,u0,u1 and u2, a value is interpolated by Lagrange’s formula. Show that it may be written in the form
ux=yu0+xu1+3!y(y2−1)Δ2u−1+3!x(x2−1)Δ2u0,
where x+y=1.
Technique
Write Lagrange’s 4-node formula explicitly, substitute Δ2u−1,Δ2u0 into the target form, and match the coefficient of each ui to the corresponding Li(x) using y=1−x.
Solution
Setup. Four equidistant nodes at arguments −1,0,1,2 with values u−1,u0,u1,u2. We interpolate at the point with argument x (measured in units of the spacing, from u0), and write y=1−x so that x+y=1. Recall the forward differences
Δ2u−1=u1−2u0+u−1,Δ2u0=u2−2u1+u0.
With nodes −1,0,1,2, Lagrange’s interpolation polynomial at argument x is
ux=i∑uiLi(x),
L−1=(−1)(−2)(−3)x(x−1)(x−2)=−6x(x−1)(x−2),
L0=(1)(−1)(−2)(x+1)(x−1)(x−2)=2(x+1)(x−1)(x−2),
L1=(2)(1)(−1)(x+1)x(x−2)=−2(x+1)x(x−2),
L2=(3)(2)(1)(x+1)x(x−1)=6(x+1)x(x−1).
Step 2 — Regroup into the difference combination
We must show
ux=yu0+xu1+6y(y2−1)(u1−2u0+u−1)+6x(x2−1)(u2−2u1+u0),
with y=1−x. Substitute the differences and collect the coefficient of each ui on the right-hand side:
Coefficient of u−1: 6y(y2−1). With y=1−x, y2−1=(y−1)(y+1)=(−x)(2−x), so 6y(y2−1)=6(1−x)(−x)(2−x)=−6x(x−1)(x−2)=L−1. ✓
Coefficient of u2: 6x(x2−1)=6x(x−1)(x+1)=L2. ✓
Coefficient of u0: y−2⋅6y(y2−1)+6x(x2−1). Substituting y=1−x and simplifying gives exactly L0=2(x+1)(x−1)(x−2). ✓
Coefficient of u1: x+6y(y2−1)−2⋅6x(x2−1). Simplifying gives exactly L1=−2(x+1)x(x−2). ✓
Since the coefficient of each of u−1,u0,u1,u2 matches the corresponding Lagrange coefficient Li(x), the two expressions for ux are identical.
Step 3 — Result
Answer
ux=yu0+xu1+3!y(y2−1)Δ2u−1+3!x(x2−1)Δ2u0,x+y=1.