Before the traps, a one-line memory refresh so the notation below is never used cold:
Recall Is page par use hone waale symbols
h = step size · ε = estimated local error =∥y(5)−y(4)∥ · tol = the budget atol+rtol∣yn∣ · p = order of the controlled result (4 for RK45) · ki = slope samples (function evaluations) · S = safety factor · fmin,fmax = clamps on how much h may change.
Neeche ke har trap ka aadhar model ε≈Chp+1 hai. Students C ko ek mystery letter maante hain, toh pehle isko pin down karte hain — ek picture ke saath.
Figure log axes par ε ko h ke against plot karta hai. Kyunki ε≈Ch5 hai, logs lene par ek straight line of slope 5 milti hai; us line ki height (uska intercept) hilogC hai. Ek curvy region poori line ko upar utha deta hai — same slope, bada C — toh tolerance dashed line ke neeche aane ke liye ek chota h chahiye.
Har item: true/false decide karo, phir ek sentence ka reason do. Reason hi answer hai.
Error estimate ε=y(5)−y(4) do extra function evaluations ki cost lagata hai.
False.y(4) aur y(5) dono same stages ki ke weighted sums hain, toh estimate har expensive f-call ko reuse karta hai aur sirf ek cheap dot product add karta hai.
RK45 ke liye step-update exponent 1/4 hai kyunki accepted result 4th-order hai.
False. Order-p method ka local error per step Chp+1=Ch5 ki tarah scale karta hai, toh isko invert karne wala exponent 1/(p+1)=1/5 hai, 1/4 nahi.
Agar ek step reject ho jaaye toh tumhe t aage advance karna chahiye lekin naye chote h ke saath.
False. Rejection ka matlab hai yn+1 trustworthy nahi hai; tumhe sametn par rehna hoga aur chote h ke saath step recompute karna hoga.
Tolerance ko chota (stricter) banana chosen steps ko chota banana tend karta hai.
True. Kyunki ε≈Chp+1 hai, chote tol ke saath Chp+1≤tol enforce karne ke liye ek chota h chahiye, toh solver zyada, tinier steps leta hai.
Safety factor S isliye exist karta hai taaki solver faster run kare.
False.S≈0.9 predicted error ko tol se thoda neeche aim karta hai; kyunki ε khud sirf ek estimate hai, isse retried step pehli try mein pass hone ki probability badh jaati hai — reliability ke liye, raw speed ke liye nahi.
Sirf absolute tolerance use karna hamesha theek hai.
False. Agar ∣y∣ bada ho jaaye, ek fixed atol ek impossibly strict relative demand ban jaata hai; rtol∣yn∣ mix karna budget ko solution size ke saath scale karne deta hai.
h ko raw factor (tol/ε)1/5 se grow karna hamesha safe hai.
False.h5 error model sirf locally trusted hai; ek huge jump wahan land kar sakta hai jahan model valid hi nahi tha, isliye clamp fmax (≈5) growth ko cap karta hai.
ε us 5th-order answer ke error ko estimate karta hai jiske saath hum actually advance karte hain.
False.ε4th-order result ke error ko estimate karta hai; y(5) ke saath advance karte hue iska use karna (local extrapolation) deliberately conservative hai — hum worse answer ko bound karte hain.
Two RK methods of different order must share the same number of stages to be an embedded pair.
True. "Embedded" ka matlab hai ki dono identical stage vector ki share karte hain; different weight rows bi,bi∗ same samples par act karte hain, aur yahi cheez error estimate ko free banati hai.
Agar ε=tol exactly ho, toh raw update factor 1 ke barabar hoga aur h same rahega.
True.(tol/ε)1/5=11/5=1; safety factor S ise phir thoda 1 se neeche nudge karta hai, toh h safe rehne ke liye thoda sa shrink hota hai.
Constant C ek fixed number hai jo tum RK45 ke liye ek baar look up kar sakte ho.
False.C mein current point par solution ke apne high derivatives hote hain, isliye yeh har step par change hota hai — curvy regions mein bada, flat regions mein chota; yahi variability poora reason hai ki har step par error re-estimate karte hain.
Negative step size h<0 hamesha ek bug hai.
False. Time mein backwards integrate karna (baad ke t se pehle wale t tak) deliberately h<0 use karta hai; controller tab ∣h∣ par kaam karta hai, sign/direction preserve karte hue magnitude ko clamps ke andar rakhta hai.
Har line mein ek flawed statement ya reasoning step hai. Kya galat hai yeh batao.
"Step pass ho gaya kyunki ε=2×10−6>tol=1×10−6."
Inequality ulti hai: step tab hi accept hota hai jab ε≤tol. Yahaan ε tol se zyada hai, isliye ise reject karna chahiye.
"Reject karne ke baad, hum hnew=h(ε/tol)1/5 ke saath recompute karte hain."
Ratio ulta hai. Yeh (tol/ε)1/5 hona chahiye; kyunki rejection par ε>tol hai, isse ek factor <1 milta hai aur h sahi se shrink hota hai.
"Order-4 method ka local error ∼Ch4 hai."
Ek power kam hai: order-p method ka local (per-step) error ∼Chp+1=Ch5 hai; hp figure kaafi steps mein accumulated global error describe karta hai.
"Hum clamp fmin drop kar sakte hain; sirf fmax matter karta hai."
Dono clamps matter karte hain. fmin ek bad step ke baad h ko bahut violently collapse hone se rokta hai, ek single hard point par needless stalling avoid karta hai.
"Kyunki y(5) zyada accurate hai, ε=y(4)−y(5) uske error ko measure karta hai."
Difference 4th-order error measure karta hai, 5th ka nahi; subtraction ka sign irrelevant hai kyunki hum norm lete hain, lekin interpretation (kiska error hai) hi trap hai.
"Error ko half karne ke liye, step size half karo."
Halving h se local error 25=32 se cut hota hai, 2 se nahi, kyunki local error ∝h5 hai. Step aur error ke beech relation far from linear hai.
"Ek embedded pair ko har order ke liye f-evaluations ka alag set chahiye."
Nahi — dono orders mein ki share karna hi poora point hai; alag evaluations "free estimate" advantage ko defeat kar denge.
"Backwards integrate karte waqt hum accept test ko ε≥tol mein flip kar dena chahiye."
Galat — accept test hamesha magnitudesε≤tol compare karta hai; backward integration ke liye sirf h ka sign flip hota hai, error logic nahi.
Har ek ka answer ek ya do reasoning sentences mein do.
Ek bahut accurate solution ki jagah har step par do solutions kyun compute karte hain?
Ek akela number apne khud ke error ka koi self-knowledge nahi deta; do orders ka difference ek cheap, on-the-fly error meter hai jo step control drive karta hai.
Constant C final step-update formula mein kabhi appear kyun nahi karta?
Hum ε≈Chp+1 aur tol=Chnewp+1 likhte hain phir dono equations ko divide karte hain, unknown C cancel ho jaata hai aur sirf step sizes ka ratio bachta hai.
Controller local error regulate karta hai, global error kyun nahi?
Controller ek waqt mein sirf ek step observe kar sakta hai; woh har step ke local error ko budget ke andar rakhta hai, is par trust karte hue ki kaafi controlled local errors global error ko acceptable rakhenge.
Exponent p ki jagah p+1 par kyun depend karta hai?
Kyunki jo quantity tol ki taraf drive ho rahi hai woh leading local error termChp+1 hai; power p+1 relation ko invert karne ke liye root 1/(p+1) chahiye.
RK45 jaisa ek explicit adaptive method stiff ODEs par struggle kyun karta hai?
Wahan stability, accuracy nahi, chote steps force karti hai; controller h ko stable rehne ke liye shrink karta rehta hai, chahe solution smooth ho, isliye adaptivity ek unstable explicit scheme ko rescue nahi kar sakti. Dekho Stiff ODEs and Stability.
Leading error term h ki ek single power ke proportional kyun hoti hai?
Yeh true vs numerical step ke Taylor Series Expansion ke pehle uncancelled term se aata hai; saare lower-order terms design se matched hain, ek dominant hp+1 term bachta hai.
Predicted error ko exactly tol par aim karne ki jagah tol se neeche aim kyun karte hain?
ε apni uncertainty ke saath ek estimate hai; exactly tol target karne se actual error budget se upar land kar sakta hai, ek wasteful re-rejection force karta hai.
Solver ko ek explicit abort rule ki zaroorat kyun hai, kyun nahi bas h shrink karta rahe?
Agar ek genuine singularity ya stiffness rejections force karti rehti hai, h zero ki taraf march karta hai aur ek aise value tak underflow ho jaayega jahan floating point mein tn+h=tn ho — koi progress possible nahi, toh solver ko loop forever karne ki jagah failure report karni chahiye.
Is topic ke invite kiye hue boundary aur degenerate scenarios.
ε=0 (dono orders machine precision tak agree karte hain) — formula kya karta hai?
Ratio tol/ε→∞ ho jaata hai, toh raw growth factor blow up karta hai; clamp fmax (≈5) ise pakad leta hai aur h zyada se zyada 5× grow karta hai, step safe rehta hai.
∣yn∣→0 ek solution zero-crossing ke paas — kaun sa tolerance term tumhe bachata hai?
Relative part rtol∣yn∣ wahaan zero ki taraf collapse hota hai, toh atol floor provide karta hai aur budget kabhi zero nahi hota (jo impossible perfection demand karta).
Solution ek straight line hai (y′′=0, no curvature) — h ka kya hota hai?
Higher-order terms vanish ho jaate hain, toh C≈0 se ε har step tiny rehta hai, aur controller repeatedly fmax clamp hit karta hai, h ko jitni permission hai utna fast grow karta hai.
Ek hi tn par do consecutive rejections — kya algorithm broken hai?
Nahi; har rejection h ko aur shrink karta hai (per attempt fmin se bounded) jab tak predicted error finally tol ke andar na fit ho jaaye, phir step accept hota hai aur t aage badhta hai.
h baar baar fmin hit karta hai aur zero ki taraf shrink hota ja raha hai — solver ko kab give up karna chahiye?
Jab h ek floor se neeche gir jaaye (jaise ∣h∣≤hmin ya tn+h floating point mein tn se indistinguishable ho), tab aur shrinking se progress nahi ho sakti, toh solver abort karta hai aur "step size too small" report karta hai, loop forever karne ki jagah.
t=10 se t=0 tak backwards integrate karna — controller mein kya change hota hai?
h ka sign negative ho jaata hai time leftwards move karne ke liye, lekin controller ∣h∣ regulate karta hai: accept test ε≤tol, clamps fmin,fmax, aur update factor sab magnitude par act karte hain, toh direction poore waqt preserve rehti hai.
Ek otherwise flat solution mein ek single ultra-sharp spike — adaptivity kaise respond karta hai?
Local C spike par jump karta hai, toh solver flat region mein tezi se race karta hai (C chota, bade steps), phir automatically spike ke across tiny steps par brake karta hai jahan C huge hai, apne function evaluations wahan spend karta hai jahan curvature actually demand karti hai.
Agar S exactly 1 set ho to kya hoga?
Controller tol exactly hit karne ki koshish karta; kyunki ε kabhi kabhi under-predict karta hai, zyada steps budget se thoda upar land karte aur reject ho jaate, kaam waste hota — isiliye S<1.