4.8.29 · D2 · HinglishNumerical Methods

Visual walkthroughSolving nonlinear systems — Newton's method in n dimensions

2,211 words10 min read↑ Read in English

4.8.29 · D2 · Maths › Numerical Methods › Solving nonlinear systems — Newton's method in n dimensions

Hum poori method ko us case ke liye build karenge jo ek samajhdar 12-saal-ka baccha dekh sake: do equations, do unknowns (). Sab kuch dimensions mein generalise hota hai — bas "" ki jagah "" rakh do — hum bilkul wahi jagah batayenge.


Step 1 — "" dikhta kaisa hai?

KYA HAI. Hamare paas do knobs hain — unhe aur bulao. Dono ko ek arrow (ek point) mein bundle karo jise kehte hain. Do rules hain jo dono ek saath zero aani chahiye:

Har rule flat plane mein ek curve hai: un points ka set jahan woh rule zero read karta hai. Ek root woh jagah hai jahan dono curves cross karti hain.

KYO. Koi bhi calculus touch karne se pehle hume target pata hona chahiye: "ek cheez zero karo" nahi balki "kai cheezein simultaneously zero karo" — ek crossing point. Aage ka sab kuch usi crossing ko dhoondne ki machine hai.

PICTURE.

Figure — Solving nonlinear systems — Newton's method in n dimensions


Step 2 — Itna zoom karo jab tak curve seedha na lage

KYA HAI. Ek guess lo. Yeh crossing par nahi hai. Ab ek rule ki curve ko ke paas hard zoom karo. Koi bhi smooth curve, kaafi close dekhi jaaye, ek straight line jaisi lagti hai — uski tangent.

KYO. Straight cheezein hum exactly solve kar sakte hain (woh sirf algebra hai, koi guessing nahi). Curved cheezein nahi kar sakte. Toh poori trick hai: curve ko uski tangent line se replace karo guess ke paas, aasaan straight problem solve karo, aur ek chhoti si error accept karo kyunki hum sirf locally pretend kar rahe hain.

PICTURE.

Figure — Solving nonlinear systems — Newton's method in n dimensions


Step 3 — Har direction mein slope measure karo: the Jacobian

KYA HAI. Plane mein ek curve ka slope hota hai, lekin actually do knobs par depend karta hai, toh par uske do slopes hain: kitni tezi se change hota hai agar nudge karein ( ko fixed rakh ke), aur kitni tezi se agar nudge karein. Yeh do numbers hain partial derivatives aur .

Dono rules ke liye yahi karo aur chaar numbers ko ek box mein stack karo — Jacobian:

Row hai "rule kaise tilt karta hai". Column hai "agar mein knob push karun toh kya hoga".

KYO. 1-D mein, ek slope number ne hume bata diya tha root ki taraf kaise slide karein. 2-D mein do rules hain aur do knobs, toh "slope" ko numbers chahiye. Jacobian exactly ka -D upgrade hai — Jacobian matrix.

PICTURE.

Figure — Solving nonlinear systems — Newton's method in n dimensions


Step 4 — Flat ramp likho: the linear model

KYA HAI. Maano guess se ek chhota step hai. Multivariable Taylor's theorem (multivariable) kehta hai ki har rule, ke paas, apni value plus slopes times step plus ek tiny leftover ke barabar hai:

Dono rules stack karo aur "slope × step" part exactly Jacobian times step ban jaata hai:

KYO. Hum tiny leftover jaanbujh ke drop karte hain — yahi Newton's method mein ek maatra approximation hai. Jo bacha woh ek flat ramp hai (ek linear map): woh straight hai, toh hum ise exactly solve kar sakte hain. Jo hum ne throw away kiya uski size hai; woh number Step 8 mein blazing speed explain karega.

PICTURE.

Figure — Solving nonlinear systems — Newton's method in n dimensions


Step 5 — Ramp ko zero par demand karo, aur solve karo

KYA HAI. Hum chahte hain ki true zero ho. Hum curve par yeh force nahi kar sakte, lekin apne flat ramp par kar sakte hain. Model ko set karo aur step ke liye solve karo:

Box padhte hain: "Jacobian, unknown step par apply hoke, current miss undo kare." Yeh ek plain linear system hai jahan , — exactly waisa jaisa Gaussian elimination aur LU decomposition khel khelte hain.

KYO. Yeh step saari zooming ka payoff hai: humne ek impossible nonlinear demand ko ek solvable straight demand mein convert kar diya. Hum ise solve karte hain ( invert nahi — mistake box dekho), answer ko rename karte hain, aur step lete hain:

PICTURE.

Figure — Solving nonlinear systems — Newton's method in n dimensions


Step 6 — Ek poora iteration closer land hote dekho

