Professional Documents
Culture Documents
Theory of Approximation and Splines-I Lecture 02 Error Bound For Lagrange Interpolation Polynomial
Theory of Approximation and Splines-I Lecture 02 Error Bound For Lagrange Interpolation Polynomial
𝑓𝑛+1 (𝑥)
𝑓(𝑥) = 𝑃(𝑥) + (𝑥 − 𝑥𝑜 )(𝑥 − 𝑥1 ) … (𝑥 − 𝑥𝑛 ). (1)
(𝑛+1)!
Proof
Note first that if 𝑥 = 𝑥𝑘 , for any 𝑘 = 0,1,2, … , 𝑛, then 𝑓(𝑥𝑘 ) = 𝑃(𝑥𝑘 ) and
choosing 𝜉(𝑥𝑘 ) arbitrarily in (𝑎, 𝑏) yields Equation (1).
Since 𝑓 ∈ 𝐶 𝑛+1 [𝑎, 𝑏], and 𝑃 ∈ 𝐶 ∞ [𝑎, 𝑏], it follows that 𝑔 ∈ 𝐶 𝑛+1 [𝑎, 𝑏]. For 𝑡 =
𝑥𝑘 , we have
𝑛
(𝑥𝑘 − 𝑥𝑖 )
𝑔(𝑥𝑘 ) = 𝑓(𝑥𝑘 ) − 𝑃(𝑥𝑘 ) − [𝑓(𝑥) − 𝑃(𝑥)] ∏
(𝑥 − 𝑥𝑖 )
𝑖=0
= 𝑓(𝑥𝑘 ) − 𝑓(𝑥𝑘 )
(𝑥𝑘 − 𝑥𝑜 )(𝑥𝑘 − 𝑥1 ) … (𝑥𝑘 − 𝑥𝑘 ) … (𝑥𝑘 − 𝑥𝑛 )
− [𝑓(𝑥) − 𝑃(𝑥)]
(𝑥 − 𝑥𝑜 )(𝑥 − 𝑥1 ) … (𝑥 − 𝑥𝑛 )
=0
Moreover,
𝑛
(𝑥 − 𝑥𝑖 )
𝑔(𝑥) = 𝑓(𝑥) − 𝑃(𝑥) − [𝑓(𝑥) − 𝑃(𝑥)] ∏ = 0.
(𝑥 − 𝑥𝑖 )
𝑖=0
0 = 𝑔(𝑛+1) (𝜉)
𝑛
(𝑛+1) (𝑛+1)
𝑑 𝑛+1 (𝑡 − 𝑥𝑖 )
=𝑓 (𝜉) − 𝑃 (𝜉) − [𝑓(𝑥) − 𝑃(𝑥)] 𝑛+1 [∏ ]
𝑑𝑡 (𝑥 − 𝑥𝑖 )
𝑖=0 𝑡=𝜉
𝑛
(𝑛+1)
𝑑 𝑛+1 (𝑡 − 𝑥𝑖 )
0=𝑓 (𝜉) − 0 − [𝑓(𝑥) − 𝑃(𝑥)] 𝑛+1 [∏ ]
𝑑𝑡 (𝑥 − 𝑥𝑖 )
𝑖=0 𝑡=𝜉
(𝑛 + 1)!
0 = 𝑓 (𝑛+1) (𝜉) − 0 − [𝑓(𝑥) − 𝑃(𝑥)]
∏𝑛𝑖=0(𝑥 − 𝑥𝑖 )
(𝑛 + 1)!
𝑓 (𝑛+1) (𝜉) = [𝑓(𝑥) − 𝑃(𝑥)]
∏𝑛𝑖=0(𝑥 − 𝑥𝑖 )
(𝑛+1)
∏𝑛𝑖=0(𝑥 − 𝑥𝑖 )
𝑓 (𝜉) = 𝑓(𝑥) − 𝑃(𝑥)
(𝑛 + 1)!
(𝑛+1)
∏𝑛𝑖=0(𝑥 − 𝑥𝑖 )
𝑓(𝑥) = 𝑃(𝑥) + 𝑓 (𝜉) .
(𝑛 + 1)!
Example
Solution
𝑓 (3) (𝜉 (𝑥))
𝐸𝑟𝑟𝑜𝑟 = (𝑥 − 2)(𝑥 − 2.75)(𝑥 − 4)
3!
Given function is
1
𝑓(𝑥) =
𝑥
The derivatives on [2,4] can be computed as,
6
𝑓 ′′′ (𝑥) = −
𝑥4
𝑓 ′′′ (𝑥) 1 −6
≤ × 4
3! 3! 2
Let 𝑔(𝑥) = (𝑥 − 2)(𝑥 − 2.75)(𝑥 − 4), then
1
𝐷𝑥 𝑔(𝑥) = (3𝑥 − 7)(2𝑥 − 7).
2
To find the maximum value of 𝑔(𝑥) in the [2,4], put
𝐷𝑥 𝑔(𝑥) = 0
7 7 25
⇒ 𝑥= 𝑤𝑖𝑡ℎ 𝑔 ( ) = ,
3 3 108
7 7 9
⇒ 𝑥= 𝑤𝑖𝑡ℎ 𝑔 ( ) = − .
2 2 16
Hence the maximum error is
𝑓 (3) (𝜉 (𝑥)) 6 1 9
𝐸𝑟𝑟𝑜𝑟 = (𝑥 − 2)(𝑥 − 2.75)(𝑥 − 4) ≤ − 4 × × − ≈ 0.03516.
3! 2 3! 16