f ko xn ke paas expand karo aur demand karo f(root)=0:
0=f(xn)+f′(xn)(r−xn)+21f′′(ξ)(r−xn)2
Quadratic term drop karne aur r ke liye solve karne par wohi formula milta hai. Discarded term O((r−xn)2) hai — yahi quadratic convergence ki buniyaad hai: error roughly har step mein square ho jaati hai.
f(x)=x2−2=0 solve karo, toh f′(x)=2x. Iteration:
xn+1=xn−2xnxn2−2=2xn+xn1Yeh step kyun? Simplify karne par classic "apne guess ka 2/x ke saath average karo" formula milta hai.
x0=1 se shuru karo:
x1=21+1=1.5 — Kyun?x0=1 plug in karo.
x2=0.75+0.6667=1.41667 — Kyun?x1 wapas feed karo.
x3=1.41421568... — Kyun? ek aur pass; ab 6 digits tak sahi.
Saccha 2=1.41421356... — compare karo x2=1.41667 (3 sahi digits: 1,4,1) ko x3=1.41421568 se (6 sahi digits: 1,4,1,4,2,1). Ek step mein sahi digits roughly double ho gayi (3→6), yahi quadratic convergence ki pehchaan hai.
f(x)=x3−2x+2=0 solve karo x0=0 se.
f′(x)=3x2−2, toh f′(0)=−2.
x1=0−−22=1.
f(1)=1, f′(1)=1, x2=1−1=0.
Wapas 0 par! Iteration cycle karta hai 0→1→0→⋯ hamesha ke liye.
Yeh kyun matter karta hai: Newton-Raphson local hai, globally guaranteed nahi.
Recall Feynman: 12 saal ke bacche ko explain karo
Socho curve ek andhera pahaad hai aur aap sirf apne paon ke neeche ki slope feel kar sakte ho. Aap dekh nahi sakte ki zameen samudra ke level par kahan milti hai. Toh aap pretend karte ho ki pahaad bilkul seedha rehta hai (jo slope aap feel karte ho) aur aap wahan chalte ho jahan woh seedhi line samudra ke level ko chhooti hai. Aap abhi wahan nahi hain, lekin aap kareeb hain. Aap phir slope feel karte ho, nayi seedhi line kheenchte ho, phir chalte ho. Kuch walks ke baad aap almost exactly us jagah khade hain — aur har walk aapki bachi hui doori ko bahut zyaada kam karta hai, sirf thoda nahi.