Sets and their representations

A set is a well-defined collection of distinct objects — numbers, letters, shapes, even other sets — treated as a single mathematical entity. "Well-defined" is the whole ballgame: given any object, it must be possible to say for certain whether it belongs to the collection or not. "Tall students in a class" fails this test (tall is a matter of opinion); "students taller than 170 cm" passes it. This is the opening idea of CBSE Class 11's Unit I, Sets and Functions, and everything later in the chapter — subsets, Venn diagrams, unions and intersections — rests on being fluent with how a set is named, written and counted. Two notations do all the work: roster form, which simply lists the elements, and set-builder form, which states a rule the elements must obey. This article builds both forms carefully, shows when each is the natural choice, and works through converting between them.

The core insight

A set is a well-defined collection of distinct objects, written either by listing its elements in roster form or by stating a defining property in set-builder form, and its size is measured by the cardinal number n(A)n(A).

The core idea

Membership must be decidable. A collection qualifies as a set only if, for every conceivable object, there is a definite yes-or-no answer to "does it belong here?" Sets are conventionally named with capital letters (A,B,X,…A, B, X, \dots) and their elements with lowercase letters. If xx is an element of set AA, this is written x∈Ax \in A (read "xx belongs to AA"); if not, x∉Ax \notin A.

Roster (tabular) form lists every element inside curly braces, separated by commas, each element written exactly once, with order not mattering:

A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\}

where: AA is the set being named, and each entry between the braces is one element of AA, written only once regardless of how many times it might naturally recur in the describing context.

Set-builder form instead states a shared property using a variable, so the reader can decide membership by checking the rule rather than scanning a list:

A={x:x is a natural number and x≤5}A = \{x : x \text{ is a natural number and } x \le 5\}

where: xx is the variable standing for a generic element, the colon (or equivalently a vertical bar) is read "such that," and the condition after it is the test every element must pass. Standard number-set symbols recur throughout the chapter: N\mathbb{N} (natural numbers), Z\mathbb{Z} (integers), Q\mathbb{Q} (rational numbers), R\mathbb{R} (real numbers) — always state which of these the variable is drawn from, since "x≤5x \le 5" alone is ambiguous without a domain. The cardinal number of a set AA, written n(A)n(A), is simply the count of its distinct elements. For the set above, n(A)=5n(A) = 5.

Figure
Two representations of the same set, roster form listing elements and set builder form stating the defining rule, both describing the natural numbers up to five
Same set, two representations Roster form A = {1, 2, 3, 4, 5} elements listed directly, each written once Set-builder form A = {x : x is a natural number and x ≤ 5} a rule every element must satisfy n(A) = 5 either way — the cardinal number does not depend on notation

Roster form is convenient when a set is small or the list is obvious; set-builder form is essential once a set has infinitely many elements, or listing every one is impractical. The even natural numbers, for instance, have no last element to write down, so roster form cannot exhaust them, but set-builder form handles them compactly: {x:x∈N,  x is even}\{x : x \in \mathbb{N}, \; x \text{ is even}\}. For a large but obviously patterned set, roster form can still be used with dots to signal the pattern continues, e.g. {1,2,3,…,100}\{1, 2, 3, \dots, 100\}.

Why it works

Both notations describe the same underlying object — a collection of distinct elements with no order — so switching between them never changes what the set actually contains; it only changes how conveniently that content can be written down or checked. Roster form is a direct inventory: to know whether something belongs, look at the list. Set-builder form is a test: to know whether something belongs, check the condition. This is why set-builder descriptions of a given set are rarely unique — B={x:x=n2,n∈N,1≤n≤5}B = \{x : x = n^2, n \in \mathbb{N}, 1 \le n \le 5\} and B={x:x is the square of a natural number,x≤25}B = \{x : x \text{ is the square of a natural number}, x \le 25\} both pick out exactly {1,4,9,16,25}\{1, 4, 9, 16, 25\}, because both rules admit precisely those five numbers and no others. What makes a rule valid set-builder notation is not its exact wording but that it draws the boundary around the same elements, with no ambiguity about which objects satisfy it. This is also why the "well-defined" requirement from the core idea is really the same requirement stated two ways: a collection is a legitimate set exactly when some rule — spoken, listed, or symbolic — can decide membership without doubt, whichever form is used to state it.

