You are on page 1of 6

Game Math Chapter 1 Solutions

Game Math Chapter 1 Solutions


Frank Luna
www.gameinstitute.com
Sunday, December 12, 2004

1. Determine which of the following are sets:

a. F = { p | p is a prime }
b. M = (1, 2, 3, 4, … )
c. R = {}
d. Q = { {x, y} | x is an integer, y is an integer, x > y }

1a. F = {p | p is a prime} is read as F is the set of all p such that p is a prime number, and
yes it is a set.

1b. M = (1, 2, 3, 4, …) is not a set because the parenthesis notation in this example has
no particular set interpretation.

1c. R = {} is a set; in particular, it is the empty set (or null set) ∅ .

1d. Q = {{x, y} | x ∈ ], y ∈ ] , x > y} is the set of all sets with two integer elements such
that one element is greater than the other element. This set consists of all subsets of ]
with exactly two elements.

2. Translate the following sets from English into set builder notation:

a. A is the set that contains the names of all electronic components.


b. L is a set that contains all integers that are not less than the square root of five.
c. W is a set that contains all other sets.
d. Z is a set that contains everything that is not contained in the universal set.

2a. A = {x | x is the name of an electronics component}

2b. L = {x | x ∈ ] , x ≥ 5 }

2c. W = {x | x is a set, x ≠ W }

2d. Z = {x | x ∈ U ' } = ∅ . Remark: the universal set contains everything. So the


complement of everything is nothing.

Frank Luna Page 1 www.gameinstitute.com


Game Math Chapter 1 Solutions

3. Translate the following sets from set builder notation to English:

a. G = { y | y ∈ \, y > 0}
b. D = { s | s is a string of letters }
c. PS = { x | x ⊂ S }
{
d. N = x | x ∈ ] + , x ∈ ] − }
3a. G = { y | y ∈ \, y > 0} reads as, G is the set of all y such that y is an element of the real
numbers \ and y is greater than zero.

3b. D = { s | s is a string of letters} reads, D is the set of all s such that s is a string of
letters.

3c. PS = {x | x ⊂ S } reads, PS is the set of all x such that x is a proper subset of S. The ⊆
symbol is used to denote a subset and ⊂ is sometimes used to denote a proper subset.
Recall from the readings that every set is also a subset of itself (i.e., B ⊆ B ). Sometimes
we want to refer to a subset A of a set B such that A ≠ B . To do this we define a proper
subset. A is a proper set of B, denoted as A ⊂ B , if and only if A is a subset of B and A is
not B. In symbols, A ⊂ B ⇔ A ⊆ B, A ≠ B . Now, the author did not discuss the proper
subset symbol so maybe the author meant PS = {x | x ⊆ S } , which would say, PS is the
set of all x such that x is a subset of S. In other words, PS is the set of all subsets of S.

Remark: The ⇔ symbol is the logical equivalence operator. It is used to denote that two
statements mean the same thing. It can be translated to English as “if and only if.”

{ }
3d. N = x | x ∈ ] + , x ∈ ] − . We translate the comma as and. So, N is the set of all x
such that x is a positive integer and x is a negative integer. This is the empty set since
there is no integer that is both negative and positive.

4. Prove that if A and B are sets, and A = B, then A is a subset of B, and B is a subset of A.

Let’s first recall the definition of a subset: A ⊆ B if and only if for every x, if x ∈ A then
x ∈ B . Now, let x ∈ A . From the hypothesis we have A = B , so x ∈ B . Hence A ⊆ B .
Let x ∈ B . From the hypothesis we have A = B , so x ∈ A . Hence B ⊆ A .

Frank Luna Page 2 www.gameinstitute.com


Game Math Chapter 1 Solutions

5. Prove that the intersection operator is distributive with respect to the union operator, or
draw a Venn diagram to illustrate this.

In symbols, we want to prove this relationship: A ∩ ( B ∪ C ) = ( A ∩ B ) ∪ ( A ∩ C ) . Let


us look at some Venn diagrams first to convince ourselves that this is true.

Figure 1: Left) ( B ∪ C ) is shown in red; that is, ( B ∪ C ) is all the elements in B or in C. Right) the
intersection A ∩ ( B ∪ C ) is shown in blue; that is, A ∩ ( B ∪ C ) is all the elements in A and in ( B ∪ C ) .

Figure 2: Left) ( A ∩ B ) is shown in red; that is, ( A ∩ B ) is all the elements in A and in B. Middle)
( A ∩ C ) is shown in blue; that is, ( A ∩ C ) is all the elements in A and in C. Right) ( A ∩ B ) ∪ ( A ∩ C ) is
shown in green; that is, ( A ∩ B ) ∪ ( A ∩ C ) is all the elements in ( A ∩ B ) or ( A ∩ C ) .

So from the Venn diagrams we see that graphically, the elements of A ∩ ( B ∪ C ) are the
same elements of ( A ∩ B ) ∪ ( A ∩ C ) . So we have a good intuitive feeling that the
relationship is true. However, a Venn diagram is not a formal proof. The usual proof
that A ∩ ( B ∪ C ) = ( A ∩ B ) ∪ ( A ∩ C ) requires a small theorem of logic, namely that the
logical and operator is distributive with respect to the logical or operator. Since we
haven’t discussed any logic, we will instead prove this using a membership table, which
is similar to a truth table. The idea is as follows. An element is either in or out of a set
(these are the only possible cases). Because we only have three sets A, B, and C in this
problem, we can take a brute force approach and look at every possible way an arbitrary
element can be in these sets. If, for every possible situation, A ∩ ( B ∪ C ) and

