Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 11 (2026) Maths Advanced (2026) Piecewise Functions, Continuity and Absolute Value

Continuity

20 practice questions 2 video lessons Theory + worked examples
Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 2 video(s)
  • Continuity - Video - Continuity Watch
  • Continuity - Video - Continuity Basic Introduction, Point, Infinite, & Jump Discontinuity, Removable & Nonremovable Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

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.

Limit at a holeThe line y = x + 1 with an open circle at (2, 3). Arrows along the line from the left and from the right both head towards the height 3, so the limit as x approaches 2 is 3 even though the point (2, 3) is missing. x y −1 1 2 3 4 2 3 4 5 (2, 3) y = x + 1, x ≠ 2
\(f(x)=\dfrac{x^2-x-2}{x-2}=x+1,\ x\neq 2\). From either side, \(f(x)\to 3\) as \(x\to 2\), so \(\lim\limits_{x\to 2}f(x)=3\), even though \(f(2)\) is undefined (a hole at \((2,3)\)).
Three kinds of discontinuityThree small graphs. Hole: a line with one point missing, shown by an open circle. Jump: two pieces that do not meet, with an open circle at the end of one and a filled dot at the start of the other. Vertical asymptote: a curve that shoots off to infinity on both sides of a dashed vertical line. hole jump vertical asymptote
The three kinds of discontinuity. A continuous graph has no holes, no jumps and no vertical asymptotes.

Direct substitution (for a polynomial, or a fraction whose denominator is not zero at \(x=a\)):

\[\lim_{x\to a}f(x)=f(a)\]
the limit as x approaches a of f of x equals f of a

Continuity at \(x=a\): the left-hand value, the function value and the right-hand value are all equal.

\[\lim_{x\to a^-}f(x)=f(a)=\lim_{x\to a^+}f(x)\]
the limit from the left equals f of a equals the limit from the right

Factorisations that clear a \(\dfrac{0}{0}\):

\[a^2-b^2=(a-b)(a+b)\]
\[a^3-b^3=(a-b)(a^2+ab+b^2)\qquad a^3+b^3=(a+b)(a^2-ab+b^2)\]
a squared minus b squared equals a minus b times a plus b; a cubed minus b cubed equals a minus b times a squared plus a b plus b squared; a cubed plus b cubed equals a plus b times a squared minus a b plus b squared

A limit as \(h\to 0\) (this gives the gradient of the tangent to \(y=f(x)\) at \(x=a\)):

\[\lim_{h\to 0}\dfrac{f(a+h)-f(a)}{h}\]
the limit as h approaches 0 of f of a plus h minus f of a, all over h
Simplify, but keep the restriction. \(\dfrac{x^2-9}{x-3}=\dfrac{(x-3)(x+3)}{x-3}=x+3,\ x\neq 3\). The graph is the line \(y=x+3\) with a hole at \((3,6)\), and \(\lim\limits_{x\to 3}\dfrac{x^2-9}{x-3}=6\).
Showing a denominator is never zero. Complete the square: \(x^2-4x+7=(x-2)^2+3\geq 3>0\) for all \(x\). So \(\dfrac{1}{x^2-4x+7}\) is defined for every \(x\) and has no breaks.

Evaluating a limit

  1. Substitute \(x=a\). If you get a number, that number is the limit.
  2. 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.
  3. Cancel the common factor \((x-a)\) (or \(h\)). It is not zero, because \(x\neq a\).
  4. Substitute \(x=a\) into the simplified expression and simplify the fraction.

Deciding whether a function is continuous

  1. 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.
  2. 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.
  3. 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).
  4. 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.
Example 1 — Substitution, then factorising
Evaluate:
(i) \(\lim\limits_{x\to 3}(x^2-2x+5)\)
(ii) \(\lim\limits_{x\to -2}\dfrac{x^2+5x+6}{x^2-4}\)
Solution

(i) A polynomial, so substitute \(x=3\):

\(\lim\limits_{x\to 3}(x^2-2x+5)\)\(=\)\(3^2-2(3)+5\)
\(\)\(=\)\(8\)
limit as x approaches 3 of x squared minus 2x plus 5 equals 9 minus 6 plus 5, which is 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}\)
factorise to x plus 2 times x plus 3 over x plus 2 times x minus 2, cancel x plus 2, then substitute: 1 over negative 4, which is negative one quarter

