📘 CodingMarble Learn

Sets: Representation, Types, Subsets, Venn Diagrams and Operations

A set is a well-defined collection of different objects. We write it in roster form {2, 4, 6} or set-builder form {x : x is even}. Sets can be empty, finite, infinite or equal. If every element of B is in A, B is a subset of A (B ⊂ A); a set with n elements has 2ⁿ subsets. Intervals like (a, b) and [a, b] are subsets of real numbers. The universal set U holds everything under study. With Venn diagrams we see union A ∪ B, intersection A ∩ B, difference A − B and complement A′ = U − A.

🎬 Step-by-step story

  1. Eight numbered balls sit on a board. The board is the universal set U = {1, 2, …, 8}. The blue ring holds the even ones: A = {2, 4, 6, 8}.
  2. A red ring holds only 4 and 8. Both balls are also inside the blue ring. So B is a subset of A: B ⊂ A.
  3. Now B = {3, 6}. Every ball that is in A or in B rises. That raised group is the union A ∪ B.
  4. Only the ball in the overlap rises now. That is the intersection A ∩ B = {6}.
  5. Balls of A that are not in B rise: A − B = {2, 4, 8}. Balls outside A make the complement A′.
  6. Free play: choose B, then tap ∪, ∩, −, or ′ and watch which balls rise.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why is 'tall students of my class' not a set?

Tall is not clearly defined; two people can disagree. A set must be well-defined. 'Students taller than 160 cm' is a set.

What is the difference between ∈ and ⊂?

∈ links one element to a set (4 ∈ A). ⊂ links a set to a set ({4, 8} ⊂ A). In step 2, the red ring (a set) is inside the blue ring.

Why do we subtract n(A ∩ B) in n(A ∪ B)?

The overlap ball 6 is in both rings. Adding n(A) + n(B) counts it twice, so we remove it once. See step 3: 6 rises only once.

Can A ∩ B be empty?

Yes. Then A and B are disjoint (no common ball). In free play choose B = odd numbers and tap ∩: no ball rises.

Is A − B the same as B − A?

No. In step 5, A − B = {2, 4, 8}. In free play tap B − A to see {3}.

Why does a set of n elements have 2ⁿ subsets?

For each element you have two choices: put it in the subset or leave it out. n elements give 2 × 2 × … × 2 = 2ⁿ choices.

What is a set? Roster and set-builder form

A set is a well-defined collection of different objects. Well-defined means everyone can say clearly if an object is in it or not. 'Vowels of English' is a set. 'Tall students' is not, because 'tall' is not clear.

The objects are called elements. We write 3 ∈ A (3 belongs to A) and 5 ∉ A (5 does not belong to A).

Two ways to write a set

In step 1 of the 3D, the blue ring shows A. The readout below gives both forms.

Types of sets: empty, finite, infinite, equal

Subsets, power set and intervals

B is a subset of A (B ⊂ A) if every element of B is also in A. In step 2 of the 3D, the red ring sits fully inside the blue ring.

Intervals: subsets of R

For real numbers a < b:

On a number line, a filled dot means 'included', an empty dot means 'not included'. Length of each interval is b − a.

Universal set and Venn diagrams

The universal set U holds every element we are talking about in a question. It is drawn as a rectangle. Each set inside it is drawn as a circle or oval. This picture is a Venn diagram.

The 3D board is U = {1, …, 8}. The rings are A and B. A ball's place tells you which sets it belongs to: inside only A, inside only B, in the overlap, or outside both.

Operations: union, intersection, difference, complement

Properties

Try it

At home: take 10 small papers numbered 1 to 10 (this is U). Draw two big circles on a sheet: A = 'even', B = 'more than 6'. Place each paper where it belongs. Now count A ∪ B and A ∩ B and check n(A ∪ B) = n(A) + n(B) − n(A ∩ B).

In the 3D (last step): first predict which balls will rise for A′, then tap A′ and check. Try B = ∅: what are A ∪ ∅ and A ∩ ∅?

Key formulas and definitions

Worked examples

1. Write A = {x : x is a prime number less than 12} in roster form.

Primes below 12 are 2, 3, 5, 7, 11. So A = {2, 3, 5, 7, 11}.

2. Write B = {1, 4, 9, 16, 25} in set-builder form.

Each element is a square: 1², 2², …, 5². So B = {x : x = n², n ∈ N, 1 ≤ n ≤ 5}.

3. Which are empty, finite or infinite? (i) {x ∈ N : 2 < x < 3} (ii) {x : x is a letter of 'MATHS'} (iii) {x : x is a multiple of 5}.

(i) No natural number lies between 2 and 3, so it is empty. (ii) {M, A, T, H, S}: finite, 5 elements. (iii) 5, 10, 15, … never ends: infinite.

4. Write all subsets of A = {a, b, c}. How many are there?

∅, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c}. That is 8 = 2³ subsets. Proper subsets: 7.

5. Write {x : −2 < x ≤ 5, x ∈ R} as an interval and find its length.

−2 is not included, 5 is included, so it is (−2, 5]. Length = 5 − (−2) = 7.

6. U = {1, 2, …, 8}, A = {2, 4, 6, 8}, B = {3, 6}. Find A ∪ B, A ∩ B, A − B, B − A, A′.

A ∪ B = {2, 3, 4, 6, 8}. A ∩ B = {6}. A − B = {2, 4, 8}. B − A = {3}. A′ = {1, 3, 5, 7}. (Steps 3, 4, 5 of the 3D.)

7. For the sets above, check De Morgan's law (A ∪ B)′ = A′ ∩ B′.

(A ∪ B)′ = U − {2, 3, 4, 6, 8} = {1, 5, 7}. A′ = {1, 3, 5, 7}, B′ = {1, 2, 4, 5, 7, 8}. A′ ∩ B′ = {1, 5, 7}. Both sides match.

8. In a class of 50, 30 like tea, 25 like coffee and 12 like both. How many like at least one? How many like neither?

n(T ∪ C) = 30 + 25 − 12 = 43. Neither = 50 − 43 = 7.

Common mistakes

Practice quiz

1. Which of these is a set?
2. A set has 4 elements. How many subsets does it have?
3. If A = {1, 2, 3} and B = {2, 3, 4}, A ∩ B is:
4. (A ∪ B)′ is equal to:
5. {x : 3 ≤ x < 7} in interval form is:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What are the types of sets in Class 11?

Empty (null), singleton, finite, infinite, equal, equivalent sets, subsets, power set and the universal set.

What is De Morgan's law in sets?

(A ∪ B)′ = A′ ∩ B′ and (A ∩ B)′ = A′ ∪ B′: the complement of a union is the intersection of complements, and the other way round.

What is the difference between an open and closed interval?

An open interval (a, b) leaves out both end points; a closed interval [a, b] includes them.

Where this is taught

RomaniaClasa a VIII-aReal intervals. Inequalities in ℝ
Ukraine10 класAlgebra: functions, polynomials, equations and inequalities (36 h)
CBSE (India)Class 11Algebra
CBSE (India)Class 11Sets and Functions
Japan高校1年Numbers and expressions
Japan高校1年Counting and probability
South Korea고등학교 1학년Sets and propositions
South Korea고등학교 1학년Sets and propositions
FranceSecondeAlgorithms and logic
FrancePremièreAlgorithms and logic
FrancePremièreMathematics (2026 programme)
FranceTerminaleMathematics (2019 programme)
Russia8 классSets
Russia10 классSets and logic
Russia10 классSets and logic
China高一Ch.1 Sets and logic

Learn first

Learn next

Related lessons

All Maths lessons