Step 9: Limits from Graphs, Tables and Algebra
- \( \lim_{x\to a} f(x) = L \) means \( f(x) \) gets as close to \( L \) as you like when \( x \) is close enough to \( a \), but not equal to it. What happens at \( a \) does not matter.
- The limit exists only when the left-hand and right-hand limits exist and are equal. It fails if they differ, if \( f \) grows without bound, or if \( f \) oscillates.
- Substitute first. If you get \( \tfrac00 \), factorise and cancel, multiply by a conjugate, or combine fractions, then substitute again. Graphs and tables give estimates; algebra gives proof.
- Exam point: the squeeze theorem traps a function between two that share a limit. It proves \( \lim_{x\to0}\frac{\sin x}{x} = 1 \), which is true only with \( x \) in radians.
Change at an instant
This step opens the calculus units of the guide. It follows AP Calculus Unit 1, Limits and Continuity, topics 1.1 to 1.9; the next step covers topics 1.10 to 1.16. In IB Analysis and Approaches the limit is introduced at the start of topic 5 (SL 5.1). Cambridge 9709 has no separate limits topic, but Paper 1 asks you to see a gradient as the limit of chord gradients, which is exactly the algebra on this page.
Why do we need limits at all? Speed is distance divided by time. At a single instant both are zero, and \( \tfrac00 \) means nothing. Yet a speedometer shows a number. A stone dropped from a cliff falls \( s = 4t^2 \) metres in \( t \) seconds. Between \( t = 3 \) and \( t = 3 + h \) its average speed is
For \( h = 0.1 \), 0.01 and 0.001 this is 24.4, 24.04 and 24.004 m/s. We cannot put \( h = 0 \) in the original fraction, but as \( h \) shrinks the average speed closes in on 24. That number, 24 m/s, is the speed at the instant \( t = 3 \). It is a limit, and every derivative in the next unit is built the same way.
Take \( f(x) = \dfrac{x^2-9}{x-3} \). At \( x = 3 \) it gives \( \tfrac00 \), so \( f(3) \) does not exist. Everywhere else the top factorises and \( f(x) = x + 3 \). So the graph is the line \( y = x + 3 \) with one point missing, and as \( x \) approaches 3 from either side, \( f(x) \) approaches 6. Hence \( \lim_{x\to3} f(x) = 6 \), even though \( f(3) \) is undefined. A limit describes the approach, never the arrival.
Sometimes the two sides disagree. We write \( \lim_{x\to a^-} f(x) \) for the limit from the left (\( x < a \)) and \( \lim_{x\to a^+} f(x) \) for the limit from the right (\( x > a \)).
Reading limits from graphs and tables
To read a limit from a graph, trace the curve towards \( x = a \) from each side with a finger and see what height you approach. Open circles and filled dots tell you about \( f(a) \), which the limit ignores.
For the function in Figure 1, find (a) \( \lim_{x\to1^-} f(x) \) (b) \( \lim_{x\to1^+} f(x) \) (c) \( \lim_{x\to1} f(x) \) (d) \( f(1) \) (e) \( \lim_{x\to3} f(x) \) and \( f(3) \).
Part (e) is the key idea: the limit and the value can be different numbers.
A limit can fail to exist in three ways. The one-sided limits differ, as at \( x = 1 \) in Figure 1. The function grows without bound: \( \frac{1}{(x-2)^2} \) shoots up as \( x \to 2 \). We may write \( \lim_{x\to2} \frac{1}{(x-2)^2} = \infty \) to say how it fails, but \( \infty \) is not a number, so the limit still does not exist. Or the function oscillates: \( \sin\frac1x \) swings between \( -1 \) and 1 infinitely often as \( x \to 0 \) and settles on nothing.
When there is no graph, a table of values close to \( a \) on both sides gives an estimate.
Estimate \( \displaystyle\lim_{x\to0} \frac{e^x-1}{x} \) from a table of values.
| \( x \) | −0.1 | −0.01 | −0.001 | 0.001 | 0.01 | 0.1 |
|---|---|---|---|---|---|---|
| \( \frac{e^x-1}{x} \) | 0.9516 | 0.9950 | 0.9995 | 1.0005 | 1.0050 | 1.0517 |
No algebra trick removes the \( \tfrac00 \) here, so the table is genuinely useful. L’Hôpital’s rule, in Step 16, will prove the value is exactly 1.
Evaluating limits with algebra
Limits behave well with arithmetic. If \( \lim_{x\to a} f(x) = L \) and \( \lim_{x\to a} g(x) = M \), then the limit of a sum is \( L + M \), of a product is \( LM \), of \( kf(x) \) is \( kL \), of a power is \( L^n \), and of a quotient is \( \frac{L}{M} \) provided \( M \neq 0 \). These are the limit laws.
They give the most useful rule of all, direct substitution: for a polynomial, \( \lim_{x\to a} p(x) = p(a) \), and the same holds for a rational function wherever the denominator is not zero. So always substitute first.
Given \( \lim_{x\to4} f(x) = 3 \) and \( \lim_{x\to4} g(x) = -1 \), find \( \displaystyle\lim_{x\to4} \frac{[f(x)]^2-2g(x)}{f(x) + g(x)} \).
Check the denominator’s limit before you divide. If it is zero, the quotient law says nothing.
When substitution gives \( \tfrac00 \), the function is hiding a common factor. Why may we cancel it? Because \( \frac{(x-2)(x^2 + 2x + 4)}{(x-2)(x + 2)} \) and \( \frac{x^2 + 2x + 4}{x + 2} \) are equal at every \( x \) except 2, and a limit as \( x \to 2 \) never looks at \( x = 2 \) itself. So the two have the same limit. Here are the three standard repairs.
Find (a) \( \displaystyle\lim_{x\to2} \frac{x^3-8}{x^2-4} \) (b) \( \displaystyle\lim_{x\to5} \frac{\sqrt{x + 11}-4}{x-5} \) (c) \( \displaystyle\lim_{x\to0} \frac{1}{x}\left(\frac{1}{x + 2}-\frac12\right) \).
Factorise for polynomials, use the conjugate for square roots, and combine compound fractions over a common denominator.
| Substitution gives | What it means | What to do |
|---|---|---|
| a real number | that is the limit (for standard functions) | stop |
| \( \frac{k}{0} \), \( k \neq 0 \) | unbounded near \( a \) | check the sign on each side |
| \( \frac00 \) | indeterminate: anything is possible | factorise, conjugate, combine fractions, or use \( \frac{\sin x}{x} \to 1 \) |
| piecewise or \( |x| \) | the two sides may differ | find each one-sided limit |
An economics example: marginal cost is a limit. A firm’s total cost is \( TC(Q) = 50 + 6Q + 0.2Q^2 \) dollars. Raising output from 25 to \( 25 + h \) units costs, per extra unit,
because the top simplifies to \( 16h + 0.2h^2 \).
For \( h = 1 \) (the 26th unit) that is \$16.20. When output is large, one unit is a tiny step, so economists take the limit as \( h \to 0 \): the marginal cost at \( Q = 25 \) is \$16. Whenever an economist says “at the margin”, a limit is hiding underneath.
The squeeze theorem and \( \sin x / x \)
Some limits resist algebra. Consider \( x^2\cos\frac1x \) as \( x \to 0 \). The factor \( \cos\frac1x \) oscillates and has no limit. But it is trapped between \( -1 \) and 1, and it is multiplied by \( x^2 \), which shrinks to 0. Trap a function between two simpler ones that meet, and it has nowhere else to go.
Show that \( \displaystyle\lim_{x\to0} x^2\cos\tfrac1x = 0 \).
Name the theorem and show both bounding limits; that is what AP readers look for.
The most famous squeeze is this one, with \( x \) in radians.
In a unit circle, compare three nested shapes for an angle \( 0 < x < \frac{\pi}{2} \): a triangle of area \( \frac12\sin x \), a sector of area \( \frac12 x \), and a larger triangle of area \( \frac12\tan x \). Their areas are in order, which rearranges to \( \cos x < \frac{\sin x}{x} < 1 \). As \( x \to 0 \), \( \cos x \to 1 \), so \( \frac{\sin x}{x} \) is squeezed to 1 (Figure 3). The sector formula \( \frac12 r^2\theta \) is a radian formula, so the result holds only in radians; in degrees the limit is \( \frac{\pi}{180} \).
Find (a) \( \displaystyle\lim_{x\to0} \frac{\sin 3x}{5x} \) (b) \( \displaystyle\lim_{x\to0} \frac{1-\cos 2x}{x^2} \).
A trigonometric identity often turns an awkward limit into the standard one.
Practise: 6 questions
Try each one on paper first, then check the worked answer.
EasyQ1. Find \( \displaystyle\lim_{x\to5} \frac{x^2-25}{x-5} \). Is the function defined at \( x = 5 \)? Show worked answer
The limit is \( 5 + 5 = 10 \).
The function is not defined at \( x = 5 \): the graph has a hole at \( (5, 10) \).
EasyQ2. \( f(x) = 2x-1 \) for \( x < 3 \) and \( f(x) = x^2-3 \) for \( x \ge 3 \). Find both one-sided limits at \( x = 3 \). Does \( \lim_{x\to3} f(x) \) exist? Show worked answer
Right: \( \lim_{x\to3^+} (x^2-3) = 6 \).
They differ, so \( \lim_{x\to3} f(x) \) does not exist.
MediumQ3. Find \( \displaystyle\lim_{x\to-2} \frac{x^2 + 5x + 6}{x^2-4} \). Show worked answer
Factorise: \( \frac{(x + 2)(x + 3)}{(x + 2)(x-2)} = \frac{x + 3}{x-2} \) for \( x \neq -2 \).
Substitute: \( \frac{1}{-4} = -\frac14 \).
MediumQ4. Find \( \displaystyle\lim_{x\to0} \frac{\sqrt{9 + x}-3}{x} \). Show worked answer
Top: \( (9 + x)-9 = x \), so the fraction is \( \frac{1}{\sqrt{9 + x} + 3} \) for \( x \neq 0 \).
Substitute: \( \frac{1}{3 + 3} = \frac16 \).
MediumQ5. Find \( \displaystyle\lim_{x\to0} \frac{\tan 2x}{3x} \). Show worked answer
As \( x \to 0 \): \( \frac{\sin 2x}{2x} \to 1 \) and \( \cos 2x \to 1 \).
The limit is \( \frac23 \).
ExamQ6. (AP style) The function \( h \) satisfies \( 3x-2 \le h(x) \le x^2 + x-1 \) for all \( x \). Let \( k(x) = \dfrac{x^2-1}{x-1} \) for \( x \neq 1 \). (a) Find \( \lim_{x\to1} h(x) \). Justify your answer. [2] (b) Find \( \lim_{x\to1} h(x)\,k(x) \). [2] (c) Find \( \displaystyle\lim_{x\to1} \frac{\sin(\pi x-\pi)}{x-1} \). [2] Show worked answer
(b) \( k(x) = x + 1 \) for \( x \neq 1 \), so \( \lim_{x\to1} k(x) = 2 \) [1]. By the product law the limit is \( 1 \times 2 = 2 \) [1].
(c) Let \( u = \pi(x-1) \); as \( x \to 1 \), \( u \to 0 \). The fraction is \( \pi \cdot \frac{\sin u}{u} \) [1], so the limit is \( \pi \) [1].
Total: 6 marks.
Check yourself
1. \( \lim_{x\to2^-} f(x) = 4 \), \( \lim_{x\to2^+} f(x) = 4 \) and \( f(2) = 7 \). What is \( \lim_{x\to2} f(x) \)?
2. Direct substitution into a limit gives \( \frac{5}{0} \). What can you conclude?
3. What is \( \lim_{x\to0} \frac{\sin 4x}{x} \), with \( x \) in radians?
Your score: 0 out of 3
The short version
- A limit describes what \( f(x) \) approaches as \( x \to a \), never what happens at \( a \). It exists only when both one-sided limits exist and agree.
- Limits fail to exist when the sides differ, when the function is unbounded, or when it oscillates.
- Graphs and tables estimate limits; a table can mislead if the inputs are badly chosen.
- Substitute first. For \( \frac00 \), factorise, use the conjugate or combine fractions, then substitute again.
- The squeeze theorem traps a function between two with the same limit; it gives \( \frac{\sin x}{x} \to 1 \) in radians.
- The full chapter in Mathematics Made Simple has many more worked examples and a full set of practice questions with a complete answer key.
Further reading on EconTutorials
Related in-depth articles from our blog:
