Uni-Sine
MathematicsAlgebra

Set notation for A-level maths

Set notation in A-level maths is a way of writing a collection of numbers with curly brackets and a few symbols. The one you will use most is {x : x > 3}, read as "the set of all x such that x is greater than 3". A-level questions often ask for the solution of an inequality in set notation: x < −2 or x > 5 becomes {x : x < −2} ∪ {x : x > 5}.

Set notation symbols

These are the symbols from the set notation list in the AQA A-level Maths specification. Other boards use the same ones.

SymbolMeaningExample
{ }A set: the things inside the brackets{1, 3, 5}
{x : ...}The set of all x such that ...{x : x > 3}
∈Is an element of3 ∈ {1, 3, 5}
∉Is not an element of2 ∉ {1, 3, 5}
∪Union: in either set (or both){1, 2} ∪ {2, 3} = {1, 2, 3}
∩Intersection: in both sets{1, 2} ∩ {2, 3} = {2}
∅The empty set{x : x² < 0} = ∅
A′The complement of A: everything not in A
⊆Is a subset of{1, 3} ⊆ {1, 3, 5}
n(A)The number of elements in An({1, 3, 5}) = 3

Some books write a vertical line instead of a colon, {x | x > 3}. It means the same thing. In the US this style is called set-builder notation.

Number sets

SymbolSetContains
ℕNatural numbers1, 2, 3, ...
ℤIntegers..., −2, −1, 0, 1, 2, ...
ℤ⁺Positive integers1, 2, 3, ...
ℚRational numbersEvery fraction p/q with p and q integers, q ≠ 0
ℝReal numbersEvery number on the number line

So {x ∈ ℝ : x > 3} is the set of real numbers greater than 3, and {x ∈ ℤ : x > 3} is {4, 5, 6, ...}. If no number set is given, assume x is real.

Writing inequalities in set notation

AQA's specification says solutions of inequalities can be given using "and" and "or" correctly, or in set notation. Set notation is the safest choice, as it can only be read one way. There are three shapes of answer:

SolutionSet notation
x > 4{x : x > 4}
−3 ≤ x ≤ 4 (one piece){x : −3 ≤ x ≤ 4}, or {x : x ≥ −3} ∩ {x : x ≤ 4}
x < −2 or x > 5 (two pieces){x : x < −2} ∪ {x : x > 5}

The rule to remember: "or" becomes ∪ (union: either one) and "and" becomes ∩ (intersection: both at once).

Example 1: a linear inequality

Solve 5x − 3 > 2x + 9, giving your answer in set notation.

3x > 12 \Rightarrow x > 4

Answer: {x : x > 4}.

Example 2: a quadratic inequality with two pieces

Solve x² − 3x − 10 > 0. Factorise to find the critical values:

(x - 5)(x + 2) > 0
y = { x}^{2}-3 x-10
-4-3-2-11234567-15-10-55101520−25
Drag to pan, scroll to zoom. x from -4 to 7, y from -18.3 to 24.1.

Here x is the input and y = x² − 3x − 10. Its roots are −2 and 5, and y is positive to the left of −2 and to the right of 5. So x < −2 or x > 5. In set notation: {x : x < −2} ∪ {x : x > 5}.

Example 3: a quadratic inequality with one piece

Solve x² − x − 12 ≤ 0. It factorises as (x − 4)(x + 3) ≤ 0. This parabola is negative or zero between its roots, so −3 ≤ x ≤ 4. In set notation: {x : −3 ≤ x ≤ 4}, which you can also write as {x : x ≥ −3} ∩ {x : x ≤ 4}.

You can check any of these in the Inequality Solver, which shows the solution on a number line.

Check your understanding.

practice
Pick an answer, then check it.
Which of these is the set notation for x < 1 or x ≥ 6?

Interval notation

Intervals of real numbers can also be written with brackets. A square bracket includes the end point and a round bracket leaves it out:

IntervalSet notation
[a, b]{x ∈ ℝ : a ≤ x ≤ b}
[a, b){x ∈ ℝ : a ≤ x < b}
(a, b]{x ∈ ℝ : a < x ≤ b}
(a, b){x ∈ ℝ : a < x < b}

