Continuity
Theory
A limit is the value that \(f(x)\) approaches as \(x\) approaches a number, and a function is continuous where its graph has no break. This Year 11 Mathematics Advanced page shows how to evaluate limits by direct substitution or, when substitution gives \(\dfrac{0}{0}\), by factorising and cancelling; how to evaluate limits as \(h\to 0\); and how to decide whether a function is continuous by looking for holes, jumps and vertical asymptotes.
The limit of \(f(x)\) as \(x\) approaches \(a\), written \(\lim\limits_{x\to a}f(x)=L\), is the value \(L\) that \(f(x)\) gets closer and closer to as \(x\) gets closer and closer to \(a\) from both sides. The limit depends only on the values of \(f\) near \(a\), not at \(a\): \(f(a)\) may be different from \(L\), or not defined at all.
For a polynomial, or a fraction whose denominator is not zero at \(x=a\), the limit is found by direct substitution. If substituting \(x=a\) into a fraction gives \(\dfrac{0}{0}\), the expression is indeterminate and \((x-a)\) is a factor of both the numerator and the denominator. Factorise, cancel the common factor (allowed because \(x\neq a\) while \(x\) approaches \(a\)), then substitute.
\(x\to a^-\) means \(x\) approaches \(a\) from the left (values less than \(a\)); \(x\to a^+\) means \(x\) approaches \(a\) from the right (values greater than \(a\)).
A function is continuous at \(x=a\) if \(f(a)\) is defined and the values that \(f(x)\) approaches from the left and from the right are both equal to \(f(a)\). The graph then passes through \(x=a\) without a break. A function is continuous on an interval if its graph can be drawn over that interval without lifting your pen.
A discontinuity is a point where a function is not continuous. There are three kinds: a hole (one point missing from an otherwise unbroken graph, where a common factor cancels), a jump (the left-hand and right-hand values are different, as where two pieces of a piecewise function do not meet) and a vertical asymptote (the denominator is zero after cancelling, so the graph shoots off towards \(\pm\infty\)).
Every polynomial is continuous for all real \(x\). A function such as \(\dfrac{x^2-1}{x^2-x}\) (a polynomial divided by a polynomial) is continuous everywhere except where its denominator is zero.
Direct substitution (for a polynomial, or a fraction whose denominator is not zero at \(x=a\)):
Continuity at \(x=a\): the left-hand value, the function value and the right-hand value are all equal.
Factorisations that clear a \(\dfrac{0}{0}\):
A limit as \(h\to 0\) (this gives the gradient of the tangent to \(y=f(x)\) at \(x=a\)):
Evaluating a limit
- Substitute \(x=a\). If you get a number, that number is the limit.
- If you get \(\dfrac{0}{0}\), factorise the numerator and the denominator: common factor, quadratic trinomial, difference of two squares, or sum or difference of two cubes. If there are brackets such as \((3+h)^2\), expand first.
- Cancel the common factor \((x-a)\) (or \(h\)). It is not zero, because \(x\neq a\).
- Substitute \(x=a\) into the simplified expression and simplify the fraction.
Deciding whether a function is continuous
- Find where \(f\) is undefined: solve denominator \(=0\). If the denominator can never be zero (for example \(x^2+4\geq 4\)), there are no breaks from it.
- Factorise and cancel. A factor that cancels gives a hole; find its \(y\)-coordinate by substituting into the simplified function. A zero of the denominator that is left after cancelling gives a vertical asymptote.
- At each join of a piecewise function, find the value approached from the left, \(f(a)\), and the value approached from the right. All equal: continuous there. Not all equal: discontinuous (a jump).
- Sketch on the given domain: endpoints as filled dots, holes as open circles, asymptotes as dashed lines. Then state continuous or discontinuous at \(x=\ldots\), with the reason.
(i) \(\lim\limits_{x\to 3}(x^2-2x+5)\)
(ii) \(\lim\limits_{x\to -2}\dfrac{x^2+5x+6}{x^2-4}\)
(i) A polynomial, so substitute \(x=3\):
| \(\lim\limits_{x\to 3}(x^2-2x+5)\) | \(=\) | \(3^2-2(3)+5\) |
| \(\) | \(=\) | \(8\) |
\(\therefore\) the limit is \(\mathbf{8}\).
(ii) Direct substitution gives \(\dfrac{4-10+6}{4-4}=\dfrac{0}{0}\), so factorise and cancel \((x+2)\):
| \(\lim\limits_{x\to -2}\dfrac{x^2+5x+6}{x^2-4}\) | \(=\) | \(\lim\limits_{x\to -2}\dfrac{(x+2)(x+3)}{(x+2)(x-2)}\) |
| \(\) | \(=\) | \(\lim\limits_{x\to -2}\dfrac{x+3}{x-2}\) |
| \(\) | \(=\) | \(\dfrac{-2+3}{-2-2}\) |
| \(\) | \(=\) | \(-\dfrac{1}{4}\) |
\(\therefore\) the limit is \(\mathbf{-\dfrac{1}{4}}\).
(ii) For \(f(x)=2x^2-x\), evaluate \(\lim\limits_{h\to 0}\dfrac{f(1+h)-f(1)}{h}\).
(i) Direct substitution gives \(\dfrac{0}{0}\). Factorise the difference of two cubes, \(x^3-27=(x-3)(x^2+3x+9)\):
| \(\lim\limits_{x\to 3}\dfrac{x^3-27}{x^2-9}\) | \(=\) | \(\lim\limits_{x\to 3}\dfrac{(x-3)(x^2+3x+9)}{(x-3)(x+3)}\) |
| \(\) | \(=\) | \(\lim\limits_{x\to 3}\dfrac{x^2+3x+9}{x+3}\) |
| \(\) | \(=\) | \(\dfrac{9+9+9}{6}\) |
| \(\) | \(=\) | \(\dfrac{9}{2}\) |
\(\therefore\) the limit is \(\mathbf{\dfrac{9}{2}}\).
(ii) Find \(f(1+h)\) and \(f(1)\):
| \(f(1+h)\) | \(=\) | \(2(1+h)^2-(1+h)\) |
| \(\) | \(=\) | \(2+4h+2h^2-1-h\) |
| \(\) | \(=\) | \(1+3h+2h^2\) |
\(f(1)=2-1=1\)
| \(\dfrac{f(1+h)-f(1)}{h}\) | \(=\) | \(\dfrac{3h+2h^2}{h}\) |
| \(\) | \(=\) | \(3+2h,\quad h\neq 0\) |
| \(\lim\limits_{h\to 0}(3+2h)\) | \(=\) | \(3\) |
\(\therefore\) the limit is \(\mathbf{3}\). (This is the gradient of the tangent to \(y=f(x)\) at \(x=1\).)
(ii) Consider \(g(x)=\begin{cases}2x+1 & \text{for } x<2\\ x^2-1 & \text{for } x\geq 2\end{cases}\)
Is \(g\) continuous at \(x=2\)? Give a reason.
(i) Check where the denominator could be zero, by completing the square:
| \(x^2+2x+5\) | \(=\) | \((x+1)^2+4\) |
| \(\) | \(\geq\) | \(4\) |
| \(\) | \(>\) | \(0\) |
The denominator is never zero, so \(f(x)\) is defined for every \(x\) and has no holes, jumps or asymptotes.
\(\therefore\) \(f\) is continuous for all real \(x\).
(ii) As \(x\to 2^-\): \(2x+1\to 2(2)+1=5\).
\(g(2)=2^2-1=3\).
As \(x\to 2^+\): \(x^2-1\to 3\).
The left-hand value \(5\) is not equal to \(g(2)=3\), so the graph jumps from \(5\) down to \(3\) at \(x=2\).
\(\therefore\) \(g\) is discontinuous at \(x=2\).
Factorise and simplify:
| \(f(x)\) | \(=\) | \(\dfrac{(x-1)(x+1)}{x(x-1)}\) |
| \(\) | \(=\) | \(\dfrac{x+1}{x},\quad x\neq 0,\ x\neq 1\) |
The denominator \(x^2-x=x(x-1)\) is zero at \(x=0\) and \(x=1\).
At \(x=1\) the factor \((x-1)\) cancels, so there is a hole at \(\left(1,\dfrac{1+1}{1}\right)=(1,2)\).
At \(x=0\) the denominator of \(\dfrac{x+1}{x}\) is still zero (the numerator is \(1\)), so \(x=0\) is a vertical asymptote.
Endpoints: \(f(-2)=\dfrac{-1}{-2}=\dfrac{1}{2}\) and \(f(3)=\dfrac{4}{3}\). The \(x\)-intercept is \((-1,0)\).
\(\therefore\) \(f\) is discontinuous at \(x=0\) (vertical asymptote) and at \(x=1\) (hole).
Common pitfalls
Frequently asked questions
What is a limit in maths?
The value that \(f(x)\) gets closer and closer to as \(x\) gets closer and closer to a number \(a\), from both sides. It is written \(\lim\limits_{x\to a}f(x)\). The function does not have to be defined at \(a\) itself.
How do you evaluate a limit that gives 0/0?
Factorise the numerator and the denominator, cancel the common factor, then substitute. For example, \(\lim\limits_{x\to 5}\dfrac{x^2-25}{x-5}=\lim\limits_{x\to 5}(x+5)=10\).
What does it mean for a function to be continuous?
Its graph has no breaks. At each point \(x=a\), \(f(a)\) is defined and the values \(f(x)\) approaches from the left and from the right are both equal to \(f(a)\). You can draw the graph without lifting your pen.
What is the difference between a hole and an asymptote?
A hole is a single missing point, where a common factor of the numerator and denominator cancels; the limit still exists there. A vertical asymptote is where the denominator is zero after cancelling; the graph shoots off towards \(\pm\infty\).
How do you check if a piecewise function is continuous?
At each join \(x=a\), find the value the left piece approaches, the value \(f(a)\), and the value the right piece approaches. If all three are equal the function is continuous there; otherwise the graph jumps.
Are polynomials always continuous?
Yes. A polynomial is defined for every real \(x\) and its graph has no holes, jumps or asymptotes. A polynomial divided by a polynomial is continuous everywhere except where the denominator is zero.