A limit describes the value a function’s output gets close to as its input gets close to a particular number. We write lim (x → a) f(x) = L, read as “the limit of f(x) as x tends to a is L”. It means that f(x) can be made as close to L as we like by taking x close enough to a, but not equal to a. What the function does at a itself does not matter; it need not even be defined there.
That one idea is the foundation of calculus: the derivative, the gradient of a curve at a single point, is defined as a limit of the gradients of chords.
What does a limit mean, intuitively?
Take f(x) = 3x + 1 as x gets close to 2. Trying x = 1.9, 1.99, 1.999 gives 6.7, 6.97, 6.997; from the other side, x = 2.1, 2.01, 2.001 gives 7.3, 7.03, 7.003. The outputs close in on 7, so lim (x → 2) (3x + 1) = 7.
Here f(2) is also 7. For polynomials and other continuous functions, the limit at a point equals the value there, and direct substitution finds it. Limits become interesting exactly where substitution fails.
Two parts of the definition matter. “As close as we like” means within any tolerance you choose, however small, provided x is near enough to a. And “x ≠ a” means the limit is about the approach, not the arrival.
How are limits written, and what are one-sided limits?
Textbooks write “lim” with “x → a” set underneath; in a line of text it is lim (x → a) f(x) = L.
Sometimes we approach from one side only. The left-hand limit, lim (x → a−) f(x), uses only values of x less than a. The right-hand limit, lim (x → a+) f(x), uses only values of x greater than a.
The two-sided limit exists and equals L if and only if both one-sided limits exist and equal L.
For example, let f(x) = |x|/x. For x > 0, |x| = x, so f(x) = 1. For x < 0, |x| = −x, so f(x) = −1. Therefore lim (x → 0+) f(x) = 1 and lim (x → 0−) f(x) = −1. Both one-sided limits exist but they disagree, so lim (x → 0) f(x) does not exist. (f(0) is also undefined, but that is not the reason: a function can be undefined at a point and still have a limit there.)
When does a limit not exist?
- A jump. The one-sided limits exist but are different, as with |x|/x at 0.
- Unbounded behaviour. As x → 0, 1/x² grows without bound. We write lim (x → 0) 1/x² = ∞, but that describes how the limit fails to exist; ∞ is not a real number, so there is no limit value. For 1/x, the right side heads to +∞ and the left to −∞.
- Oscillation. As x → 0, sin(1/x) swings between −1 and 1 infinitely often, however close x gets to 0. It never settles, so there is no limit.
Worked example: what is the limit of (x² − 1)/(x − 1) as x → 1?
Let f(x) = (x² − 1)/(x − 1). At x = 1 the numerator and denominator are both 0, so f(1) is undefined. Substitution gives 0/0, an indeterminate form: not an answer, but a signal that more work is needed.
Values near 1 suggest the answer: f(0.9) = 1.9, f(0.99) = 1.99, f(1.01) = 2.01. The algebra confirms it.
Factorise the numerator as a difference of two squares: x² − 1 = (x − 1)(x + 1). For every x ≠ 1, the factor x − 1 is not zero, so it can be cancelled:
f(x) = (x − 1)(x + 1)/(x − 1) = x + 1, for x ≠ 1.
The limit only looks at x near 1, never at x = 1, and there f(x) and x + 1 are equal, so they have the same limit:
lim (x → 1) (x² − 1)/(x − 1) = lim (x → 1) (x + 1) = 2.
The graph of f is the line y = x + 1 with a hole at (1, 2).
Limits do not let you divide by zero
It is sometimes said that limits “let us divide by zero conceptually”. They do not. At no stage did we divide by zero. We cancelled x − 1 only for values of x where x − 1 ≠ 0, which is ordinary division, and then asked what happens as x approaches 1. Division by zero stays undefined. Limits let us answer a question about a point by examining what happens arbitrarily close to it, without ever performing the forbidden calculation at the point itself.
How do limits lead to the derivative?
A curve has no single gradient, so we ask for the gradient of the tangent at one point. A gradient needs two points, so we start with two.
Take the point (x, f(x)) on the curve and a second point a horizontal distance h away, (x + h, f(x + h)), with h ≠ 0. The chord joining them has gradient
[f(x + h) − f(x)] / h.
This is the difference quotient. As h shrinks, the chord turns towards the tangent. The derivative is defined as the limit:
f′(x) = lim (h → 0) [f(x + h) − f(x)] / h, provided this limit exists.
Substituting h = 0 directly always gives 0/0, which is exactly why the limit is needed.
Worked example: differentiating f(x) = x² from first principles
- Write the difference quotient: [(x + h)² − x²] / h.
- Expand: (x + h)² = x² + 2xh + h², so the numerator is 2xh + h².
- Simplify, using h ≠ 0: (2xh + h²)/h = 2x + h.
- Take the limit: lim (h → 0) (2x + h) = 2x.
So the derivative of x² is 2x. As a check, at x = 3 this gives a gradient of 6. Numerically, h = 0.1 gives a chord gradient of (3.1² − 9)/0.1 = 6.1, h = 0.01 gives 6.01 and h = −0.01 gives 5.99: closing in on 6 from both sides.
How much of this is examined varies: Edexcel A Level asks for differentiation from first principles explicitly, Cambridge 9709 expects the gradient at a point to be understood as a limit of chord gradients, and AP Calculus teaches limits as a unit before derivatives. Whichever you sit, learn the idea; it is what makes every later differentiation rule make sense.
What are the most common misconceptions about limits?
- “The limit is just f(a).” True only when f is continuous at a. Let g(x) = x + 1 for x ≠ 1 and g(1) = 5. Then g(1) = 5, but lim (x → 1) g(x) = 2. The limit ignores the value at the point.
- “A limit is something you approach but never reach.” The familiar picture of walking halfway to a wall forever suggests this, but it is misleading. For f(x) = 3x + 1, the limit as x → 2 is 7 and f(2) is 7: the value is reached. A limit is about where the outputs are heading; whether they ever equal it is irrelevant.
- “0/0 means the limit is 0”, or 1, or “undefined”. As x → 0, x²/x → 0, x/x → 1 and 3x/x → 3, while x/x² has no limit at all, yet all four give 0/0 on substitution. You must simplify first.
- “Substitute h = 0, then simplify.” Simplify while h ≠ 0, then let h → 0.
Where should you go from here?
Work through the x² derivation yourself without looking, then repeat the method for f(x) = x³ (you should reach 3x²) and for f(x) = 1/x with x ≠ 0 (you should reach −1/x²). If every step, especially cancelling h, feels justified rather than memorised, you are ready for what follows.
If not, the difficulty is often the algebra underneath, such as expanding brackets or combining fractions, rather than the calculus. Learn with Tahira’s A Level maths tutoring starts with a free diagnostic that identifies which of the two it is; AP Calculus is covered too (see the maths tutoring overview).