Worked example

Write the set A={x:x is an integer,−3≤x<4}A = \{x : x \text{ is an integer}, -3 \le x < 4\} in roster form, and find n(A)n(A).

Step 1. Read the condition carefully: xx is an integer satisfying −3≤x<4-3 \le x < 4, so the left endpoint −3-3 is included but the right endpoint 44 is not.

Step 2. List every integer from −3-3 up to, but not including, 44: that gives −3,−2,−1,0,1,2,3-3, -2, -1, 0, 1, 2, 3.

Step 3. Write the roster form using this list, each element once:

A={−3,−2,−1,0,1,2,3}A = \{-3, -2, -1, 0, 1, 2, 3\}

Step 4. Count the elements to get the cardinal number: there are 7 elements, so n(A)=7n(A) = 7.

Competitive stretch

Now go the other way: write B={1,4,9,16,25}B = \{1, 4, 9, 16, 25\} in set-builder form. Step 1. Look for a common pattern among the elements: 1=121 = 1^2, 4=224 = 2^2, 9=329 = 3^2, 16=4216 = 4^2, 25=5225 = 5^2, so each element is the square of a natural number from 1 to 5. Step 2. Express this as a rule with variable x=n2x = n^2: B={x:x=n2,  n∈N,  1≤n≤5}B = \{x : x = n^2, \; n \in \mathbb{N}, \; 1 \le n \le 5\}. Step 3. Check it is unambiguous — the domain restriction 1≤n≤51 \le n \le 5 is essential, since without it the rule would describe an infinite set of squares instead of these five. The set-builder form is B={x:x=n2,n∈N,1≤n≤5}B = \{x : x = n^2, n \in \mathbb{N}, 1 \le n \le 5\}, with n(B)=5n(B) = 5.

Common traps

  • Writing a repeated element in roster form, e.g. {2,2,3}\{2, 2, 3\} — a set never repeats elements; the correct form is {2,3}\{2, 3\}.
  • Confusing ∈\in (relates an element to a set) with ⊆\subseteq (relates two sets) — these connect different kinds of objects and cannot be swapped.
  • Treating order as meaningful: {1,2,3}\{1, 2, 3\} and {3,1,2}\{3, 1, 2\} name the same set.
  • Describing a collection with a vague, subjective property (e.g. "beautiful flowers") and calling it a set — the defining property must be objective and decidable for every object.
  • Writing a set-builder rule without stating the domain of the variable — "x≤5x \le 5" alone is ambiguous; specify x∈Nx \in \mathbb{N}, x∈Zx \in \mathbb{Z}, or whichever domain is intended.

Ask the tutor: Not sure whether a tricky collection is a well-defined set, or want more practice converting between roster and set-builder form — ask the AI tutor to work through extra examples with you.

How do I know if a set-builder rule is written correctly, since different people phrase it differently?

There is no single "correct" wording — what matters is whether the rule picks out exactly the right elements, with no doubt about membership. Two different-looking rules, such as one written with n∈Nn \in \mathbb{N} and 1≤n≤51 \le n \le 5 versus one phrased in plain words about squares, are both correct if they admit precisely the same set of numbers. Always sanity-check by mentally testing a couple of values against the rule and confirming the domain is stated, since an unstated domain is the most common source of an incorrect or ambiguous set-builder form.

Is {1, 2} the same set as {2, 1, 1}?

Yes. Order does not matter in a set, and repetition is not allowed, so both expressions name the same set, {1,2}\{1, 2\}, with n=2n = 2. If you ever see an element listed more than once in what claims to be roster form, write it only once when giving the final set — the repetition in the original listing does not create a second copy of the element.

Why can't I just always use roster form — it feels more concrete than set-builder form?

Roster form only works when a set has few enough elements to write out, or an obviously continuing pattern you can mark with dots. It breaks down completely for sets with infinitely many elements and no simple pattern, or where listing every element would take unreasonably long. Set-builder form is the more general tool: it names a set by its defining property rather than its contents, so it works just as well for five elements as for infinitely many. Use roster form for short, concrete lists and set-builder form whenever a rule communicates the set more efficiently than a list would.

Before this

Where this leads