Interactive visualiser

Squeeze theorem

When a function is trapped between two others that share a limit, it has that limit too. Zoom in towards x=0x = 0 and watch ff oscillate faster and faster while the bounds close around it.

Διαβάστε το στα ελληνικά →

Loading the visualiser…

Works on a phone, tablet or computer — nothing to install, no account.

The theorem

If h(x)≤f(x)≤g(x)h(x) \le f(x) \le g(x) near x0x_0 and lim⁡x→x0h(x)=lim⁡x→x0g(x)=ℓ\lim\limits_{x \to x_0} h(x) = \lim\limits_{x \to x_0} g(x) = \ell, then lim⁡x→x0f(x)=ℓ\lim\limits_{x \to x_0} f(x) = \ell.

What you are looking at

f(x)=x2sin⁡1xf(x) = x^2 \sin\dfrac{1}{x} oscillates infinitely often near 00, so no table of values settles its limit. But ∣sin⁡1x∣≤1\left|\sin\dfrac{1}{x}\right| \le 1 gives −x2≤x2sin⁡1x≤x2-x^2 \le x^2\sin\dfrac{1}{x} \le x^2, and both bounds tend to 00. The green curves are those bounds, and the working shows h(x)h(x), f(x)f(x) and g(x)g(x) at the current point, always in that order.

The third function is the famous one: for 0<∣x∣<π20 < |x| < \dfrac{\pi}{2}, cos⁡x≤sin⁡xx≤1\cos x \le \dfrac{\sin x}{x} \le 1, and both bounds tend to 11, so lim⁡x→0sin⁡xx=1\lim\limits_{x \to 0}\dfrac{\sin x}{x} = 1 — the limit behind the derivative of sin⁡x\sin x. Zooming does not change the argument; it shows why it works: the closer you look, the less room ff has.

Try this

  1. 1Press Zoom and watch the window shrink around 00: ff stays between the green curves at every scale.
  2. 2Switch to xsin⁡1xx \sin\dfrac{1}{x}: the bounds are now ±∣x∣\pm|x|, straight lines instead of parabolas, and the squeeze still works.
  3. 3Switch to sin⁡xx\dfrac{\sin x}{x}: it is not defined at 00, yet the bounds cos⁡x\cos x and 11 force the limit 11.
  4. 4Hide the formulas and answer the prediction first: does ff have a limit at 00 at all?

Mistakes students make

  • Using bounds that do not share a limit. −1≤sin⁡1x≤1-1 \le \sin\dfrac{1}{x} \le 1 is true but proves nothing: the bounds tend to −1-1 and 11, and sin⁡1x\sin\dfrac{1}{x} has no limit at 00.
  • Writing lim⁡x2sin⁡1x=lim⁡x2⋅lim⁡sin⁡1x\lim x^2 \sin\dfrac{1}{x} = \lim x^2 \cdot \lim \sin\dfrac{1}{x}: the product rule for limits needs both limits to exist, and the second does not.

In the exam

  • Squeeze arguments and lim⁡x→0sin⁡xx=1\lim\limits_{x \to 0}\dfrac{\sin x}{x} = 1 are AP Unit 1 material: state both inequalities and both limits before you conclude.
  • At A-Level the small-angle approximation sin⁡x≈x\sin x \approx x rests on the same limit.

Where it is taught

  • AP Calculus AB/BC · Unit 1 (1.8 Squeeze Theorem)
  • IB Maths AA HL · 5.12 (limits)
  • Greek Γ΄ Λυκείου · §1.5

Teaching this?

Put this visualiser on your lesson board with one tap. Your student sees every drag, live, on their own screen — and Owlileo marks the homework, runs the tests and keeps the parents informed.

Start free →