← 2020 Paper 2
UPSC 2020 Maths Optional Paper 2 Q8b — Step-by-Step Solution
15 marks · Section B
Lagrange's interpolation · Numerical Analysis · asked 5× in 13 yrs · Read the full method →
Question
Write the three-point Lagrangian interpolating polynomial relative to the points x0, x0+ϵ and x1. Then by taking the limit ϵ→0, establish the relation f(x)=(x1−x0)2(x1−x)(x+x1−2x0)f(x0)+(x1−x0)(x0−x)(x1−x)f′(x0)+(x1−x0)2(x−x0)2f(x1)+E(x) where E(x)=61(x−x0)2(x−x1)f′′′(ξ) is the error function and min(x0,x0+ϵ,x1)<ξ<max(x0,x0+ϵ,x1).
Technique
Lagrange basis on three nodes; Taylor-expand f(x0+ϵ) and take the confluent limit ϵ→0 to obtain the osculatory (Hermite-type) formula; standard divided-difference error with the merged node.
Solution
Step 1 — Three-point Lagrange polynomial on x0,x0+ϵ,x1
P2(x)=ℓ0f(x0)+ℓ1f(x0+ϵ)+ℓ2f(x1),
with
ℓ0=(−ϵ)(x0−x1)(x−x0−ϵ)(x−x1),ℓ1=(ϵ)(x0+ϵ−x1)(x−x0)(x−x1),ℓ2=(x1−x0)(x1−x0−ϵ)(x−x0)(x−x0−ϵ).
Step 2 — Insert the Taylor expansion of f(x0+ϵ)
f(x0+ϵ)=f(x0)+ϵf′(x0)+O(ϵ2).
Group P2 as a coefficient of f(x0) (from ℓ0 and the f(x0) part of ℓ1), of f′(x0) (the ϵf′(x0) part of ℓ1), and of f(x1). The ϵ-singular pieces of ℓ0 and ℓ1 cancel because they multiply the same f(x0), leaving a finite limit as ϵ→0.
Step 3 — Take ϵ→0
Carrying out the limit (the two 1/ϵ terms combine into a derivative of the node factor) gives the confluent (osculatory) formula — interpolation that matches f at x0,x1 and f′ at x0:
f(x)=(x1−x0)2(x1−x)(x+x1−2x0)f(x0)+(x0−x1)(x−x0)(x−x1)f′(x0)+(x1−x0)2(x−x0)2f(x1)+E(x).
f(x)=(x1−x0)2(x1−x)(x+x1−2x0)f(x0)+x0−x1(x−x0)(x−x1)f′(x0)+(x1−x0)2(x−x0)2f(x1)+E(x).
Step 4 — Error term
The three-point interpolation error is
E(x)=3!f′′′(ξ)(x−x0)(x−x0−ϵ)(x−x1).
As ϵ→0 the node factor (x−x0)(x−x0−ϵ)(x−x1)→(x−x0)2(x−x1), so
Answer
E(x)=61(x−x0)2(x−x1)f′′′(ξ),min(x0,x1)<ξ<max(x0,x1).