Exercises — Newton-Raphson method for root finding
4.1.33 · D4· Maths › Calculus I — Limits & Derivatives › Newton-Raphson method for root finding
Level 1 — Recognition
(Kya tum formula padh ke use ek ya do baar run kar sakte ho?)
L1.1 — Ek Newton step haath se
aur ke liye compute karo.
Recall Solution
KYA karte hain: rule ek baar apply karo. KYUN: L1 bas check karta hai ki tum , identify karke plug in kar sako.
- , isliye (power rule from Derivatives — definition and rules).
- par: (hum axis ke neeche hain), (slope upar ja raha hai). Sanity check: , isliye , se zyada close hai. Height negative thi, isliye hum right gaye (add kiya) — sign ne automatically direction ka khayal rakha.
L1.2 — Pieces identify karo
ke liye, aur poora Newton update expression likho.
Recall Solution
KYUN yeh matter karta hai: iterate karne se pehle tumhe sahi se differentiate karna hoga; galat sab kuch kharab kar deta hai.
- aur , isliye .
L1.3 — Sign error pakdo
Ek classmate likhta hai . , use karke dikhao ki unka answer se door jaata hai.
Recall Solution
Galat plus sign ke saath: . Lekin , isliye hum distance se distance tak jump kar gaye — aur door. Sahi minus sign ne diya (distance ). Subtraction hi hai jo tumhe root ki taraf point karta hai.
Level 2 — Application
(Kya tum convergence tak iterate karke answer padh sakte ho?)
L2.1 — 7 ka cube root
estimate karne ke liye use karo. se shuru karo aur tak iterate karo.
Recall Solution
Set-up: . Update rule mein seedha substitute karke, KYUN rearrange karein? Fraction ko split karna "purana guess minus ek correction" ko ek self-contained recipe mein badal deta hai jise tum ek pass mein evaluate kar sako, aur yeh step ki structure expose karta hai. Denominator ko numerator par distribute karo: Is form se kya pata chalta hai: purane guess ka zyaadatar hissa rakhta hai, aur true root ki taraf ek pull hai — yahi woh "weighted average" flavour hai jo Newton root-finding mein leta hai.
- :
- : , isliye Check: — do steps mein already 6 correct digits. Quadratic speed! ke saath hum agले hi step par ruk jaate, kyunki iske neeche aa jaata hai.
L2.2 — Ek quadratic jiska answer pata hai
par se Newton apply karo. nikalo aur batao ki tum kis root par land karte ho.
Recall Solution
.
- : , .
- : , . Guesses ki taraf girte hain. KYUN woh root aur nahi? Newton local hai: dono roots ke right se start karne par, tangent tumhe nazdiki root ki taraf point karta hai, jo hai.
L2.3 — Division ke bina reciprocal
Newton sirf multiplication se compute kar sakta hai (purane CPUs aise division karte the). use karke update derive karo aur se ko tak compute karo.
Recall Solution
KYUN yeh : iska root hai, aur iska derivative re-divide karne se bachata hai.
- , . Sirf multiplications — kitna elegant hai.
- , :
- : Check: — bina kisi division ke converge ho raha hai.
Level 3 — Analysis
(Kya tum behaviour predict kar sakte ho aur KYUN explain kar sakte ho?)
L3.1 — Error ko square hote dekho
se ke liye, error hai . se shuru karke compute karo aur verify karo ki har ek roughly pichle ka square hai (ek constant times).
Recall Solution
Update: . ke saath:
- ,
- ,
- , Analysis: theory kehti hai . Check: vs actual ✓. Aur vs ✓. Error sach mein square ho raha hai — yeh Taylor series convergence zinda jaagti hai.
L3.2 — Ek flat spot ka ambush
aur ke liye, do steps karo aur geometrically explain karo ki tumhe almost kyon sabotage karta hai.
Recall Solution
; note karo ki at . Humara start uss flat spot ke thoda aage hai.
- : , (bahut chhota!). Yeh kaisa dikhta hai (neeche figure dekho): ek almost-horizontal tangent barely slope karta hai, isliye woh axis ko door tak hit karta hai — guess se tak phek diya jaata hai. Yahi "small " ka danger clearly visible hai.
- : , . Yeh ab ke paas real root par home in karta hai.

