We want to solve an Initial Value Problem (IVP):
dxdy=f(x,y),y(x0)=y0
The function f tells us the slope of the solution curve at any point (x,y). The catch: we don't have a formula for y(x) — only its slope. Euler's method turns "I know the slope everywhere" into "I can sketch the curve numerically."
WHY can't we just integrate? Because f depends on y itself, which we don't know yet. We need a stepwise, self-bootstrapping method: use what we have now to estimate the next point.
Here is the steel-manned reasoning (don't skip — this is the 20% that earns 80% of the marks):
Each step adds an error of size ∼2h2∣y′′∣.
To reach x=b we take N=hb−x0 steps — so Ngrows as h shrinks.
Naïve total: N×O(h2)=hb−x0⋅O(h2)=O(h).
So one power of h is lost because more steps are needed for smaller h.
Why the eL(xn−x0) factor? Errors don't just add — earlier errors get amplified as they propagate through f. The Lipschitz constant L measures how fast nearby solutions diverge; the exponential is the worst-case growth.
Imagine walking in fog and you can only see which direction the path points right where you stand. You can't see the whole path. So you face that direction, take one small step, look again at the new direction, take another small step. Each step you're slightly off because the path curved while you walked straight — but small steps keep you close. Taking smaller steps keeps you closer to the real path, but you need many more steps to finish.
Dekho, Euler's method ka idea bahut simple hai. Tumhare paas ek differential equation hai y′=f(x,y) jo batati hai ki kisi bhi point par curve ka slope kya hai, aur ek starting point y(x0)=y0 pata hai. Lekin poori curve ka formula nahi pata. Toh hum kya karte hain — current point par jo slope hai, us direction me ek chhota step h lete hain. Formula bana: yn+1=yn+h⋅f(xn,yn) — yaani "naya = purana + step × slope". Bas yahi baar baar repeat karo.
Ye formula nikalta kaise hai? Taylor series se. y(xn+h)=yn+hy′(xn)+2h2y′′(ξ). Hum y′ ki jagah f daal dete hain aur h2 wala term fenk dete hain. Wahi fenka hua term hamari ek-step ki galti hai, jise local truncation error kehte hain, aur wo O(h2) hai.
Ab sabse important baat — exam me yahi puchha jaata hai. Local error h2 hai, lekin global error (poore raaste ka total error) sirf O(h) hota hai. Kyun? Kyunki endpoint tak pahunchne ke liye N=(b−x0)/h steps lagte hain. Jaise jaise h chhota karte ho, steps zyada hote jaate hain. Toh N×O(h2)=O(h) — ek power h ki kam ho gayi. Iska matlab: Euler first order method hai, h ko aadha karoge toh error bhi roughly aadha hoga.
Practical baat: chhota h accha hai par bahut chhota karoge toh round-off error aur time barbaad. Aur agar equation "stiff" hai (jaise y′=−2y bade h ke saath), toh answer phat jaata hai — wahan stability ka concept aata hai. Isiliye aage Runge-Kutta jaise behtar methods padhte hain.