So {x : −3 ≤ x ≤ 4} is the interval [−3, 4]. Be careful: (a, b) also means a coordinate pair, so only use it for an interval when the meaning is clear. The interval notation guide covers this in more detail.

Set notation in probability

In A-level statistics, events are sets, and the same symbols describe them:

  • A ∪ B: A or B or both happens.
  • A ∩ B: A and B both happen.
  • A′: A does not happen.
  • ξ: the universal set, everything that can happen. Some books use ℰ or S.
ABξ0.40.10.20.3
P(A ∩ B) = 0.1 is the overlap; P(A ∪ B) = 0.4 + 0.1 + 0.2 = 0.7

From the Venn diagram: P(A) = 0.4 + 0.1 = 0.5, P(B) = 0.1 + 0.2 = 0.3, P(A ∩ B) = 0.1, and P(A ∪ B) = 0.7. These fit the addition rule:

P(A \cup B) = P(A) + P(B) - P(A \cap B) = 0.5 + 0.3 - 0.1 = 0.7

The complement of A ∪ B is the region outside both circles: P((A ∪ B)′) = 1 − 0.7 = 0.3.

Domain and range in set notation

The domain of a function can be written as a set. For f(x) = √(x − 2), you can only take the square root of a number that is not negative, so the domain is {x ∈ ℝ : x ≥ 2}. Its range is {y ∈ ℝ : y ≥ 0}, which A-level papers usually write as f(x) ≥ 0.

Common mistakes

  • Using ∩ for "or". Two separate pieces need ∪.
  • Writing {−2, 5} for an inequality. That is the set of just two numbers, −2 and 5.
  • Listing both pieces in one bracket, such as {x : x < −2, x > 5}. Use two sets joined by ∪.
  • Changing ≤ to <. Keep the inequality signs exactly as they are in your solution.
  • Leaving out the "x :". {x > 4} is not correct set notation; write {x : x > 4}.

Practice questions

  1. Write x ≤ 7 in set notation.
  2. Solve 2x + 5 < 3, giving your answer in set notation.
  3. Solve x² − 4x − 21 ≥ 0, giving your answer in set notation.
  4. List the elements of {x ∈ ℤ : −2 < x ≤ 3}.

Answers: 1) {x : x ≤ 7}. 2) 2x < −2, so {x : x < −1}. 3) (x − 7)(x + 3) ≥ 0, so {x : x ≤ −3} ∪ {x : x ≥ 7}. 4) {−1, 0, 1, 2, 3}.

Practise with a short timed paper

Inequalities in set notation come up in A-level Maths pure papers, and set notation for events in statistics. The daily A-level Maths: Algebra & Functions and A-level Maths: Statistics papers are short timed papers of 8 questions, with a new one every day.

Common questions

What is set notation in A-level maths?
A way of writing a set of numbers with curly brackets and symbols, such as {x : x > 3}, the set of all x such that x is greater than 3.
How do you write an inequality in set notation?
Put it inside curly brackets after "x :". For two separate pieces, write two sets joined by ∪, such as {x : x < −2} ∪ {x : x > 5}.
What is the difference between ∪ and ∩?
∪ (union) means in either set; ∩ (intersection) means in both. Use ∪ for "or" and ∩ for "and".
What does the colon mean in set notation?
It is read as "such that". {x : x > 3} is "the set of all x such that x > 3".
Do I have to use set notation for inequalities?
Only if the question asks for it. Otherwise "and" and "or" used correctly are accepted, according to the AQA specification.
What is ℝ in maths?
The set of real numbers: every number on the number line.

Revision cards

Say the answer first, then flip the card to check it.

Where to go next

  • Solve it

    Inequality Solver

    Solve inequalities and show the answer on a number line

    Open the tool
  • Test it

    A-level Maths: Algebra & Functions

    A new exam-style paper every day, with instant marking and a mark scheme

    Start today's paper
  • Test it

    A-level Maths: Statistics

    A new exam-style paper every day, with instant marking and a mark scheme

    Start today's paper
Read next
Maths · AlgebraInterval notation: brackets, infinity and examplesInterval notation explained: when to use square or round brackets, how to write infinity and unions, and how to turn inequalities into intervals.