Resources For Teachers For Tutors For Students & Parents Pricing
Year 11 Methods (Unit 1 & 2) Functions, Relations And Transformations

Set Notation And Sets Of Numbers

20 practice questions 1 video lesson Theory + worked examples

Master set notation and sets of numbers for Queensland Year 11 Mathematical Methods (QCAA). A set is simply a collection of objects, and this topic gives you the language to describe collections of numbers precisely.

You will learn the natural, integer, rational and real number sets, test membership and subsets, take the union and intersection, and switch between set-builder and interval notation — the foundation for stating a domain.

Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 1 video(s)
  • Set Notation And Sets Of Numbers - Video - Set notation and sets of numbers Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

In Year 11 Mathematical Methods (QCAA, Unit 1) the number sets \(\mathbb{N}\subset\mathbb{Z}\subset\mathbb{Q}\subset\mathbb{R}\) give the language for describing which values a variable may take. This page covers set notation, membership, subsets, union and intersection, and converting between set-builder and interval notation on the number line.

The natural numbers \(\mathbb{N}=\{1,2,3,\dots\}\), the integers \(\mathbb{Z}=\{\dots,-1,0,1,\dots\}\), the rational numbers \(\mathbb{Q}\) (any \(\dfrac{p}{q}\) with integers \(p,q\) and \(q\neq0\)) and the real numbers \(\mathbb{R}\) form the chain \(\mathbb{N}\subset\mathbb{Z}\subset\mathbb{Q}\subset\mathbb{R}\). A number is irrational (such as \(\sqrt{3}\) or \(\pi\)) when it is real but not rational.

