Docsity

subsets, unions, intersections Naming sets To describe a ..., Lecture notes of Law

Toggle sidebar
bg1
3.1 Sets
Syllabus
Sets: subsets, unions, intersections
68
3.2
Naming sets
To describe a small set,
we list its members between curly brackets {,}:
{2,4,6,8}
{England, France, Iran, Singapore, New Zealand }
{David Beckham }
{} (the empty set, also written ∅)
We write a∈Xto express that aisamemberofthesetX.
For example 4∈{2,4,6,8}.
a/∈Xmeans ais not a member of X.
69
3.3
Two sets are equal if they have the same members.
The order and the number of times the members are mentioned
are irrelevant.
For example
{2,3,2,4}={4,4,2,3,4}.
{England, France, France}={France, England}.
{2,3,2,4}={3,4,5}.
70
3.4
There is another way of naming sets,
that we can use when the sets are too large to list.
{x:xis an integer divisible by 3}
means the set of all integers that are divisible by 3.
The xcan be replaced all through by another letter. So
{n:nis an integer divisible by 3}
is the same set as above.
71
pf3
pf4
pf5
pf8

Partial preview of the text

Download subsets, unions, intersections Naming sets To describe a ... and more Lecture notes Law in PDF only on Docsity!

Sets

Syllabus^ Sets: subsets, unions, intersections

68 3.2 Naming sets To describe a small set,we list its members between curly brackets

{,^ }:

