Exercises — ODE solvers — Euler's method (derivation, global error)
4.8.22 · D4· Maths › Numerical Methods › ODE solvers — Euler's method (derivation, global error)
Neeche sab kuch sirf parent note Euler's Method mein banaye gaye tools use karta hai: update rule local truncation error , aur global error .
Level 1 — Recognition
Goal: ek IVP ke pieces pehchano aur formula mein ek baar plug karo.
Exercise 1.1
IVP diya hai jisme hai, inhe identify karo: function , starting point , aur start par solution curve ki slope.
Recall Solution
- — yeh the right-hand side of the ODE hai, woh machine jo kisi bhi point ke liye slope return karta hai.
- — known starting value.
- Slope at start .
Humne kya kiya: humne kuch solve nahi kiya — sirf parts read off kiye. , seed point ko pehchaanna, aur slope ko ek baar evaluate karna — yahi poora skill hai L1 par.
Exercise 1.2
ke liye, se ek Euler step lo. kya hai aur kahan hai?
Recall Solution
Slope at start: . Kyun: "Naya = Purana + step × slope-at-old." Boxed formula ki ek application, kuch nahi iske siwa.
Level 2 — Application
Goal: recursion ko kaafi steps tak haath se chalao.
Exercise 2.1
ko se teen steps ke liye solve karo. nikalo.
Recall Solution
| slope | ||||
|---|---|---|---|---|
| 0 | 0.0 | 1.000 | 1.000 | 1.100 |
| 1 | 0.1 | 1.100 | 1.200 | 1.220 |
| 2 | 0.2 | 1.220 | 1.420 | 1.362 |
Toh at . Humne kya kiya: har row pichle ko reuse karti hai — yahi woh "self-bootstrapping" hai jo parent note ne describe ki thi. Yeh kaisa dikhta hai: teen chhote seedhe segments, har ek wahan se shuru hota hai jahan pichhla khatam hua (neeche figure dekho).

Exercise 2.2
ko se chaar steps ke liye solve karo. nikalo, phir true value se compare karo.
Recall Solution
Yahan hai, toh har step hai . True value: Error . Multiplication trick kyun? Jab ho, toh update ek constant factor per step ban jaata hai — Euler continuous decay ko geometric decay mein badal deta hai. Yeh shrink karta hai, lekin bahut fast, kyunki har seedha step curving-up-toward-zero real solution ko undershoot karta hai.
Level 3 — Analysis
Goal: sirf numbers crunch karne ki jagah error size aur order ke baare mein reason karo.
Exercise 3.1
ke liye true solution hai. Parent note se ka result at use karke, par global error compute karo. Phir predict karo ki agar use karo toh error kya hoga, aur kyun batao.
Recall Solution
True value: . Global error at with : ke liye prediction: Euler first order hai, GE . ko half karne se error bhi roughly half honi chahiye, toh hum expect karte hain . Kyun: endpoint fixed hai. ko se tak shrink karne par steps ki sankhya double ho jaati hai (), lekin har local error factor of se shrink ho jaati hai. Net effect: . Ek power of survive karta hai → linear, halving behaviour.
Exercise 3.2
Global error bound hai . par ke liye hai (kyunki ) aur . diya hai, par nikalo aur ke saath par bound evaluate karo. Kya actual error (Ex 3.1) usme fit hoti hai?
Recall Solution
increasing hai, isliye par iska max right end par hai: . Bound at : Actual error thi . Kyunki , actual error bound ke andar hai. ✓ Bound bada kyun hai: yeh ek worst-case guarantee hai — yeh sabse bada use karta hai aur assume karta hai ki errors poori Lipschitz rate par amplify hoti hain. Real error usually thodi chhoti hoti hai.
Level 4 — Synthesis
Goal: stepping, error reasoning, aur ek doosre concept ko combine karo.
Exercise 4.1
ko se do steps leke tak solve karo. report karo, true value se compare karo, aur stability quantity (jisme ) use karke explain karo ki answer itna galat kyun hai.
Recall Solution
Update: . True: . Error — answer ke relative mein enormous. Stability reasoning: decay problem ke liye, ek Euler step factor se multiply karta hai. Yahan . Exactly ka factor solution ko ek hi step mein zero par collapse kar deta hai — start par tangent itni steep hai ki seedha axis ke paar overshoot kar jaati hai. Yeh stability failure hai, sirf accuracy nahi: Numerical Stability dekho. Real decay ke liye humein chahiye, yaani yahan ; bilkul us edge case par hai jahan factor vanish ho jaata hai.

Exercise 4.2
Usi ke liye, choose karo aur tak chaar steps lo. compute karo, se compare karo, aur confirm karo ki stability factor ab safely se neeche hai.
Recall Solution
Factor per step: . Kyunki , numerical solution sensibly decay karta hai. True: . Error — ab bhi bada, lekin ab solution exactly zero par collapse hone ki jagah oopar se zero ki taraf decay karta hai. Chhota qualitatively correct behaviour restore kar diya. Kyun: factor guarantee karta hai ki har step ko overshoot ke bina shrink karta hai, isliye numerical solution ab true exponential decay jaisa dikhta hai chahe magnitude abhi accurate na ho.
Level 5 — Mastery
Goal: ek general result derive karo aur use ek design decision ke liye use karo.
Exercise 5.1
Tumhe Euler se par ek IVP solve karni hai, aur ke saath par tumhara global error nikla. Tumhari tolerance hai. Sirf method ke order ko use karke, sabse bada nikalo jo tolerance meet kare, aur steps ki sankhya batao.
Recall Solution
First order ⇒ global error linearly scale karta hai: kisi constant ke liye . se hume milta hai . Chahiye . Sabse bada convenient jo interval ko divide kare: lo, jisse milta hai Humne kya kiya: humne sirf yeh fact use kiya ki GE hai, ek measured error se us step size tak extrapolate karne ke liye jo ek target hit kare. Yeh kyun kaam karta hai: constant (jisme , , factor chhupa hai) ratio mein cancel ho jaata hai — order akela scaling law deta hai. Isliye practically "" jaanna valuable hai.
Exercise 5.2
Cost compare karo: ek hypothetical second-order method ka GE hai aur usne par wahi produce kiya. Tolerance ke liye usse jo aur step count chahiye woh nikalo, aur Euler ke 80 steps ke versus lesson batao.
Recall Solution
Second order: . se . Chahiye . Steps: round up karke steps (). Lesson: accuracy mein ka factor gain karne ke liye (), Euler ko zyada steps chahiye (), lekin second-order method ko sirf zyada chahiye (). Jaise tolerances tight hoti hain, higher order dramatically faaydemand hota hai — yahi Runge-Kutta Methods ki motivation hai.
Recall Paanch levels ka ek-line summary
L1 read off karo → L2 table crank karo → L3 global error measure karo aur dekho ki yeh half hoti hai → L4 stability accuracy ko gate karta hai → L5 order ek scaling law deta hai jo step-count decisions drive karta hai.
Connections
- Taylor Series Expansion — L3 mein use ki gayi local error ka origin.
- Numerical Stability — woh threshold jo L4 decide karta hai.
- Runge-Kutta Methods — higher-order methods jo L5 se motivated hain.
- Backward Euler & Implicit Methods — woh "new-slope" method jo L1 trap describe karta hai.
- Lipschitz Continuity — Ex 3.2 ke error bound mein constant .
- Finite Difference Approximations — update ke peeche forward difference.