Chapter-2 MMW
Chapter-2 MMW
Chapter-2 MMW
CHAPTER 2
2.1 Variables
SOLUTIONS
a. have lids
b. a lid for P
c. L is a lid for P
Example: Rewriting an Existential Universal
Statement
SOLUTIONS
a. person in my class; every person in my class
b. at least as old as every person in my class
c. at least as old as q
2.2 The Language of Sets
Example: Subsets
a. B ⊆ A
b. C is a proper subset of A
c. C and B have at least one element in common
d. C ⊆ B
Subset. If A and B are sets, then A is e. C ⊆ C
called a subset of B, written A ⊆ B, if and
only if, every element of A is also an SOLUTIONS
element of B. a. False. Zero is not a positive integer. Thus,
zero is in B but zero is not in A, and so B ⊈ A.
b. True. Each element in C is a positive integer
and, hence, is in A, but there are elements in
A that are not in C. For instance, 1 is in A and
not in C.
c. True. For example, 100 is in both C and B.
d. False. For example, 200 is in C but not in B.
e. True. Every element in C is in C. In general,
the definition of subset implies that all sets
are subsets of themselves.
Example: Distinction between ∈ and ⊆
a. 2 ∈ {1, 2, 3}
b. {2} ∈ {1, 2, 3}
c. 2 ⊆ [1, 2, 3}
d. {2} ⊆ {1, 2, 3}
e. {2} ⊆ {{1}, {2}}
f. {2} ∈ {{1}, {2}}
SOLUTIONS
Only (a), (d), and (f) are true.
SOLUTIONS
a. A x B = {(1, u), (2, u), (3, u), (1, v), (2, v), (3, v)}
Cartesian Product. Given sets A and B, b. B x A = {(u, 1), (u, 2), (u, 3), (v, 1), (v, 2), (v, 3)}
the Cartesian product of A and B, c. B x B = {{u, u), (u, v), (v, u), (v, v)}
denoted A x B and read “A cross B,” is the d. A x B has six elements. Note that this is the
set of all ordered pairs (a, b) where a is in number of elements in A times the number of
A and b is in B. elements in B. B x A has six elements, the
number of elements in B times the number of
elements in A. B x B has four elements, the
number of elements in B times the number of
elements in B.
e. R x R is the set of all ordered pairs (x, y) where
both x and y are real numbers. If horizontal and
vertical axes are drawn on a plane and a unit
length is marked off, then each ordered pair in R
x R corresponds to a unique point in the plane,
with the first and second elements of the pair
indicating, respectively, the horizontal and
vertical positions of the point. The term Cartesian
plane is often used to refer to a plane with this
coordinate system, as illustrated in Figure 2.1.
2.3 The Language of Relations and Functions
Relation. Let A and B be sets. A relation R Example: A Relation as a Subset
from A to B is a subset of A x B. Given an
ordered pair (x, y) in A x B, x is related to y Let A = {1, 2} and B = {1, 2, 3} and define a
by R, written x R y, if, and only if, (x, y) is in relation R from A to B as follows:
R. The set A is called the domain of R and
the set B is called its co-domain. Given any (x, y) ∈ A x B,
x− y
(x, y) ∈ R means that is an integer.
2
SOLUTIONS
a. A x B = {(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2,
3)}. To determine explicitly the composition
of R, examine each ordered pair in A x B to
see whether its elements satisfy the defining
condition for R.
1−1 0
(1, 1) ∈ R because = = 0, which is an integer.
2 2
1−2 −1
(1, 2) ∉ R because = , which is not an
2 2
integer.
1−3 −2
(1, 3) ∈ R because = = -1, which is an
2 2
integer.
2−1 1
(2, 1) ∉ R because = , which is not an
2 2
integer.
2−2 0
(2, 2) ∈ R because = = 0, which is an integer.
2 2
2−3 −1
(2, 3) ∉ R because = , which is not an
2 2
integer.
−1 √3
a. Is (1, 0) ∈ C? Is (0, 0) ∈ C? Is ( , )∈
2 2
C? Is -2 C 0? Is 0 C (-1)? Is 1 C 1?
b. What are the domain and co-domain of
C?
c. Draw a graph for C by plotting the points
of C in the Cartesian plane.
SOLUTIONS
a. Yes, (1, 0) ∈ C because 12 + 02 = 1.
No, (0,0) ∉ C because 02 + 02 ≠ 1.
−1 √3 3
, ) ∈ C because ( )2 + ( √ )2
−1
Yes, (
2 2 2 2
= ¼ + ¾ = 1.
No, -2 ⊄ 0 because (-2)2 + 02 = 4 ≠ 1.
Yes, 0 ⊂ (-1) because 02 + (-1)2 ≠ 1.
No, 1 ⊄ 1 because 12 + 12 = 2 ≠ 1.
b. The domain and co-domain of C are both
R, the set of all real numbers.
c.
Example: Arrow Diagrams of Relations
SOLUTION
Arrow Diagram of a Relation. Suppose R is
a relation from a set A to set B. The arrow
diagram for R is obtained as follows:
SOLUTION
x2 + y2 = 22 + y2 = 4 + y2 = 1
y2 = -3.
To see why C does not satisfy property (2), note that for some values of x there are two
distinct values of y so that (x, y) ∈ C. One way to see this graphically is to observe that there
1 1 √3
are vertical lines, such as x = , that intersect the graph of C at two separate points: ( , )
2 2 2
1 √3
and ( ,− ).
2 2
b. L is a function. For each real number x, y¸= x – 1 is a real number, and so there is a real
number y with (x, y) ∈ L. Also, if (x, y) ∈ L and (x, z) ∈ L, then y = x – 1 and z = x – 1, and so
y = z. In particular, L (0) = 0 – 1 = -1 and L (1) = 1 – 1 = 0…
You can also check these results by inspecting the graph of L, shown below. Note that for
every real number x, the vertical line through (x, 0) passes through the graph of L exactly
once. This indicates both that every real number x is the first element of an ordered pair in L
and also that no two distinct ordered pairs in L have the same first element.
Example: Equality of Functions