Exercises — Error in polynomial interpolation
4.8.11 · D4· Maths › Numerical Methods › Error in polynomial interpolation
Prerequisites jo tum open rakhna chahoge: Rolle's Theorem, Taylor's Theorem with Remainder, Lagrange Interpolation, Chebyshev Nodes, Runge Phenomenon.
Level 1 — Recognition
Exercise 1.1
nodes se interpolation ke liye, degree kya hai, aur error formula mein ka kaun sa derivative aata hai?
Recall Solution
HUM KYA COUNT KARTE HAIN: nodes matlab , toh . Polynomial ka degree hai. KAUN SA derivative: formula use karta hai , jo se divide hota hai. Answer: , aur aata hai.
Exercise 1.2
Required smoothness condition state karo aur ek sentence mein explain karo ki hume yeh kyun chahiye.
Recall Solution
Condition: — ke continuous derivatives hain interval par. Kyun: derivation mein helper function ko exactly baar differentiate kiya jaata hai (parent proof ka Step 5), toh ko exist karna aur continuous hona chahiye taaki Rolle zeros produce karta rahe.
Exercise 1.3
Nodes ke liye node polynomial hai. evaluate karo.
Recall Solution
par: Answer: , aur .
Level 2 — Application
Exercise 2.1
ko (radians) par linearly interpolate kiya gaya hai. par error ka ek numeric upper bound do.
Recall Solution
KYA: linear matlab , toh hum aur use karte hain. Derivative bound karo: , toh on (sabse bada par, ). Isliye . Point par evaluate karo: , toh . Combine karo: Answer: .
Exercise 2.2
Usi setup ke liye, midpoint worst-case bound use karo (parent ka Example 1). Yahan woh node spacing hai jo upar define ki gayi hai — interval ki width, toh . 2.1 se compare karo.
Recall Solution
yahan kya hai: do nodes aur hain, toh node spacing hai, aur . YEH KYU MATCH KARTE HAIN: ka midpoint hi hai, aur midpoint exactly wahan hai jahan sabse bada hota hai. Isliye Exercise 2.1 ka pointwise bound midpoint par global worst-case bound ke barabar hai. Answer: — bilkul same, kyunki sabse bura point hai.
Exercise 2.3
ko par equally spaced nodes se quadratically interpolate karo. Node spacing hai (har gap wide hai). ko parent ke cubic result (neeche sketch kiya gaya) aur use karke bound karo.

Recall Solution
KAHAN SE AATA HAI (figure dekho): teen equally spaced nodes ke liye node polynomial ek cubic hai. Yeh teen nodes par zero cross karta hai aur do interior humps hain — ek positive, ek negative — equal size ke (red curve). Hump height dhundhne ke liye calculus karte hain: set karo, do turning points solve karo, aur wapas plug karo. Yeh karne par (parent, Example 3) peak magnitude milti hai. Figure mein do symmetric red humps dikhte hain jinki height exactly yahi value hai. KYA: , toh hume chahiye. ke liye, , aur . Node-polynomial max: , toh Combine karo: Answer: .
Level 3 — Analysis
Exercise 3.1
Linear interpolation ke liye, prove karo ki midpoint par maximise hota hai, aur woh maximum ke terms mein dhundho. Figure refer karo.

Recall Solution
YEH OBJECT KYA HAI (figure mein red curve): par, ek downward-opening parabola hai (apni do roots ke beech negative hai, jo axis par do black dots hain). Magnitude mein yeh wahan sabse bada hota hai jahan red parabola sabse neeche jaati hai. CALCULUS KYUN: ek smooth curve ka extremum dhundne ke liye, derivative zero set karo. Yahi sawaal hai "extremum kahan hai?" YEH KAISA DIKHTA HAI: figure mein dashed vertical line mark karti hai, aur yeh red curve se exactly uske lowest point par milti hai — labeled arrow "" wahan point karta hai. Evaluate karo: rakho. Phir aur , toh In nodes ke saath , toh sabse gehra dip hai, exactly picture mein red vertex ki depth. Answer: maximum midpoint par, value . ke saath combine karke famous factor milta hai.
Exercise 3.2
Error formula use karke explain karo ki equally spaced nodes interval ke ends ke paas middle ke paas se zyada bada kyun dete hain. Figure refer karo.

