4.8.22 · D3 · HinglishNumerical Methods

Worked examplesODE solvers — Euler's method (derivation, global error)

2,840 words13 min read↑ Read in English

4.8.22 · D3 · Maths › Numerical Methods › ODE solvers — Euler's method (derivation, global error)

Koi bhi number se pehle, ek reminder ki har symbol ka kya matlab hai, taaki kuch bina explain ke use na ho:


Scenario matrix

Yeh topic jo bhi problem throw kar sakta hai woh in cells mein se ek (ya blend) hai. Table mein cell, kya cheez use distinct banati hai, aur neeche konsa example use cover karta hai — yeh sab likha hai.

Cell Kya cheez use special banati hai Covered by
A. Growing solution, positive slope , chadh raha hai, errors ek-taraf hain (undershoot) Example 1
B. Decaying solution, negative slope , ek floor ki taraf gir raha hai Example 2
C. Step-halving / order check global error empirically verify karo Example 3
D. Degenerate: slope at a point ⇒ ek flat step, us step ke liye unchanged Example 4
E. Limiting / unstable: too large $ 1+h\lambda
F. Autonomous non-linear sirf par depend karta hai, lekin non-linearly Example 6
G. Real-world word problem physics → IVP → Euler translate karo Example 7
H. Exam twist: back-solve for or answer diya hua hai, input dhundho Example 8

Ab hum har cell chalte hain. Poori tarah, derivation aur error law parent topic se aate hain aur Taylor Series Expansion par based hain.


Example 1 — Cell A: growing solution, positive slope

Neeche ka figure hamare teen orange Euler points ko teal true curve ke against plot karta hai. Dekho ki orange polyline har par teal curve ke neeche baithti hai, aur par plum arrow gap measure karta hai — yeh accumulated undershoot hai jo forecast ne predict kiya tha. Kyunki true curve upar ki taraf bend karti hai, seedhe tangent steps sirf corner cut kar sakte hain aur kam pad sakte hain.

Figure — ODE solvers — Euler's method (derivation, global error)

Example 2 — Cell B: decaying solution, negative slope


Example 3 — Cell C: order check ( halve karo, error halve ho)


Example 4 — Cell D: degenerate slope (ek flat step)

Figure do orange steps trace karta hai. Pehla segment neeche slope karta hai (slope ); doosra, plum mein mota draw kiya gaya hai, bilkul horizontal hai kyunki waahan hai — yeh visual proof hai ki zero slope ek flat step produce karta hai jahan . Picture ko left se right padhna hi calculation hai.

Figure — ODE solvers — Euler's method (derivation, global error)

Example 5 — Cell E: bahut bada ⇒ instability

Figure smooth teal decay curve (gently ki taraf ja rahi hai) ko orange Euler points se contrast karta hai jo tak jump karte hain. Plum annotation culprit ko flag karta hai — size wala stability factor — aur axis par straddling orange zig-zag ek unstable run ki tell-tale sign-flipping dikhata hai. Jab tumhare numbers alternate sign karte hain aur badhte hain, yahi picture ho rahi hai.

Figure — ODE solvers — Euler's method (derivation, global error)

Example 6 — Cell F: autonomous non-linear


Example 7 — Cell G: real-world word problem


Example 8 — Cell H: exam twist (answer diya, input dhundho)


Recall Konsa cell sabse mushkil tha — aur kyun?

Cell E (instability). Har doosra cell sirf accuracy error produce karta hai, jo ke zariye law se control hoti hai. Cell E ek qualitative failure produce karta hai: numbers ek aisi truth se diverge karte hain jo decay kar rahi hai. Lesson: ko accuracy aur stability dono constraints satisfy karni chahiye.


Quick self-test

Positive slope wala Euler estimate ek convex true curve ke against — upar ya neeche?
Neeche (tangents ek convex curve ko undercut karte hain).
ke liye, konsa Euler ko stable rakhta hai?
Koi bhi jahan ho, yaani .
wala step ke saath kya karta hai?
Kuch nahi — , ek flat horizontal step.
halve karne se global error roughly kitne factor se badalta hai?
Lagbhag (first-order, ).
diya aur known hai, kaise nikalen?
Linear equation solve karo.

Connections

  • Parent topic — derivation & error law jo in examples mein use hote hain
  • Taylor Series Expansion — har example ko milne wala local term ka source
  • Runge-Kutta Methods — upar dekhe gaye errors ko drastically kam kar deta ()
  • Backward Euler & Implicit Methods — Example 5 mein kisi bhi ke liye stable rehta hai
  • Numerical Stability test jo Examples 2, 5, 7 mein use hota hai
  • Lipschitz Continuity — Example 3 ke peeche error bound guarantee karta hai
  • Finite Difference Approximations — yahan har step ka forward-difference view

Case Map

positive

negative

zero

stable

too large

nonlinear

word problem

inverse

Euler update new = old + h times slope

sign of slope

Cell A growing undershoot

Cell B decaying

Cell D flat step y unchanged

size of h

accuracy error only order h

Cell E instability diverges

kind of f

Cell F y squared

Cell G cooling

Cell H solve for h