{^2 ,^4 ,^6 ,^8 } {^ England, France, Iran, Singapore, New Zealand

{^ David Beckham

{}^ (the empty set, also written

We write^ a^ ∈^ X^ to express that

a^ is a member of the set

X.

For example^4 ∈ {

2 ,^4 ,^6 ,^8 }.

a /∈^ X^ means^ a^ is not a member of

X. 69

3.3 Two sets are equal if they have the same members. The order and the number of times the members are mentionedare irrelevant. For example

{^2 ,^3 ,^2 ,^4 }^ =^ {^4

,^4 ,^2 ,^3 ,^4 }.

{England, France, France

}^ =^ {France, England

{^2 ,^3 ,^2 ,^4 }^ ^ =^ {^3

,^4 ,^5 }. 70

3.4 There is another way of naming sets,that we can use when the sets are too large to list.^ {x^ :

x^ is an integer divisible by

means the set of all integers that are divisible by 3.The^ x^ can be replaced all through by another letter. So^ {n^ :

n^ is an integer divisible by

is the same set as above.

71

3.5 The following question in the 2004 Exam confused somepeople:Let^ A^ be the set

{^2 ,^3 ,^4 }^ and let^ C

be the set of all numbers that are twice some number in

A.

Write out the set^

C.

Answer this question.

72 3.6 Combining sets Suppose^ A^ and^ B

are sets. We write

A^ ∪^ B^ for the set {x : x ∈ A or x ∈^ B}. This set is called the

union^ of^ A^ and^ B

. B A 73

3.7 We write^ A^ ∩^ B^ for the set

{x^ :^ x^ ∈^ A^ and^ x^ ∈

B}.

This set is called the

intersection^ of^ A^ and

B.

A^

B

Mnemonic:^ ∪^ goes with

∨^ (‘or’) and^ ∩^ goes with

∧^ (‘and’). 74 3.8 We write^ A^ ^ B^ for the set

{x^ :^ x^ ∈^ A^ and^ x /∈

B}.

This set is called the

complement^ of^ B^

in^ A. When^ A^ is^ fixed, we write just

′^ Bfor^ A^ ^ B. A

B

75

3.13 Three sets together

A^

B a^ C

bab abcac bc c 80 3.14Distributive law:^ A^ ∩

(B^ ∪^ C) = (A^ ∩^ B

)^ ∪^ (A^ ∩^ C).

We check this from the diagram in 3.13: B^ ∪^ C^ consists of

b, c, ab, ac, bc, abc. So^ A^ ∩^ (B^ ∪^ C)^ consists of

ab, ac, abc. A^ ∩^ B^ consists of^

ab, abc, and^ A^ ∩^ C

consists of^ ac, abc

So^ (A^ ∩^ B)^ ∪^ (A^ ∩

C)^ consists of^ ab, ac, abc

the same as^ A^ ∩^ (

B^ ∪^ C).^81

3.15We also have the distributive law^ A^ ∪

(B^ ∩^ C) = (A^ ∪^ B

)^ ∩^ (A^ ∪^ C).

This is the same as the other distributive law,but with^ ∪^ and^ ∩

reversed.^82 3.16 Cardinality We write^ |A|^ for the number of members of the set

A.

|A|^ is called the^ cardinality

of^ A. Examples:

|{^5 ,^9 ,^9 ,^10 }|^ =^

|{^81 ,^1 ,^5 ,^77 ,^49 }|^

=^5 , |∅| = 0. 83

3.17We say that two sets

A^ and^ B^ are^ disjoint

if^ A^ ∩^ B^ =^ ∅. If^ A^ and^ B^ are disjoint then

|A^ ∪^ B|^ =^ |A|^ +^ |B

For example in the diagram 3.13,^ |A

|^ =^ |a|^ +^ |ab|^ +^ |ac

|^ +^ |abc|. 84 3.18The^ principle of inclusion-exclusion

says: |A^ ∪^ B^ ∪^ C|^ =^ |A|^ +

|B|^ +^ |C| − |A^ ∩^ B

| − |B^ ∩^ C| − |A^ ∩^ C

|^ +^ |A^ ∩^ B^ ∩^ C|.

To check this:^ |A|^ +^ |B|^ +^ |C

| − |A^ ∩^ B| − |B^ ∩^ C

| − |A^ ∩^ C|^ +^ |A^ ∩^ B

∩^ C|

=^ (|a|^ +^ |ab|^ +^ |ac

|^ +^ |abc|) + (|b|^ +^ |ab

|^ +^ |bc|^ +^ |abc|) +(|c|^ +^ |ac|^ +^ |bc|^ +

|abc|)^ −^ (|ab|^ +^ |abc

|) −(|bc|^ +^ |abc|)^ −^ (|ac

|^ +^ |abc|) +^ |abc| =^ |a|^ +^ |b|^ +^ |c|^ + (

−^ 1)|ab|^ + (2^ −^ 1)|bc

| +(2^ −^ 1)|ac|^ + (3^ −

3 + 1)|abc| =^ |A^ ∪^ B^ ∪^ C|.

85

3.19 Example (based on Exam 2003)

In a survey of 140 people it was found that 115 people regularly use a telephone;39 people regularly write letters; 64 people regularly usee-mail; 28 people regularly use a telephone and write letters;53 people regularly use a telephone and e-mail; 10 peopleregularly use e-mail and regularly write letters; and3 people regularly write letters and use a telephone ande-mail. How many people in the survey do not regularly usetelephone or letters or e-mail? How many people do notregularly use either telephone or e-mail?

86 3.20 Solution Put^ T^ =^ people who regularly use telephone^ L^ =^ people who regularly write letters

E^ =^ people who regularly use e-mail

Then^ |T^ |^ = 115,^ |L

|^ = 39,^ |E|^ = 64,^ |

T^ ∩^ L|^ = 28,

|T^ ∩^ E|^ = 53,^ |E^ ∩

L|^ = 10,^ |T^ ∩^ L^ ∩

E|^ = 3. 87

3.25 Products An^ ordered pair^ is a list of length 2.We write^ (x, y)^ for the ordered pair which lists

x^ first and^ y second.We can have^ (a, a

)^ (the same element listed twice). We have^ (a, b) = (

c, d)^ if and only if

a^ =^ c^ and^ b^ =^ d. We write^ A^ ×^ B^ for the set of all ordered pairs

(a, b)^ with a^ ∈^ A^ and^ b^ ∈^ B.

92 3.26 Example Suppose^ A^ is^ {^1 ,^2

,^3 }^ and^ B^ is^ {^4 ,^5

Then^ A^ ×^ B^ is^ {(1,^ 4)

,^ (2,^ 4)(3,^ 4),^ (1,^ 5),

(2,^ 5),^ (3,^ 5)}.

In this example^ |A

|^ = 3^ and^ |B|^ = 2, while

|A^ ×^ B|^ = 6.

This suggests the law

|A^ ×^ B|^ =^ |A| × |B

The law is true and we prove it as follows(for^ finite sets^ A^ and

B).^93

3.27Suppose^ A^ has^ m

members,^ a,... , a^1

,m and^ B^ has^ n^ members,

b,... , b.^1 n We can arrange the members of

A^ ×^ B^ in a rectangle: (a, b) (a, b)...^ (a, b) 11121 n (a, b) (a, b)...^ (a, b) 21222 n ......... (a, b) (a, b)...^ (a, b)m 1 m 2 mn m^ rows and^ n^ columns gives

mn^ elements.^94 3.28The law

|A^ ×^ B|^ =^ |A| × |B

is very useful when we have to listall the members of

A^ ×^ B.

It gives us a check on whether we have includedall the members.In computer programs it gives a bound onhow many members we need to list.

95

3.29We write

2 A

for the product set

A^ ×^ A. If^ |A|^ =^ m

then (^2) |A|^ =^ |A^ ×^ A|^ =^

(^2) |A| × |A| = m. Example: We write

R^ for the set of real numbers. (^2) Then Ris the^ xy^ plane. Each point^ (a, b)^ has

x-coordinate^ a^ and

y-coordinate^ b. 96 3.30 Higher-dimensional products An^ ordered triple^ is written

(a, b, c). If^ A,^ B^ and^ C^ are sets, then we write

A^ ×^ B^ ×^ C

for the set of ordered triples

(a, b, c)^ such that a^ ∈^ A,^ b^ ∈^ B^ and^

c^ ∈^ C. (^3) We write Afor^ A

×^ A^ ×^ A.

(^3) For example Ris 3-dimensional space.Similarly with higher dimensions. 97