EppDM5e_01_03
EppDM5e_01_03
SPEAKING MATHEMATICALLY
3
Example 1.3.1 – A Relation as a Subset
Let A = {1, 2} and B = {1, 2, 3} and define a relation R from
A to B as follows: Given any (x, y) ∈ A × B,
b. Is 1 R 3? Is 2 R 3? Is 2 R 2?
4
Example 1.3.1 – Solution (1/2)
a. A × 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 × B to see whether its elements satisfy
the defining condition for R.
(1, 1) ∈ R which is an integer.
because
(1, 2) ∉ R because which is not an integer.
5
Example 1.3.1 – Solution (2/2) continued
6
Example 1.3.2 – The Circle Relation
Define a relation C from R to R as follows: For any
(x, y) ∈ R × R,
(x, y) ∈ C means that
a. Is (1, 0) ∈ C? Is (0, 0) ∈ C? Is ∈ 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.
7
Example 1.3.2 – Solution (1/2)
a. Yes, (1, 0) ∈ C because
No, (0, 0) ∉ C because
8
Example 1.3.2 – Solution (2/2) continued
9
Arrow Diagram of a Relation
10
Arrow Diagram of a Relation
Suppose R is a relation from a set A to a set B. The arrow
diagram for R is obtained as follows:
11
Example 1.3.3 – Arrow Diagrams of Relations
12
Example 1.3.3 – Solution
13
Functions
14
Functions (1/2)
15
Functions (2/2)
Properties (1) and (2) can be stated less formally as
follows: A relation F from A to B is a function if, and only if:
16
Example 1.3.4 – Functions and Relations on Finite Sets
17
Example 1.3.4 – Solution (1/3)
a. R is not a function because it does not satisfy property
(2). The ordered pairs (4, 1) and (4, 3) have the same
first element but different second elements. You can see
this graphically if you draw the arrow diagram for R.
There are two arrows coming out of 4: One points to 1
and the other points to 3.
18
Example 1.3.4 – Solution (2/3)
b. S is not a function because it does not satisfy property
(1). It is not true that every element of A is the first
element of an ordered pair in S. For example, 6 ∈ A but
there is no y in B such that y = 6 + 1 = 7. You can also
see this graphically by drawing the arrow diagram for S.
19
Example 1.3.4 – Solution (3/3)
c. T is a function: Each element in {2, 4, 6} is related to
some element in {1, 3, 5}, and no element in {2, 4, 6} is
related to more than one element in {1, 3, 5}. When
these properties are stated in terms of the arrow
diagram, they become (1) there is an arrow coming out
of each element of the domain, and (2) no element of the
domain has more than one arrow coming out of it.
20
Example 1.3.5 – Functions and Relations on Sets of Strings
21
Example 1.3.5 – Functions and Relations on Sets of Strings (1/2)
22
Example 1.3.5 – Functions and Relations on Sets of Strings (2/2)
23
Example 1.3.5 – Solution
a. L(a b a a b a) = 6 and L(b b b) = 3
24
Function Machines
25
Function Machines (1/3)
Another useful way to think of a function is as a machine.
Suppose f is a function from X to Y and an input x of X is
given. Imagine f to be a machine that processes x in a
certain way to produce the output f(x). This is illustrated in
Figure 1.3.1.
Figure 1.3.1
26
Example 1.3.6 – Functions Defined by Formulas (1/4)
27
Example 1.3.6 – Functions Defined by Formulas (2/4)
28
Example 1.3.6 – Functions Defined by Formulas (3/4)
29
Example 1.3.6 – Functions Defined by Formulas (4/4)
Figure 1.3.2
30
Function Machines (2/3)
A function is an entity in its own right. It can be thought of
as a certain relationship between sets or as an input/output
machine that operates according to a certain rule.
31
Function Machines (3/3)
A relation is a subset of a Cartesian product and a function
is a special kind of relation. Specifically, if f and g are
functions from a set A to a set B, then
It follows that
32
Example 1.3.7 – Equality of Functions
Define functions f and g from R to R by the following
formulas:
Does f = g?
33
Example 1.3.7 – Solution
Yes. Because the absolute value of any real number equals
the square root of its square, for all x ∈
R. Hence f = g.
34