L3.3 — Double root, degraded speed
Equation ka par ek double root hai ( bhi). se shuru karo aur dikhao ki error har step mein square hone ki bajaye half hoti hai.
Recall Solution
. Update khoobsoorti se simplify hota hai: Isliye error follow karta hai — yeh linear hai, quadratic nahi.
- () → () → () → . KYUN: quadratic-convergence proof ko chahiye . Double root par slope target par vanish ho jaati hai, "" ratio ki tarah behave karta hai, aur tum squaring bonus kho dete ho.
Level 4 — Synthesis
(Kya tum ek nayi problem ke liye Newton scheme bana sakte ho?)
L4.1 — Do curves ka intersection
aur kahaan milte hain? set up karo, uska derivative, update, aur se iterate karo jab tak .
Recall Solution
"Intersection" ko "root" mein badlo: do curves milte hain jahaan unka difference zero hota hai, isliye lo. Phir .
- : , , .
- : , , . Abhi khatam nahi: , isliye tolerance test fail hoti hai — humein ek aur step lena hoga.
- : , , . Ab , isliye hum par ruk jaate hain. Yeh special number (woh value jo solve karta hai) omega constant kehlata hai; do curves exactly wahan ek hi baar milte hain.
L4.2 — ke liye ek scheme design karo
Ek ऐसा Newton iteration banao jiska root ho, ek aise function use karke jiska derivative tumhe clearly pata ho. se iterate karo jab tak .
Recall Solution
Idea: woh number hai jiske liye , yani ka root. Phir .
- : .
- : . Abhi khatam nahi: , isliye hum jaari rakhte hain.
- : . Yahan abhi bhi hai — aage badhte raho.
- : . Ab , isliye hum par ruk jaate hain. Check: — 7 digits tak match. Koi bhi sahi root ke saath kaam karta hai; ek clean bas arithmetic ko pleasant banata hai.
L4.3 — Fixed-point iteration se connect karo
Dikhao ki Newton's method ek Fixed-point iteration hai, likho, aur verify karo ki (jo fast convergence explain karta hai).
Recall Solution
Update ko ek single function ke roop mein rewrite karo: Ek root satisfy karta hai , isliye — yeh ek fixed point hai.
Ab differentiate karo, step by step. Term differentiate hokar deta hai, isliye humein sirf chahiye. Yeh ek quotient hai, isliye hum quotient rule use karte hain Derivatives — definition and rules se, jahan aur :
- ( ka derivative),
- ( ka derivative second derivative hai),
- .
Pieces ko rakhne par:
= \frac{f'(x)^2 - f(x)f''(x)}{f'(x)^2}.$$ Isliye $$g'(x) = 1 - \frac{f'(x)^2 - f(x)f''(x)}{f'(x)^2} = \frac{f'(x)^2 - \big(f'(x)^2 - f(x)f''(x)\big)}{f'(x)^2} = \frac{f(x)f''(x)}{f'(x)^2}.$$ **KYUN last simplification:** numerator mein do $f'(x)^2$ terms cancel ho jaate hain, sirf $f(x)f''(x)$ bachta hai. Ek simple root par $f(r)=0$ jabki $f'(r)\neq0$, isliye $g'(r) = 0$. **KYUN yahi poori story hai:** fixed-point iteration tab fast converge karti hai jab $|g'|$ chhota ho; Newton root par $g'$ ko *exactly zero* banata hai, jo precisely quadratic convergence ki condition hai.Level 5 — Mastery
(Kya tum prove, generalise, aur safeguard kar sakte ho?)
L5.1 — Error-squaring law prove karo
Ek simple root ke liye, prove karo ki kisi ke liye jo aur ke beech hai, jahaan .
Recall Solution
Pehle definitions: current error hai aur agla error; true root hai, isliye .
Step 1 — ko ke baare mein Taylor-expand karo, true root par evaluate karo (Taylor series se): KYUN: hum jaante hain exactly; Taylor's theorem remainder term ko ke saath (koi point aur ke beech) exact banata hai, approximate nahi — yahi hume error precisely pin down karne deta hai.
Step 2 — substitute karo aur poori line ko se divide karo (allowed hai kyunki simple root ke paas hota hai): KYUN se divide karein: yeh exactly woh term manufacture karta hai jo Newton step mein appear hota hai, isliye hum ise agली line mein iterates ke difference se trade kar sakte hain.
Step 3 — Newton step pehchano aur errors mein convert karo. Update rearrange hota hai mein. aur use karke, Step 2 mein ki jagah yeh substitute karo: KYUN: har term ab un errors mein express hai jo humein care hai, isliye algebra cleanly collapse hoti hai.
Step 4 — cancel karo aur solve karo. aur cancel ho jaate hain: Agla error ek constant times current error ka square hai — quadratic convergence, proven. Kyunki simple root ke paas bounded rehta hai, error ko ek baar half karna roughly agले step mein correct-digit count double karta hai.
L5.2 — Safeguarded Newton (bisection ke saath combine karo)
Explain karo, aur pseudo-logic sketch karo, ki kyun practical solvers Newton ko Bisection method ke bracket ke andar wrap karte hain. Woh precise, quantitative test state karo jo decide karta hai ki Newton step kab reject karein.
Recall Solution
Samasya: Newton fast hai lekin unbracketed — ek chhota ya bura guess ko interest ke kisi bhi region ke bahar phenk sakta hai (L3.2 yaad karo aur parent note mein cycling example). Fix — ek bracket rakho jahan (ek sign change root ko andar guarantee karta hai, intermediate value idea se jo Bisection method ke peeche hai). Har iteration mein:
- Newton step propose karo .
- Reject test (precise): Newton step reject karo aur bisection use karo agar koi bhi ek condition ho:
- (step bracket se bahar chali gayi), ya
- ek fixed chhote slope threshold ke liye, e.g. (tangent trust karne ke liye bahut flat hai). Ek common alternative test yeh hai ki agar step bracket ko kam se kam half shrink karne mein fail kare, yani , toh reject karo.
- Bracket update karo: mein se jo ke sign share karta ho use se replace karo. KYUN kaam karta hai: jab guess achha ho tum Newton ki quadratic speed pate ho, aur jab Newton misbehave kare bisection ki guaranteed (agar slow) progress milti hai — bracket kabhi half se zyaada narrow hone se bura nahi.
L5.3 — Ek divergence diagnose karo
(root par) ke liye, dikhao ki bahut door se start karna Newton ko diverge karaa deta hai, aur critical starting magnitude nikalo.
Recall Solution
, isliye update hai KYUN yeh explode kar sakta hai: bade ke liye, jabki grow karta hai, isliye subtracted term massively overshoot karta hai — , bahar ki taraf spiral karta hai. Critical point: converge aur diverge ke beech ki boundary woh jagah hai jahan step exactly equal magnitude ke saath sign flip karta hai, : Numerically solve karne par milta hai. se shuru karo toh Newton par converge karta hai; se shuru karo toh diverge karta hai (har step pichle se bada hota hai). Exactly par yeh hamesha ke liye cycle karta hai. Neeche figure achhe starting guesses ki narrow red band dikhata hai.

Connections
- Newton-Raphson method for root finding — woh parent jise yeh drill karta hai.
- Tangent line and linear approximation — har step ek tangent jump hai.
- Taylor series — L5.1 error-squaring proof ko power karta hai.
- Derivatives — definition and rules — upar har supply karta hai.
- Fixed-point iteration — L4.3 Newton ko ke roop mein recast karta hai.
- Bisection method — L5.2 ka safeguard partner.
- Roots of polynomials — L2.2 aur L3 yahaan rehte hain.