Look around you. A library has a collection of books; a cricket team is a collection of eleven players; the digits on a number lock form a collection of ten symbols. In mathematics we want a single word for "well-defined collection". That word is set. Once we agree on what a set is, we can talk about anything: numbers, points, polygons, functions, even other sets.
Definitions
A set is a well-defined collection of distinct objects. Each object in the set is called an element (or member). We write
x∈Aif x is an element of A,x∈/Aotherwise.
"Well-defined" is the crucial word. The collection of "tall students in your class" is not a set , different judges disagree about what counts as tall. The collection of "students taller than 170 cm in your class" is a set , for any specific student we can check yes or no.
Two further conventions:
Order does not matter.{1,2,3}={3,1,2}.
Repetition does not count.{1,2,2,3} is the same as {1,2,3}.
Sets are usually named with capital letters A,B,C,… and elements with lowercase letters a,b,c,…. Some sets recur so often that they have permanent names:
N={1,2,3,…},W={0,1,2,…},Z={…,−2,−1,0,1,2,…},Q={qp:p,q∈Z,q=0},R=the real numbers.
Roster (tabular) form
In roster form we list the elements between curly braces, separated by commas. Examples:
Vowels of English: V={a,e,i,o,u}.
Odd natural numbers less than 10: O={1,3,5,7,9}.
Solutions of x2−5x+6=0: S={2,3}.
Two cautions. The set {1,2,3,…,100} uses dots when the pattern is obvious, but {1,4,9,16,…} requires the reader to guess the rule. If there is any ambiguity, prefer set-builder form.
Set-builder form
In set-builder form we describe the elements by a property:
A={x:P(x)}orA={x∣P(x)},
read as "the set of all x such that P(x) is true." Examples:
V={x:x is a vowel in English}.
O={x:x∈N,x is odd,x<10}.
S={x∈R:x2−5x+6=0}.
A set may sometimes be described in multiple equivalent ways:
{2,3}={x∈R:x2−5x+6=0}={x∈N:x is prime and x≤3}.
Two such descriptions describe the same set whenever they have the same elements.
When to use which form
Roster form is faster for small finite sets. Set-builder is essential for:
Infinite sets.E={x∈N:x is even} is precise; "{2,4,6,…}" relies on guessing.
Sets defined by conditions.{x∈R:x2<2}=(−2,2).
Sets with no obvious pattern.{n∈N:n is prime} , you cannot just list and "...".
Worked examples
Example 1. Write A={x∈Z:−3≤x≤3} in roster form.
We list every integer between −3 and 3 (inclusive):
A={−3,−2,−1,0,1,2,3}.
Example 2. Express the set {1,4,9,16,25} in set-builder form.
The pattern is "square of a natural number from 1 to 5":
{x:x=n2,n∈N,1≤n≤5}.
Example 3. Decide whether each is a set: (i) the collection of all good cricketers in India; (ii) the collection of all rivers in India; (iii) the collection of all even prime numbers.
(i) Not a set , "good" is not well-defined. (ii) A set , given a river, we can check whether it flows in India. (iii) A set; in fact a remarkably small one: {2}.
Example 4. Write B={x:x=n+1n,n∈N,n≤4} in roster form.
For n=1,2,3,4 we get 21,32,43,54. So
B={21,32,43,54}.
Example 5 (harder). Let A={x∈R:x4−5x2+4=0}. Write A in roster form.
Put y=x2. Then y2−5y+4=0, so (y−1)(y−4)=0 giving y=1 or y=4. Hence x2=1 or x2=4, so x∈{−2,−1,1,2}. Thus
A={−2,−1,1,2}.
Try it yourself
Write in roster form: {x∈N:x divides 12}.
Write in roster form: {x∈Z:x2≤9}.
Convert {0,1,4,9,16} into set-builder form.
Decide whether each is a set: (a) tall buildings in Mumbai; (b) prime numbers less than 20; (c) honest politicians; (d) integers divisible by 7 between −30 and 30.
Write in roster form: {x∈R:x is a real root of x2+1=0}.
Write in set-builder form: {1,8,27,64,125}.
Write all elements of {x∈N:x≤10,x is a multiple of 3}.
List the elements of {x∈Q:x2=4} and of {x∈Z:x2=2}.
True or false (with reason): the set {1,1,2,3} has four elements.
Write {x∈N:x=2k−1,k∈N,k≤6} in roster form.
Express in roster form: {x:x is a letter in the word ‘MATHEMATICS’}.
Convert {(x,y)∈Z×Z:x+y=4,0≤x≤4} to roster form.
Pitfalls / Tricks
A set is not a list: {1,2,3} and {3,2,1,1} are the same set.
"Well-defined" is your shield. If a property uses words like good, beautiful, interesting, it does not define a set.
A common trap: {x∈R:x2+1=0} is the empty set, but {x∈C:x2+1=0}={i,−i}. Always state where x lives.
Insight. Whenever a set is given by a property, ask "is there anyx that satisfies it?" That single check catches half of all set-theory errors.