4.8.22 · HinglishNumerical Methods

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

1,631 words7 min readRead in English

4.8.22 · Maths › Numerical Methods

Hum ek Initial Value Problem (IVP) solve karna chahte hain:

Function humein kisi bhi point par solution curve ka slope batata hai. Dikkat yeh hai: hamare paas ka formula nahi hai — sirf uska slope hai. Euler's method "mujhe slope pata hai har jagah" ko "main numerically curve sketch kar sakta hoon" mein convert karta hai.


WHY — woh problem jis par hum attack kar rahe hain

WHY hum sirf integrate nahi kar sakte? Kyunki khud par depend karta hai, jo humein abhi pata nahi. Humein ek stepwise, self-bootstrapping method chahiye: jo hamare paas abhi hai use karke next point estimate karo.


HOW — method ko first principles se derive karna

Hum ise do tareekon se derive karte hain taaki acchi tarah se yaad rahe.

Derivation 1: Taylor series (rigorous route)

True solution ko ke aas-paas step ke liye expand karo:

  • Yeh step kyun? Taylor's theorem exact hai last term ke saath jo kisi par evaluate hota hai. Yeh humein precisely batata hai ki hum kya throw away kar rahe hain.

Ab substitute karo (ODE yahi deta hai humein) aur term drop karo:

Derivation 2: Tangent line / finite difference (intuitive route)

Derivative ko forward difference se approximate karo:

  • Yeh step kyun? Yeh derivative ki definition hai limit lene se pehle. Hum ko finite rakhte hain kyunki computer limits nahi le sakta.

Ise ke barabar set karo aur ke liye solve karo — aapko wahi boxed formula milega.

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

Local vs Global error — "Euler sirf first order kyun hai" ka core

WHY global error hai, nahi

Yeh hai steel-manned reasoning (skip mat karo — yeh woh 20% hai jo 80% marks dilata hai):

  • Har step size ka error add karta hai.
  • tak pahunchne ke liye hum steps lete hain — toh badhta hai jab chhota hota hai.
  • Naive total: .

Toh ka ek power kho jaata hai kyunki chhote ke liye zyada steps chahiye.

factor kyun hai? Errors sirf add nahi hote — pehle ke errors se propagate hote hue amplify hote hain. Lipschitz constant measure karta hai ki nearby solutions kitni tez diverge hote hain; exponential worst-case growth hai.


Worked Examples


Common Mistakes (steel-manned)


Recall Ek 12-saal ke bachche ko explain karo (Feynman)

Socho tum fog mein chal rahe ho aur tum sirf dekh sakte ho ki path kis direction mein point kar raha hai bilkul wahan jahan tum khade ho. Tum poora path nahi dekh sakte. Toh tum us direction mein face karo, ek chhota sa step lo, phir se naya direction dekho, ek aur chhota step lo. Har step mein tum thoda off hote ho kyunki path curve hua jab tum seedha chale — lekin chhote steps tumhe close rakhte hain. Chhote steps lene se tum real path ke zyada close rehte ho, lekin finish karne ke liye tumhe bahut zyada steps chahiye.


Flashcards

What IVP does Euler's method solve?
— ek ODE jisme ek known starting value ho.
State the Euler update formula.
, with .
Euler ko Taylor series se derive karo.
; substitute karo, term drop karo.
Euler ka local truncation error kya hai?
— ek single step ka error.
Global error order kya hai aur kyun?
steps mein se har ek hai, toh ; ek power kho jaata hai.
Agar half karo, toh global error ka kya hoga?
Roughly half ho jaata hai (first-order method).
Error bound mein kyun hai?
Pehle ke errors propagate hote hue amplify hote hain; (Lipschitz constant) worst-case exponential growth bound karta hai.
Forward vs Backward Euler?
Forward current point par slope use karta hai (explicit); Backward use karta hai (implicit, ke liye solve karo).
Euler ka geometric interpretation kya hai?
Current point par tangent line ko horizontal distance tak follow karo.

Connections

  • Taylor Series Expansion — derivation aur error analysis ka engine
  • Runge-Kutta Methods — higher-order successors (RK4 global mein hai)
  • Backward Euler & Implicit Methods — stiff equations ke liye
  • Numerical Stability — kyun Example 3 blow up hua
  • Lipschitz Continuity — guarantee karta hai ki error bound exist karta hai
  • Finite Difference Approximations — forward difference = Euler ka derivation route

Concept Map

no closed form

self-bootstrapping

drop h^2 term

solve for y_n+1

same as

remainder term

one step error

accumulate over N steps

N ~ 1 over h

first order

IVP: y' = f x,y with y x0 = y0

Need stepwise method

Euler update y_n+1 = y_n + h f

Taylor expansion of y x_n+h

Forward difference of y'

Tangent line geometry

Local truncation error O h^2

Global error O h

N = b - x0 over h steps

Euler is first-order accurate