Loading

Formulas · Mathematics

Sets

3 formulas, each with worked examples. Revision sheet · Practise these formulas

Class 11

Number of elements in a union

What each letter means
the number of elements in A or B (or both)
the number of elements in A
the number of elements in B
the number of elements in both A and B

To count the elements of A ∪ B, add the counts of A and of B, then take away the elements in both, which were counted twice.

Why it works

Counting A and then B counts every element in the overlap A ∩ B once in each, so twice. Taking n(A ∩ B) away once leaves every element of the union counted exactly once.

When to use it

Survey problems (how many like tea or coffee, how many play at least one game, how many read neither paper), and Venn diagrams with two circles.

How to use it

  1. Find n(A), n(B) and n(A ∩ B).
  2. Add the first two and take away the overlap.
  3. For "neither", take n(A ∪ B) away from the total.

To remember: Add both circles, take away the lens.

Other forms

  • Special caseWhen A and B have no element in common (they are disjoint).
  • To remember itFor three sets: add the three, take away the three overlaps of two, and add back the middle where all three meet.

Worked examples

Story

In a class, 25 students play cricket, 20 play football and 10 play both. How many play at least one of the two?

Answer: 35

Picture

Two circles of a Venn diagram hold 12 and 15 dots, with 5 dots in the lens where they overlap. How many dots are there in all?

Answer: 22

Direct

n(A) = 20, n(B) = 28 and n(A ∩ B) = 8. Find n(A ∪ B).

Answer: 40

Reverse

In a group of 50 people, 35 speak Hindi and 25 speak English, and everyone speaks at least one of them. How many speak both?

Try it first, then show the working

Answer: 10

Exam

Of 400 people, 250 read newspaper H, 200 read newspaper T and 100 read both. How many read neither?

Try it first, then show the working
  1. So 400 − 350 = 50 read neither paper.

Answer: 50

Common mistake: Adding n(A) and n(B) without removing the overlap, which counts the people in both groups twice.

Sources
  • NCERT: class-11/mathematics/01 Sets (practical problems on union and intersection)
  • OpenStax: Contemporary Mathematics, 1.4 Set Operations with Two Sets (the cardinality of a union)
  • Wikidata: inclusion-exclusion principle

Class 11

Number of elements in a Cartesian product

What each letter means
the number of ordered pairs in A × B
the number of elements in A
the number of elements in B

A × B is the set of all ordered pairs (a, b) with a from A and b from B, and it has n(A) × n(B) of them.

Why it works

Each of the n(A) first entries can be paired with each of the n(B) second entries: n(A) rows of n(B) pairs, which is the counting principle again.

When to use it

Counting ordered pairs, points on a grid, and the pairs available to a relation from A to B.

How to use it

  1. Count the elements of A and of B.
  2. Multiply.

To remember: Every first with every second: multiply.

Other forms

  • Special caseWhen B = A.
  • To remember itFor three sets, n(A × B × C) = n(A) × n(B) × n(C).

Worked examples

Story

A café offers 4 drinks and 5 snacks. How many (drink, snack) pairs can be ordered?

Answer: 20

Picture

The points (x, y) with x from {1, 2, 3} and y from {1, 2} make a grid. How many points are there?

Answer: 6

Direct

A has 3 elements and B has 4. How many ordered pairs are in A × B?

Answer: 12

Reverse

A × B has 15 elements and A has 5. How many elements does B have?

Try it first, then show the working

Answer: 3

Exam

A × B = {(p, q), (p, r), (m, q), (m, r)}. Find A and B.

Try it first, then show the working
  1. The first entries give A = {p, m}; the second entries give B = {q, r}.
  2. Check the count:

Answer: A = {p, m}, B = {q, r}

Common mistake: Adding the counts, or treating (a, b) and (b, a) as the same pair; order matters in an ordered pair.

Sources
  • NCERT: class-11/mathematics/02 section 2.2, Cartesian products of sets
  • OpenStax: Contemporary Mathematics, 1.4 Set Operations with Two Sets
  • Wikidata: Cartesian product

Class 11

Number of relations from A to B

What each letter means
the number of different relations from A to B
the number of elements in A
the number of elements in B

A relation from A to B is any subset of A × B. Since A × B has pq pairs, and each pair is either in the relation or not, there are 2^(pq) relations.

Why it works

Build a relation by going through the pq pairs and deciding for each one: in or out. That is 2 choices, pq times, so 2 × 2 × … × 2 = 2^(pq) ways.

When to use it

Counting the possible relations between two finite sets, and the subsets of any finite set.

How to use it

  1. Find the number of pairs, pq.
  2. Raise 2 to that power.

To remember: Every pair: in or out.

Other forms

  • Special caseWhen the relation is on one set A (B = A, so q = p).
  • To remember itThe empty set and the whole of A × B are both relations: the smallest and the largest.

Worked examples

Story

Three students may each join a chess club or not. How many different membership lists are possible?

  1. Each of the 3 × 1 = 3 (student, club) pairs is in or out.

Answer: 8

Picture

Each square of a 2 by 2 grid can be shaded or left blank. How many patterns are there?

  1. Each of the 2 × 2 = 4 squares is shaded or not.

Answer: 16

Direct

A has 2 elements and B has 3. How many relations are there from A to B?

Answer: 64

Reverse

There are 512 relations from A to B, and A has 3 elements. How many elements does B have?

Try it first, then show the working

Answer: 3

Exam

A = {1, 2} and B = {3, 4}. How many relations are there from A to B? Give one with exactly two pairs.

Try it first, then show the working
  1. A × B has 4 pairs, so there are 2⁴ = 16 relations.
  2. One with two pairs is {(1, 3), (2, 4)}; there are ⁴C₂ = 6 such relations.

Answer: 16; for example {(1, 3), (2, 4)}

Common mistake: Writing 2 × pq or pq², instead of 2 to the power pq.