Recall Solution
FIGURE KYA DIKHATA HAI: red curve ke axis par marked saat equally spaced black nodes ke liye hai. Consecutive nodes ke beech yeh ek "hump" mein uthta hai aur har node par wapas zero par girta hai. KYA MEASURE KARTA HAI: hai se har node tak distances ka product. ENDS KYUN BURE HAIN: node cluster ke middle ke paas ek point ke dono taraf nodes hote hain, toh kai chhote hote hain — product chhota rehta hai, isliye red curve ke central humps bahut chhote hain. Endpoint ke paas ek point ke ek hi taraf saare door node hote hain; almost har factor bada hota hai, toh product blow up karta hai — isliye do outermost red humps central walon se kaafi upar hote hain (arrow "end humps blow up" sabse unche ko point karta hai). Consequence: equally spaced nodes aur high ke saath, yeh end-humps explosively badhte hain — yahi Runge Phenomenon ka mechanism hai. Chebyshev Nodes ise ends ke paas nodes denser rakh ke fix karte hain, un end-humps ko chhota karke.
Exercise 3.3
Error formula kehta hai har node par. Ise directly formula se show karo, aur explain karo ki yeh kyun consistent hai even though unknown hai.
Recall Solution
KYA: node par, ke andar factor ban jaata hai , toh . ISLIYE chahe kuch bhi ho. KYUN CONSISTENT HAI: ka poora point yahi hai ki , toh by construction. Formula yeh reproduce karta hai kyunki ko nodes par vanish karne ke liye banaya gaya tha — unknown kabhi matter nahi karta node par kyunki yeh zero se multiply hota hai.
Level 4 — Synthesis
Exercise 4.1
Linear interpolation () ke liye scratch se error derive karo Rolle's Theorem use karke, parent proof mirror karo lekin do nodes ke liye. Phir confirm karo ki yeh se match karta hai.
Recall Solution
Pehle plan (WHY helper function). Hum prove karna chahte hain ki kuch chosen point par error ka exact form hai. Rolle's Theorem hamara ek hi tool hai: yeh kehta hai ek function ke do zeros ke beech uske derivative ka ek zero hota hai. Ise use karne ke liye hume ek aisi function chahiye jo pehle se kai points par zero ho. Na (sirf nodes par zero) na akela (sirf nodes par zero) kaafi hai. Trick: par ek extra zero manufacture karo ka ek multiple ghata ke jo wahan combination vanish kare. Yahi poori wajah hai neeche ki shape ki — yeh hai (jo already nodes par zero hai) minus (jo nodes par bhi zero hai lekin jiska free constant hum bend karte hain ko par bhi kill karne ke liye).
Step 1 — shape assume karo / define karo. Ek non-node fix karo. Constant choose karo taaki Yeh sirf ratio ka naam rakhna hai; abhi kuch commit nahi kiya. Agar hum show kar sakein , toh kaam ho gaya. Step 2 — helper function. (Upar motivate kiye anusar exactly banaya gaya.) Step 3 — zeros count karo. (nodes) aur (jaise choose kiya): teen distinct zeros. Step 4 — Rolle. Teen zeros of do zeros of ka ek zero; use kaho. Step 5 — do baar differentiate karo. degree hai ; aur . Isliye Step 6 — par evaluate karo. Step 7 — substitute karo. Parent ke Example 1 se ke saath match karta hai.
Exercise 4.2
Linear-error result ko se combine karke ko par piecewise linearly do equal subintervals se interpolate karne ki error bound karo (nodes , toh node spacing per piece hai). Parent ke single-piece bound ( tha) se compare karo.
Recall Solution
KYA BADLA: har piece ki node spacing hai, aur har piece par hum linear bound use karte hain. Derivative: , on (worst par). Is common bound use karke: Compare karo: se single piece ne diya tha. ko half karne se bound se divide hua — hallmark behaviour. Piecewise linear (chhota ) ek bade high-degree fit se behtar hai. Answer: , poore interval bound se chaar guna chhota.
Level 5 — Mastery
Exercise 5.1
Interval par equally spaced nodes ke saath, ke liye ki exact location aur value dhundho. Phir ke terms mein resulting quadratic error bound state karo.
Recall Solution
KYA: . Interior extrema locate karne ke liye, set karo: Evaluate karo: par, Odd symmetry se, doosra extremum deta hai. Endpoints dete hain. Toh Parent ke general formula se consistency check: yahan node spacing hai, jo deta hai — match karta hai. ✓ Error bound: , toh Answer: max par, value ; bound .
Exercise 5.2
Runge ke saath Synthesis. ke liye par, yeh jaana jaata hai ki equally spaced interpolation ke liye roughly jaisi badhti hai. Crude estimate use karke argue karo ki bound par kyun nahi shrinkti, aur cure ka naam batao.
Recall Solution
DO FACTORS KYA KARTE HAIN: Derivative knob: se, factorial cancel ho jaata hai: Node knob: par equally spaced nodes ke liye, sirf ek chhote power/exponential ki tarah decay karta hai jo ko beat nahi kar sakta. Toh product badhta hai — error endpoints ke paas blow up karta hai. Yahi exactly Runge Phenomenon hai. FACTORIAL KYUN NAHI BACHATA: parent ka mistake callout ne warning diya tha ki denominator mein lagta hai ki hamesha jeetta hai, lekin yahan numerator apna khud ka times carry karta hai. Cure: node knob switch karo — Chebyshev Nodes use karo (ends par denser), jo ko scale tak shrink karta hai, ya high degree bilkul chhod do aur piecewise / spline interpolation use karo. Dono product ko bounded rakhte hain. Answer: function ki apni growth ke against cancel ho jaata hai, bachta hai; cure = Chebyshev nodes ya piecewise interpolation.
Recall Final self-check
- Nodes ; error use karta hai se divide hokar times .
- Tum sirf control karte ho (node placement); wiggly ko fix nahi kar sakte.
- Linear: worst midpoint par, , bound .
- Quadratic on width- spacing: .
- badhane se error worse ho sakta hai (Runge); cure = Chebyshev nodes ya piecewise fits.