Frank Luna Page 3 www.gameinstitute.com


Game Math Chapter 1 Solutions

( A ∩ B) ∪ ( A ∩ C ) have the same membership value, then we conclude that they are
equivalent. We use the notation I to denote that an arbitrary element is in a set and O to
denote that an arbitrary element is outside a set. When studying the following
membership table it may help to recall the following:

Let x be an arbitrary element.

• x ∈ B ∪ C ⇔ x ∈ B or x ∈ C .
• x ∈ A ∩ B ⇔ x ∈ A and x ∈ B .
• x ∈ A ∩ C ⇔ x ∈ A and x ∈ C .
• x ∈ A ∩ ( B ∪ C ) ⇔ x ∈ A and x ∈ ( B ∪ C ) .
• x ∈ ( A ∩ B ) ∪ ( A ∩ C ) ⇔ x ∈ ( A ∩ B ) or x ∈ ( A ∩ C ) .

Remark: Note how the union operator translates to an or statement and the intersection
operator translates to an and statement. This comes straight from the definitions of these
operators. Think about it and review the definitions if you do not see this.

A B C (B ∪ C) ( A ∩ B) ( A ∩ C) A ∩ (B ∪ C) ( A ∩ B) ∪ ( A ∩ C )
I I I I I I I I
I I O I I O I I
I O I I O I I I
I O O O O O O O
O I I I O O O O
O I O I O O O O
O O I I O O O O
O O O O O O O O

Since for every possible situation, A ∩ ( B ∪ C ) and ( A ∩ B ) ∪ ( A ∩ C ) always have the


same membership value, we conclude that they are equivalent; that is,
A ∩ ( B ∪ C ) = ( A ∩ B) ∪ ( A ∩ C ) .

6. Calculate the Cartesian products of the following sets (list the ordered pairs explicitly
if the resulting set is finite):

a. A = { 1, 2, 3 }, B = { a, b, c }
b. A = { !, @, # }, B = { alpha, beta, gamma, delta }
c. A = { x | x is a real number }, B = { y | y is a letter of the alphabet }
d. A = \2 × ]

Frank Luna Page 4 www.gameinstitute.com


Game Math Chapter 1 Solutions

6a. Recall A × B = {( x, y ) | x ∈ A, y ∈ B} . In other words, the set A × B contains every


combination of ordered pairs such that the first component is an element of A and the
second component is an element of B.

A × B = {1, 2, 3}× {a, b, c} = {(1, a ), (1, b ), (1, c ), (2, a ), (2, b ), (2, c ), (3, a ), (3, b ), (3, c )}

6b. A × B = {!, @, #}× {α , β , γ , δ } =


{(!, α ), (!, β ), (!, γ ), (!, δ ), (@, α ), (@, β ), (@, γ ), (@, δ ), (# , α ), (# , β ), (# , γ ), (# , δ )}
6c. A × B = {x | x is a real number} × {y | y is a letter in the alphabet} =
{(x, y) | x is a real number, y is a letter in the alphabet}

6d. A = \ 2 × ] = \ × \ × ] = {( x, y, z ) | x ∈ \, y ∈ \, z ∈ ]}

7. Determine whether the following mappings are functions:

a. 1 → 2
3→4
5→2
4→1

b. 3 → 2
1→1
5→2
1→3

7a. For reference, let us recall the definition of a function as stated in the text: “A
function f is a mapping from a set A to a set B such that with each element in set A, the
function associates exactly one item from set B.”
To be clear, in this problem, A = {1, 3, 5, 4} and B = {2, 4, 1}. Here f defines the
following mappings:

1→ 2
3→4
5→2
4 →1

Each element in A is associated with exactly one element from set B. This agrees with
the definition, so it is a function.

Frank Luna Page 5 www.gameinstitute.com


Game Math Chapter 1 Solutions

7b. This is not a function because 1 → 2 and 1 → 3 ; that is, there exists an element in A
such that f associates more than one element to from set B.

8. Determine which of the following functions are invertible:

a. f(1) → 2
f(3) → 4
f(4) → 5
f(2) → 3

b. f(5) → 2
f(1) → 1
f(6) → 2
f(2) → 3

Note: Recall that a function is invertible provided that the function “sends each item in
the domain to its own unique item in the range, and that contain no more items in the
range than in the domain.” Two conditions are stated: 1) the function sends each item in
the domain to its own unique item in the range; that is, if x1 ≠ x2 then f ( x1 ) ≠ f ( x2 ) .
This is called being a one-to-one function or injection. 2) The function is onto. Let Y be
the range of f and X be the domain. A function is said to be onto provided that for every
y ∈ Y there exists an x ∈ X such that f ( x ) = y . An onto function is also called a
surjection.

8a. We can assume the domain is X = {1, 3, 4, 2} and the range is Y = {2, 4, 5, 3}. The
function f is invertible because the function is one-to-one and onto.

8b. We can assume the domain is X = {5, 1, 6, 2} and the range is Y = {2, 1, 2, 3}. This
function is not invertible because f (5) → 2 and f (6 ) → 2 ; thus it is not one-to-one:
x1 ≠ x2 and f ( x1 ) = f ( x2 ) .

Frank Luna Page 6 www.gameinstitute.com

You might also like