KYA HAI. Step lene ke baad, wahan baith jaata hai jahan tangent zero cross karta hai. Real curve perfectly straight nahi thi, toh hum exactly root par nahi hain — lekin bahut karib hain. Wahan naye slopes measure karo, fresh ramp banao, phir step lo.

KYO. "Zoom → flatten → solve → step" ka ek step hi poora algorithm hai. Ise repeat karna hume crossing par walk karta hai. Dekho kaise miss collapse hoti hai.

PICTURE.

Figure — Solving nonlinear systems — Newton's method in n dimensions


Step 7 — Degenerate case: flat ya crossing-slope Jacobian

KYA HAI. Ramp ka ek jagah zero hit karna tab hi hota hai jab woh actually tilt kare. Agar singular ho (), toh dono rows parallel hain — ramp ek valley ya flat sheet hai, single point nahi. Tab ka koi solution nahi ya infinitely many hain: step undefined hai ya infinity jaata hai.

KYO. Yeh exactly scalar Newton ka twin hai jo flat spot par se divide karta hai. Yeh hota hai (a) jab dono curves cleanly cross karne ki jagah tangentially touch karein (double root), ya (b) mid-iteration jab guess kisi bure ridge par land ho jaaye. Ilaaj: change karo, ya damped Newton use karo (step ka ek fraction lo) — practical fixes ke liye Convergence order of iterative methods aur Broyden's method dekho. Jab root par singular ho, toh Step 8 ki quadratic speed slow crawling mein downgrade ho jaati hai.

PICTURE.

Figure — Solving nonlinear systems — Newton's method in n dimensions


Step 8 — Error har step square kyun hoti hai

KYA HAI. Error ko maano (guess true crossing se kitni door hai). Hum ne jo ek hi cheez throw away ki thi woh Step 4 ka leftover tha. Wahi leftover naya error ban jaata hai:

Agar aaj ki error hai, kal ki hogi, phir , phir — correct digits ki count har step double hoti hai.

KYO. Yeh "error ko square karna" behavior quadratic convergence kehlaata hai (dekho Convergence order of iterative methods). Yeh tab hold karta hai jab (1) kaafi close ho aur (2) nonsingular ho (Step 7). Yahi reason hai ki Newton slow methods jaise Fixed-point iteration se better hai, jinki error sirf ek constant factor se shrink hoti hai har step (linear convergence).

PICTURE.

Figure — Solving nonlinear systems — Newton's method in n dimensions


Ek-picture summary

Figure — Solving nonlinear systems — Newton's method in n dimensions

Sab ek saath: true curve (cyan), guess , flat tangent ramp (white), step jo wahan land karta hai jahan ramp zero hit karta hai, aur root (amber) ki taraf shrinking hop. solve karo, add karo, repeat karo.

miss still big

miss tiny

guess xk

measure slopes J and miss F

build flat ramp F plus J h

solve J step equals minus F

xk plus step

root found

Recall Feynman retelling — poora walkthrough simple words mein

Tum us jagah dhoondh rahe ho jahan do curved fences cross karti hain, lekin fences itni curvy hain ki solve nahi hoti. Toh tum ek guess par khade ho aur zoom in karte ho jab tak har fence paas mein perfectly straight na lage (Step 2). Us straightness describe karne ke liye tum measure karte ho ki har fence kitni steeply tilt karti hai agar tum east push karo aur agar north push karo — chaar slope numbers, ek box mein stacked jise Jacobian kehte hain (Step 3). Woh slopes tumhe ek flat ramp likhne dete hain jo fences ko paas mein copy karta hai (Step 4). Ek ramp straight hota hai, toh tum exactly solve kar sakte ho woh kahan ground hit karta hai: woh batata hai kis direction mein aur kitna step lena hai — bas solve karo, koi inverting nahi (Step 5). Wahan step lo; tum exactly crossing par nahi ho kyunki fences kabhi truly straight nahi thi, lekin bahut karib ho (Step 6). Dhyan raho: agar do fences wahan parallel hain jahan tum khade ho, ramp ek valley ban jaata hai bina single lowest point ke — step blow up karta hai, toh apna start nudge karo ya chhota step lo (Step 7). Woh ek leftover bit jo tune ignore ki woh teri error ke square ke proportional hai, toh har hop roughly teri correct digits double karta hai aur tum ek handful of steps mein crossing par pahunch jaate ho (Step 8).


Quick self-check

Linear-model equation, term by term
current miss hai, ramp ka step par change hai; dono ka sum zero set karo toh milta hai.
Step lene ke liye nonsingular kyun hona chahiye?
Singular ki rows parallel hoti hain — ramp ek valley/flat sheet ban jaata hai, toh ka unique solution nahi hota; step undefined ya infinite ho jaata hai.
Humne kya quantity throw away ki, aur woh kya control karti hai?
Taylor remainder; woh next error ban jaati hai, deta hai.
Circle ∩ parabola ke liye se first-step result
, toh .