Step 1 — Fix a point and build a helper function.
Pick any point xˉ that is not a node (if it is a node the error is 0 and we're done). We don't yet know the error there; call the unknown constant K defined by
f(xˉ)−pn(xˉ)=Kω(xˉ).Why this step? We are forcing the error to have the form (constant)×ω. If we can prove K=(n+1)!f(n+1)(ξ), the formula is done. This is the Feynman move: assume the answer's shape, then pin it down.
Step 2 — Define an auxiliary function in a new variable t:g(t)=f(t)−pn(t)−Kω(t).Why this step? We want a function that vanishes at lots of points so we can apply Rolle repeatedly.
Step 3 — Count the zeros of g.
At each node: f(xi)=pn(xi) and ω(xi)=0, so g(xi)=0. That's n+1 zeros.
At t=xˉ: by definition of K, g(xˉ)=f(xˉ)−pn(xˉ)−Kω(xˉ)=0. One more zero.
So g has at least n+2 distinct zeros in [a,b].
Step 4 — Apply Rolle's theorem repeatedly.Why? Rolle says between two zeros of g lies a zero of g′.
g has ≥n+2 zeros ⇒g′ has ≥n+1 zeros.
g′′ has ≥n zeros.
… g(n+1) has ≥1 zero. Call it ξ.
Step 5 — Differentiate g exactly n+1 times.g(n+1)(t)=f(n+1)(t)−pn(n+1)(t)−Kω(n+1)(t).
pn has degree ≤n⇒pn(n+1)≡0.
ω(t)=tn+1+(lower), so ω(n+1)(t)=(n+1)! (a constant).
Hence
g(n+1)(t)=f(n+1)(t)−K(n+1)!.
Step 6 — Evaluate at ξ.
Since g(n+1)(ξ)=0:
0=f(n+1)(ξ)−K(n+1)!⇒K=(n+1)!f(n+1)(ξ).
Step 7 — Substitute back. From Step 1,
f(xˉ)−pn(xˉ)=Kω(xˉ)=(n+1)!f(n+1)(ξ)ω(xˉ).■
Imagine connecting dots on a graph with a smooth curve. You only know the height at the dots. Between dots you're guessing. How wrong can your guess be? Two things matter: how far you are from the nearest dots (the ω part — the more dots nearby, the safer), and how twisty the real line is (the derivative part — a straight road is easy to guess, a roller-coaster is not). The formula just multiplies "twistiness" by "distance from dots" and divides by a big factorial that softens it. Surprisingly, packing dots more tightly near the edges (Chebyshev) makes the worst guess much better.
Dekho, polynomial interpolation mein hum ek unknown function f(x) ko ek polynomial pn(x) se replace karte hain jo diye gaye points (nodes) se exactly guzarta hai. Lekin points ke beech mein hum sirf guess kar rahe hote hain. Toh sawaal yeh hai: yeh guess kitni galat ho sakti hai? Iska answer error formula deta hai: E(x)=(n+1)!f(n+1)(ξ)ω(x), jahan ω(x)=∏(x−xi) saare nodes ka product hai.
Is formula ko samajhne ke do simple parts hain. Pehla part f(n+1) — yeh batata hai function kitna "twisty" hai. Agar function bahut wiggle karta hai (high derivative bada), toh error bada. Yeh part aapke control mein nahi — function ki galti hai. Doosra part ω(x) — yeh aapke control mein hai, kyunki aap nodes choose karte ho. Jaha nodes paas-paas hote hain, ω chhota rehta hai aur error kam. Isliye Chebyshev nodes (jo endpoints ke paas zyada dense hote hain) error ko bahut acche se kam kar dete hain.
Derivation ka trick simple hai: ek helper function banao jo nodes par aur ek chuni hui point par zero ho — total n+2 zeros. Phir Rolle's theorem baar-baar lagao; har baar ek derivative ka zero milta hai, aur n+1 baar mein g(n+1) ka zero ξ mil jaata hai. Wahin se (n+1)! aur f(n+1)(ξ) pop out ho jaate hain. Bilkul Taylor series ke remainder jaisa, bas single point ki jagah spread-out nodes.
Ek important warning: zyada nodes daalne se hamesha error kam nahi hota! Equally spaced nodes ke saath degree badhane par endpoints ke paas error phat sakta hai — isko Runge phenomenon kehte hain. Isliye smartly nodes choose karo ya splines use karo.