Lecture 1a (MA 214) Interpolation Theory: Harsha Hutridurga (Special Thanks To Vrinda Jindal For The Corrections)
Lecture 1a (MA 214) Interpolation Theory: Harsha Hutridurga (Special Thanks To Vrinda Jindal For The Corrections)
Lecture 1a (MA 214) Interpolation Theory: Harsha Hutridurga (Special Thanks To Vrinda Jindal For The Corrections)
interpolation theory
Harsha Hutridurga
(special thanks to vrinda jindal for the corrections)
IIT Bombay
♣ Given with
I n + 1 distinct real points: x0 , x1 , . . . , xn
I real numbers: f0 , f1 , . . . , fn
♣ Find
I a function ψ : R → R such that
ψ(xi ) = fi for i = 0, 1, . . . , n.
♣ polynomial interpolation:
ψ(x) = a0 + a1 x + a2 x2 + · · · + an xn
with a0 , a1 , . . . , an ∈ R
♣ trigonometric interpolation:
n
X n
X
ψ(x) = a0 + ak cos(kx) + bk sin(kx)
k=1 k=1
with a0 , a1 , . . . , an , b1 , . . . , bn ∈ R
♣ rational interpolation:
a0 + a1 x + a2 x2 + · · · + an xn
ψ(x) =
b0 + b1 x + b2 x2 + · · · + bm xm
with a0 , a1 , . . . , an , b0 , b1 , . . . , bm ∈ R
♣ exponential interpolation:
n
X
ψ(x) = ak eλk x
k=0
with a0 , a1 , . . . , an , λ0 , λ1 , . . . , λn ∈ R
sets of polynomials
p(x) = a0 + a1 x + a2 x2 + · · · + an xn
p(xi ) = fi for i = 0, 1, . . . , n.
I Construct a polynomial p ∈ Pn as
n
X
p(x) := fk Lnk (x)
k=0
♣ Take
(x − x0 ) . . . (x − xk−1 )(x − xk+1 ) . . . (x − xn )
Lnk (x) :=
(xk − x0 ) . . . (xk − xk−1 )(xk − xk+1 ) . . . (xk − xn )
I Interpolant p(x) = x2
xi −1 0 0.5 1
fi 1 0 0.25 1
♣ Lagrange polynomials
(x − 0)(x − 12 )(x − 1) x3 x2 x
L30 (x) = = − + −
(−1 − 0)(−1 − 12 )(−1 − 1) 3 2 6
(x + 1)(x − 12 )(x − 1)
L31 (x) = 1 = 2x3 − x2 − 2x + 1
(0 + 1)(0 − 2 )(0 − 1)
(x + 1)(x − 0)(x − 1) 8x3 8x
L32 (x) = = − +
( 21 + 1)( 12 − 0)( 12 − 1) 3 3
(x + 1)(x − 0)(x − 12 ) x2 x
L33 (x) = = x 3
+ −
(1 + 1)(1 − 0)(1 − 12 ) 2 2
= x2
I Interpolant p(x) = x2
x3 21x2 x
I Interpolant p(x) = 10 + 20 − 20
p(xi ) = fi
♣ Recipe of Lagrange
n n
X Y (x − xj )
p(x) = fk Lnk (x) where Lnk (x) =
(xk − xj )
k=0 j=0, j6=k