The "bread" of the sandwich is g (lower) and h (upper). The "filling" f is squeezed in the middle.
Why we need it: Some functions are too wiggly to compute their limit directly — like x2sin(1/x) near 0, where sin(1/x) oscillates infinitely fast. We can't plug in, we can't simplify nicely. But we can bound it.
We use the ε–δ definition of a limit. Recall: limx→af(x)=L means for every ε>0 there's a δ>0 such that 0<∣x−a∣<δ⟹∣f(x)−L∣<ε.
Step 1 — Translate the hypotheses.
Since limx→ag(x)=L: given ε>0, there is δ1>0 with
0<∣x−a∣<δ1⟹L−ε<g(x)<L+ε.Why this step? The definition of limit lets us force g within ε of L.
Step 2 — Same for the top.
Since limx→ah(x)=L: there is δ2>0 with
0<∣x−a∣<δ2⟹L−ε<h(x)<L+ε.
Step 3 — Take the smaller window.
Let δ=min(δ1,δ2). Then both bounds hold simultaneously when 0<∣x−a∣<δ.
Why this step? We need a single δ where everything is true at once.
Step 4 — Chain the inequalities.
For 0<∣x−a∣<δ:
L−ε<g(x)≤f(x)≤h(x)<L+ε.Why this step? The lower bound L−ε comes from g; the upper bound L+ε comes from h. The middle is f by hypothesis. So f is trapped.
Step 5 — Read off the conclusion.L−ε<f(x)<L+ε⟺∣f(x)−L∣<ε.
That is exactly the definition of limx→af(x)=L. ■
Imagine two elevators, a slow one above you and a fast one below you, and you're stuck on a platform between them. If both elevators are heading to the 3rd floor, you must end up on the 3rd floor too — you're squished between them and can't go anywhere else. The squeeze theorem says: if the function above and the function below both arrive at the same number, the function in the middle is forced to arrive there as well. We don't even need to watch the middle function — the two outside ones drag it along.
Squeeze theorem ka idea bilkul simple hai: agar koi function f(x) do aur functions ke beech "phasa" (sandwich) hua hai — neeche g(x) aur upar h(x) — aur dono walls same value L tak ja rahe hain, toh beech wala f(x) bhi majboori mein L tak hi jayega. Function ko bhaagne ki jagah hi nahi milti. Isiliye ise sandwich theorem bhi kehte hain — do bread slices same height pe milengi toh filling bhi wahi height pe hogi.
Yeh kab use karte hain? Jab function itna wiggly ya oscillating hai ki direct limit nikalna mushkil hai. Classic example: x2sin(1/x), jahan sin(1/x) zero ke paas infinitely fast oscillate karta hai. Hum direct plug nahi kar sakte. Par hum jaante hain sin hamesha −1 aur 1 ke beech rehta hai, toh −x2≤x2sin(1/x)≤x2. Dono walls 0 pe ja rahe hain, isliye answer bhi 0.
Ek important dhyaan rakhne ki baat: dono walls ka limit same hona chahiye. Agar ek 2 pe jaa raha hai aur dusra 4 pe, toh kuch conclude nahi hota — average mat lo, woh galat hai. Aur ek bada trap: jab inequality ko x se multiply karte ho zero ke paas, x negative bhi ho sakta hai jo inequality ko flip kar deta hai. Isliye x2 ya ∣x∣ se multiply karna safe hai kyunki woh hamesha non-negative hote hain. Yeh chhoti baatein exam mein marks bachati hain.