Solving nonlinear systems — Newton's method in n dimensions
4.8.29· Maths › Numerical Methods
HUM KYA solve kar rahe hain?
Scalar Newton method ka wala case hai. Sirf ek conceptual upgrade: derivative ek matrix (Jacobian) ban jaati hai, aur " se divide karo" ka matlab ho jaata hai "ek linear system solve karo."
KAISE — first principles se derivation
Step 1 — Linearize karo. Current guess lo aur har component ka first-order Taylor expansion ke around likho: Yeh step kyun? Multivariable Taylor's theorem kehta hai ki kisi point ke paas ek smooth function apni value plus displacement ke saath gradient ka dot product equals hoti hai, plus higher order terms. Hum linear term ke baad truncate karte hain — yahi approximation problem ko solvable banati hai.
Step 2 — Matrix form mein stack karo. Saare rows collect karo. Partials ki matrix Jacobian hai: Toh . Yeh step kyun? Jacobian, ko par approximate karne wali best linear map hai — yeh derivative ka -D analogue hai.
Step 3 — Linear model ko zero pe lao. Hum chahte hain . Approximation ko zero set karo: Yeh step kyun? Ab yeh ek linear system hai — exactly woh type jise hum LU/Gaussian elimination se solve kar sakte hain.
Step 4 — Solve karo aur update karo.
ITNA fast kyun converge karta hai
Reason: humne linear term rakha aur remainder phenk diya. Toh naya error us bache hue quadratic term se govern hota hai: bas tab jab (1) , ke kafi paas ho, aur (2) nonsingular (invertible) ho. Agar root par singular hai, toh convergence slow ho jaati hai — waise hi jaise scalar Newton double root par creep karta hai jahan .

Worked Example 1 — circle ∩ parabola ()
Solve karo
Jacobian. Yeh step kyun? Har ko har variable ke w.r.t. differentiate karo; row hai .
Start .
- . Kyun? Bas plug in karo; batata hai hum zero se kitna door hain.
- , .
- solve karo: Yeh step kyun? ke liye, ; se multiply karo.
- .
Agla : — pehle se kaafi chhota. Iterate karte rahe toh converge hoga par. Kyun chhota hua: linear model root ke paas accurate tha.
Worked Example 2 — linear case check karna
Linear system solve karo, yaani .
- (constant!). Kyun? .
- Kisi bhi se: , toh — ek step mein exact.
- Yeh kyun important hai: Newton linear systems ek hi iteration mein solve kar leta hai. Yeh ek sanity-check hai (Forecast-then-verify): agar tumhara code linear par kai steps le raha hai, toh tumhara Jacobian galat hai.
Algorithm (pseudo)
given F, J, x0, tol
for k = 0,1,2,...
compute F(xk), J(xk)
solve J(xk) Δx = -F(xk) # LU, NOT inverse
xk+1 = xk + Δx
if ||F(xk+1)|| < tol and ||Δx|| < tol: stop
Recall Feynman: 12-saal ke bachche ko samjhao
Socho tum aankhon par patti baandhke ek ulhar-pulhar pahaad par ho aur sabse nichli valley point dhundh rahe ho jahan zameen flat ho. Tum apne paon ke neeche slope mahsoos karte ho (yahi Jacobian hai — ek saath har direction mein slope). Tum pretend karte ho ki pahaad us slope ke saath ek flat ramp hai, seedha wahan slide karte ho jahan woh ramp bottom hit karti, aur ek step lete ho. Pahaad actually flat nahi hai, isliye tum ekdum sahi nahi ho — lekin kaafi paas aa gaye. Phir se slope mahsoos karo, phir slide karo. Har guess pichle se kahin behtar hoti hai, aur jaldi hi tum bilkul usi jagah khade ho jaate ho.
Flashcards
-D Newton mein scalar derivative ki jagah kya aata hai?
Systems ke liye core Newton update likho.
use karne ki bajaye kyun solve karte hain?
Newton ka simple root ke paas convergence rate kya hai?
Quadratic convergence ke liye do conditions?
Linear ke liye Newton ko kitne iterations chahiye?
Tumhare discard kiye Taylor truncation se kya control hota hai?
Achha stopping criterion kaunse do quantities use karta hai?
Damped Newton kya hai aur kab chahiye?
Agar root par singular ho toh kya hoga?
Connections
- Newton's method (1-D) — special case; same logic with instead of .
- Jacobian matrix — multivariable derivative jo linearization ko power deti hai.
- Taylor's theorem (multivariable) — linear model ka source.
- LU decomposition / Gaussian elimination — har step ka linear solve aise hota hai.
- Fixed-point iteration — Newton as a fixed-point map .
- Broyden's method — quasi-Newton: approximate karo taaki derivatives recompute na karni padein.
- Convergence order of iterative methods — linear/quadratic rates define karta hai.