We write \(x\in A\) for “\(x\) is an element of \(A\)” and \(x\notin A\) for “not an element”. The union \(A\cup B\) collects everything in either set; the intersection \(A\cap B\) keeps only what is in both. Over a universal set the complement \(A'\) is everything not in \(A\).

Interval notation uses a square bracket for an included endpoint and a round bracket for an excluded one: \([a,b]\) includes both ends, \((a,b)\) excludes both, and \(\infty\) always takes a round bracket. The equivalent set-builder form is \(\{x:a\le x<b\}\).

Smallest set wins. To classify a number, name the smallest set it belongs to: \(4\in\mathbb{N}\), \(-7\in\mathbb{Z}\), \(\tfrac{2}{5}\in\mathbb{Q}\), \(\sqrt{3}\in\mathbb{R}\).
Nested number setsConcentric boxes showing the natural numbers inside the integers inside the rationals inside the reals. R Q Z N
Every natural number is an integer, every integer is rational, every rational is real: \(\mathbb{N}\subset\mathbb{Z}\subset\mathbb{Q}\subset\mathbb{R}\).
The interval from minus 2 to 3Number line with a closed dot at minus 2 and an open dot at 3, the interval minus 2 to 3. -4 -3 -2 -1 0 1 2 3 4
The interval \([-2,3)\): a closed dot includes \(-2\), an open dot excludes \(3\).

Set-builder and interval notation describe the same set of reals:

\[\{x:a\le x<b\}=[a,\,b)\]
{x:ax<b}=[a,b)

Union and intersection of sets:

\[A\cup B=\{x:x\in A\ \text{or}\ x\in B\},\qquad A\cap B=\{x:x\in A\ \text{and}\ x\in B\}\]
AB,AB

Complement over the reals:

\[A'=\{x\in\mathbb{R}:x\notin A\}\]
A={x:xA}
Bracket rule: square \([\ ]\) = endpoint included, round \((\ )\) = endpoint excluded. \(\infty\) and \(-\infty\) are never reached, so they always take a round bracket.

Converting set-builder to interval notation

  1. Read the inequality inside the braces to find the lower and upper bounds.
  2. Bracket each end: \(\le\) or \(\ge\) gives a square bracket (closed), \(<\) or \(>\) gives a round bracket (open); use \(\infty\) with a round bracket if unbounded.
  3. Combine with \(\cup\) if the set is in two pieces, then check the endpoints on a number line.
Example 1 — Classify numbers
For each number, state the smallest of \(\mathbb{N},\mathbb{Z},\mathbb{Q},\mathbb{R}\) it belongs to: \(\sqrt{16}\), \(-7\), \(\dfrac{2}{5}\), \(\sqrt{3}\).
Solution

Simplify first, then place each number:

\(\sqrt{16}\)\(=\)\(4\in\mathbb{N}\)
\(-7\)\(=\)\(-7\in\mathbb{Z}\)
\(\dfrac{2}{5}\)\(=\)\(\tfrac{2}{5}\in\mathbb{Q}\)
\(\sqrt{3}\)\(\approx\)\(1.732\ldots\in\mathbb{R}\)

\(\sqrt{16}=4\) is a counting number; \(-7\) is a whole number but negative; \(\tfrac{2}{5}\) is a ratio of integers; \(\sqrt{3}\) is irrational, so it is real but not rational.

\(\sqrt{16}\in\mathbb{N},\ -7\in\mathbb{Z},\ \tfrac{2}{5}\in\mathbb{Q},\ \sqrt{3}\in\mathbb{R}\).

16=4
Example 2 — Set-builder to interval
Write \(\{x:-2\le x<5,\ x\in\mathbb{R}\}\) in interval notation and mark it on a number line.
Solution

Read the bounds — lower is \(-2\), upper is \(5\):

\(-2\le x\)\(=\)\(x\ge-2\ \text{(included)}\)
\(x<5\)\(=\)\(\text{upper }5\ \text{(excluded)}\)

Bracket each end — \(\le\) is square, \(<\) is round:

\(\{x:-2\le x<5\}\)\(=\)\([-2,\,5)\)

\(\{x:-2\le x<5\}=[-2,\,5)\).

Interval minus 2 to 5Number line bar from a closed dot at minus 2 to an open dot at 5. -2 0 2 4 5
[-2,5)
Example 3 — Intersection and union of intervals
Let \(A=[-1,4)\) and \(B=(2,6]\). Find \(A\cap B\) and \(A\cup B\).
Solution

Intersection — keep only where the bars overlap:

\(A\cap B\)\(=\)\([-1,4)\cap(2,6]\)
\(=\)\((2,\,4)\)

The overlap starts just after \(2\) (open in \(B\)) and stops just before \(4\) (open in \(A\)).

Union — take everything covered by either bar:

\(A\cup B\)\(=\)\([-1,4)\cup(2,6]\)
\(=\)\([-1,\,6]\)

\(A\cap B=(2,\,4)\) and \(A\cup B=[-1,\,6]\).

Intersection of two intervalsA is minus 1 to 4, B is 2 to 6, their overlap is the open interval 2 to 4. -1 0 2 4 6 A B A and B
AB=(2,4)
Example 4 — Set difference
Let \(A=[0,5]\) and \(B=(2,\infty)\). Find \(A\setminus B\) (the part of \(A\) not in \(B\)).
Solution

Describe \(B\) — every real greater than \(2\):

\(B\)\(=\)\((2,\,\infty)\)

Remove from \(A\) everything greater than \(2\):

\(A\setminus B\)\(=\)\([0,5]\ \text{with}\ x>2\ \text{removed}\)
\(=\)\([0,\,2]\)

The value \(x=2\) stays because \(2\notin B\) (the round bracket excludes it).

\(A\setminus B=[0,\,2]\).

Set difference of two intervalsA is 0 to 5, B is greater than 2, so A minus B is 0 to 2. 0 2 5 A B A minus B
[0,2]

Common pitfalls

Square vs round brackets. \([a,b]\) includes the ends; \((a,b)\) excludes them. A closed dot on the number line matches a square bracket, an open dot a round bracket.
Bracketing infinity. \(\infty\) is not a number, so it is never included. Always write \((a,\infty)\) or \((-\infty,b]\) — never \([a,\infty]\).
Mixing up union and intersection. \(\cup\) (union) is “or” and makes the set bigger; \(\cap\) (intersection) is “and” and makes it smaller.
Calling every root irrational. \(\sqrt{16}=4\) is a natural number. Simplify before deciding which set a surd belongs to.

Frequently asked questions

What is the difference between the sets N, Z, Q and R?

\(\mathbb{N}\) is the counting numbers, \(\mathbb{Z}\) adds zero and the negatives, \(\mathbb{Q}\) adds all fractions \(\tfrac{p}{q}\), and \(\mathbb{R}\) adds the irrationals such as \(\sqrt{3}\) and \(\pi\). Each is contained in the next: \(\mathbb{N}\subset\mathbb{Z}\subset\mathbb{Q}\subset\mathbb{R}\).

When do you use a square bracket versus a round bracket?

A square bracket \([\,]\) means the endpoint is included (\(\le\) or \(\ge\)); a round bracket \((\,)\) means it is excluded (\(<\) or \(>\)). Infinity always takes a round bracket.

What is the difference between union and intersection?

The union \(A\cup B\) contains everything that is in \(A\) or \(B\); the intersection \(A\cap B\) contains only what is in \(A\) and \(B\).

How do you write set-builder notation as an interval?

Read the inequality for the lower and upper bounds, then bracket each end (square for \(\le,\ge\); round for \(<,>\)). For example \(\{x:-2\le x<5\}=[-2,5)\).

Is a number like the square root of 2 rational or irrational?

It is irrational, so it is real but not rational: \(\sqrt{2}\in\mathbb{R}\) but \(\sqrt{2}\notin\mathbb{Q}\). It cannot be written as an exact fraction of two integers.

What does the complement of a set mean?

Over the real numbers, the complement \(A'\) is every real number that is not in \(A\). For example if \(A=(-\infty,1]\) then \(A'=(1,\infty)\).