YEH KYUN aate hain? Steady-state physics: ek rod ke saath temperature jab dono ends fixed hon, beam ka deflection jab dono ends clamped hon, do plates ke beech electrostatic potential. Kuch bhi time mein evolve nahi hota — answer ko har jagah ek saath constraints satisfy karne padte hain.
Ek linear BVP pe apply karoy′′=p(x)y′+q(x)y+r(x). Har interior xi pe stencils substitute karo:
h2yi+1−2yi+yi−1=pi2hyi+1−yi−1+qiyi+ri.h2 se multiply karo aur yi−1,yi,yi+1 group karo:
lower(1+2hpi)yi−1diag−(2+h2qi)yi+upper(1−2hpi)yi+1=h2ri.
Yeh ek tridiagonal linear systemAy=d hai jisme y0=α,yN=β ko right side mein move kiya gaya hai. Thomas algorithm (tridiagonal Gaussian elimination) se O(N) mein solve karo.
Recall Feynman: ek 12-saal ke bachche ko explain karo
Socho tum ek ball ek door bucket mein exactly land karwani hai. Tumhe sahi throwing angle pata nahi. Shooting: ek baar throw karo (bahut chota), ek baar phir (bahut door), phir beech mein split karo — angle adjust karte raho jab tak bucket mein land na ho jaaye. Finite difference: throw karne ke bajaye, ball ka path bahut saare chhote connected dots se draw karo aur dots ko yeh rule follow karne pe force karo ki "har dot apne neighbours ka roughly average hai," phir dot-puzzle solve karo taaki pehla aur aakhri dot wahan hon jahan hona chahiye. Dono same curve dhundhhte hain — ek aiming se, ek puzzle-solving se.
BVP har endpoint pe ek condition deta hai (y(a),y(b)); IVP saari conditions (y,y′) ek single point pe deta hai, toh IVP march kar sakta hai lekin BVP nahi.
Shooting method ka core idea?
Missing slope y′(a)=s guess karo, resulting IVP solve karo, landing error ϕ(s)=y(b;s)−β treat karo, aur ϕ(s)=0 root-find karo (usually secant se).
Linear ODE ke liye, y(b;s)s mein linear hai, toh ϕ(s) ek straight line hai jo exactly do points se determine hoti hai — linear interpolation bina iteration ke root hit karta hai.
Shooting ke liye secant update formula?
sn+1=sn−ϕ(sn)ϕ(sn)−ϕ(sn−1)sn−sn−1.
y′ ke liye central difference aur uska order?
yi′≈2hyi+1−yi−1, accurate to O(h2).
y′′ ke liye central difference aur uska order?
yi′′≈h2yi+1−2yi+yi−1, accurate to O(h2) (the +1,−2,+1 stencil).
y′′ stencil kaise derive karte hain?
yi+1 aur yi−1 ki Taylor expansions add karo; odd-power terms cancel ho jaate hain, leaving yi+1+yi−1=2yi+h2yi′′+O(h4), phir yi′′ ke liye solve karo.
y′′=py′+qy+r ke liye tridiagonal FDM coefficients?