Expand f near xn and demand f(root)=0:
0=f(xn)+f′(xn)(r−xn)+21f′′(ξ)(r−xn)2
Dropping the quadratic term and solving for r gives the same formula. The discarded term is O((r−xn)2) — this is the seed of quadratic convergence: the error roughly squares each step.
Solve f(x)=x2−2=0, so f′(x)=2x. Iteration:
xn+1=xn−2xnxn2−2=2xn+xn1Why this step? Simplifying gives the classic "average your guess with 2/x" formula.
Start x0=1:
x1=21+1=1.5 — Why? plug x0=1 in.
x2=0.75+0.6667=1.41667 — Why? feed x1 back in.
x3=1.41421568... — Why? one more pass; now correct to 6 digits.
True 2=1.41421356... — compare x2=1.41667 (3 correct digits: 1,4,1) to x3=1.41421568 (6 correct digits: 1,4,1,4,2,1). The number of correct digits roughly doubled in one step (3→6), the signature of quadratic convergence.
Solve f(x)=x3−2x+2=0 with x0=0.
f′(x)=3x2−2, so f′(0)=−2.
x1=0−−22=1.
f(1)=1, f′(1)=1, x2=1−1=0.
Back to 0! The iteration cycles0→1→0→⋯ forever.
Why this matters: Newton-Raphson is local, not guaranteed global.
Recall Feynman: explain to a 12-year-old
Imagine the curve is a dark hill and you can only feel the slope right under your feet. You can't see where the ground hits sea level. So you pretend the hill keeps going perfectly straight (the slope you feel) and you walk to where that straight line touches sea level. You're not there yet, but you're closer. You feel the slope again, draw a new straight line, walk again. After a few walks you're standing almost exactly on the spot — and each walk cuts your remaining distance enormously, not just a little.
Dekho, Newton-Raphson ka idea bahut simple hai. Tumhe f(x)=0 solve karna hai par algebra se nahi ho raha. Toh trick yeh hai: kisi bhi smooth curve ko zoom karke dekho toh woh apni tangent line jaisi dikhti hai. Straight line ka root nikalna trivial hai — bas dekho woh x-axis ko kahan kaatti hai. Wahi tumhara next guess ban jaata hai. Phir wahan se nayi tangent, naya jump. Har baar tum root ke kaafi paas aate jaate ho.
Formula hai xn+1=xn−f(xn)/f′(xn). Yaad rakhne ka mantra: "New = Old minus Height-over-Slope". f(xn) tumhari current height hai (kitne upar/neeche ho zero se), f′(xn) slope hai. Minus sign zaroori hai — tum overshoot ko subtract karte ho, add nahi. Sign galat kiya toh root ke door bhaag jaoge.
Sabse mast baat: yeh method quadratic convergence deta hai (simple root par). Matlab correct digits har step mein roughly double ho jaate hain. 2 wale example mein dekha — x2=1.41667 mein 3 correct digit, phir x3=1.41421568 mein 6 correct digit (3 se 6, double!). Bohot fast! Taylor series se yeh samajh aata hai: jo error term hum drop karte hain woh error ka square hota hai, isliye agla error chhota chhota square hota jaata hai.
Par savdhaan: yeh local method hai. Agar starting guess kharaab hai, ya f′(xn) zero ke paas hai (flat tangent), toh iteration cycle kar sakti hai ya udd sakti hai — humne x3−2x+2 wale example mein dekha jahan 0→1→0 loop ban gaya. Aur double root par speed quadratic se sirf linear ho jaati hai. Toh good initial guess do, f′ ko check karo, aur tab Newton-Raphson tumhara sabse fast dost hai.