Worked examples — Newton-Raphson method for root finding
4.1.33 · D3· Maths › Calculus I — Limits & Derivatives › Newton-Raphson method for root finding
Kuch bhi shuru karne se pehle, teen symbols ka reminder, plain words mein, taaki kuch assumed na ho:
Scenario matrix
Neeche har worked example us matrix ke cell ke saath tagged hai jise woh exercise karta hai.
| Cell | Situation | Kya galat ho sakta hai / special kya hai | Example |
|---|---|---|---|
| A | Nice simple root, accha start | Kuch nahi — fast quadratic convergence | Ex 1 |
| B | Negative starting guess / doosra quadrant | ka sign tumhe "doosri taraf" steer karta hai | Ex 2 |
| C | Double root ( root par) | Convergence linear ho jaati hai | Ex 3 |
| D | Degenerate step: exactly | Division by zero — method toot jaata hai | Ex 4 |
| E | Runaway / diverging start | Guess infinity ki taraf ud jaata hai | Ex 5 |
| F | Do roots, start decide karta hai kaun sa | Basin of attraction | Ex 6 |
| G | Real-world word problem | Story se set up karo, units dhyan rakho | Ex 7 |
| H | Exam-style twist (reciprocal / division-free) | aisa design karo ki update mein division na ho | Ex 8 |
Dhyan karo matrix guess ke dono signs, degenerate slope, dono limiting behaviours (fast converge, diverge), aur applied + exam flavours cover karta hai. Kuch bhi chhuta nahi.
Cell A — well-behaved simple root
Forecast: tum par start karte ho, true root hai. Kya , se neeche land karega? Roughly kitna — ek chhota nudge ya bada jump?
Steps
- Guess par evaluate karo: , . Yeh step kyun? Update ko current height aur current slope dono chahiye; hum inhe hamesha pehle compute karte hain.
- Formula apply karo: . Yeh step kyun? Hum point se tangent par ride karte hain neeche jahan tak woh axis cross kare — woh crossing hai. Neeche figure mein lavender tangent dekho jo -axis par drop ho raha hai.
- Repeat karo: (3 dp tak), . Phir . Yeh step kyun? Nayi guess wapas feed karo — har pass nayi point par fresh tangent use karta hai.
- Ek baar aur: , aur — pehle hi 6 correct digits. Yeh step kyun? Digits ko double hote dekho per step (2 correct → 4 → 6): yeh quadratic-convergence signature hai jo Taylor series argument predict karta hai.
Verify: ko mein plug karo: . Height essentially zero hai ✅. Aur jaise forecast tha — pehla modest nudge, phir snap in ho jaata hai.
Cell B — doosre quadrant mein negative guess
Forecast: par start karte hue, hum kis root ki taraf jaayenge — ya ? Sign dekho.
Steps
- , . Yeh step kyun? Left branch par slope negative hai; woh negative sign exactly humein negative root ki taraf redirect karta hai.
- . Yeh step kyun? Height over slope hai; subtract karna humein left move karta hai, ki taraf. Kabhi assume mat karo ki jump right jaata hai.
- . Yeh step kyun? Same digits-doubling, bas zero ke across mirror hua.
- .
Verify: ✅. Hum par land kiye, na ki par — starting sign ne basin choose kiya. Ex 6 se compare karo.
Cell C — double root, convergence slow hokar linear ho jaati hai
Forecast: parent ne quadratic speed promise ki thi. Yahan digits double nahi honge. Guess: kya har step remaining error ko halve karta hai?
Steps
- , . To . Error gaya . Yeh step kyun? Ordinary update — lekin dhyan karo error sirf halve hua.
- , . . Error . Yeh step kyun? Phir exactly halve hua — yeh linear convergence hai, ek bit per step.
- , . . Error . Yeh step kyun? Pattern hamesha hold karta hai — quadratic guarantee fail ho gayi kyunki usne simple root assume kiya tha ().
Verify: error sequence exactly hai — ek geometric (linear) decay, parent ke mistake-callout #3 ko confirm karta hai ✅. Ex 1 se contrast karo jahan errors square hoti theen.
Cell D — degenerate step: slope exactly zero hai
Forecast: par tangent ki slope kya hai? Agar woh flat hai, to flat line -axis ko kahan cross karti hai?
Steps
- , . Yeh step kyun? Humein divide karne se pehle check karna zaruri hai (parent mistake #2). Yahan woh exactly hai.
- Update undefined hai — division by zero. Geometrically par tangent horizontal hai (figure mein flat coral line dekho); ek horizontal line kabhi -axis se nahi milti. Yeh step kyun? Yeh woh degenerate case hai jiske baare mein theory warn karti hai — recipe ka simply koi answer nahi hai.
Verify: exactly hai, to ka zero denominator hai — koi finite exist nahi karta ✅. Fix: start perturb karo, e.g. deta hai aur ki taraf theek se converge karta hai. (Check: , phir , par close ho raha hai.)
Cell E — ek runaway start jo diverge karta hai
Forecast: bade ke liye, ki taraf flatten ho jaata hai — slope tiny ho jaata hai. Tiny slope + not-tiny height matlab ek huge jump. Guess: kya humein ke closer move karta hai ya hume aur door phek deta hai?
Steps
- , . Yeh step kyun? Dhyan karo height () slope () ke relative badi hai — ek warning sign.
- . Yeh step kyun? Hum zero overshoot karte hain aur root se aur door land karte hain, doosri side par. Nearly-flat tangent (parent mistake #2) ne hume launch kiya.
- , . -ish . Yeh step kyun? Distance har step par grow kar rahi hai () — textbook divergence.
Verify: , aur ✅ — guesses run away kar rahe hain, confirm karta hai ki Newton-Raphson sirf local hai. Iske bajay se start karo (chhoti height, slope ) converge karta hai: , pehle hi ke kaafi close.
Cell F — do roots, start basin choose karta hai
Forecast: se start karo ( ke right) — kya tum par pahunchoge ya par? Phir se start karo — same sawaal, opposite side.
Steps
- Right start : , . . Yeh step kyun? Hum vertex ke right hain, root ke owned branch par.
- , . . Yeh step kyun? par homing — right basin. Figure dekho: vertex ke dashed line ke right sab kuch ki taraf flow karta hai.
- Left start : , . . Yeh step kyun? Vertex ke left, to hum root ke left basin mein gir jaate hain.
- , . .
Verify: se: ki taraf ja raha hai ✅. se: ki taraf ja raha hai ✅. Vertex () do basins of attraction ke beech ki boundary hai — Fixed-point iteration se links.
Cell G — ek real-world word problem (units dhyan rakho)
Forecast: zero interest () exactly $5000 deta hai (paanch deposits). Humein $6000 chahiye, to ek positive, smallish rate hai. Guess: kya 5% ke karib hai ya 15% ke?
Steps
- se start karo (10% trial): , . Yeh step kyun? Ek sensible physical starting rate choose karo; height aur slope same units mein compute karo (pure numbers ab, kyunki ek ratio hai).
- . Yeh step kyun? Ek Newton jump growth factor ko thoda lower karta hai — ek chhota correction kyunki hum close se start kiye.
- -ish, , deta hai . Yeh step kyun? Already converge ho gaya; zyada passes barely move karte hain — simple root par quadratic convergence.
Verify: growth factor . Wapas plug karo: ✅. Units check: dollars in = dollars out; ek pure rate hai ✅.
Cell H — ek exam-style twist (division-free reciprocal)
Forecast: tumhe ek invent karna hai jiska root ho aur jiska update division cancel kar de. Kaun sa function ko root ki tarah rakhta hai lekin sirf ko multiplicatively involve karta hai?
Steps
- Choose karo . Iska root wahan hai jahan , yani — exactly target. Yeh step kyun? Hum design karte hain taaki iska zero woh number ho jo hum chahte hain.
- Differentiate karo: . Yeh step kyun? Update ko slope chahiye; dhyan karo ismein bhi hai — hum ab inhe cancel hone dene wale hain.
- Update: . Yeh step kyun? Do reciprocals algebraically cancel ho jaate hain, sirf multiplications aur ek subtraction reh jaate hain — koi division nahi. Yahi exam ka punchline hai.
- , ke saath iterate karo: ; ; . Yeh step kyun? Confirm karo ki yeh sirf multiplication use karke par home karta hai.
Verify: ; check karo ✅. Har operation multiply ya subtract tha — division-free goal met ✅.
Recall Self-test: example ko cell se match karo
Kaun sa example linear (quadratic nahi) convergence dikhata hai, aur kyun? ::: Ex 3 — ek double root, jahan hai to Taylor guarantee fail ho jaati hai. Kis example mein koi valid hi nahi hai? ::: Ex 4 — exactly hai, to hum zero se divide karte hain. Ex 6 mein ki kaun si value do basins of attraction ko separate karti hai? ::: Vertex , jahan . Ex 8 ka update division avoid kyun karta hai? ::: se aur se cancel ho jaate hain, reh jaata hai.
Connections
- Tangent line and linear approximation — yahan har step ek tangent hai, draw kiya aur axis par drop kiya.
- Taylor series — explain karta hai kyun Ex 1 digits double karta hai lekin Ex 3 nahi karta.
- Derivatives — definition and rules — har example mein supply kiya.
- Fixed-point iteration — Ex 6 mein basin idea fixed-point convergence picture hai.
- Bisection method — safe fallback jab Ex 4/Ex 5 misbehave karte hain (safeguarded Newton).
- Roots of polynomials — Ex 1, 6, 7 sab polynomial roots hain.