\(\therefore\) the limit is \(\mathbf{-\dfrac{1}{4}}\).

Example 2 — Cubes, and a gradient limit
(i) Evaluate \(\lim\limits_{x\to 3}\dfrac{x^3-27}{x^2-9}\).
(ii) For \(f(x)=2x^2-x\), evaluate \(\lim\limits_{h\to 0}\dfrac{f(1+h)-f(1)}{h}\).
Solution

(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}\)
factorise x cubed minus 27 as x minus 3 times x squared plus 3x plus 9, cancel x minus 3, substitute 3 to get 27 over 6, which is 9 over 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\)
f of 1 plus h equals 1 plus 3h plus 2 h squared, f of 1 equals 1, so the quotient is 3 plus 2h and its limit as h approaches 0 is 3

\(\therefore\) the limit is \(\mathbf{3}\). (This is the gradient of the tangent to \(y=f(x)\) at \(x=1\).)

Example 3 — Continuous or not?
(i) Is \(f(x)=\dfrac{2}{x^2+2x+5}\) continuous for all real \(x\)? Give a reason.
(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.
Solution

(i) Check where the denominator could be zero, by completing the square:

\(x^2+2x+5\)\(=\)\((x+1)^2+4\)
\(\)\(\geq\)\(4\)
\(\)\(>\)\(0\)
x squared plus 2x plus 5 equals x plus 1 all squared plus 4, which is at least 4, so it is never zero

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\).

Jump at x = 2The line y = 2x + 1 for x less than 2 ends at an open circle at (2, 5). The parabola y = x squared minus 1 starts at a filled dot at (2, 3). The graph jumps at x = 2. x y 1 2 3 3 5 8 (2, 5) (2, 3)

\(\therefore\) \(g\) is discontinuous at \(x=2\).

Example 4 — Sketch and discuss continuity
Sketch the function \(f(x)=\dfrac{x^2-1}{x^2-x}\) in the domain \(-2\leq x\leq 3\). State whether this function is continuous or discontinuous, giving reasons.
Solution

Factorise and simplify:

\(f(x)\)\(=\)\(\dfrac{(x-1)(x+1)}{x(x-1)}\)
\(\)\(=\)\(\dfrac{x+1}{x},\quad x\neq 0,\ x\neq 1\)
f of x equals x minus 1 times x plus 1 over x times x minus 1, which is x plus 1 over x, with x not equal to 0 or 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)\).

Sketch of f(x) = (x + 1)/x for x not 0 or 1On the domain from -2 to 3 the graph of f(x) = (x squared minus 1) over (x squared minus x) is the hyperbola y = (x + 1)/x with a vertical asymptote x = 0 (dashed) and an open circle (hole) at (1, 2). The endpoints are (-2, one half) and (3, four thirds), and the graph crosses the x-axis at (-1, 0). x y −2 −1 1 2 3 −2 2 4 (1, 2) (−2, ½) (3, 4/3) x = 0

\(\therefore\) \(f\) is discontinuous at \(x=0\) (vertical asymptote) and at \(x=1\) (hole).

Common pitfalls

\(\dfrac{0}{0}\) is not an answer. It signals a common factor. Factorise, cancel, then substitute again.
Cancel factors, not terms. In \(\dfrac{x^2+5x+6}{x^2-4}\) the \(x^2\) terms cannot be cancelled. Factorise both first, then cancel the bracket \((x+2)\).
Keep the restriction when you simplify. \(\dfrac{x^2-9}{x-3}\) equals \(x+3\) only for \(x\neq 3\). The original function is undefined at \(x=3\), so its graph has a hole there.
A limit can exist where the function does not. \(\lim\limits_{x\to 3}\dfrac{x^2-9}{x-3}=6\), but the function is still discontinuous at \(x=3\). Continuity needs \(f(a)\) to be defined and equal to the left-hand and right-hand values.
Watch the signs in the cubes. \(a^3+b^3=(a+b)(a^2-ab+b^2)\) and \(a^3-b^3=(a-b)(a^2+ab+b^2)\): the sign in the first bracket matches the original, and the \(ab\) term has the opposite sign.
Hole or asymptote? A factor that cancels gives a hole. A zero of the denominator that is still there after cancelling gives a vertical asymptote.

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.