Operations On Sets Book
Operations On Sets Book
REASONING - WRITING
AND PROOF
Ted Sundstrom
Grand Valley State University
Grand Valley State University
Mathematical Reasoning - Writing and Proof
Ted Sundstrom
This text is disseminated via the Open Education Resource (OER) LibreTexts Project (https://LibreTexts.org) and like the
hundreds of other texts available within this powerful platform, it freely available for reading, printing and "consuming." Most,
but not all, pages in the library have licenses that may allow individuals to make changes, save, and print this book. Carefully
consult the applicable license(s) before pursuing such effects.
Instructors can adopt existing LibreTexts texts or Remix them to quickly build course-specific resources to meet the needs of
their students. Unlike traditional textbooks, LibreTexts’ web based origins allow powerful integration of advanced features and
new technologies to support learning.
The LibreTexts mission is to unite students, faculty and scholars in a cooperative effort to develop an easy-to-use online
platform for the construction, customization, and dissemination of OER content to reduce the burdens of unreasonable
textbook costs to our students and society. The LibreTexts project is a multi-institutional collaborative venture to develop the
next generation of open-access texts to improve postsecondary education at all levels of higher learning by developing an
Open Access Resource environment. The project currently consists of 13 independently operating and interconnected libraries
that are constantly being optimized by students, faculty, and outside experts to supplant conventional paper-based books.
These free textbook alternatives are organized within a central environment that is both vertically (from advance to basic level)
and horizontally (across different fields) integrated.
The LibreTexts libraries are Powered by MindTouch® and are supported by the Department of Education Open Textbook Pilot
Project, the UC Davis Office of the Provost, the UC Davis Library, the California State University Affordable Learning
Solutions Program, and Merlot. This material is based upon work supported by the National Science Foundation under Grant
No. 1246120, 1525057, and 1413739. Unless otherwise noted, LibreTexts content is licensed by CC BY-NC-SA 3.0.
Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not
necessarily reflect the views of the National Science Foundation nor the US Department of Education.
Have questions or comments? For information about adoptions or adaptions contact [email protected]. More information
on our activities can be found via Facebook (https://facebook.com/Libretexts), Twitter (https://twitter.com/libretexts), or our
blog (http://Blog.Libretexts.org).
2: LOGICAL REASONING
2.1: STATEMENTS AND LOGICAL OPERATORS
2.2: LOGICALLY EQUIVALENT STATEMENTS
2.3: OPEN SENTENCES AND SETS
2.4: QUANTIFIERS AND NEGATIONS
2.S: LOGICAL REASONING (SUMMARY)
4: MATHEMATICAL INDUCTION
Mathematical induction is a mathematical proof technique that is used to prove that a property P(n) holds for every natural number n,
i.e. for n = 0, 1, 2, 3, and so on.
5: SET THEORY
5.1: SETS AND OPERATIONS ON SETS
5.2: PROVING SET RELATIONSHIPS
5.3: PROPERTIES OF SET OPERATIONS
5.4: CARTESIAN PRODUCTS
5.5: INDEXED FAMILIES OF SETS
5.S: SET THEORY (SUMMARY)
6: FUNCTIONS
6.1: INTRODUCTION TO FUNCTIONS
6.2: MORE ABOUT FUNCTIONS
6.3: INJECTIONS, SURJECTIONS, AND BIJECTIONS
6.4: COMPOSITION OF FUNCTIONS
6.5: INVERSE FUNCTIONS
6.6: FUNCTIONS ACTING ON SETS
1 7/21/2021
6.S: FUNCTIONS (SUMMARY)
7: EQUIVALENCE RELATIONS
7.1: RELATIONS
7.2: EQUIVALENCE RELATIONS
7.3: EQUIVALENCE CLASSES
7.4: MODULAR ARITHMETIC
7.S: EQUIVALENCE RELATIONS (SUMMARY)
BACK MATTER
INDEX
GLOSSARY
APPENDIX A: GUIDELINES FOR WRITING MATHEMATICAL PROOFS
APPENDIX B: ANSWERS FOR THE PROGRESS CHECKS
APPENDIX C: ANSWERS AND HINTS FOR SELECTED EXERCISES
APPENDIX D: LIST OF SYMBOLS
2 7/21/2021
CHAPTER OVERVIEW
1: INTRODUCTION TO WRITING PROOFS IN MATHEMATICS
1 7/21/2021
1.1: Statements and Conditional Statements
Much of our work in mathematics deals with statements. In mathematics, a statement is a declarative sentence that is either
true or false but not both. A statement is sometimes called a proposition. The key is that there must be no ambiguity. To be a
statement, a sentence must be true or false, and it cannot be both. So a sentence such as "The sky is beautiful" is not a
statement since whether the sentence is true or not is a matter of opinion. A question such as "Is it raining?" is not a statement
because it is a question and is not declaring or asserting that something is true.
Some sentences that are mathematical in nature often are not statements because we may not know precisely what a variable
represents. For example, the equation 2x+5 = 10 is not a statement since we do not know what x represents. If we substitute a
specific value for x (such as x = 3), then the resulting equation, 2⋅3 +5 = 10 is a statement (which is a false statement).
Following are some more examples:
Example:
There exists a real number x such that 2x+5 = 10.
This is a statement because either such a real number exists or such a real number does not exist. In this case, this is a
true statement since such a real number does exist, namely x = 2.5.
5
For each real number x, 2x +5 = 2 x + .
2
5
This is a statement since either the sentence 2x +5 = 2 x + is true when any real number is substituted for x (in
2
which case, the statement is true) or there is at least one real number that can be substituted for x and produce a false
statement (in which case, the statement is false). In this case, the given statement is true.
Solve the equation x − 7x + 10 = 0 .
2
This is not a statement since it is a directive. It does not assert that something is true.
2 2
(a + b ) = a + b
2
is not a statement since it is not known what a and b represent. However, the sentence, “There
exist real numbers a and b such that (a + b) = a + b " is a statement. In fact, this is a true statement since there are
2 2 2
Compare the statement in the previous item to the statement, “For all real numbers a and b , (a + b) = a + b ." 2 2 2
This is a false statement since there are values for a and b for which (a + b) ≠ a + b . For example, if a = 2 and
2 2 2
b = 3 , then (a + b ) = 5 = 25 and a + b = 2 + 3 = 13 .
2 2 2 2 2 2
12. If ABC is a right triangle with right angle at vertex B , and if D is the midpoint of the hypotenuse, then the line
segment connecting vertex B to D is half the length of the hypotenuse.
13. There do not exist three integers x, y , and z such that x + y = z . 3 2 3
Answer
Techniques of Exploration
Guesswork and conjectures. Formulate and write down questions and conjectures. When we make a guess in
mathematics, we usually call it a conjecture.
Examples. Constructing appropriate examples is extremely important. Exploration often requires looking at lots of
examples. In this way, we can gather information that provides evidence that a statement is true, or we might find an
example that shows the statement is false. This type of example is called a counterexample.
Example:
For example, if someone makes the conjecture that sin(2x) = 2 sin(x), for all real numbers x, we can test this
conjecture by substituting specific values for x. One way to do this is to choose values of x for which sin(x)is known.
Using x = , we see that
π
sin(2(
π
4
)) = sin(
π
2
) = 1, and
√2 –
2 sin(
π
4
) = 2(
2
) = √2 .
–
Since 1 ≠ √2 , these calculations show that this conjecture is false. However, if we do not find a counterexample for a
conjecture, we usually cannot claim the conjecture is true. The best we can say is that our examples indicate the
conjecture is true. As an example, consider the conjecture that
If x and y are odd integers, then x + y is an even integer.
We can do lots of calculation, such as 3 + 7 = 10 and 5 + 11 = 16 , and find that every time we add two odd integers,
the sum is an even integer. However, it is not possible to test every pair of odd integers, and so we can only say that
the conjecture appears to be true. (We will prove that this statement is true in the next section.)
Use of prior knowledge. This also is very important. We cannot start from square one every time we explore a statement.
We must make use of our acquired mathematical knowledge. For the conjecture that sin(2x) = 2 sin(x), for all real
numbers x, we might recall that there are trigonometric identities called “double angle identities.” We may even remember
the correct identity for sin(2x), but if we do not, we can always look it up. We should recall (or find) that
We could use this identity to argue that the conjecture “for all real numbers x, sin(2x) = 2 sin(x)” is false, but if we do, it
is still a good idea to give a specific counterexample as we did before.
Cooperation and brainstorming. Working together is often more fruitful than working alone. When we work with
someone else, we can compare notes and articulate our ideas. Thinking out loud is often a useful brainstorming method that
helps generate new ideas.
Answer
Add texts here. Do not delete this text first.
Conditional Statements
One of the most frequently used types of statements in mathematics is the so-called conditional statement. Given statements P
and Q, a statement of the form “If P then Q” is called a conditional statement. It seems reasonable that the truth value (true
or false) of the conditional statement “If P then Q” depends on the truth values of P and Q. The statement “If P then Q”
means that Q must be true whenever P is true. The statement P is called the hypothesis of the conditional statement, and the
statement Q is called the conclusion of the conditional statement. Since conditional statements are probably the most
important type of statement in mathematics, we give a more formal definition.
Definition
A conditional statement is a statement that can be written in the form “If P then Q,” where P and Q are sentences. For
this conditional statement, P is called the hypothesis and Q is called the conclusion.
Intuitively, “If P then Q” means that Q must be true whenever P is true. Because conditional statements are used so often, a
symbolic shorthand notation is used to represent the conditional statement “If P then Q.” We will use the notation P → Q to
represent “If P then Q.” When P and Q are statements, it seems reasonable that the truth value (true or false) of the
conditional statement P → Q depends on the truth values of P and Q. There are four cases to consider:
P is true and Q is true.
P is false and Q is true.
P is true and Q is false.
P is false and Q is false.
The conditional statement P → Q means that Q is true whenever P is true. It says nothing about the truth value of Q when P
is false. Using this as a guide, we define the conditional statement P → Q to be false only when P is true and Q is false, that
is, only when the hypothesis is true and the conclusion is false. In all other cases, P → Q is true. This is summarized in Table
1.1, which is called a truth table for the conditional statement P → Q . (In Table 1.1, T stands for “true” and F stands for
“false.”)
P Q P → Q
T T T
T F F
F T T
F F T
The important thing to remember is that the conditional statement P → Q has its own truth value. It is either true or false (and
not both). Its truth value depends on the truth values for P and Q, but some find it a bit puzzling that the conditional statement
is considered to be true when the hypothesis P is false. We will provide a justification for this through the use of an example.
Example 1.3:
be true?
Answer
Add texts here. Do not delete this text first.
2 2
n − n + 41 = 41 − 41 + 41
2 2
n − n + 41 = 41
So in the case where n = 41 , the hypothesis is true (41 is a positive integer) and the conclusion is false 41 is not prime.2
is false. There are other counterexamples (such as n = 42 , n = 45 , and n = 50 ), but only one counterexample is needed to
prove that the statement is false.
3. Although one example can be used to prove that a conditional statement is false, in most cases, we cannot use examples to
prove that a conditional statement is true. For example, in Progress Check 1.4, we substituted values for x for the
conditional statement “If x is a positive real number, then x + 8x is a positive real number.” For every positive real
2
number used for x, we saw that x + 8x was positive. However, this does not prove the conditional statement to be true
2
because it is impossible to substitute every positive real number for x. So, although we may believe this statement is true,
to be able to conclude it is true, we need to write a mathematical proof. Methods of proof will be discussed in Section 1.2
and Chapter 3.
Answer
a c ac
⋅ = .
b d bd
Since the integers are closed under multiplication, we know that ac and bd are integers and since b ≠0 and d ≠0 ,
ac
bd ≠ 0 . Hence, is a rational number and this shows that the rational numbers are closed under multiplication.
bd
Answer
Add texts here. Do not delete this text first.
(b) a + b = c .
2 2 2
(d) If x = 4 , then x = 2.
2
Using only this theorem, what can be concluded about the functions given by the following formulas?
(a) g(x) = −8x + 5x − 2 2
1
(b) h(x) = − x
2
+ 3x
3
(c) k(x) = 8x 2
− 5x − 7
71
(d) j(x) = − x
2
+ 210
99
(f) F (x) = −x + x + 9 4 3
7. Following is a statement of a theorem which can be proven using the quadratic formula. For this theorem, a , b , and c
Using only this theorem, what can be concluded about the functions given by the following formulas?
(a) g(x) = −8x + 5x − 2 2
1
(b) h(x) = − x
2
+ 3x
3
(c) k(x) = 8x 2
− 5x − 7
71
(d) j(x) = − x
2
+ 210
99
(e) f (x) = −4x − 3x + 7 2
(f) F (x) = −x + x + 9 4 3
8. Following is a statement of a theorem about certain cubic equations.For this theorem, b represents a real number.
Theorem A. If f is a cubic function of the form f (x) = x 3
−x +b and b > 1, then the function f has exactly one x-
intercept.
Theorem B. If f and g are functions with g(x) = k ⋅ f (x) , where k is a nonzero real number, then f and g have
exactly the same x-intercepts.
Using only these two theorems and some simple algebraic manipulations, what can be concluded about the functions
given by the following formulas?
(a) f (x) = x − x + 7
3
(b) g(x) = x + x + 7
3
(c) h(x) = −x + x − 5
3
(d) k(x) = 2x + 2x + 3
3
(e) r(x) = x − x + 11
4
(f) F (x) = 2x − 2x + 7
3
digits of these numbers, we could make the following conjectures (among others):
∙ If n is a natural number, then the units digit of 2 must be 2, 4, 6, or 8.
n
∙ The units digits of the successive powers of 2 repeat according to the pattern “2, 4, 8, 6.”
(a) Is it possible to formulate a conjecture about the units digits of successive powers of 4(4 , 4 , 4 , 4 , 4 , . . . )? If
1 2 3 4 5
number? If so, formulate a conjecture in the form of a conditional statement in the form “If n is a natural number, then
conjecture that appears to be true. The conjecture should be written as a conditional statement in the form, “If n is a
natural number, then ... .”
Answer
Add texts here. Do not delete this text first.
Definition
An integer a is an even integer provided that there exists an integer n such that a = 2n . An integer a is an odd integer
provided there exists an integer n such that a = 2n + 1 .
Using this definition, we can conclude that the integer 16 is an even integer since 16 = 2 ⋅ 8 and 8 is an integer. By answering
the following questions, you should obtain a better understanding of these definitions. These questions are not here just to have
questions in the textbook. Constructing and answering such questions is a way in which many mathematicians will try to gain
a better understanding of a definition.
1. Use the definition given above to
(a) Explain why 28, -42, 24, and 0 are even integers.
(b) Explain why 51, -11, 1, and -1 are odd integers.
It is important to realize that mathematical definitions are not made randomly. In most cases, they are motivated by a
mathematical concept that occurs frequently.
2. Are the definitions of even integers and odd integers consistent with your previous ideas about even and odd integers?
Preview Activity 2 (Thinking about a Proof)
Consider the following proposition:
Proposition. If x and y are odd integers, then x ⋅ y is an odd integer.
Think about how you might go about proving this proposition. A direct proof of a conditional statement is a demonstration
that the conclusion of the conditional statement follows logically from the hypothesis of the conditional statement. Definitions
and previously proven propositions are used to justify each step in the proof. To help get started in proving this proposition,
answer the following questions:
1. The proposition is a conditional statement. What is the hypothesis of this conditional statement? What is the conclusion of
this conditional statement?
2. If x = 2 and y = 3 , then x ⋅ y = 6 . Does this example prove that the proposition is false? Explain.
3. If x = 5 and y = 3 , then x ⋅ y = 15 . Does this example prove that the proposition is true? Explain.
In order to prove this proposition, we need to prove that whenever both x and y are odd integers, x ⋅ y is an odd integer.
Since we cannot explore all possible pairs of integer values for x and y , we will use the definition of an odd integer to help
us construct a proof.
4. To start a proof of this proposition,we will assume that the hypothesis of the conditional statement is true. So in this case,
we assume that both x and yare odd integers. We can then use the definition of an odd integer to conclude that there exists
an integer m such that x = 2m + 1 . Now use the definition of an odd integer to make a conclusion about the integer y .
1
Inverse Properties x + (−x) = 0 and if x ≠ 0 , then x ⋅ = 1 .
x
P 1 ... ...
Q 1 ... ...
Q x ⋅y is an odd integer. ?
P 1 ... ...
We now focus our effort on proving statement Q1 since we know that if we can prove Q1, then we can conclude that Q is true.
We ask a backward question about Q1 such as, “How can we prove that there exists an integer q such that x ⋅ y = 2q + 1 ?”
We may not have a ready answer for this question, and so we look at the know portion of the table and try to connect the know
portion to the show portion. To do this, we work forward from step P , and this involves asking a forward question. The
basic form of this type of question is, “What can we conclude from the fact that P is true?” In this case, we can use the
definition of an odd integer to conclude that there exist integers m and n such that x = 2m + 1 and y = 2n + 1 . We will call
this Step P 1 in the know-show table. It is important to notice that we were careful not to use the letter q to denote these
integers. If we had used q again, we would be claiming that the same integer that gives x ⋅ y = 2q + 1 also gives x = 2q + 1 .
This is why we used m and n for the integers x and y since there is no guarantee that x equals y . The basic rule of thumb is to
use a different symbol for each new object we introduce in a proof. So at this point, we have:
Step P 1. We know that there exist integers m and n such that x = 2m + 1 and y = 2n + 1 .
Step Q1. We need to prove that there exists an integer q such that x ⋅ y = 2q + 1 .
We must always be looking for a way to link the “know part” to the “show part”. There are conclusions we can make from P 1,
but as we proceed, we must always keep in mind the form of statement in Q1. The next forward question is, “What can we
conclude about x ⋅ y from what we know?” One way to answer this is to use our prior knowledge of algebra. That is, we can
first use substitution to write x ⋅ y = (2m + 1)(2n + 1) . Although this equation does not prove that x ⋅ y is odd, we can use
algebra to try to rewrite the right side of this equation. (2m + 1)(2n + 1) in the form of an odd integer so that we can arrive at
step Q1. We first expand the right side of the equation to obtain
x ⋅ y = (2m + 1)(2n + 1) = 4mn + 2m + 2n + 1
Now compare the right side of the last equation to the right side of the equation in step Q1. Sometimes the difficult part at this
point is the realization that q stands for some integer and that we only have to show that x ⋅ y equals two times some integer
plus one. Can we now make that conclusion? The answer is yes because we can factor a 2 from the first three terms on the
right side of the equation and obtain
x ⋅ y = 4mn + 2m + 2n + 1 = 2(2mn + m + n) + 1
We can now complete the table showing the outline of the proof as follows:
P 3 xy = 4mn + 2m + 2n + 1 Algebra
P 4 xy = 2(2mn + m + n) + 1 Algebra
It is very important to realize that we have only constructed an outline of a proof. Mathematical proofs are not written in table
form. They are written in narrative form using complete sentences and correct paragraph structure, and they follow certain
conventions used in writing mathematics. In addition, most proofs are written only from the forward perspective. That is,
although the use of the backward process was essential in discovering the proof, when we write the proof in narrative form, we
use the forward process described in the preceding table. A completed proof follows.
Theorem
If x and y are odd integers, then x ⋅ y is an odd integer.
Proof
We assume that x and y are odd integers and will prove that x ⋅ y is an odd integer. Since x and y are odd, there exist
integers m and n such that
x = 2m + 1 and y = 2n + 1 .
Since m and n are integers and the integers are closed under addition and multiplication, we conclude that
2mn + m + n is an integer. This means that x ⋅ y has been written in the form 2q + 1 for some integer q , and hence,
x⋅y is an odd integer. Consequently, it has been proven that if x and y are odd integers, then x ⋅ y is an odd integer.
started as follows:
Theorem
If x is an odd integer, then x is an odd integer.
2
Proof
We assume that x is an odd integer ...
2. Begin the proof with a statement of your assumptions. Follow the statement of your assumptions with a statement of
what you will prove.
Theorem 1.2.1
If x is an odd integer, then x is an odd integer.
2
Proof
We assume that x is an odd integer and will prove that x is an odd integer.
2
3. Usethepronoun“we.” If a pronoun is used in a proof, the usual convention is to use “we” instead of “I.” The idea is to
stress that you and the reader are doing the mathematics together. It will help encourage the reader to continue working
through the mathematics. Notice that we started the proof of Theorem 1.8 with “We assume that... .”
4. Use italics for variables when using a word processor. When using a word processor to write mathematics, the word
processor needs to be capable of producing the appropriate mathematical symbols and equations. The mathematics that is
written with a word processor should look like typeset mathematics. This means that italics font is used for variables,
boldface font is used for vectors, and regular font is used for mathematical terms such as the names of the trigonometric
and logarithmic functions.
For example, we do not write sin x or sin x. The proper way to typeset this is sin x.
5. Display important equations and mathematical expressions. Equations and manipulations are often an integral part of
mathematical exposition. Do not write equations, algebraic manipulations, or formulas in one column with reasons given in
another column. Important equations and manipulations should be displayed. This means that they should be centered with
blank lines before and after the equation or manipulations, and if the left side of the equations do not change, it should not
be repeated. For example,
Using algebra, we we obtain
Answer
The backward question for this could be, “How do I prove that an integer is an odd integer?” One way to answer this is to
use the definition of an odd integer, but another way is to use the result of Theorem 1.8. That is, we can prove an integer is
odd by proving that it is a product of two odd integers.
The difficulty then is deciding which answer to use. Sometimes we can tell by carefully watching the interplay between the
forward process and the backward process. Other times, we may have to work with more than one possible answer.
2. Sometimes we can use previously proven results to answer a forward question or a backward question. This was the case in
the example given in Comment (1), where Theorem 1.8 was used to answer a backward question.
3. Although we start with two separate processes (forward and backward), the key to constructing a proof is to find a way to
link these two processes. This can be difficult. One way to proceed is to use the know portion of the table to motivate
answers to backward questions and to use the show portion of the table to motivate answers to forward questions.
4. Answering a backward question can sometimes be tricky. If the goal is the statement Q, we must construct the know-show
table so that if we know that Q1 is true, then we can conclude that Q is true. It is sometimes easy to answer this in a way
that if it is known that Q is true, then we can conclude that Q1 is true. For example, suppose the goal is to prove
y
2
=4 ,
where y is a real number. A backward question could be, “How do we prove the square of a real number equals four?” One
possible answer is to prove that the real number equals 2. Another way is to prove that the real number equals 2. This is an
appropriate backward question, and these are appropriate answers.
However, if the goal is to prove
y =2
where y is a real number, we could ask, “How do we prove a real number equals 2?” It is not appropriate to answer this
question with “prove that the square of the real number equals 4.” This is because if y = 4 , then it is not necessarily true
2
that y = 2 .
5. Finally,it is very important to realize that not every proof can be constructed by the use of a simple know-show table.
Proofs will get more complicated than the ones that are in this section. The main point of this section is not the know-show
table itself, but the way of thinking about a proof that is indicated by a know-show table. In most proofs, it is very
important to specify carefully what it is that is being assumed and what it is that we are trying to prove. The process of
asking the “backward questions” and the “forward questions” is the important part of the know-show table. It is very
important to get into the “habit of mind” of working backward from what it is we are trying to prove and working forward
from what it is we are assuming. Instead of immediately trying to write a complete proof, we need to stop, think, and ask
questions such as
Just exactly what is it that I am trying to prove?
How can I prove this?
What methods do I have that may allow me to prove this?
What are the assumptions?
How can I use these assumptions to prove the result?
m even integers and the other half odd integers. Is the following proposition true or false?
Answer
Add texts here. Do not delete this text first.
right triangle and if c is the length of the hypotenuse, then the c = 5 + 12 and c = 169 . Since c is a length and must
2 2 2 2
Although this proposition uses different mathematical concepts than the one used in this section, the process of
constructing a proof for this proposition is the same forward-backward method that was used to construct a proof for
Theorem 1.8. However, the backward question, “How do we prove that m = 3 ?” is simple but may be difficult to answer.
The basic idea is to develop an equation from the forward process and show that m = 3 is a solution of that equation.
Answer
Add texts here. Do not delete this text first.
4. Construct a know-show table and write a complete proof for each of the following statements:
6. In this section, it was noted that there is often more than one way to answer a backward question. For example, if the
backward question is, “How can we prove that two real numbers are equal?”, one possible answer is to prove that their
difference equals 0. Another possible answer is to prove that the first is less than or equal to the second and that the
second is less than or equal to the first
(a) Give at least one more answer to the backward question, “How can we prove that two real numbers are equal?”
(b) List as many answers as you can for the backward question, “How can we prove that a real number is equal to
zero?”
(c) List as many answers as you can for the backward question, “How can we prove that two lines are parallel?”
(d) List as many answers as you can for the backward question, “How can we prove that a triangle is isosceles?”
7. Are the following statements true or false? Justify your conclusions.
(a) Give examples of at least four different integers that are type 1 integers.
(b) Give examples of at least four different integers that are type 2 integers.
(c) By multiplying pairs of integers from the list in Exercise (9a), does it appear that the following statement is true or
false?
If a and b are both type 1 integers, then a ⋅ b is a type 1 integer.
10. Use the definitions in Exercise (9) to help write a proof for each of the following statements:
2 2
−b + √(b − 4ac) −b − √(b − 4ac)
x1 = and x 2 = .
2a 2a
b
(a) Prove that the sum of the two solutions of the quadratic equation ax 2
+ bx + c = 0 is equal to − .
a
c
(b) Prove that the product of the two solutions of the quadratic equation ax 2
+ bx + c = 0 is equal to .
a
12. (a) See Exercise (11) for the quadratic formula, which gives the solutions to a quadratic equation. Let a, b, and c be
real numbers with a ≠ 0 . The discriminant of the quadratic equation ax + bx + c = 0 is defined to be b − 4ac .
2 2
Explain how to use this discriminant to determine if the quadratic equation has two real number solutions, one real
(c) Prove that if a , b , and c are real numbers with a ≠ 0 , b > 0 , and b < 2√(ac) , then the quadratic equation
ax + bx + c = 0 has no real number solutions.
2
Pythagorean triples began with the development of the Pythagorean Theorem for right triangles, which states that if
a and b are the lengths of the legs of a right triangle and c is the length of the hypotenuse, then a + b = c . For
2 2 2
example, if the lengths of the legs of a right triangle are 4 and 7 units, then c = 4 + 7 = 63 , and the length of the
2 2 2
– –
hypotenuse must be √63 units (since the length must be a positive real number). Notice that 4, 7, and √63 are not a
–
Pythagorean triple since √63 is not a natural number.
(a) Verify that each of the following triples of natural numbers form a Pythagorean triple.
(1) 3, 4, and 5. (2) 8, 15, and 17. (3) 12, 35, and 37
(4) 6, 8, and 10. (5) 10, 24, and 26 (6) 14, 48, and 50
(b) Does there exist a Pythagorean triple of the form m, m + 7 , and m + 8 , where m is a natural number? If the
answer is yes, determine all such Pythagorean triples. If the answer is no, prove that no such Pythagorean triple exists.
(c) Does there exist a Pythagorean triple of the form m, m + 11 ,and m + 12 , where m is a natural number? If the
answer is yes, determine all such Pythagorean triples. If the answer is no, prove that no such Pythagorean triple exists.
14. More Work with Pythagorean Triples. In Exercise (13), we verified that each of the following triples of natural
numbers are Pythagorean triples:
(1) 3, 4, and 5. (2) 8, 15, and 17. (3) 12, 35, and 37
(4) 6, 8, and 10. (5) 10, 24, and 26 (6) 14, 48, and 50
(a) Focus on the least even natural number in each of these Pythagorean triples. Let n be this even number and find m
so that n = 2m . Now try to write formulas for the other two numbers in the Pythagorean triple in terms of m. For
example, for 3, 4, and 5, n = 4 and m = 2 , and for 8, 15, and 17, n = 8 and m = 4 . Once you think you have
formulas, test your results with m = 10 . That is, check to see that you have a Pythagorean triple whose smallest even
number is 20.
(b) Write a proposition and then write a proof of the proposition. The proposition should be in the form: If m is a
natural number and m ≥ 2 , then ......
Answer
Add texts here. Do not delete this text first.
1 7/21/2021
2.1: Statements and Logical Operators
The disjunction of the statements P and Q is the statement “P or Q” and its denoted by P ∨ Q . The statement
P ∨ Q is true only when at least one of P or Q is true.
The negation (of a statement) of the statement P is the statement “not P ” and is denoted by ┐P . The negation of P
is true only when P is false, and ┐P is false only when P is true.
The implication or conditional is the statement “If P then Q” and is denoted by P → Q . The statement P → Q is
often read as “P implies Q, and we have seen in Section 1.1 that P → Q is false only when P is true and Q is false.
Some comments about the disjunction.
It is important to understand the use of the operator “or.” In mathematics, we use the “inclusive or” unless stated
otherwise. This means that P ∨ Q is true when both P and Q are true and also when only one of them is true. That is,
P ∨ Q is true when at least one of P or Q is true, or P ∨ Q is false only when both P and Q are false.
A different use of the word “or” is the “exclusive or.” For the exclusive or, the resulting statement is false when both
statements are true. That is, “P exclusive or Q” is true only when exactly one of P or Q is true. In everyday life, we
often use the exclusive or. When someone says, “At the intersection, turn left or go straight,” this person is using the
exclusive or.
Some comments about the negation. Although the statement, ┐P , can be read as “It is not the case that P ,” there are
often betters ways to say or write this in English. For example, we would usually say (or write):
The negation of the statement, “391 is prime” is “391 is not prime.”
The negation of the statement, “12 < 9 ” is “12 ≥ 9 .”
1. For the statements
P : 15 is odd Q: 15 is prime
write each of the following statements as English sentences and determine
whether they are true or false.
(a) P ∧ Q . (b) P ∨ Q . (c) P ∧ ┐Q . (d) ┐P ∨ ┐Q.
2. For the statements
P : 15 is odd R: 15 < 17
write each of the following statements in symbolic form using the operators∧, ∨, and ┐
(a) 15 ≥ 17. (b) 15 is odd or 15 ≥ 17.
(c) 15 is even or 15 <17. (d) 15 is odd and 15 ≥ 17.
In the preview activities for this section, we learned about compound statements and their truth values. This information can
be summarized with truth tables as is shown below.
P ┐P
T F
F T
P Q P ∧Q
T T T
T F F
F T F
F F F
P Q P ∨Q
T T T
T F T
F T T
F F F
P Q P → Q
T T T
T F F
F T T
F F T
Rather than memorizing the truth tables, for many people it is easier to remember the rules summarized in Table 2.1.
Table 2.1: Truth Values for Common Connectives
Operator Symbolic Form Summary of Truth Values
P only if Q.
Q if P .
P is sufficient for Q. (This means that if you want Q to be true, it is sufficient to show that P is true.)
In all of these cases, P is the hypothesis of the conditional statement and Q is the conclusion of the conditional statement.
Answer
Add texts here. Do not delete this text first.
P Q R ┐Q (P ∧ ┐Q) (P ∧ ┐Q) → R
T T T F F T
T T F F F T
T F T T T T
T F F T T F
F T T F F T
F T F F F T
F F T T F T
F F F T F T
1 1 1 2 3 4
When completing the column for P ∧ ┐Q , remember that the only time the conjunction is true is when both P and ┐Q are
true.
When completing the column for (P ∧ ┐Q) → R , remember that the only time the conditional statement is false is when
the hypothesis (P ∧ ┐Q) is true and the conclusion, R , is false.
The last column entered is the truth table for the statement (P ∧ ┐Q) → R using the set up in the first three columns.
Answer
Add texts here. Do not delete this text first.
Progress Check 2.3: The Truth Table for the Biconditional Statement
Complete a truth table for [(Q → P ) ∧ (P → Q] . Use the following columns: P , Q , Q → P , P → Q , and
[(Q → P ) ∧ (P → Q] . The last column of this table will be the truth for P ↔ Q .
Answer
Example
P is and only if Q.
P is necessary and sufficient for Q.
P implies Q and Q implies P .
Definition: tautology
A tautology is a compound statement S that is true for all possible combinations of truth values of the component
statements that are part of S . A contradiction is a compound statement that is false for all possible combinations of truth
values of the component statements that are part of S .
That is, a tautology is necessarily true in all circumstances, and a contradiction is necessarily false in all circumstances.
Answer
Add texts here. Do not delete this text first.
(a) P
(b) P ∧ Q
(c) P ∨ Q
3. Suppose that P and Q are statements for which P → Q is false. What conclusion (if any) can be made about the truth
value of each of the following statements?
(a) ┐P → Q
(b) Q → P
(c) P veeQ
4. Suppose that P and Q are statements for which Q is false and ┐P → Q is true (and it is not known if R is true or
false). What conclusion (if any) can be made about the truth value of each of the following statements?
(a) P → Q
(b) Q → P
(c) ┐P → ┐Q
(d) ┐Q → ┐P
(a) P ∨ ┐Q
(b) ┐(P ∨ Q)
(c) ┐P ∨ ┐Q
(d) ┐P ∧ ┐Q
If possible, determine the truth value of each of the following statements. Carefully explain your reasoning.
If P , then Q P Q P → Q
Q only if P Q P Q → P
P is necessary for Q
P is sufficient for Q
Q is necessary for P
P implies Q
P only if Q
P if Q
if Q then P
if ┐Q then ┐P
if Q, then Q ∧ R
if P ∨ Q , then R
14. Working with Truth Values of Statements. Suppose that P and Q are true statements, that U and V are false
statements, and that W is a statement and it is not known if W is true or false.
Which of the following statements are true, which are false, and for which statements is it not possible to determine if
it is true or false? Justify your conclusions.
Answer
Add texts here. Do not delete this text first.
Definition
Two expressions are logically equivalent provided that they have the same truth value for all possible combinations
of truth values for all variables appearing in the two expressions. In this case, we write X ≡ Y and say that X and Y
are logically equivalent.
Sometimes we actually use logical reasoning in our everyday living! Perhaps you can imagine a parent making the
following two statements:
Statement 1. If you do not clean your room, then you cannot watch TV.
Statement 2. You clean your room or you cannot watch TV.
4. Let P be “you do not clean your room,” and let Q be “you cannot watch TV.” Use these to translate Statement 1 and
Statement 2 into symbolic forms.
5. Construct a truth table for each of the expressions you determined in Part(4). Are the expressions logically equivalent?
6. Assume that Statement 1 and Statement 2 are false. In this case, what is the truth value of P and what is the truth
value of Q? Now, write a true statement in symbolic form that is a conjunction and involves P and Q.
7. Write a truth table for the (conjunction) statement in Part (6) and compare it to a truth table for ┐(P → Q). What do
you observe?
Definition
If P and Q are statements, then
The converse of the conditional statement P → Q is the conditional statement Q → P .
The contrapositive of the conditional statement P → Q is the conditional statement ┐Q → ┐P .
1. For the following, the variable x represents a real number. Label each of the following statements as true or false.
(a) If x = 3 , then x = 9 .
2
(b) If x = 9 , then x = 3 .
2
(c) If x ≠ 9 , then x ≠ 3 .
2
(d) If x ≠ 3 , then x ≠ 9 .
2
2. Which statement in the list of conditional statements in Part (1) is the converse of Statement (1a)? Which is the
contrapositive of Statement (1a)?
3. Complete appropriate truth tables to show that
P → Q is logically equivalent to its contrapositive ┐Q → ┐P .
Proof
The first equivalency in Theorem 2.5 was established in Preview Activity 2.2.1. Table 2.3 establishes the second
equivalency.
Table 2.3: Truth Table for One of De Morgan’s Laws
P Q P ∨ Q ┐(P ∨ Q) ┐P ┐Q ┐(P ∨ Q) ≡ ┐P ∧ ┐Q
T T T F F F F
T F T F F T F
F T T F T F F
F F F T T T T
It is possible to develop and state several different logical equivalencies at this time. However, we will restrict
ourselves to what are considered to be some of the most important ones. Since many mathematical statements are
written in the form of conditional statements, logical equivalencies related to conditional statements are quite
important.
Theorem 2.6
For statements P and Q,
1. The conditional statement P → Q is logically equivalent to ┐P ∨ Q .
2. The statement ┐(P → Q) is logically equivalent to P ∧ ┐Q .
3. The conditional statement P → Q is logically equivalent to its contrapositive ┐Q → ┐P .
When proving theorems in mathematics, it is often important to be able to decide if two expressions are logically equivalent.
Sometimes when we are attempting to prove a theorem, we may be unsuccessful in developing a proof for the original
statement of the theorem. However, in some cases, it is possible to prove an equivalent statement. Knowing that the statements
are equivalent tells us that if we prove one, then we have also proven the other. In fact, once we know the truth value of a
statement, then we know the truth value of any other logically equivalent statement. This is illustrated in Progress Check 2.7.
which is justified by the logical equivalency established in Part (5) of Preview Activity 1. Continue by using one of
De Morgan's Laws on ┐(P ∧ ┐Q).
2. Let a and b be integers. Suppose we are trying to prove the following:
Explain why we will have proven this statement if we prove the following:
Answer
Add texts here. Do not delete this text first.
As we will see, it is often difficult to construct a direct proof for a conditional statement of the form P → (Q ∨ R) . The
logical equivalency in Progress Check 2.7 gives us another way to attempt to prove a statement of the form P → (Q ∨ R) .
┐(P → Q) ≡ P ∧ ┐Q
P ∧ (Q ∨ R) ≡ (P ∧ Q) ∨ (P ∧ R)
(P ∨ Q) → R ≡ (P → R) ∧ (Q → R)
We have already established many of these equivalencies. Others will be established in the exercises.
(a) P ∨ (Q ∧ R) ≡ (P ∨ Q) ∧ (P ∨ R)
(b P ∧ (Q ∨ R) ≡ (P ∧ Q) ∨ (P ∧ R)
[(P ∨ Q) → R] ≡ (P → R) ∧ (Q → R) .
7. Use previously proven logical equivalencies to prove each of the following logical equivalencies about conditionals
with conjunctions:
(a) [(P ∧ Q) → R] ≡ (P → R) ∨ (Q → R)
(b) [P → (Q ∧ R)] ≡ (P → R) ∧ (P → R)
8. If P and Q are statements, is the statement (P ∨ Q) ∧ ┐(P ∧ Q) logically equivalent to the statement
(P ∧ ┐Q) ∨ (Q ∧ ┐P ) ? Justify your conclusion.
9. Use previously proven logical equivalencies to prove each of the following logical equivalencies: (a)
[┐P → (Q ∧ ┐Q)] ≡ P
If x3
− x = 2x
2
+6 , then x = −2 or x = 3 .
Which of the following statements have the same meaning as this conditional statement and which ones are negations
of this conditional statement? Explain each conclusion. (See the note in the instructions for Exercise (10).)
(b) If x = −2 or x = 3 , then x − x = 2x + 6 .
3 2
(c) If x ≠ −2 or x ≠ 3 , then x − x ≠ 2x + 6 .
3 2
(e) If x − x = 2x + 6 or x ≠ −2 , then x = 3 .
3 2
(f) x − x = 2x + 6 , x ≠ −2 , and x ≠ 3 .
3 2
(g) x − x ≠ 2x + 6 or x = −2 or x = 3 .
3 2
(a) Write the symbolic form of the contrapositive of P → (Q ∨ R) . Then use one of De Morgan’s Laws (Theorem
2.5) to rewrite the hypothesis of this conditional statement.
(b) Use the result from Part (13a) to explain why the given statement is logically equivalent to the following
statement:
The two statements in this activity are logically equivalent. We now have the choice of proving either of these
statements. If we prove one, we prove the other, or if we show one is false, the other is also false. The second
statement is Theorem 1.8, which was proven in Section 1.2.
Answer
Add texts here. Do not delete this text first.
C = {-3, 3}.
For larger sets, it is sometimes inconvenient to list all of the elements of the set. In this case, we often list several of them
and then write a series of three dots (...) to indicate that the pattern continues. For example,
D = {1, 3, 5, 7, ... 49}
is the set of all odd natural numbers from 1 to 49, inclusive.
For some sets, it is not possible to list all of the elements of a set; we then list several of the elements in the set and again
use a series of three dots (...) to indicate that the pattern continues. For example, if F is the set of all even natural numbers,
we could write
F = {2, 4, 6, ...}.
We can also use the three dots before listing specific elements to indicate the pattern prior to those elements. For example,
if E is the set of all even integers, we could write
E = {... -6, -4, -2, 0, 2, 4, 6, ...}.
Listing the elements of a set inside braces is called the roster method of specifying the elements of the set. We will learn
other ways of specifying the elements of a set later in this section.
1. Use the roster method to specify the elements of each of the following sets:
(a) The set of real numbers that are solutions of the equation x − 5x = 0 .
2
(b) The set of natural numbers that are less than or equal to 10.
(c) The set of integers that are greater than -2.
2. Each of the following sets is defined using the roster method. For each set, determine four elements of the set other
than the ones listed using the roster method.
A = {1, 4, 7, 10, ...}
Definition
A variable is a symbol representing an unspecified object that can be chosen from a given set U . The set U is
called the universal set for the variable. It is the set of specified objects from which objects may be chosen to
substitute for the variable. A constant is a specific member of the universal set.
Some sets that we will use frequently are the usual number systems. Recall that we use the symbol R to stand for the
set of all real numbers, the symbol Q to stand for the set of all rational numbers, the symbol Z to stand for the set
of all integers, and the symbol N to stand for the set of all natural numbers.
A variable is a symbol representing an unspecified object that can be chosen from some specified set of objects. This
specified set of objects is agreed to in advance and is frequently called the universal set.
2. What real numbers will make the sentence “y − 2y − 15 = 0 ” a true statement when substituted for y ?
2
3. What natural numbers will make the sentence “y − 2y − 15 = 0 ” a true statement when substituted for y ?
2
4. What real numbers will make the sentence "√− x is a real number" a true statement when substituted for x?
5. What real numbers will make the sentence "si n x + cos x = 1 " a true statement when substituted for x?
2 2
6. What natural numbers will make the sentence "√− n is a natural number" a true statement when substituted for n ?
y 2
∫ t dt > 9
0
itself.
If A is a set and y is one of the objects in the set A , we write y ∈ A and read this as “y is an element of A ” or “y is a
member of A .” For example, if B is the set of all integers greater than 4, then we could write 5 ∈ B and 10 ∈ B.
If an object z is not an element in the set A , we write z ∉ A and read this as “z is not an element of A .” For example, if B
is the set of all integers greater than 4, then we could write 2 ∉ B and 4 ∉ B .
When working with a mathematical object, such as set, we need to define when two of these objects are equal. We are also
often interested in whether or not one set is contained in another set.
Using these definitions, we see that for any set A , A = A and since it is true that for each x ∈ U , if x ∈ A , then x ∈ A , we
also see that A ⊆ A . That is, any set is equal to itself and any set is a subset of itself. For some specific examples, we see that:
{1, 3, 5} = {3, 5, 1}
{5, 10} = {5, 10, 5}
{4, 8, 12} = {4, 4, 8, 12, 12}
10 22 13 -3 0 -12
2. Use correct set notation (using = or ⊆) to indicate which of the following sets are equal and which are subsets of one
of the other sets.
Answer
Add texts here. Do not delete this text first.
specific values from the universal set are assigned to x , x , . . . , x , then the resulting sentence is either true or false.
1 2 n
That is, the resulting sentence is a statement. An open sentence is also called a predicate or a propositional function.
Notation: One reason an open sentence is sometimes called a propositional function is the fact that we use function notation
P (x , x , . . . , x ) for an open sentence in n variables. When there is only one variable, such as x, we write P (X), which is
1 2 n
read “P of x.” In this notation, x represents an arbitrary element of the universal set, and P (x) represents a sentence. When
we substitute a specific element of the universal set for x, the resulting sentence becomes a statement. This is illustrated in the
next example.
Answer
Add texts here. Do not delete this text first.
Without using the term, Example 2.10 and Progress Check 2.11 (and Preview Activity 2.3.2 ) dealt with a concept called the
truth set of a predicate.
One part of elementary mathematics consists of learning how to solve equations. In more formal terms, the process of solving
an equation is a way to determine the truth set for the equation, which is an open sentence. In this case, we often call the truth
set the solution set. Following are three examples of truth sets.
If the universal set is R, then the truth set of the equation 3x − 8 = 10 is the set {6}.
If the universal set is R, then the truth set of the equation x − 3x − 10 = 0 is {-2, 5}.
2
If the universal set is N, then the truth set of the open sentence "√−n ∈ N " is {1, 4, 9, 16, ...}.
which the set is defined by stating a rule that all elements of the set must satisfy. If P (x) is a predicate in the variable x, then
the notation
{x ∈ U |P (x)}
stands for the set of all elements x in the universal set U for which P (x) is true. If it is clear what set is being used for the
universal set, this notation is sometimes shortened to {x|P (x)}. This is usually read as “the set of all x such that P (x).” The
vertical bar stands for the phrase “such that.” Some writers will use a colon (:) instead of the vertical bar.
For a non-mathematical example, P could be the property that a college student is a mathematics major. Then {x|P (x)}
denotes the set of all college students who are mathematics majors. This could be written as
{x | x is a college student who is a mathematics major}.
whose square is less than 4. We can also use set builder notation to write the truth set of P (x) as
{x ∈ R|x 2
<4 }
However, if we solve the inequality x 2
<4 , we obtain −2 < x < 2 . So we could also write the truth set as
{x ∈ R| − 2 < x < 4 }
We could read this as the set of all real numbers that are greater than -2 and less than 2. We can also write
{x ∈ R|x 2
<4 } = {x ∈ R| − 2 < x < 4 }
Answer
Add texts here. Do not delete this text first.
So far, our standard form for set builder notation has been {x ∈ U |P (x)}. It is sometimes possible to modify this form and put
the predicate first. For example, the set
{A = 3n + 1|n ∈ N }
describes the set of all natural numbers of the form 3n + 1 for some natural number.
By substituting 1, 2, 3, 4, and so on, for n, we can use the roster method to write
A = {3n + 1|n ∈ N } = {4, 7, 10, 13, ... }.
We can sometimes “reverse this process” by starting with a set specified by the roster method and then writing the same set
using set builder notation.
Answer
Add texts here. Do not delete this text first.
In mathematics, the empty set is usually designated by the symbol ∅. We usually read the symbol ∅ as “the empty set” or “the
null set.” (The symbol ∅ is actually the last letter in the Danish-Norwegian alphabet.)
(b) {x ∈ Z|2x + 3x − 2 = 0 }
2
(a) Determine four elements of each set other than the ones listed using the roster method.
(b) Use set builder notation to describe each set.
3
3. Let A = {x ∈ R|x(x + 2) 2
(x − =0 }. Which of the following sets are equal to the set A and which are subsets of
2
A ?
(a) {−2, 0, 3}
3
(b) {−2, −2, 0, }
2
3
(c) { , −2, 0 }
2
3
(d) {−2, }
2
4. Use the roster method to specify the truth set for each of the following open sentences. The universal set for each open
sentence is the set of integers Z.
(a) n + 7 = 4 .
(b) n = 64 .
2
(d) n is an odd integer that is greater than 2 and less than 14.
(e) n is an even integer that is greater than 10.
5. Use set builder notation to specify the following sets:
(d) {x ∈ R|x + 16 = 0 }
2
∙ A set A of numbers is closed under addition provided that whenever x and y are are in the set A , x + y is in the
set A .
∙ A set A of numbers is closed under multiplication provided that whenever x and y are are in the set A , x ⋅ y is in
the set A .
∙ A set A of numbers is closed under subtraction provided that whenever x and y are are in the set A , x − y is in
the set A .
For each of the following sets, make a conjecture about whether or not it is closed under addition and whether or not it
is closed under multiplication. In some cases, you may be able to find a counterexample that will prove the set is not
closed under one of these operations.
(a) The set of all odd natural numbers
(b) The set of all even integers
(c) A = {1, 4, 7, 10, 13, ...}
(d) B = {..., -6, -3, 0, 3, 6, 9, ...}
(e) C = {3n + 1|n ∈ Z }
1
(f) D = { n
|n ∈ N }
2
Answer
Add texts here. Do not delete this text first.
Using this notation, the statement “For each real number x, x > 0” could be written in symbolic form as: (∀x ∈ R)(x
2 2
> 0) .
The following is an example of a statement involving an existential quantifier.
There exists an integer x such that 3x − 2 = 0 .
This could be written in symbolic form as
(∃x ∈ Z)(3x − 2 = 0) .
This statement is false because there are no integers that are solutions of the linear equation 3x − 2 = 0 . Table 2.4 summarizes
the facts about the two types of quantifiers.
A statement involving Often has the form The statement is true provided that
"For every x , P (x) ," where P (x) is a Every value of x in the universal set makes
A universal quantifier: (∀x, P (x) )
predicate. P (x) true.
"There exists an x such that P (x) ," where There is at least one value of x in the universal
An existential quantifier: (∃x, P (x) )
P (x) is a predicate. set that makes P (x) true.
7. (∀x ∈ R)(x ≥ x ) .
3 2
8. x + 1 = 0 .
2
9. If x ≥ 1 , then x ≥ 1 .
2
∙ If x ∈ R , then x > 0 .
2
In the second to the last example, the quantifier is not stated explicitly. Care must be taken when reading this because it
really does say the same thing as the previous examples. The last example illustrates the fact that conditional statements
often contain a “hidden” universal quantifier.
If the universal set is R, then the truth set of the open sentence 2
x >0 is the set of all nonzero real numbers. That is, the
truth set is
{x ∈ R|x ≠ 0}
So the preceding statements are false. For the conditional statement, the example using x = 0 produces a true hypothesis
and a false conclusion. This is a counterexample that shows that the statement with a universal quantifier is false.
2. (∃x ∈ R) (x 2
=5 ).
The second example is usually not used since it is not considered good writing practice to start a sentence with a
mathematical symbol.
If the universal set is R, then the truth set of the predicate "x = 5 " is {−sqrt5, sqrt5}. So these are all true statements.
2
means that there exists an element x in U such that ┐P (x) is true, which is equivalent to saying that (∃x ∈ U )[┐P (x)] is true.
This explains why the following result is true:
┐(∀x ∈ U )[P (x)] ≡ (∃x ∈ U )[┐P (x)]
we are asserting that the statement (∃x ∈ U )[P (x)] is false. This is equivalent to saying that the truth set of the open sentence
P (x) is the empty set. That is, there is no element x in the universal set U such that P (x) is true. This in turn means that for
each element x in U , ┐P (x) is true, and this is equivalent to saying that (∀x ∈ U )[┐P (x)] is true. This explains why the
following result is true:
┐(∃x ∈ U )[P (x)] ≡ (∀x ∈ U )[┐P (x)]
Theorem 2.16.
For any open sentence P (x),
┐(∀x ∈ U )[P (x)] ≡ (∃x ∈ U )[┐P (x)] , and
┐(∃x ∈ U )[P (x)] ≡ (∀x ∈ U )[┐P (x)]
The second statement shows that in a conditional statement, there is often a hidden universal quantifier. This statement is
false since there are real numbers x for which x is not greater than or equal to x . For example, we could use x = −1 or
3 2
x =
1
2
. This means that the negation must be true. We can form the negation as follows:
┐(∀x ∈ R)(x
3 2
≥ x ) ≡ (∃x ∈ R)┐(x
3 2
≥x ) .
In most cases, we want to write this negation in a way that does not use the negation symbol. In this case, we can now
write the open sentence ┐(x ≥ x ) as (x < x ). (That is, the negation of “is greater than or equal to” is “is less than.”)
3 2 3 2
4. (∃x ∈ Q)(x − 3x − 7 = 0) .
2
5. (∃x ∈ R)(x + 1 = 0) .
2
Answer
Add texts here. Do not delete this text first.
called a counterexample to the statement. In general, a counterexample to a statement of the form (∀x)[P (x)] is an object a
in the universal set U for which P (a) is false. It is an example that proves that (∀x)[P (x)] is a false statement, and hence its
negation, (∃x)[┐P (x)], is a true statement.
In the preceding example, we also wrote the universally quantified statement as a conditional statement. The number x = −1
is a counterexample for the statement
If x is a real number, then x is greater than or equal to x .
3 2
So the number -1 is an example that makes the hypothesis of the conditional statement true and the conclusion false.
Remember that a conditional statement often contains a “hidden” universal quantifier. Also, recall that in Section 2.2 we saw
that the negation of the conditional statement “If P then Q” is the statement “P and not Q.” Symbolically, this can be written
as follows:
┐(P → Q) ≡ P ∧ ┐Q .
So when we specifically include the universal quantifier, the symbolic form of the negation of a conditional statement is
┐(∀x ∈ U )[P (x) → Q(x)] ≡ (∃x ∈ U )┐[P (x) → Q(x)] ≡ (∃x ∈ U )[P (x) ∧ ┐Q(x)] .
That is,
┐(∀x ∈ U )[P (x) → Q(x)] ≡ (∃x ∈ U )[P (x) ∧ ┐Q(x)] .
Answer
Add texts here. Do not delete this text first.
Quantifiers in Definitions
Definitions of terms in mathematics often involve quantifiers. These definitions are often given in a form that does not use the
symbols for quantifiers. Not only is it important to know a definition, it is also important to be able to write a negation of the
definition. This will be illustrated with the definition of what it means to say that a natural number is a perfect square.
This definition can be written in symbolic form using appropriate quantifiers as follows:
2. Examples of natural numbers that are not perfect squares are 2, 5, 10, and 50.
3. This definition gives two “conditions.” One is that the natural number n is a perfect square and the other is that there exists
a natural number k such that n = k . The definition states that these mean the same thing. So when we say that a natural
2
number n is not a perfect square, we need to negate the condition that there exists a natural number k such that n = k . We 2
Notice that instead of writing ┐(n = k ) , we used the equivalent form of (n ≠ k ). This will be easier to translate into an
2 2
The preceding method illustrates a good method for trying to understand a new definition. Most textbooks will simply define a
concept and leave it to the reader to do the preceding steps. Frequently, it is not sufficient just to read a definition and expect to
understand the new term. We must provide examples that satisfy the definition, as well as examples that do not satisfy the
definition, and we must be able to write a coherent negation of the definition
Definition
An integer n is a multiple of 3 provided that there exists an integer k such that n = 3k .
1. Write this definition in symbolic form using quantifiers by completing the following:
Answer
Add texts here. Do not delete this text first.
When we negate a statement with more than one quantifier, we consider each quantifier in turn and apply the appropriate part
of Theorem 2.16. As an example, we will negate Statement (3) from the preceding list. The statement is
(∃x ∈ Z)(∀y ∈ Z)(x + y = 0) .
We first treat this as a statement in the following form: (∃x ∈ Z)(P (x)) where P (x) is the predicate (∀y ∈ Z)(x + y = 0) .
Using Theorem 2.16, we have
┐(∃x ∈ Z)(P (x)) ≡ (∀x ∈ Z)(┐P (x)) .
Using Theorem 2.16 again, we obtain the following:
┐P (x) ≡ ┐(∀y ∈ Z)(x + y = 0)
≡ (∃y ∈ Z)┐(x + y = 0)
≡ (∃y ∈ Z)(x + y ≠ 0) .
Combining these two results, we obtain
┐(∃x ∈ Z)(∀y ∈ Z)(x + y = 0) ≡ (∀x ∈ Z)(∃y ∈ Z)(x + y ≠ 0) .
The results are summarized in the following table.
Symbolic Form English Form
Answer
Add texts here. Do not delete this text first.
Writing Guideline
Try to use English and minimize the use of cumbersome notation. Do not use the special symbols for quantifiers ∀ (for all), ∃
(there exists), backepsilon (such that), or ∴ (therefore) in formal mathematical writing. It is often easier to write and usually
easier to read, if the English words are used instead of the symbols. For example, why make the reader interpret
(∀x ∈ R)(∃y ∈ R)(x + y = 0)
2. For each of the following, use a counterexample to show that the statement is false. Then write the negation of the
statement in English, without using symbols for quantifiers.
∙ Write the negation of the statement in symbolic form in which the negation symbol is not used.
∙ Write a useful negation of the statement in an English sentence that does not use the symbols for quantifiers.
–
(a) (∃x ∈ Q)(x > √2) .
(b) (∀x ∈ Q)(x − 2 ≠ 0) .
2
5. Write the negation of each statement in Exercise (4) in symbolic form and as an English sentence that does not use the
symbols for quantifiers.
6. Assume that the universal set is Z. Consider the following sentence:
(a) Explain why this sentence is an open sentence and not a statement.
(b) If 5 is substituted for x, is the resulting sentence a statement? If it is a statement, is the statement true or false?
(c) If 8 is substituted for x, is the resulting sentence a statement? If it is a statement, is the statement true or false?
(a) Explain why this sentence is an open sentence and not a statement.
(b) If 5 is substituted for x, is the resulting sentence a statement? If it is a statement, is the statement true or false?
(c) If π is substituted for x, is the resulting sentence a statement? If it is a statement, is the statement true or false?
(d) If 0 is substituted for x, is the resulting sentence a statement? If it is a statement, is the statement true or false?
(e) What is the truth set of the open sentence (∃t ∈ R)(t ⋅ x = 20) ?
8. Let Z be the set of all nonzero integers.
∗
(b) Write the statement in part(a) in symbolic form using appropriate symbols for quantifiers.
(c) Write the negation of the statement in part (b) in symbolic form using appropriate symbols for quantifiers.
(d) Write the negation from part(c) in English without usings the symbols for quantifiers.
9. An integer m is said to have the divides property provided that for all integers a and b , if m divides ab , then m
divides a or m divides b .
(a) Using the symbols for quantifiers, write what it means to say that the integer m has the divides property.
(b) Using the symbols for quantifiers, write what it means to say that the integer m does not have the divides property.
(c) Write an English sentence stating what it means to say that the integer m does not have the divides property.
10. In calculus, we define a function f with domain R to be strictly increasing provided that for all real numbers x and
y , f (x) < f (y) whenever x < y . Complete each of the following sentences using the appropriate symbols for
quantifiers:
(a) A function f with domain R is strictly increasing provided that ...
(b) A function f with domain R is not strictly increasing provided that ...
Complete the following sentence in English without using symbols for quantifiers:
(c) A function f with domain R is not strictly increasing provided that ...
11. In calculus, we define a function f to be continuous at a real number a provided that for every ε > 0 , there exists a
δ > 0 such that if |x − a| < δ , then |f (x) − f (a)| < ε .
Note: The symbol ε is the lowercase Greek letter epsilon, and the symbol δ is the lowercase Greek letter delta.
Complete each of the following sentences using the appropriate symbols for quantifiers:
Complete the following sentence in English without using symbols for quantifiers:
(c) A function f is not continuous at the real number a provided that ...
12. The following exercises contain definitions or results from more advanced mathematics courses. Even though we may
not understand all of the terms involved, it is still possible to recognize the structure of the given statements and write
a meaningful negation of that statement.
(a) In abstract algebra, an operation ∗ on a set A is called a commutative operation provided that for all x, y ∈ A,
x ∗ y = y ∗ x . Carefully explain what it means to say that an operation ∗ on a set A is not a commutative operation.
(c) A set M of real numbers is called a neighborhood of a real number aprovided that there exists a positive real
number ϵ such that the open interval (a − ϵ, a + ϵ ) is contained in M . Carefully explain what it means to say that a set
M is not a neighborhood of a real number a .
(d) In advanced calculus, a sequence of real numbers {x , x , ..., x , ...} is called a Cauchy sequence provided that
1 2 k
for each positive real number, there exists a natural number N such that for all m; n ∈ N , if m > N and n > N ,
then |x − x | < ϵ . Carefully explain what it means to say that the sequence of real numbers {x , x , ..., x , ...} is
n m 1 2 k
Definition
A natural number p is a prime number provided that it is greater than 1 and the only natural numbers that are
factors of p are 1 and p. A natural number other than 1 that is not a prime number is a composite number. The
number 1 is neither prime nor composite.
Using the definition of a prime number, we see that 2, 3, 5, and 7 are prime numbers. Also, 4 is a composite number
since 4 = 2 ⋅ 2; 10 is a composite number since 10 = 2 ⋅ 5; and 60 is a composite number since 60 = 4 ⋅ 15.
(a) Give examples of four natural numbers other than 2, 3, 5, and 7 that are prime numbers.
(b) Explain why a natural number p that is greater than 1 is a prime number provided that
For all d ∈ N , if d is a factor of p, then d = 1 or d = p .
(c) Give examples of four natural numbers that are composite numbers and explain why they are composite numbers.
(d) Write a useful description of what it means to say that a natural number is a composite number (other than saying
that it is not prime).
14. Upper Bounds for Subsets of R. Let A be a subset of the real numbers. A number b is called an upper bound for the
set A provided that for each element x in A , x ≤ b .
(f) Without using the symbols for quantifiers, complete the following sentence: “Let A be a subset of R. A number b
is not an upper bound for the set A provided that ...”
(g) Are your examples in Part(14d) consistent with your work in Part(14f)? Explain.
15. Least Upper Bound for a Subset of R. In Exercise 14, we introduced the definition of an upper bound for a subset of
the real numbers. Assume that we know this definition and that we know what it means to say that a number is not an
upper bound for a subset of the real numbers.
Let A be a subset of R. A real number ̨ is the least upper bound for A provided that α is an upper bound for A , and
if β is an upper bound for A , then α ≤ β .
Answer
Add texts here. Do not delete this text first.
┐(P ∨ Q) ≡ ┐P ∧ ┐Q
┐(P → Q) ≡ P ∧ ┐Q
Biconditional Statement (P ↔ Q) ≡ (P → Q) ∧ (Q → P )
P ∧ (Q ∨ R) ≡ (P ∧ Q) ∨ (P ∧ R)
P ∨ Q) → R ≡ (P → R) ∧ (Q → R)
1 7/21/2021
3.1: Direct Proofs
Preview Activity 1 (Definition of Divides, Divisor, Multiple)
In Section 1.2, we studied the concepts of even integers and odd integers. The definition of an even integer was a formalization
of our concept of an even integer as being one this is “divisible by 2,” or a “multiple of 2.” We could also say that if “2 divides
an integer,” then that integer is an even integer. We will now extend this idea to integers other than 2. Following is a formal
definition of what it means to say that a nonzero integer m divides an integer n .
Definition
A nonzero integer m divides an integer n provided that there is an integer q such that n = m ⋅ q . We also say that m is a
divisor of n , m is a factor of n , and n is a multiple of m. The integer 0 is not a divisor of any integer. If a and b are
integers and a ≠ 0 , we frequently use the notation a|bas a shorthand for “a divides b .”
a
A Note about Notation: Be careful with the notation a|b . This does not represent the rational number . The notation a|b
b
represents a relationship between the integers a and b and is simply a shorthand for “a divides b .”
A Note about Definitions: Technically, a definition in mathematics should almost always be written using “if and only if.” It
is not clear why, but the convention in mathematics is to replace the phrase “if and only if” with “if” or an equivalent. Perhaps
this is a bit of laziness or the “if and only if” phrase can be a bit cumbersome. In this text, we will often use the phrase
“provided that” instead.
The definition for “divides” can be written in symbolic form using appropriate quantifiers as follows: A nonzero integer m
As we have seen in Section 1.2, a definition is frequently used when constructing and writing mathematical proofs.
Consider the following conjecture:
Conjecture: Let a , b and c be integers with a ≠ 0 and b ≠ 0 . If a divides b and b divides c , then a devides c .
7. Explain why the examples you generated in part (6) provide evidence that this conjecture is true.
In Section 1.2, we also learned how to use a know-show table to help organize our thoughts when trying to construct a
proof of a statement. If necessary, review the appropriate material in Section 1.2.
8. State precisely what we would assume if we were trying to write a proof of the preceding conjecture.
9. Use the definition of “divides” to make some conclusions based on your assumptions in part (8).
10. State precisely what we would be trying to prove if we were trying to write a proof of the conjecture.
11. Use the definition of divides to write an answer to the question, “How can we prove what we stated in part (10)?
Preview Activity 2 (Calendars and Clocks)
This preview activity is intended to help with understanding the concept of congruence, which will be studied at the end of this
section.
The closure properties of the number systems discussed in Section 1.1 and the properties of the number systems in Table
1.2 on page 18 are being used as axioms in this text.
A definition is simply an agreement as to the meaning of a particular term. For example, in this text, we have defined the
terms “even integer” and “odd integer.” Definitions are not made at random, but rather, a definition is usually made because a
certain property is observed to occur frequently. As a result, it becomes convenient to give this property its own special name.
Definitions that have been made can be used in developing mathematical proofs. In fact, most proofs require the use of some
definitions.
Conjecture: Let a , b and c be integers with a ≠ 0 and b ≠ 0 . If a divides b and b divides c , then a devides c .
Before we try to prove a conjecture, we should make sure we have explored some examples. This simply means to construct
some specific examples where the integers a, b, and c satisfy the hypothesis of the conjecture in order to see if they also satisfy
the conclusion. We did this for this conjecture in Preview Activity 3.1.1.
We will now start a know-show table for this conjecture.
P 1
Q 1
Q a|c
The backward question we ask is, “How can we prove that a divides c ?” One answer is to use the definition and show that
there exists an integer q such that c = a ⋅ q . This could be step Q1 in the know-show table.
We now have to prove that a certain integer q exists, so we ask the question, “How do we prove that this integer exists?” When
we are at such a stage in the backward process of a proof, we usually turn to what is known in order to prove that the object
exists or to find or construct the object we are trying to prove exists. We often say that we try to “construct” the object or at
least prove it exists from the known information. So at this point, we go to the forward part of the proof to try to prove that
there exists an integer q such that c = a ⋅ q .
The forward question we ask is, “What can we conclude from the facts that a|b and b|c?” Again, using the definition, we know
that there exist integers s and t such that b = a ⋅ s and c = b ⋅ t . This could be step P 1 in the know-show table.
= (a ⋅ s) ⋅ t
= a(s ⋅ t) .
The last step used the associative property of multiplication. (See Table 1.2 on page 18.) This shows that c is equal to a times
some integer. (This is because s ⋅ t is an integer by the closure property for integers.) So although we did not use the letter q,
we have arrived at step Q1. The completed know-show table follows.
(∃s ∈ Z)(b = a ⋅ s)
P 1 Definition of "Divides"
(∃t ∈ Z)(c = b ⋅ t)
P 2 c = (a ⋅ s) ⋅ t Substitution for b
Notice the similarities between what we did for this proof and many of the proofs about even and odd integers we constructed
in Section 1.2. When we try to prove that a certain object exists, we often use what is called the construction method for a
proof. The appearance of an existential quantifier in the show (or backward) portion of the proof is usually the indicator to go
to what is known in order to prove the object exists.
We can now report the news by writing a formal proof.
Theorem 3.1
Let a , b and c be integers with a ≠ 0 and b ≠ 0 . If a divides b and b divides c , then a devides c .
Proof
We assume that a , b, and c are integers with a ≠ 0 and b ≠ 0 . We further assume that a divides b and that b divides c.
We will prove that a divides c.
Since a divides b and b divides c, there exist an integers s and t such that
b = a ⋅ s, and (3.1.1)
c =b⋅t (3.1.2)
We can now substitute the expression for b from equation (1) into equation (2). This gives
c = (a ⋅ s) ⋅ t .
Using the associate property for multiplication, we can rearrange the right side of the last equation to obtain
c = a ⋅ (s ⋅ t) .
Because both s and t are integers, and since the integers are closed under multiplication, we know that s ⋅ t ∈ Z .
Therefore, the previous equation proves that a divides c. Consequently, we have proven that whenever a , b, and c are
integers with a ≠ 0 and b ≠ 0 such that a divides b and b divides c, then a divides c.
.
Later in the proof, there may be a line such as
Then, using the result in equation (1), we obtain . . . .
Notice that we did not number every equation in Theorem 3.1. We should only number those equations we will be referring to
later in the proof, and we should only number equations when it is necessary. For example, instead of numbering an equation,
it is often better to use a phrase such as, “the previous equation proves that . . . ” or “we can rearrange the terms on the right
side of the previous equation.” Also, note that the word “equation” is not capitalized when we are referring to an equation by
number. Although it may be appropriate to use a capital “E,” the usual convention in mathematics is not to capitalize.
Answer
Add texts here. Do not delete this text first.
Using Counterexamples
In Section 1.2 and so far in this section, our focus has been on proving statements that involve universal quantifiers. However,
another important skill for mathematicians is to be able to recognize when a statement is false and then to be able to prove that
it is false. For example, suppose we want to know if the following proposition is true or false.
For each integer n , if 5 divides n 2
−1 , then 5 divides n − 1 .
Suppose we start trying to prove this proposition. In the backward process, we would say that in order to prove that 5 divides
n − 1 , we can show that there exists an integer k such that
Q1 : n − 1 = 5k or n = 5k + 1 .
For the forward process, we could say that since 5 divides (n^2 - 1), we know that there exists an interger m such that
P1 :n
2
− 1 = 5m or n 2
= 5m + 1 .
The problem is that there is no straightforward way to use P to prove Q . At this point, it would be a good idea to try some
1 1
examples for n and try to find situations in which the hypothesis of the proposition is true. (In fact, this should have been done
before we started trying to prove the proposition.) The following table summarizes the results of some of these explorations
with values for n .
n n
2
−1 Does 5 divide (n 2
−1 ) n−1 Does 5 divide (n − 1 )
1 0 yes 0 yes
2 3 no 1 no
3 8 no 2 no
4 15 yes 3 no
We can stop exploring examples now since the last row in the table provides an example where the hypothesis is true and the
conclusion is false. Recall from Section 2.4 (see page 69) that a counterexample for a statement of the form ∀x ∈ U )(P (x))
is an element a in the universal set for which P (a) is false. So we have actually proved that the negation of the proposition is
true.
When using a counterexample to prove a statement is false, we do not use the term “proof” since we reserve a proof for
proving a proposition is true. We could summarize our work as follows:
The integer n = 4 is a counterexample that proves this conjecture is false. Notice that when n = 4, n - 1 = 15 and 52
divides 15. Hence,the hypothesis of the conjecture is true in this case. In addition, n - 1 = 3 and 5 does not divide 3 and so
the conclusion of the conjecture is false in this case. Since this is an example where the hypothesis is true and the
conclusion is false, the conjecture is false.
As a general rule of thumb, anytime we are trying to decide if a proposition is true or false, it is a good idea to try some
examples first. The examples that are chosen should be ones in which the hypothesis of the proposition is true. If one of these
examples makes the conclusion false, then we have found a counterexample and we know the proposition is false. If all of the
examples produce a true conclusion, then we have evidence that the proposition is true and can try to write a proof.
Answer
Add texts here. Do not delete this text first.
Congruence
What mathematicians call congruence is a concept used to describe cycles in the world of the integers. For example, the day of
the week is a cyclic phenomenon in that the day of the week repeats every seven days. The time of the day is a cyclic
phenomenon because it repeats every 12 hours if we use a 12-hour clock or every 24 hours if we use a 24-hour clock. We
explored these two cyclic phenomena in Preview Activity 3.1.2.
Similar to what we saw in Preview Activity 3.1.2, if it is currently Monday, then it will be Wednesday 2 days from now, 9
days from now, 16 days from now, 23 days from now, and so on. In addition, it was Wednesday 5 days ago, 12 days ago, 19
days ago, and so on. Using negative numbers for time in the past, we generate the following list of numbers:
..., -19, -12, -5, 2, 9, 16, 23, ...
Notice that if we subtract any number in the list above from any other number in that list, we will obtain a multiple of 7. For
example,
Example:
16 - 2 = 14 = 7 ⋅ 2
(-5) - (9) = -14 = 7 ⋅ (-2)
16 - (-12) = 28 = 7 ⋅ 4.
Definition
Let n ∈ N . If a and b are integers, then we say that a is congruent to b modulo n provided that n divides a − b . A
standard notation for this is a ≡ b (mod n ). This is read as “a is congruent to b modulo n ” or “a is congruent to b mod
n .”
Notice that we can use the definition of divides to say that n divides a − b if and only if there exists an integer k such that
a − b = nk . So we can write
Answer
Add texts here. Do not delete this text first.
We will study the concept of congruence modulo n in much more detail later in the text. For now, we will work with the
definition of congruence modulo n in the context of proofs. For example, all of the examples used in Progress Check
3.4should provide evidence that the following proposition is true.
Proposition 3.5.
For all integers a and b , if a ≡ 5 (mod 8) and b ≡ 5 (mod 8), then (a + b ) ≡ 2 (mod 8).
We now turn to what we know and ask, "What can we conclude from the assumptions that a ≡ 5 (mod 8) and b ≡ 5
(mod 8)." We can again use the definition of congruence and conclude that 8 divides (a - 5) and 8 divides (b - 5).
2. Use the definition of divides to make conclusions based on the facts that 8 divides (a - 5) and 8 divides (b - 5).
3. Solve an equation from part (2) for a and for b .
Answer
Add texts here. Do not delete this text first.
1
3 2
x − 3x +
2
(3.1.4)
2x
−7
3
easier to read, if the English words are used instead of the sym- bols. For example, why make the reader interpret
(a) For all integers a , b , and c with a ≠ 0 , if a|b and a|c, then a|(b − c) .
(b) For each n ∈ Z , if n is an odd integer, then n is an odd integer.
3
2. For each of the following, use a counterexample to prove the statement is false.
(a) For each odd natural number n , if n > 3 , then 3 divides (n - 1).
2
−−− −− −
(c) For all real numbers x and y , √x + y > 2xy.
2 2
3. Determine if each of the following statements is true or false. If a statement is true, then write a formal proof of that
statement, and if it is false, then provide a counterexample that shows it is false.
(g) For all integer a , b , and d with d ≠ 0 , if d divides both a − b and a + b , then d divides a .
(h) For all integer a , b , and c with a ≠ 0 , if a|(bc), then a|b or a|c.
4. (a) If x and y are integers and xy = 1, explain why x = 1 or x = −1 .
(b) Is the following proposition true or false?
For all nonzero integers a and b , if a|b and b|a, then a = ±b .
5. Prove the following proposition:
Let a be an integer. If there exists an integer n such that a|(4n + 3) and a|(2n + 1) , then a = 1 or a = −1 .
Hint: Use the fact that the only divisors of 1 are 1 and -1.
6. Determine if each of the following statements is true or false. If a statement is true, then write a formal proof of that
statement, and if it is false, then provide a counterexample that shows it is false. (a) For each integer a , if there exists
an integer n such that a divides (8n + 7 ) and a divides (4n + 1 ), then a divides 5.
(a) For each integer a , if there exists an integer n such that a divides (9n + 5 ) and a divides (6n + 1 ), then a divides
7.
(c) For each integer n , if n is odd, then 8 divides (n + 4n + 11 ).
4 2
(a) For all integers a and b , if ab ≡ 0 (mod 6), then a ≡ 0 (mod 6) or b ≡ (mod 6).
(b) For each integer a , if a ≡ 2 (mod 8), then a ≡ 4 (mod 8).
2
number solution, or no real number solutions. (See Exercise (11) in Section 1.2 for a statement of the quadratic
formula.)
(b) Prove that if a , b , and c are real numbers for which a > 0 and c < 0 , then one solution of the quadratic equation
ax + bx + c = 0 is a positive real number.
2
b −−
(c) Prove that if a , b , and c are real numbers, if a ≠0 , b >0 and < √ac , then the quadratic equation
2
ax
2
+ bx + c = 0 has no real number solution.
14. Let h and k be real numbers and let r be a positive number. The equation for a circle whose center is at the point (h ,
k ) and whose radius is r is
2 2 2
(x − h ) + (y − k) =r (3.1.6)
Prove that all points on or inside the circle whose equation is (x − 1) + (y − 2) = 4 are inside the circle whose
2 2
equation is x + y = 26 .
2 2
15. Let r be a positive real number. The equation for a circle of radius r whose center is the origin is x + y = r . 2 2 2
dy
(a) Use implicit differentiation to determine .
dx
(b) Let (a , b ) be a point on the circle with a ≠ 0 and b ≠ 0 . Determine the slope of the line tangent to the circle at the
to -1.
16. Determine if each of the following statements is true or false. Provide a counterexample for statements that are false
and provide a complete proof for those that are true.
x +y
(a) For all real numbers x and y , √−−
xy ≤ .
2
x +y
(b) For all real numbers x and y , xy ≤ ( )
2
.
2
x +y
(c) For all nonnegative real numbers x and y , √−−
xy ≤ .
2
17. Use one of the true in equalities in Exercise(16) to prove the following proposition.
a
For each real number a , the value of x that gives the maximum value of y = x(a − x) is x = .
2
18. (a) State the Pythagorean Theorem for right triangles.
The diagrams in Figure 3.1 will be used for the problems in this exercise.
(b) In the diagram on the left, x is the length of a side of the equilateral triangle and h is the length of an altitude of
the equilateral triangle. The labeling in the diagram shows the fact that the altitude intersects the base of the equilateral
triangle at the midpoint of the base. Use the
∙ If a proposition is false, the proposed proof is, of course, incorrect. In this situation, you are to find the error in the
proof and then provide a counterexample showing that the proposition is false.
∙ If a proposition is true, the proposed proof may still be incorrect. In this case, you are to determine why the proof is
incorrect and then write a correct proof using the writing guidelines that have been presented in this book.
∙ If a proposition is true and the proof is correct, you are to decide if the proof is well written or not. If it is well
written, then you simply must indicate that this is an excellent proof and needs no revision. On the other hand, if the
proof is not well written, then you must then revise the proof so by writing it according to the guidelines presented in
x y
(b) Proposition. For all real numbers x and y , if x ≠ y , x > 0 , and y > 0 , then + >2 .
y x
Proof. Since x and y are positive real numbers, xy is positive and we can multiply both sides of the inequality by xy
to obtain
x y
( + ) ⋅ xy > 2 ⋅ xy (3.1.7)
y x
2 2
x +y > 2xy (3.1.8)
By combining all terms on the left side of the inequality, we see that x − 2xy + y > 0 and then by factoring the left
2 2
side, we obtain (x − y ) > 0 . Since x ≠ y , (x − y) ≠ 0 and so (x − y ) > 0 . This proves that if x ≠ y , x > 0 , and
2 2
x y
y >0 , any y > 0 , then + >2 .
y x
(c) Proposition. For all integers a , b , and c , if a|(bc), then a|b or a|c.
Proof. We assume that a , b , and c are integers and that a divides bc. So, there exists an integer k such that bc = ka .
We now factor k as k = mn , where m and n are integers. We then see that
bc = mna (3.1.9)
This proposition is false as is shown by the following counterexample: If we let a = 2 , b = 3 , and c = 2 , then
c
b c b
(a ) =a (3.1.10)
2
3 2 3
(2 ) =2 (3.1.11)
2 9
8 =2 (3.1.12)
64 ≠ 512 (3.1.13)
(a) Find several integers that are congruent to 5 modulo 6 and then square each of these integers.
(b) For each integer m from Part (20a), determine an integer k so that 0 ≤ k < 6 and m ≡ k (mod 6), then ...
2
(c) Based on the work in Part (20b), complete the following conjecture:
numbers if they can be written in the form m, m + 1, and m + 2, where m is a natural number.
(a) Determine all Pythagorean triples consisting of three consecutive natural numbers. (State a theorem and prove it.)
(b) Determine all Pythagorean triples that can be written in the form m, m + 7 , and m + 8 , where m is a natural
number. State a theorem and prove it.
Answer
Add texts here. Do not delete this text first.
1. After examining several examples, decide whether you think this proposition is true or false.
2. Try completing the following know-show table for a direct proof of this proposition. The question is, “Can we
perform algebraic manipulations to get from the ‘know’ portion of the table to the ‘show’ portion of the table?” Be
careful with this! Remember that we are working with integers and we want to make sure that we can end up with an
integer q as stated in Step Q1.
Step Know Reason
P n
2
is an odd integer Hypothesis
P 1 (∀k ∈ Z)(n
2
= 2k + 1) Definition of "odd integer"
... ... ...
Q 1 (∀q ∈ Z)(n = 2k + 1)
Recall that the contrapositive of the conditional statement P → Q is the conditional statement ┐Q → ┐P . We have seen
in Section 2.2 that the contrapositive of a conditional statement is logically equivalent to the conditional statement. (It
might be a good idea to review Preview Activity 3.2.2 from Section 2.2 on page 44.) Consider the following proposition
once again:
3. Write the contrapositive of this conditional statement. Remember that “not odd” means “even.”
4. Complete a know-show table for the contrapositive statement from Part(3).
5. By completing the proof in Part (4), have you proven the given proposition? That is, have you proven that if n is an 2
Writing Guidelines
One of the basic rules of writing mathematical proofs is to keep the reader informed. So when we prove a result using the
contrapositive, we indicate this within the first few lines of the proof. For example,
We will prove this theorem by proving its contrapositive.
We will prove the contrapositive of this statement.
In addition, make sure the reader knows the status of every assertion that you make. That is, make sure you state whether an
assertion is an assumption of the theorem, a previously proven result, a well-known result, or something from the reader’s
mathematical background. Following is a completed proof of a statement from Preview Activity 3.2.1.
Theorem 3.7
For each integer n , if n is an even integer, then n is an even integer.
2
Proof
We will prove this result by proving the contrapositive of the statement, which is
For each integer n , if n is an odd integer, then n is an odd integer.
2
However, in Theorem 1.8 on page 21, we have already proven that if x and y are odd integers, then x ⋅ y is an odd
integer. So using x = y = n , we can conclude that if n is an odd integer, then n ⋅ n , or n , is an odd integer. We have
2
thus proved the contrapositive of the theorem, and consequently, we have proved that if n is an even integer, then n
2
is an even integer.
X → (Y ∨ Z) ≡ (X ∧ ┐Y ) → Z. (3.2.2)
2. In English, use this logical equivalency, to write a statement that is logically equivalent to the contrapositive from Part
(1).
The logical equivalency in Part (2) makes sense because if we are trying to prove Y ∨ Z , we only need to prove that
at least one of Y or Z is true. So the idea is to prove that if Y is false, then Z must be true.
3. Use the ideas presented in the progress check to complete the proof of the following proposition.
Proposition 3.9.
For all real numbers a and b , if a ≠ and b ≠ 0 , then ab ≠ 0 .
Proof
We will prove the contrapositive of this proposition, which is
For all real numbers a and b, if ab = 0 , then a = 0 or b = 0 .
This contrapositive, however, is logically equivalent to the following:
For all real numbers a and b, if ab = 0 and a ≠ 0 , then b = 0 .
To prove this, we let a and b be real numbers and assume that ab = 0 anda ≠ 0 . We can then multiply both
1
sides of the equation ab = 0 by . This gives
a
Answer
Add texts here. Do not delete this text first.
For each integer n , if n is an even integer, then n is an even integer. (Theorem 3.7)
2
Theorem 3.10.
For each integer n , n is an even integer if and only if n is an even integer.
2
Writing Guidelines
When proving a biconditional statement using the logical equivalency (P ↔ Q) ≡ (P → Q) ∧ (Q → P ) , we actually need
to prove two conditional statements. The proof of each conditional statement can be considered as one of two parts of the
proof of the biconditional statement. Make sure that the start and end of each of these parts is indicated clearly. This is
illustrated in the proof of the following proposition.
Proposition 3.11
Let x ∈ R. The real number x equals 2 if and only if x 3
− 2x
2
+x = 2 .
Proof
We will prove this biconditional statement by proving the following two conditional statements:
For each real number x , if x equals 2, then x − 2x + x = 2 .
3 2
3 2 3 2
x − 2x +x = 2 − 2(2 ) + 2 = 8 − 8 + 2 = 2 (3.2.4)
do this by solving this equation for x . To do so, we first rewrite the equation x − 2x + x = 2 by subtracting 2 from
3 2
both sides:
3 2
x − 2x +x −2 = 0
We can now factor the left side of this equation by factoring an x from the first two terms and then factoring (x − 2 )
from the resulting two terms. This is shown below.
3 2
x − 2x +x −2 = 0
2
x (x − 2) + x − 2 = 0
2
(x − 2)(x + 1) = 0
Now, in the real numbers, if a product of two factors is equal to zero, then one of the factors must be zero. So this last
equation implies that
x −2 = 0 or x 2
+1 = 0
Since we have now proven both conditional statements, we have proven that x = 2 if and only if x 3 2
− 2x +x = 2
Constructive Proofs
This proves that x = 5 is a solution of the equation 3x + 8 = 23 . Hence, we have proven that x =5 is the only real number
solution of 3x + 8 = 23 .
We can use this same process to show that any linear equation has a real number solution. An equation of the form
ax + b = c (3.2.5)
,
where a , b , and c are real numbers with a ≠ 0 , is called a linear equation in one variable.
Proposition 3.12
If a , b , and c are real numbers with a ≠0 , then the linear equation ax + b = c has exactly one real number solution,
c −b
which is x = .
a
Proof
Assume that a , b, and c are real numbers with a ≠ 0 . We can solve the linear equation ax + b = c by adding
−b to both sides of the equation and then dividing both sides of the resulting equation by a (since a ≠ 0 , to
obtain
c −b
x = .
a
c −b c −b
This shows that if there is a solution, then it must be x = . We also see that if x = , then,
a a
c −b
ax + b = a( ) + b = (c − b) + b = c
a
c −b
Therefore, the linear equation ax + b = c has exactly one real number solution and the solution is x = .
a
The proof given for Proposition 3.12 is called a constructive proof. This is a technique that is often used to prove a so-called
existence theorem. The objective of an existence theorem is to prove that a certain mathematical object exists. That is, the
goal is usually to prove a statement of the form
There exists an x such that P (x).
For a constructive proof of such a proposition, we actually name, describe, or explain how to construct some object in the
c −b
universe that makes P (x) true. This is what we did in Proposition 3.12 since in the proof, we actually proved that is a
a
solution of the equation ax + b = c . In fact, we proved that this is the only solution of this equation.
Nonconstructive Proofs
Another type of proof that is often used to prove an existence theorem is the so- called nonconstructive proof. For this type of
proof, we make an argument that an object in the universal set that makes P (x) true must exist but we never construct or name
the object that makes P (x) true. The advantage of a constructive proof over a nonconstructive proof is that the constructive
proof will yield a procedure or algorithm for obtaining the desired object.
The proof of the Intermediate Value Theorem from calculus is an example of a nonconstructive proof. The Intermediate
Value Theorem can be stated as follows:
Notice that f (−2) = -5 and that f (0) > 1. Since f (−2) < 0 and f (0 > 0, the Intermediate Value Theorem tells us that
there is a real number c between -2 and 0 such that f (c) = 0 . This means that there exists a real number c between -2 and
0 such that
c
3
−c +1 = 0 ,
and hence c is a real number solution of the equation x 3
−x +1 = 0 . This proves that the equation x 3
−x +1 = 0 has
at least one real number solution.
Notice that this proof does not tell us how to find the exact value of c . It does, however, suggest a method for
approximating the value of c . This can be done by finding smaller and smaller intervals [a , b ] such that f (a) and f (b)
have opposite signs.
page128image3580513632 page128image3580513904
2. In Section 3.1, we defined congruence modulo n where n is a natural number. If a and b are integers, we will use the
notation a ≢ b (mod n ) to mean that a is not congruent to b modulo n .
−
− a+b
For all positive real numbers a and b , if √ab ≠ , then a ≠ b .
2
(b) Is this statement true or false? Prove the statement if it is true or provide a counterexample if it is false.
4. Are the following statements true or false? Justify your conclusions.
(a) For each a ∈ Z , if a ≡ 2 (mod 5), then a ≡ 4 (mod 5).
2
(a) What is a formula for the area of this right triangle? What is an isosceles triangle?
(b) State the Pythagorean Theorem for right triangles.
1
(c) Prove that the right triangle describe above is an isosceles triangle if and only if the area of the right triangle is 2
c .
4
9. A real number x is defined to be a rational number provided
m
there exist integers m and n with n ≠ 0 such that x = .
n
A real number that is not a rational number is called an irrational number.It is known that if x is a positive rational
m
number, then there exist positive integers m and n with n ≠ 0 such that x =
n
Is the following proposition true or false? Explain.
For each positive real number x, if x is irrational, then √−
x is irrational.
12. Prove that for all integers a and m, if a and m are the lengths of the sides of a right triangle and m + 1 is the length of the
hypotenuse, then a is an odd integer.
13. Prove the following proposition:
16. Let y , y , y , y be real numbers. The mean, ȳ , of these four numbers is defined to be the sum of the four numbers
1 2 3 4
y1 + y2 + y3 + y4
ȳ = . (3.2.6)
4
17. Let a and b be natural numbers such that a = b . Prove each of the propositions in Parts (6a) trough (6d). (The results of
2 3
3 3 2 2
u +v = (u + v)(u − uv + v ). (3.2.7)
proposition
If m is an odd integer, then (m + 6 ) is an odd integer.
Proof
For m + 6 to be an odd integer, there must exist an integer n such that
m + 6 = 2n + 1. (3.2.8)
m = 2n − 6 + 1 = 2(n − 3) = 1. (3.2.9)
By the closure properties of the integers, (n − 3 ) is an integer, and hence, the last equation implies that m is an
odd integer. This proves that if m is an odd integer, then m + 6 is an odd integer.
(b)
proposition
For all integers m and n , if mn is an even integer, then m is even or n is even.
Proof
For either m or n to be even, there exists an integer k such that m = 2k or n = 2k . So if we multiply m and n ,
the product will contain a factor of 2 and, hence, mn will be even.
(a) Notice that the hypothesis of the proposition is stated as a conjunction of two negations (“3 does not divide a and 3
Proposition X. Let a be an integer. If 3 does not divide a , then there exist integers x and y such that 3x + ay = 1 .
Answer
Add texts here. Do not delete this text first.
Another method of proof that is frequently used in mathematics is a proof by contradiction. This method is based on the
fact that a statement X can only be true or false (and not both). The idea is to prove that the statement X is true by showing
that it cannot be false. This is done by assuming that X is false and proving that this leads to a contradiction. (The
contradiction often has the form R ∧ ┐R , where R is some statement.) When this happens, we can conclude that the
assumption that the statement X is false is incorrect and hence X cannot be false. Since it cannot be false, then X must be
true.
A logical basis for the contradiction method of proof is the tautology
[┐X → C ] → X, (3.3.1)
where X is a statement and C is a contradiction. The following truth table establishes this tautology.
X C ┐X ┐X → C (┐X → C) → X
T F F T T
F F T F T
This tautology shows that if ┐X leads to a contradiction, then X must be true. The previous truth table also shows that the
statement ┐X → C is logically equivalent to X. This means that if we have proved that ┐X leads to a contradiction, then
we have proved statement X. So if we want to prove a statement X using a proof by contradiction, we assume that ┐X is
true and show that this leads to a contradiction.
When we try to prove the conditional statement, “If P then ” using a proof by contradiction, we must assume that
Q
The preceding logical equivalency shows that when we assume that P → Q is false, we are assuming that P is true and Q
is false. If we can prove that this leads to a contradiction, then we have shown that ┐(P → Q) is false and hence that
P → Q is true.
1
For each real number x, ≥4 .
x(1 − x)
4. When a statement is false, it is sometimes possible to add an assumption that will yield a true statement. This is usually
done by using a conditional statement. So instead of working with the statement in (3), we will work with a related
statement that is obtained by adding an assumption (or assumptions) to the hypothesis.
1
For each real number x, if 0 < x < 1 , then ≥4 .
x(1 − x)
To begin a proof by contradiction for this statement, we need to assume the negation of the statement. To do this, we need
to negate the entire statement, including the quantifier. Recall that the negation of a statement with a universal quantifier is
To start a proof by contradiction, we assume that this statement is false; that is, we assume the negation is true. Because this is
a statement with a universal quantifier, we assume that there exist real numbers x and y such that x ≠ y , x > 0 , y > 0 and
x y
that + ≤2 . (Notice that the negation of the conditional sentence is a conjunction.)
y x
For this proof by contradiction, we will only work with the know column of a know-show table. This is because we do not
have a specific goal. The goal is to obtain some contradiction, but we do not know ahead of time what that contradiction will
be. Using our assumptions, we can perform algebraic operations on the inequality
x y
+ ≤2 (3.3.2)
y x
Proposition 3.14
1
For each real number x, if 0 < x < 1 , then ≥4
x(1 − x)
Proof
We will use a proof by contradiction. So we assume that the proposition is false, or that there exists a real number x
We note that since 0 < x < 1 , we can conclude that x > 0 and that (1 − x) > 0 . Hence, x(1 − x) > 0 and if we
multiply both sides of inequality (1) by x(1 − x) , we obtain
1 < 4x(1 − x).
2
4x − 4x + 1 < 0
2
(2x − 1 ) <0
However, (2x − 1) is a real number and the last inequality says that a real number squared is less than zero. This is a
contradiction since the square of any real number must be greater than or equal to zero. Hence, the proposition cannot
1
be false, and we have proved that for each real number x , if 0 < x < 1 , then ≥4 .
x(1 − x)
Answer
Add texts here. Do not delete this text first.
Important Note
A proof by contradiction is often used to prove a conditional statement P → Q when a direct proof has not been found
and it is relatively easy to form the negation of the proposition. The advantage of a proof by contradiction is that we have
an additional assumption with which to work (since we assume not only P but also ┐Q). The disadvantage is that there is
no well-defined goal to work toward. The goal is simply to obtain some contradiction. There usually is no way of telling
beforehand what that contradiction will be, so we have to stay alert for a possible absurdity. Thus, when we set up a
know-show table for a proof by contradiction, we really only work with the know portion of the table.
Answer
Add texts here. Do not delete this text first.
Proposition 3.17.
For all integers x and y , if x and y are odd integers, then there does not exist an integer z such that x 2
+y
2
=z
2
.
Notice that the conclusion involves trying to prove that an integer with a certain property does not exist. If we use a proof by
contradiction, we can assume that such an integer z exists. This gives us more with which to work.
x = 2m + 1 and y = 2n + 1 .
We can now conclude that z is even. (See Theorem 3.7 on page 105.) So there exists an integer k such that z = 2k . If
we substitute for x, y , and z in the equation x + y = z , we obtain
2 2 2
2 2 2
(2m + 1 ) + (2n + 1 ) = (2k) . (3.3.4)
2. Use the previous equation to obtain a contradiction. Hint: One way is to use algebra to obtain an equation where the
left side is an odd integer and the right side is an even integer.
Answer
Add texts here. Do not delete this text first.
This may seem like a strange distinction because most people are quite familiar with the rational numbers (fractions) but the
– – –
irrational numbers seem a bit unusual. However, there are many irrational numbers such as √2, √3, √2, π, and the number e .
3
–
We are discussing these matters now because we will soon prove that √2 is irrational in Theorem 3.20.
We use the symbol Q to stand for the set of rational numbers. There is no standard symbol for the set of irrational numbers.
Perhaps one reason for this is because of the closure properties of the rational numbers. We introduced closure properties in
Section 1.1, and the rational numbers Q are closed under addition, subtraction, multiplication, and division by nonzero rational
numbers. This means that if x, y ∈ Q, then
x +y , xy, and xy are in Q; and
x
If y ≠ 0 , then is in Q.
y
The basic reasons for these facts are that if we add, subtract, multiply, or divide two fractions, the result is a fraction. One
reason we do not have a symbol for the irrational numbers is that the irrational numbers are not closed under these operations.
–
For example, we will prove that √2 is irrational in Theorem 3.20. We then see that
which shows that the product of irrational numbers can be rational and the quotient of irrational numbers can be rational.
It is also important to realize that every integer is a rational number since any integer can be written as a fraction. For example,
3 n
we can write 3 = . In general, if n ∈ Z , then n = , and hence, n ∈ Q .
1 1
Because the rational numbers are closed under the standard operations and the definition of an irrational number simply says
that the number is not rational, we often use a proof by contradiction to prove that a number is irrational. This is illustrated in
the next proposition.
Proposition 3.19
For all real numbers x and y , if x is rational and x ≠ 0 and y is irrational, then x ⋅ y is irrational.
Proof
We will use a proof by contradiction. So we assume that there exist real numbers x and y such that x is rational, y is
irrational, and x ⋅ y is rational. Since x ≠ 0 , we can divide by x , and since the rational numbers are closed under
1 1
division by nonzero rational numbers, we know that ∈ Q . We now know that x ⋅ y and are rational numbers and
x x
since the rational numbers are closed under multiplication, we conclude that
1
⋅ (xy) ∈ Q (3.3.5)
x
1
However, ⋅ (xy) = y and hence, y must be a rational number. Since a real number cannot be both rational and
x
irrational, this is a contradiction to the assumption that y is irrational. We have therefore proved that for all real
numbers x and y, if x is rational and x ≠ 0 and y is irrational, then x ⋅ y is irrational.
Theorem 3.20
If r is a real number such that r 2
=2 , then r is an irrational number.
– –
This is stated in the form of a conditional statement, but it basically means that √2 is irrational (and that −√2 is irrational).
–
That is, √2 cannot be written as a quotient of integers with the denominator not equal to zero.
In order to complete this proof, we need to be able to work with some basic facts that follow about rational numbers and even
integers.
m
1. Each integer m is a rational number since m can be written as m = .
1
2 4
2. Notice that = , since
3 6
4 2⋅2 2 2 2
= = ⋅ = (3.3.6)
6 3⋅2 2 3 3
15 5 10 −5 −30 15
We can also show that = , = , and =
12 4 −8 4 −16 8
Item (2) was included to illustrate the fact that a rational number can be written as a fraction in "lowest terms" with a
3. If n is an integer and n is even, what can be conclude about n . Refer to theorem 3.7 on page 105.
2
rational).
Theorem 3.20
If r is a real number such that r
2
=2 , then r is an irrational number.
Proof
We will use a proof by contradiction. So we assume that the statement of the theorem is false. That is, we assume that
r is a real number, r = 2 , and r is a rational number.
2
Since r is a rational number, there exist integers m and n with \(n > 0\0 such that
m
r =
n
and m and n have no common factor greater than 1. We will obtain a contradiction by showing that m and n must
both be even. Squaring both sides of the last equation and using the fact that r = 2 , we obtain 2
2
m
2 =
2
n
2 2
m = 2n (3.3.7)
Equation (1) implies that m is even, and hence, by Theorem 3.7, m must be an even integer. This means that there
2
exists an integer p such that m = 2p . We can now substitute this into equation (1), which gives
2 2
(2p ) = 2n
2 2
4p = 2n . (3.3.8)
Suppose that we are trying to prove that a statement P is true. Instead of proving this statement, assume that we prove
that the conditional statement “If ┐P , then C ” is true, where C is some contradiction. Recall that a contradiction is a
statement that is always false.
(a) In symbols, write a statement that is a disjunction and that is logically equivalent to ┐P → C .
(b) Since we have proven that ┐P → C is true, then the disjunction in Exercise (1a) must also be true. Use this to
explain why the statement P must be true.
(c) Now explain why P must be true if we prove that the negation of P implies a contradiction.
2. Are the following statements true or false? Justify each conclusion.
(a) For all integers a and b , if a is even and b is odd, then 4 does not divide (a 2
+b )
2
.
(a) If you were setting up a proof by contradiction for this statement, what would you assume? Carefully write down
all conditions that you would assume.
(b) Complete a proof by contradiction for this statement.
4. Prove that the cube root of 2 is an irrational number. That is, prove that if r is a real number such that r = 2 , then r is 3
an irrational number.
5. Prove the following propositions:
(a) For all real numbers x and y , if x is rational and y is irrational, then x + y is irrational.
x
(b) For all nonzero real numbers x and y , if x is rational and y is irrational, then is irrational.
y
(b) For each positive real number x, if x is irrational, then √−x is irrational.
(c) For every pair of real numbers x and y , if x + y is irrational, then x is irrational and y is irrational.
(d) For every pair of real numbers x and y , if x + y is irrational, then x is irrational or y is irrational.
7. (a) Give an example that shows that the sum of two irrational numbers can be a rational number.
– – –
(b) Now explain why the following proof that (√2 + √5) is an irrational number is not a valid proof: Since √2 and
– – –
√5 are both irrational numbers, their sum is an irrational number. Therefore, (√2 + √5) is an irrational number
–
Note: You may even assume that we have proven that √5 is an irrational number. (We have not proven this.)
– –
(c) is the real number √2 + √5 a rational number or an irrational number? Justify your conclusion.
– –
8. (a) Prove that for each reach number x, (x + √2) is irrational or (−x + √2) is irrational.
–
(b) Generalize the proposition in Part(a) for any irrational number (instead of just √2) and then prove the new
proposition.
9. Is the following statement true or false?
−
For all positive real number x and y , √−x + y ≤ √x + √y .
−− −
−
(b) Is the base 2 logarithm of 3, log 3 , a rational number or an irrational number? Justify your conclusion.
2
12. In Exercise (15) in Section 3.2, we proved that there exists a real number solution to the equation x − 4x 3 2
=7 .
Prove that there is no integer x such that x − 4x = 7 .
3 2
π
(a) For each real number θ , if 0 < θ < , then (sinθ + cosθ) > 1 .
2
−−−−−−
(b) For all real numbers a and b , if a ≠ 0 and b ≠ 0 , then √a + b ≠ a + b . 2 2
(c) If n is an integer greater than 2, then for all integers m, n does not divide m or n + m ≠ nm .
(d) For all numbers a and b , if a > 0 and b > 0 , then
2 2 4
+ ≠ . (3.3.9)
a b a+b
14. Prove that there do not exist three consecutive natural numbers such that the cube of the largest is equal to the sum of
the cubes of the other two.
example, the numbers 3, 4, and 5 form a Pythagorean triple, and the numbers 5, 12, and 13 form a Pythagorean triple.
(a) Verify that if a = 20 , b = 21 , and c = 29 , then a + b = c , and hence, 20, 21, and 29 form a Pythagorean triple.
2 2 2
(b) Determine two other Pythagorean triples. That is, find integers a , b , and c such that a + b = c .
2 2 2
16. Consider the following proposition: There are no integers a and b such that b = 4a + 2 .
2
(a) Rewrite this statement in an equivalent form using a universal quantifier by completing the following:
For all integers a and b , ...
(b) Prove the statement in Part (a).
17. Is the following statement true or false? Justify your conclusion.
For each integer n that is greater than 1, if a is the smallest positive factor of n that is greater than 1, then a is prime.
See Exercise (13) in Section 2.4 (page 78) for the definition of a prime number and the definition of a composite
number.
18. A magic square is a square array of natural numbers whose rows, columns, and diagonals all sum to the same
number. For example, the following is a 3 by 3 magic square since the sum of 3 numbers in each row is equal to 15,
the sum of the 3 numbers in each column is equal to 15, and the sum of the 3 numbers in each diagonal is equal to 15.
8 3 4
1 5 9
6 7 2
Prove that the following 4 by 4 square cannot be completed to form a magic square.
1 2
3 4 5
6 7 8
9 10
Hint: Assign each of the six blank cells in the square a name. One possibility is to use a , b , c , d , e , and f .
19. Using only the digits 1 through 9 one time each, is it possible to construct a 3 by 3 magic square with the digit 3 in the
center square? That is, is it possible to construct a magic square of the form
a b c
d 3 e
f g h
where a , b , c , d , e , f , g , h are all distinct digits, none of which is equal to 3? Either construct such a magic square or
prove that it is not possible.
20. Evaluation of proofs
See the instructions for Exercise (19) on page 100 from Section 3.1
proposition
For each real number x, if x is irrational and m is an integer, then mx is irrational.
Proof
proposition
For all real numbers x and y , if x is irrational and y is rational, then x + y is irrational.
Proof
We will use a proof by contradiction. So we assume that the proposition is false, which means that there exist
real numbers x and y where x ∉ Q , y ∈ Q , and x + y ∈ Q . Since the rational numbers are closed under
subtraction and x + y and y are rational, we see that
(x + y) − y ∈ Q (3.3.10)
.
However, (x + y) − y = x , and hence we can conclude that x ∈ Q . This is a contradiction to the assumption
that x ∉ Q . Therefore, the proposition is not false, and we have proven that for all real numbers x and y, if x
is irrational and y is rational, then x + y is irrational.
proposition
1
For each real number x, x(1 − x) ≤ .
4
Proof
A proof by contradiction will be used. So we assume the proposition is false. This means that there exists a
1
real number x such that x(1 − x) > . If multiply both sides of this inequality by 4, we obtain
4
4x(1 − x) > 1 . However, if we let x = 3 , we then see that
4x(1 − x) > 1
4 ⋅ 3(1 − 3) > 1
−12 > 1
The last inequality is clearly a contradiction and so we have proved the proposition.
has a solution in which both x and y are integers. So there exist integers m and n such that
am + bn = c
Hint: Now use the facts that 3 divides a , 3 divides b , and c ≡ 1 (mod 3).
22. Exploring a Quadratic Equation. Consider the following proposition:
Proposition. For all integers m and n , if n is odd, then the equation
(a) What are the solutions of the equation when m = 1 and n = 1 ? That is, what are the solutions of the equation
x + 2x − 2 = 0 ?
2
(b) What are the solutions of the equation when m = 2 and n = 3 ? That is, what are the solutions of the equation
x + 4x + 2 = 0 ?
2
(c) Solve the resulting quadratic equation for at least two more examples using values of m and n that satisfy the
hypothesis of the proposition.
(d) For this proposition, why does it seem reasonable to try a proof by contradiction?
(e) For this proposition, state clearly the assumptions that need to be made at the beginning of a proof by
contradiction.
(f) Use a proof by contradiction to prove this proposition.
Answer
Add texts here. Do not delete this text first.
Proposition. For all integers x and y , if xy is odd, then x is odd and y is odd.
Write the contrapositive of this proposition.
4. Now prove that if x is an even integer, then xy is an even integer. Also, prove that if y is an even integer, then xy is an
even integer.
5. Use the results proved in part (4) and the explanation in part (2) to explain why we have proved the contrapositive of
the proposition in part (3).
Proof. Let n be an even integer. Then there exists an integer m such that n = 2m . Substituting this into the
expression n + n yields ...
2
3. Explain why the proofs of Proposition 2 and Proposition 3 can be used to construct a proof of Proposition 1.
Answer
Add texts here. Do not delete this text first.
As another example of using cases, consider a situation where we know that a and b are real numbers and ab = 0 . If we want
to make a conclusion about b , the temptation might be to divide both sides of the equation by a . However, we can only do this
if a ≠ 0 . So, we consider two cases: one when a = 0 and the other when a ≠ 0 .
proposition 3.22
For all real numbers a and b , if ab = 0 , then a = 0 or b = 0 .
Proof
We let a and b be real numbers and assume that ab = 0 . We will prove that a = 0 or b = 0 by considering two cases:
(1) a = 0 , and (2) a ≠ 0 .
In the case where a = 0 , the conclusion of the proposition is true and so there is nothing to prove.
In the case where a ≠ 0 , we can multiply both sides of the equation ab = 0 by df rac1a and obtain
1 1
⋅ ab = ⋅0
a a
b =0
So in both cases, a = 0 or b = 0 , and this proves that for all real numbers a and b, if ab = 0 , then a = 0 or b = 0 .
Let’s first see if this definition is consistent with our intuitive notion of absolute value by looking at two specific examples.
Since 5 > 0, we see that |5| = 5, which should be no surprise.
Since -7 < 0, we see that |-7| = -(-7) = 7.
Notice that the definition of the absolute value of x is given in two parts, one for when x ≥ 0 and the other for when x < 0 .
This means that when attempting to prove something about absolute value, we often uses cases. This will be illustrated in
Theorem 3.23.
Theorem 3.23
Let a be a positive real number. For each real number x,
1. |x| = a if and only if x = a or x = −a .
2. | − x| = |x| .
Proof
The proof of Part (2) is part of Exercise (10). We will prove Part (1).
We let a be a positive real number and let x ∈ R . We will first prove that if |x| = a , then x = a or x = −a . So we
assume that |x| = a . In the case where x ≥ 0 , we see that |x| = x , and since |x| = a , we can conclude that x = −a .
In the case where x < 0 , we see that |x| = −x . Since |x| = a , we can conclude that −x = a and hence that
x = −a . These two cases prove that if |x| = a , then x = a or x = −a .
We will now prove that if x = a or x = −a , then |x| = a . We start by assuming that x = a or x = −a . Since the
hypothesis of this conditional statement is a disjunction, we use two cases. When x = a , we see that
|x| = |a| = a since a > 0 .
When x = −a , we conclude that
|x| = | − a| = −(−a) since −a < 0 .
and hence, |x| = a . This proves that if x = a or x = −a , then |x| = a . Because we have proven both conditional
statements, we have proven that |x| = a if and only if x = a or x = −a .
(a) |t| = 12 .
Answer
Add texts here. Do not delete this text first.
Although solving equations involving absolute values may not seem to have anything to do with writing proofs, the point of
Progress Check 3.24 is to emphasize the importance of using cases when dealing with absolute value. The following theorem
provides some important properties of absolute value.
Theorem 3.25
Let a be a positive real number. For all real numbers x and y ,
1. |x| < a if and only if −a < x < a .
2. |xy| = |x||y|.
3. |x + y| ≤ |x| + |y| . This is know as the Triangle Inequality.
Proof
We will prove Part (1). The proof of Part (2) is included in Exercise (10), and the proof of Part (3) is Exercise (14).
For Part (1), we will prove the biconditional proposition by proving the two associated conditional propositions.
So we let a be a positive real number and let x ∈ R and first assume that |x| < a . We will use two cases: either x ≥ 0
or x < 0 .
In the case where x ≥ 0 , we know that |x| = x and so the inequality |x| < a implies that x < a . However, we
also know that −a < 0 and that x > 0 . Therefore, we conclude that −a < x and, hence, −a < x < a .
When x < 0 , we see that |x| = −x . Therefore, the inequality |x| < a implies that −x < a , which in turn implies
that −a < x . In this case, we also know that x < a since x is negative and a is positive. Hence, −a < x < a
So in both cases, we have proven that −a < x < a and this proves that if |x| < a , then −a < x < a . We now
assume that −a < x < a .
If x ≥ 0 , then |x| = x and hence, |x| < a .
If x < 0 , then |x| = −x and so |x| = −x . Thus, −a < −|x| . By multiplying both sides of the last inequality by
-1, we conclude that |x| < a .
These two cases prove that if −a < x < a , then |x| < a . Hence, we have proven that |x| < a if and only if
−a < x < a .
be consecutive integers if one of the integers is one more than the other integer. This means that we can represent
consecutive integers as m and m + 1 , where m is some integer.
Explain why the result proven in Preview Activity 3.4.2 can be used to prove that the product of any two consecutive
integers is divisible by 2.
2. Prove that if u is an odd integer, then the equation x + x − u = 0 has no solution that is an integer.
2
3. Prove that if n is an odd integer, then n = 4k + 1 for some integer k or n = 4k + 3 for some integer k .
4. Prove the following proposition:
(b) For all integers m and n , 4 divides (m − n ) if and only if m and n are both even or m and n are both odd.
2 2
7. Is the following proposition true or false? Justify your conclusion with a counterexample or a proof.
9. Are the following propositions true or false? Justify each conclusions with a counterexample or a proof.
(a) For all integers a and b with a ≠ 0 , the equation ax + b = 0 has a rational number solution.
(b) For all integers a , b , and c , if a , b , and c are odd, then the equation ax + bx + c = 0 has no solution that is a
2
rational number.
Hint: Do not use the quadratic formula. Use a proof by contradiction and recall that any rational number can be
p
written in the form , where p and q are integers, q > 0 , and p and q have no common factor greater than 1.
q
(c) For all integers a , b , c , and d , if a , b , c , and d are odd, then the equation ax 3
+ bx
2
+ cx + d = 0 has no solution
that is a rational number.
10. (a) Prove Part (2) of Proposition 3.23.
For each x ∈ R, | − x| = |x| .
(b) Prove Part (2) of Proposition 3.25.
For all real numbers x and y , |xy| = |x||y|.
11. Let a be a positive real number. In Part (1) of Theorem 3.25, we proved that for each real number x, |x| < a if and
only if −a < x < a . It is important to realize that the sentence −a < x < a is actually the conjunction of two
inequalities. That is, −a < x < a means that −a < x and x < a .
(a) Complete the following statement: For each real number x, |x| ≥ a if and only if ....
(b) Prove that for each real number x, |x| ≤ a if and only if −a ≤ x ≤ a
(c) Complete the following statement: For each real number x, |x| > a if and only if ....
12. Prove each of the following:
1
(a) For each nonzero real number x, |x −1
| = .
|x|
Theorem 3.4.1
The probabilities assigned to events by a distribution function on a sample space are given by.
Proof
Add proof here and it will automatically be hidden if you have a "AutoNum" template active on the page.
Proof
Add proof here and it will automatically be hidden if you have a "AutoNum" template active on the page.
(a) Verify that the triangle inequality is true for several different real numbers x and y . Be sure to have some examples
where the real numbers are negative.
(b) Explain why the following proposition is true: For each real number r, −|r| ≤ r ≤ |r| .
(c) Now let x and y be real numbers. Apply the result in Part (14b) to both x and y . Then add the corresponding parts
of the two inequalities to obtain another inequality. Use this to prove that |x + y| ≤ |x| + |y| .
Answer
Add texts here. Do not delete this text first.
r 19 -5
4q + r 27 27 27 27 27 27 27 27 27 27
2. What is the smallest positive value for r that you obtained in your examples from Part (1)?
Division is not considered an operation on the set of integers since the quotient of two integers need not be an integer.
However, we have all divided one integer by another and obtained a quotient and a remainder. For example, if we
113 3
divide 113 by 5, we obtain a quotient of 22 and a remainder of 3. We can write this as = 22 + . If we multiply
5 5
both sides of this equation by 5 and then use the distributive property to “clear the parentheses,” we obtain
113 3
5⋅ = 5(22 + )
5 5
113 = 5 ⋅ 22 + 3
This is the equation that we use when working in the integers since it involves only multiplication and addition of
integers.
3. What are the quotient and the remainder when we divide 27 by 4? How is this related to your answer for Part (2)?
4. Repeat part (1) using a = −17 and b = 5 . So the object is to find integers q and r so that −17 = 5q + r . Do this by
completing the following table.
q -7 -6 -5 -4 -3 -2 -1
r 18 -7
5. The convention we will follow is that the remainder will be the smallest positive integer r for which −17 = 5q + r
and the quotient will be the corresponding value of q. Using this convention, what is the quotient and what is the
remainder when -17 is divided by 5?
We will now explore what happens when we multiply several pairs of integers where the first one is congruent to 3
modulo 6 and the second is congruent to 5 modulo 6. We can use set builder notation and the roster method to specify
the set A of all integers that are congruent to 2 modulo 6 as follows:
Notice that 15 ∈ A and 11 ∈ B and that 15 + 11 = 26 . Also notice that 26 ≡ 2 (mod 6) and that 2 is the smallest
positive integer that is congruent to 26 (mod 6).
3. Now choose at least four other pairs of integers a and b where a ∈ A and b ∈ B . For each pair, calculate (a + b) and
then determine the smallest positive integer r for which (a + b) ≡ r (mod 6). Note: The integer r will satisfy the
inequalities 0 ≤ r < 6 .
4. Prove that for all integers a and b , if a ≡ 3 (mod 6) and b ≡ 5 (mod 6), then (a + b) ≡ 2 (mod 6).
337 = 6 ⋅ 56 + 1
When we are working within the system of integers, the second equation is preferred over the first since the second one uses
only integers and the operations of addition and multiplication, and the integers are closed under addition and multiplication.
Following is a complete statement of the Division Algorithm.
−17 4 2
= −(3 + ) = −3 − . (3.5.3)
5 10 5
a = b ⋅ q + r. (3.5.6)
From the diagram, also notice that r is less than the distance between b ⋅ q and b(q + 1) . Algebraically, this distance is
b(q + 1) − b ⋅ q = b ⋅ q +b −b ⋅ q (3.5.7)
= b. (3.5.8)
a = 2q + r and 0 ≤ r < 2 .
This means that the remainder, r, can only be zero or one (and not both). When r = 0 , the integer is even, and when r = 1 ,
the integer is odd.
Answer
Add texts here. Do not delete this text first.
Proposition 3.27
If n is an integer, then 3 divides n 3
−n .
Proof
Let n be an integer. We will show that 3 divides n − n by examining the three cases for the remainder when
3
n is
divided by 3. By the Division Algorithm, there exist unique integers q and r such that
n = 3q + r , and 0 ≤ r < 3 .
This means that we can consider the following three cases:(1) r = 0 ; (2) r = 1 ; and (3) r = 2 .
In the case where r = 0 , we have n = 3q . By substituting this into the expression n 3
−n , we get
3 3
n − n = (3q ) − (3q) (3.5.9)
3
= 27 q − 3q (3.5.10)
3
= 3(9 q − q). (3.5.11)
Since (9q 3
− q) is an integer, the last equation proves that 3|(n 3
− n) .
In the second case, r = 1 and n = 3q + 1 . When we substitute this into (n 3
− n) , we obtain
3 3
n −n = (3q + 1 ) − (3q + 1) (3.5.12)
3 2
= (27 q 27 q + 27q + 1) − (3q + 1) (3.5.13)
3 2
= 27 q + 27 q + 6q (3.5.14)
3 2
= 3(9 q + 9q + 2q). (3.5.15)
Since (9q 3
+ 9q
2
+ 2q) is an integer, the last equation proves that 3|(n 3
− n) .
The last case is when r = 2 . The details for this case are part of Exercise (1). Once this case is completed, we will
have proved that 3 divides n − n in all three cases. Hence, we may conclude that if n is an integer, then 3 divides
3
n −n .
3
Properties of Congruence
Most of the work we have done so far has involved using definitions to help prove results. We will continue to prove some
results but we will now prove some theorems about congruence (Theorem 3.28 and Theorem 3.30) that we will then use to
help prove other results.
Let n ∈ N . Recall that if a and b are integers, then we say that a is congruent to b modulo n provided that n divides a − b ,
and we write a ≡ b (mod n ). (See Section 3.1.) We are now going to prove some properties of congruence that are direct
consequences of the definition. One of these properties was suggested by the work in Preview Activity 3.5.2 and is Part (1) of
the next theorem.
Proof
We will prove Parts (2) and (3). The proof of Part (1) is Progress Check 3.29. Let n be a natural number and let a , b,
c , and d be integers. Assume that a ≡ b (mod n ) and c ≡ d (mod n ). This means that n divides a − b and that n
divides c − d . Hence, there exist integers k and q such that a − b = nk and c − d = nq . We can then write
a = b + nk and c = d + nq and obtain
2
= bd + bnq + dnk + n kq (3.5.17)
Since bq + dk + nkq is an integer, this proves that n|(ac − bd) , and hence we can conclude that ac ≡ bd (mod n ).
This completes the proof of Part (2).
Part (2) basically means that if we have two congruences, we can multiply the corresponding sides of these
congruences to obtain another congruence. We have assumed that a ≡ ��b (mod n ) and so we write this twice as
follows:
a ≡ b(mod n), and (3.5.20)
If we now use the result in Part (2) and multiply the corresponding sides of these two congruences, we obtain a ≡ b 2 2
(mod n ). We can then use this congruence and the congruence a ≡ b (mod n ) and the result in Part (2) to conclude
that
2 2
a ⋅b ≡b ⋅ b(mod n), (3.5.22)
or that a ≡ b (mod n ). We can say that we can continue with this process to prove Part (3), but this is not
3 3
considered to be a formal proof of this result. To construct a formal proof for this, we could use a proof by
mathematical induction. This will be studied in Chapter 4. See Exercise (13) in Section 4.1.
Answer
Add texts here. Do not delete this text first.
Exercise (11) in Section 3.1 gave three important properties of congruence modulo n . Because of their importance, these
properties are stated and proved in Theorem 3.30. Please remember that textbook proofs are usually written in final form of
“reporting the news.” Before reading these proofs, it might be instructive to first try to construct a know-show table for each
proof.
Proof
We will prove the reflexive property and the transitive property. The proof of the symmetric property is Exercise (3).
Let n ∈ N , and let a ∈ Z . We will show that a ≡ a (mod n ). Notice that
a − a = 0 = n ⋅ 0. (3.5.23)
This proves that n divides a − a and hence, by the definition of congruence modulo n , we have proven that a ≡a
(mod n ).
To prove the transitive property, we let n ∈ N , and let a , b, and c be integers. We assume that a ≡ b (mod n ) and
b ≡ c (mod n ). We will use the definition of congruence modulo n to prove that a ≡ c (mod n ). Since a ≡ b (mod n )
and b ≡ c (mod n ), we know that n|(a − b) and n|(b − c) . Hence, there exist integers k and q such that
a − b = nk (3.5.24)
b − c = nq. (3.5.25)
If we simplify the left side of the last equation and factor the right side, we get
a − c = n(k + q). (3.5.27)
By the closure property of the integers, (k + q) ∈ Z , and so this equation proves that n|(a − c) and hence that a ≡ c
(mod n ). This completes the proof of the transitive property of congruence modulo n .
If we divide any integer in this set by 7 and write the result according to the Division Algorithm, we will get a remainder of 2.
For example,
2 = 7 ⋅ 0 +2 (3.5.29)
9 = 7 ⋅ 1 +2 (3.5.30)
16 = 7 ⋅ 2 + 2 (3.5.31)
23 = 7 ⋅ 3 + 2 (3.5.32)
−5 = 7(−1) + 2 (3.5.33)
Is this a coincidence or is this always true? Let’s look at the general case. For this, let n be a natural number and let a ∈ Z . By
the Division Algorithm, there exist unique integers q and r such that
a = nq + r and 0 ≤ r < n .
By subtracting r from both sides of the equation a = nq + r , we obtain
a − r = nq .
Theorem 3.31
Let n ∈ N and let a ∈ mathbbZ . If a = nq + r and 0 ≤ r < n for some integers q and r, then a ≡ r (mod n ).
This theorem says that an integer is congruent (mod n ) to its remainder when it is divided by n . Since this remainder is unique
and since the only possible remainders for division by n are 0, 1, 2,..., n1, we can state the following result.
Corollary 3.32
If n ∈ N , then each integer is congruent, modulo n , to precisely one of the integers 0, 1, 2, ..., n−1 . That is, for each
integer a , there exists a unique integer r such that
a ≡r (mod n ) and 0 ≤ r < n .
Corollary 3.32 can be used to set up cases for an integer in a proof. If n ∈ N and a ∈ Z , then we can consider n cases for a .
The integer a could be congruent to 0,1, 2, ..., or n − 1 modulo n . For example, if we assume that 5 does not divide an integer
a , then we know a is not congruent to 0 modulo 5, and hence, that a must be congruent to 1, 2, 3, or 4 modulo 5. We can use
these as 4 cases within a proof. For example, suppose we wish to determine the values of a modulo 5 for integers that are not
2
congruent to 0 modulo 5. We begin by squaring some integers that are not congruent to 0 modulo 5. We see that
2
1 = 1 and 1 ≡ 1 (mod 5). (3.5.36)
2
3 = 9 and 9 ≡ 4 (mod 5). (3.5.37)
2
6 = 36 and 36 ≡ 1 (mod 5). (3.5.38)
2
8 = 64 and 64 ≡ 4 (mod 5). (3.5.39)
2
9 = 81 and 81 ≡ 1 (mod 5). (3.5.40)
These explorations indicate that the following proposition is true and we will now outline a method to prove it.
Proposition 3.33.
For each integer a , if a ≢ 0 (mod 5), then a2
≡1 (mod 5) or \(a^2 \equiv 4) (mod 5).
Proof
We will prove this proposition using cases for a based on congruence modulo 5. In doing so, we will use the results in
Theorem 3.28 and Theorem 3.30. Because the hypothesis is a ≢ 0 (mod 5), we can use four cases, which are: (1)
a ≡ 1 (mod 5), (2)a ≡ 2 (mod 5), (3)a ≡ 3 (mod 5), and (4)\(a \equiv 4) (mod 5). Following are proofs for the first
transitive property of congruence (Theorem 3.30) to conclude that a ≡ 1 (mod 5). This proves that if a ≡ 4 (mod 5),
2
Answer
Add texts here. Do not delete this text first.
In the proof of Proposition 3.33, we used four cases. Sometimes it may seem a bit overwhelming when confronted with a proof
that requires several cases. For example, if we want to prove something about some integers modulo 6, we may have to use six
cases. However, there are sometimes additional assumptions (or conclusions) that can help reduce the number of cases that
must be considered. This will be illustrated in the next progress check.
beginning to use congruence arithmetic (as in the proof of Proposition 3.33) in each of the possible six cases, we can
show that some of the cases are not possible under these assumptions. (In some sense, we use a short proof by
contradiction for these cases.) So assume that a is an odd integer. Then:
If a ≡ 0 (mod 6), then there exists an integer k such that a = 6k . But then a = 2(3k) and hence, a is even. Since we
assumed that a is odd, this case is not possible.
If a ≡ 2 (mod 6), then there exists an integer k such that a = 6k + 2 . But then a = 2(3k + 1) and hence, a is even.
Since we assumed that a is odd, this case is not possible.
1. Prove that if a is an odd integer, then a cannot be congruent to 4 modulo 6.
2. Prove that if a is an integer and 3 does not divide a , then a cannot be congruent to 3 modulo 6.
3. So if a is an odd integer that is not a multiple of 3, then a must be congruent to 1 or 5 modulo 6. Use these two cases
to prove the following proposition:
Answer
Add texts here. Do not delete this text first.
Proposition 3.36.
For each integer a , if a is an odd integer that is not multiple of 3, then a
2
≡1 (mod 6).
(a) Explain why we can also represent three consecutive integers as k − 1 , k , and k + 1 , where k is an integer.
(b) Explain why Proposition 3.27 proves that the product of any three consecutive integers is divisible by 3.
(c) Prove that the product of three consecutive integers is divisible by 6.
3. Prove the symmetric property of congruence stated in Theorem 3.30.
4. (a) Let n ∈ N and let a ∈ Z . Explain why n divides a if and only if a ≡ 0 (mod n ).
(b) Let a ∈ Z . Explain why if a ≢ 0 (mod 3), then a ≡ 1 (mod 3) or a ≡ 2 (mod 3).
(c) Is the following proposition true or false? Justify your conclusion.
For each a ∈ Z , a ≢ 0 (mod 3) if and only if a ≡ 1 (mod 3).
2
5. (a) Use cases based on congruence modulo 3 and properties of congruence to prove that for each integer n , n ≡ n 3
(mod 3).
(b) Explain why the result in Part (a) proves that for each integer n , 3 divides n − n . Compare this to the proof of the
3
For all integers a and b , if ab ≡ 0 (mod 3), then a ≡ 0 (mod 3) or b ≡ 0 (mod 3).
8. (a) Explain why the following proposition is equivalent to the proposition in Exercise (7).
For all integers a and b , if 3|ab , then 3|a or 3|b.
(b) Prove that for each integer a , if 3 divides a , then 3 divides a .
2
–
9. (a) Prove that the real number √3 is an irrational number. That is, prove that
If r is a positive real number such that r = 3 , then r is irrational.
2
− −
(b) Prove that the real number √12 is an irrational number.
10. (a) Use the result in Proposition 3.33 to help prove that the integer m = 5, 344, 580, 232, 468, 953, 153 is not a perfect
square. Recall that an integer n is a perfect square provided that there exists an integer k such that n = k . Hint: Use
2
a proof by contradiction.
(b) Is the integer n = 782, 456, 231, 189, 002, 288, 438 a perfect square? Justify your conclusion.
11. (a) Use the result in Proposition 3.33 to help prove that for each integer a , if 5 divides a , then 5 divides a .
2
–
(b) Prove that the real number √5 is an irrational number.
12. (a) Prove that for each integer a , if a ≢ 0 (mod 7), then a ≢ 0 (mod 7).
2
–
(c) Prove that the real number √7 is an irrational number.
13. (a) If an integer has a remainder of 6 when it is divided by 7, is it possible to determine the remainder of the square of
that integer when it is divided by 7? If so, determine the remainder and prove that your answer is correct.
(b) If an integer has a remainder of 11 when it is divided by 12, is it possible to determine the remainder of the square
of that integer when it is divided by 12? If so, determine the remainder and prove that your answer is correct.
(c) Let n be a natural number greater than 2. If an integer has a remainder of n − 1 when it is divided by n , is it
possible to determine the remainder of the square of that integer when it is divided by n ? If so, determine the
remainder and prove that your answer is correct.
14. Let n be a natural number greater than 4 and let a be an integer that has a remainder of n − 2 when it is divided by n .
Make whatever conclusions you can about the remainder of a when it is divided by n . Justify all conclusions.
2
15. Is the following proposition true or false? Justify your conclusion with a proof or a counterexample.
For each natural number n , if 3 does not divide (n + 2) , then n is not a prime number or n = 3 .
2
16. (a) Is the following proposition true or false? Justify your conclusion with a counterexample or a proof.
For each integer n , if n is odd then n ≡ 1 (mod 8).
2
(b) Compare this proposition to the proposition in Exercise (7) from Section 3.4. Are these two propositions
equivalent? Explain.
(c) Is the following proposition true or false? Justify your conclusion with a counterexample or a proof.
For each integer n , if n is odd and n is not a multiple of 3, then n ≡ 1 (mod 24).
2
18. Is the following proposition true or false? Justify your conclusion with a counterexample or a proof.
For each integer a , 3 divides a + 23a .
3
19. Are the following statements true or false? Either prove the statement is true or provide a counterexample to show it is
false.
(a) For all integer a and b , if a ⋅ b ≡ 0 (mod 6), then a ≡ 0 (mod 6) or b ≡ 0 (mod 6).
(b) For all integer a and b , if a ⋅ b ≡ 0 (mod 8), then a ≡ 0 (mod 8) or b ≡ 0 (mod 8).
(c) For all integer a and b , if a ⋅ b ≡ 1 (mod 6), then a ≡ 1 (mod 6) or b ≡ 1 (mod 6).
(d) For all integer a and b , if ab ≡ 7 (mod 6), then either a ≡ 1 (mod 12) or b ≡ 7 (mod 12).
20. (a) Determine several pairs of integers a and b such that a ≡ b (mod 5). For each such pair, calculate 4a + b ,
3a + 2b , and 7a + 3b . Are each of the resulting integers congruent to 0 modulo 5?
(mod 5).
21. Evaluation of proofs
See the instructions for Exercise (19) on page 100 from Section 3.1.
(a)
Proposition
For all integers a and b , if (a + 2b) ≡ 0 (mod 3), then (2a + b) ≡ 0 (mod 3).
Proof
We assume a, b ∈ Z and (a + 2b) ≡ 0 (mod 3). This means that 3 divides a + 2b and, hence, there exists an
integer m such that a + 2b = 3m . Hence, a = 3m − 2b . For (2a + b) ≡ 0 (mod 3), there exists an integer x
such that 2a + b = 3x . Hence,
2(3m − 2b) + b = 3x (3.5.41)
6m − 3b = 3x (3.5.42)
3(2m − b) = 3x (3.5.43)
2m − b = x (3.5.44)
Since (2m − b) is an integer, this proves that 3 divides (2a + b) and hence, (2a + b) ≡ 0 (mod 3)
(b)
Proposition.
For each integer m, 5 divides (m 5
− m) .
Proof
Let m ∈ Z . We will prove that 5 divides (m 5
− m) by proving that divides (m 5
− m) ≡ 0 (mod 5). We will
use cases.
For the first case, if m ≡ 0 (mod 5), then m 5
≡0 (mod 5) and, hence, ((m^5 - m) \equiv 0\) (mod 5).
For the second case, if m ≡ 1 (mod 5), then m ≡ 1 (mod 5) and, hence, ((m^5 - m) \equiv (1 - 1)\) (mod 5),
5
The proof of the following proposition based on Part (b) uses cases. In this proof, however, we use cases and a proof
by contradiction to prove that a certain integer cannot be odd. Hence, it must be even. Complete the proof of the
proposition.
The integer n is either even or it is odd. We will show that it must be even by obtaining a contradiction if it assumed
to be odd. So, assume that n is odd. (Now complete the proof.)
23. The Last Two Digits of a Large Integer.
Notice that 7, 381, 272 ≡ 72 (mod 100) since 7, 381, 272 - 72 = 7, 381, 200, which is divisible by 100. In general, if
we start with an integer whose decimal representation has more than two digits and subtract the integer formed by the
last two digits, the result will be an integer whose last two digits are 00. This result will be divisible by 100. Hence,
any integer with more than 2 digits is congruent modulo 100 to the integer formed by its last two digits.
(a) Start by squaring both sides of the congruence 3 ≡ 81 (mod 100) to prove that 3 ≡ 61 (mod 100) and then
4 8
prove that 3 ≡ 21 (mod 100). What does this tell you about the last two digits in the decimal representation of 3 ?
16 16
(b) Use the two congruences in Part (23a) and laws of exponents to determine r where 3 ≡ r (mod 100) and r ∈ Z
20
with 0 ≤ r < 100 . What does this tell you about the last two digits in the decimal representation of 3 ? 20
(c) Determine the last two digits in the decimal representation of 3 . 400
(d) Determine the last two digits in the decimal representation of 4 . 804
Hint: One way is to determine the "mod 100 values", for 4 , 4 , 4 , 4 , 4 , 4 , and so on. Then use these values
2 4 8 16 32 64
and laws of exponents to determine r, where 4 ≡ r (mod 100) and r ∈ Z with 0 ≤ r < 100 .
804
(e) Determine the last two digits in the decimal representation of 3 . 3356
(f) Determine the last two digits in the decimal representation of 7 . 403
Answer
Add texts here. Do not delete this text first.
When is it indicated? This type of proof is often used when the hypothesis and the conclusion are both stated in a
“positive” manner. That is, no negations are evident in the hypothesis and conclusion. That is, no negations are evident in
the hypothesis and conclusion.
Description of the process. Assume that P is true and use this to conclude that Q is true. That is, we use the forward-
backward method and work forward from P and backward from Q.
Why the process makes sense. We know that the conditional statement P → Q is automatically true when the hypothesis
is false. Therefore, because our goal is to prove that P → Q is true, there is nothing to do in the case that P is false.
Consequently, we may assume that P is true. Then, in order for P → Q to be true, the conclusion Q must also be true.
(When P is true, but Q is false, P → Q is false.) Thus, we must use our assumption that P is true to show that Q is also
true.
Proof of a Conditional Statement (P → Q) Using the Contrapositive
When is it indicated? This type of proof is often used when both the hypothesis and the conclusion are stated in the form
of negations. This often works well if the conclusion contains the operator “or”; that is, if the conclusion is in the form of a
disjunction. In this case, the negation will be a conjunction.
Description of the process. We prove the logically equivalent statement ┐Q → ┐P . The forward-backward method is used
to prove ┐Q → ┐P . That is, we work forward from ┐Q and backward from ┐P .
Why the process makes sense. When we prove ┐Q → ┐P , we are also proving P → Q because these two statements are
logically equivalent. When we prove the contrapositive of P → Q , we are doing a direct proof of ┐Q → ┐P . So we
assume ┐Q because, when doing a direct proof, we assume the hypothesis, and ┐Q is the hypothesis of the contrapositive.
We must show ┐P because it is the conclusion of the contrapositive.
Proof of P → Q Using a Proof by Contradiction
When is it indicated? This type of proof is often used when the conclusion is stated in the form of a negation, but the
hypothesis is not. This often works well if the conclusion contains the operator “or”; that is, if the conclusion is in the form
of a disjunction. In this case, the negation will be a conjunction.
Description of the process. Assume P and ┐Q and work forward from these two assumptions until a contradiction is
obtained.
Why the process makes sense. The statement P → Q is either true or false. In a proof by contradiction, we show that it is
true by eliminating the only other possibility (that it is false). We show that P → Q cannot be false by assuming it is false
and reaching a contradiction. Since we assume that P → Q is false, and the only way for a conditional statement to be
false is for its hypothesis to be true and its conclusion to be false, we assume that P is true and that Q is false (or,
equivalently, that ┐Q is true). When we reach a contradiction, we know that our original assumption that P → Q is false is
incorrect. Hence, P → Q cannot be false, and so it must be true.
Other Methods of Proof
The methods of proof that were just described are three of the most common types of proof. However, we have seen other
methods of proof and these are described below.
Proofs that Use a Logical Equivalency
As was indicated in Section 3.2, we can sometimes use of a logical equivalency to help prove a statement. For example, in
order to prove a statement of the form
Most often, this would use a direct proof for statement (3.6.1) but other methods could also be used. Because of the logical
equivalency, by proving statement (3.6.3), we have also proven the statement (3.6.1).
Proofs that Use Cases
When we are trying to prove a proposition or a theorem, we often run into the problem that there does not seem to be enough
information to proceed. In this situation, we will sometimes use cases to provide additional assumptions for the forward
process of the proof. When this is done, the original proposition is divided into a number of separate cases that are proven
independently of each other. The cases must be chosen so that they exhaust all possibilities for the hypothesis of the original
proposition. This method of case analysis is justified by the logical equivalency
(P ∨ Q) → R ≡ (P → R) ∧ (Q → R). (3.6.4)
Prove that all points on or inside the circle whose equation is (x − 1) + (y − 2) = 4 are inside the circle whose
2 2
equation is x + y = 26 .
2 2
2. Let r be a positive real number. The equation for a circle of radius r whose center is the origin is x + y = r . 2 2 2
dy
(a) Use implicit differentiation to determine .
dx
(b) Let (a, b) be a point on the circle with a ≠ 0 and b ≠ 0 . Determine the slope of the line tangent to the circle at the
equal to 1.
3. Are the following statements true or false? Justify your conclusions.
(c) For each integer a , 3 does not divide a if and only if 3 divides 2a + 1 . 2
4. Prove that for each real number x and each irrational number q, x + q is irrational or x − q is irrational.
5. Prove that there exist irrational numbers u and v such that uv is a rational number.
– –√2
Hint: We have proved that √2 is irrational. For the real number q = √2 , either q is rational or q is irrational. Use
this disjunction to set up two cases.
6. Let a and b be natural numbers such that a = b . Prove each of the propositions in Parts (6a) through (6d). (The
2 3
results of Exercise (1) and Theorem 3.10 from Section 3.2 may be helpful.)
8. Recall that a Pythagorean triple consists of three natural numbers a , b , and c such that a < b < c and a 2
+b
2
=c
2
.
Are the following propositions true or false? Justify your conclusions.
(a) For all a, b, c ∈ N such that a < b < c , if a , b , and c form a Pythagorean triple, then 3 divides a or 3 divides b .
(b) For all a, b, c ∈ N such that a < b < c , if a , b , and c form a Pythagorean triple, then 5 divides a or 5 divides b or
5 divides c .
9. (a) Prove that there exists a Pythagorean triple a , b , and c , where a = 5 and b and c are consecutive natural numbers.
(b) Prove that there exists a Pythagorean triple a , b , and c , where a = 7 and b and c are consecutive natural numbers.
(c) Let m be an odd natural number that is greater than 1. Prove that there exists a Pythagorean triple a , b , and c ,
where a = m and b and c are consecutive natural numbers.
10. One of the most famous unsolved problems in mathematics is a conjecture made by Christian Goldbach in a letter to
Leonhard Euler in 1742. The conjecture made in this letter is now known as Goldbach’s Conjecture. The conjecture
is as follows:
Every even integer greater than 2 can be expressed as the sum of two (not necessarily distinct) prime numbers.
Currently, it is not known if this conjecture is true or false.
(a) Write 50, 142, and 150 as a sum of two prime numbers
(b)Prove the following:
If Goldbach’s Conjecture is true, then every integer greater than 5 can be written as a sum of three prime numbers.
(c)Prove the following:
If Goldbach’s Conjecture is true, then every odd integer greater than 7 can be written as a sum of three odd prime
numbers.
If any of the statements above are false, write a new statement of the following form that is true (and prove that it is
true):
13. One of the famous mathematicians of the 17th century was Pierre de Fermat (1601 – 1665). Fermat made an
assertion that for each natural number n with n ≥ 3 , there are no integers a , b , and c for which a + b = c . This n n n
assertion was discovered in a margin of one of Fermat’s books after his death, but Fermat provided no proof. He did,
however, state that he had discovered truly remarkable proof but the margin did not contain enough room for the
proof.
This assertion became known as Fermat’s Last Theorem but it more prop- erly should have been called Fermat’s
Last Conjecture. Despite the efforts of mathematicians, this “theorem” remained unproved until Andrew Wiles, a
British mathematician, first announced a proof in June of 1993. However, it was soon recognized that this proof had a
serious gap, but a widely accepted version of the proof was published by Wiles in 1995. Wiles’ proof uses many
concepts and techniques that were unknown at the time of Fermat. We cannot discuss the proof here, but we will
explore and prove the following proposition, which is a (very) special case of Fermat’s Last Theorem.
Proposition. There do not exist prime numbers a, b,and c such that
3
a + b3 = c3 (3.6.7)
.
Although Fermat’s Last Theorem implies this proposition is true, we will use a proof by contradiction to prove this
proposition. For a proof by contradiction, we assume that
there exist prime numbers a , b , and c such that a 3 3
+b =c
3
.
Since 2 is the only even prime number, we will use the following cases: (1) a = b = 2 ; (2) a and b are both odd; and
(3) one of a and b is odd and the other one is 2.
(a) Show that the case where a = b = 2 leads to a contradiction and hence, this case is not possible.
(b) Show that the case where a and b are both odd leads to a contradiction and hence, this case is not possible.
(c) We now know that one of a or b must be equal to 2. So we assume that b = 2 and that a is an odd prime.
Substitute b = 2 into the equation b = c − a and then factor the expression c − a . Use this to obtain a
3 3 3 3 3
Answer
Add texts here. Do not delete this text first.
Preview Activity 3.S. 2 in Section 3.2. The integer n is an odd integer if and only if n is an odd integer.
2
(a + c) ≡ (b + d) (mod n ).
ac ≡ bd (mod n ).
For each m ∈ N , a m
≡b
m
(mod n ).
1 7/21/2021
4.1: The Principle of Mathematical Induction
Preview Activity 4.1.1 : Exploring Statements of the Form (∀n ∈ N)(P (n))
One of the most fundamental sets in mathematics is the set of natural numbers N. In this section, we will learn a new
proof technique, called mathematical induction, that is often used to prove statements of the form (∀n ∈ N)(P (n)) . In
Section 4.2, we will learn how to extend this method to statements of the form (∀n ∈ T )(P (n)) , where T is a certain
type of subset of the integers Z.
For each natural number n , let P (n) be the following open sentence:
4 divides (5 n
− 1) .
1. Does this open sentence become a true statement when n = 1 ? That is, is 1 in the truth set of P (n)?
2. Does this open sentence become a true statement when n = 2 ? That is, is 2 in the truth set of P (n)?
3. Choose at least four more natural numbers and determine whether the open sentence is true or false for each of your
choices.
All of the examples that were used should provide evidence that the following proposition is true:
For each natural number n , 4 divides (5 n
− 1) .
We should keep in mind that no matter how many examples we try, we cannot prove this proposition with a list of
examples because we can never check if 4 divides (5 − 1) for every natural number n . Mathematical induction will
n
The expression on the left side of the previous equation is the sum of the squares of the first n natural numbers. So when
n = 1 , the left side of equation (4.1.1) is 1 . When n = 2 , the left side of equation (4.1.1) is 1 + 2 .
2 2 2
5. Choose at least four more natural numbers and determine whether the open sentence is true or false for each of your
n(n + 1)(2n + 1)
choices. A table with the columns n , 1 2 2
+ 2 +. . . +n
2
, and may help you organize your work.
6
All of the examples we have explored, should indicate the following proposition is true:
For each natural number n , \(1^2 + 2^2 + ... + n^2 = \dfrac{n(n + 1)(2n + 1)}{6}.\]
In this section, we will learn how to use mathematical induction to prove this statement.
Definition
A set T that is a subset of Z is an inductive set provided that for each integer k , if k ∈ T , then k + 1 ∈ T .
(a) Is 2 ∈ T ? Explain.
(b) Is 3 ∈ T ? Explain.
(c) Is 4 ∈ T ? Explain.
(d) Is 100 ∈ T ? Explain.
(e) Do you think that T = N ? Explain.
Inductive Sets
The two open sentences in Preview Activity 4.1.1 appeared to be true for all values of n in the set of natural numbers, N. That
is, the examples in this preview activity provided evidence that the following two statements are true.
For each natural number n , 4 divides (5 n
− 1) .
n(n + 1)(2n + 1)
For each natural number n , 1 2 2
+ 2 +. . . +n
2
= .
6
One way of proving statements of this form uses the concept of an inductive set introduced in Preview Activity 4.1.2. The idea
is to prove that if one natural number makes the open sentence true, then the next one also makes the open sentence true. This
is how we handle the phrase “and so on” when dealing with the natural numbers. In Preview Activity 4.1.2, we saw that the
number systems N and Z and other sets are inductive. What we are trying to do is somehow distinguish N from the other
inductive sets. The way to do this was suggested in Part (3) of Preview Activity 4.1.2. Although we will not prove it, the
following statement should seem true.
Statement 1: For each subset T of N, if 1 ∈ T and T is inductive, then T =N .
Notice that the integers, Z, and the set S = {n ∈ Z|n ≥ −3} both contain 1 and both are inductive, but they both contain
numbers other than natural numbers. For example, the following statement is false:
Statement 2: For each subset T of Z, if 1 ∈ T and T is inductive, then T =Z .
The set S = {n ∈ Z|n ≥ −3} = {−3, −2, −1, 0, 1, 2, 3, . . . } is a counterexample that shows that this statement is false.
Answer
Add texts here. Do not delete this text first.
Note that in the inductive step, we want to prove that the conditional statement “for each k ∈ N , if P (k) then P (k + 1) ” is
true. So we will start the inductive step by assuming that P (k) is true. This assumption is called the inductive assumption or
the inductive hypothesis.
The key to constructing a proof by induction is to discover how P (k + 1) is related to P (k) for an arbitrary natural number k .
For example, in Preview Activity 4.1.1, one of the open sentences P (n) was
n(n + 1)(2n + 1)
2 2 2
1 + 2 +. . . +n = .
6
Sometimes it helps to look at some specific examples such as P (2) and P (3). The idea is not just to do the computations, but
to see how the statements are related. This can sometimes be done by writing the details instead of immediately doing
computations.
In this case, the key is the left side of each equation. The left side of P (3) is obtained from the left side of P (2) by adding one
term, which is 3 . This suggests that we might be able to obtain the equation for P (3) by adding 3 to both sides of the
2 2
equation P (2). Now for the general case, if k ∈ N , we look at P (k + 1) and compare it to P (k) .
k(k + 1)(2k + 1)
2 2 2
P (k) is 1 + 2 +. . . +k = (4.1.4)
6
(k + 1)[(k + 1) + 1][2(k + 1) + 1]
2 2 2
P (k + 1) is 1 + 2 +. . . +(k + 1 ) = (4.1.5)
6
The key is to look at the left side of the equation for P (k + 1) and realize what this notation means. It means that we are
adding the squares of the first k + 1 natural numbers. This means that we can write
2 2 2 2 2 2 2
1 + 2 +. . . +(k + 1 ) =1 + 2 +. . . +k + (k + 1 ) .
This shows us that the left side of the equation for P (k + 1) can be obtained from the left side of the equation for P (k) by
adding (k + 1) . This is the motivation for proving the inductive step in the following proof.
2
Proposition 4.2.
For each natural number n ,
n(n + 1)(2n + 1)
2 2 2
1 + 2 +. . . +n = .
6
Proof
We will use a proof by mathematical induction. For each natural number n , we let P (n) be
n(n + 1)(2n + 1)
2 2 2
1 + 2 +. . . +n = .
6
1(1 + 1)(2 ⋅ 1 + 1)
We first prove that P (1) is true. Notice that =1 . This shows that
6
The goal now is to prove that P (k + 1) is true. That is, it must be proved that
(k + 1)[(k + 1) + 1][2(k + 1) + 1]
2 2 2 2
1 + 2 +. . . +k + (k + 1 ) = (4.1.7)
6
(k + 1)(k + 2)(2k + 3)
= . (4.1.8)
6
To do this, we add (k + 1) 2
to both sides of equation (1) and algebraically rewrite the right side of the resulting
equation. This gives
Comparing this result to equation (2), we see that if P (k) is true, then P (k + 1) is true. Hence, the inductive step has
been established, and by the Principle of Mathematical Induction, we have proved that for each natural number n ,
n(n + 1)(2n + 1)
2 2 2
1 + 2 +. . . +n = .
6
Writing Guideline
The proof of Proposition 4.2 shows a standard way to write an induction proof. When writing a proof by mathematical
induction, we should follow the guideline that we always keep the reader informed. This means that at the beginning of the
proof, we should state that a proof by induction will be used. We should then clearly define the open sentence (P(n)\) that will
be used in the proof.
Summation Notation
The result in Proposition 4.2 could be written using summation notation as follows:
n
n(n + 1)(2n + 1)
2
For each natural number n, ∑ j = .
6
j=1
In this case, we use j for the index for the summation, and the notation ∑ n
j=1
j
2
tells us to add all the values of j for j from 1
2
2 2 2 2
∑j =1 + 2 +. . . +n .
j=1
n(n + 1)(2n + 1)
So in the proof of Proposition 4.2, we would let P (n) be ∑ n
j=1
j
2
= , and we would use the fact that for
6
each natural number k ,
k+1 k
2 2 2
∑j = (∑ j ) + (k + 1 ) .
j=1 j=1
Answer
Add texts here. Do not delete this text first.
In Proposition 4.2, we were able to see that the way to answer this question was to add a certain expression to both sides of
the equation given in P (k) . Sometimes the relationship between P (k) and P (k + 1) is not as easy to see. For example, in
Preview Activity 4.1.1, we explored the following proposition:
This means that the open sentence, P (n), is "4 divides (5 − 1) ." So in the inductive step, we assume
n
k ∈ N and that 4
divides (5 − 1) . This means that there exists an integer m such that
k
k
5 − 1 = 4m. (4.1.15)
We now need to see if there is anything in equation (4.1.15) that can be used in equation (4.1.16). The key is to find
something in the equation 5 − 1 = 4m that is related to something similar in the equation 5
k
− 1 = 4s In this case, we
k+1
notice that
k+1 k
5 =5⋅5 . (4.1.17)
Proposition 4.4.
For every natural number n , 4 divides (5 n
− 1) .
Proof
(Proof by Mathematical Induction) For each natural number n , let P (n) be “4 divides (5 n
− 1) ” We first prove that
P (1) is true. Notice that when n = 1 , 5 − 1 = 4 . Since 4 divides 4, P (1) is true.
n
Thus,
k
5 = 4m + 1. (4.1.18)
We now substitute the expression for 5k from equation (4.1.18) into equation (4.1.19). This gives
k+1 k
5 −1 = 5⋅5 −1
= 5(4m + 1) − 1
= (20m + 5) − 1 (4.1.20)
= 20m + 4
= 4(5m + 1)
Since (5m + 1) is an integer, equation (4.1.20) shows that 4 divides (5 − 1) . Therefore, if P (k) is true, then
k+1
P (k + 1) is true and the inductive step has been established. Thus, by the principle of Mathematical Induction, for
Proposition 4.4 was stated in terms of “divides.” We can use congruence to state a proposition that is equivalent to Proposition
4.4. The idea is that the sentence, 4 divides (5 − 1) means that 5 ≡ 1 (mod 4). So the following proposition is equivalent to
n n
Proposition 4.4.
Proposition 4.5.
For every natural number n , 5 n
≡1 (mod 4).
Since we have proved Proposition 4.4, we have in effect proved Proposition 4.5. However, we could have proved Proposition
4.5 first by using the results in Theorem 3.28 on page 147. This will be done in the next progress check.
inductive step, let k be a natural number and assume that P (k) is true. That is, assume that 5 ≡ 1 (mod 4). n
Answer
Add texts here. Do not delete this text first.
(a) Z
(b) {x ∈ N|x ≥ 4}
(c) {x ∈ Z|x ≤ 10}
(d) {1, 2, 3, ..., 500}
2. (a) Can a finite, nonempty set be inductive? Explain.
(b) Is the empty set inductive? Explain.
3. Use mathematical induction to prove each of the following:
n(3n + 1)
(a) For each natural number n , 2 + 5 + 8 + ⋅ ⋅ ⋅ + (3n − 1) = .
2
(b) For each natural number n , 1 + 5 + 9 + ⋅ ⋅ ⋅ + (4n − 3) = n(2n − 1) .
n(n + 1)
(c) For each natural number n , 1 3
+2
3
+3
3 3
+⋅ ⋅ ⋅ +n =[
2
] .
2
4. Based on the results in Progress Check 4.3 and Exercise (3c), if n ∈ N , is there any conclusion that can be made about
the relationship between the sum (1 + 2 + 3 +. . . +n ) and the sum (1 + 2 + 3 + ⋅ ⋅ ⋅ + n) ?
3 3 3 3
5. Instead of using induction, we can sometimes use previously proven results about a summation to obtain results about
a different summation.
(a) Use the result in Progress Check4.3 to prove the following proposition:
3n(n + 1)
For each natural number n, 3 + 6 + 9+. . . +3n = . (4.1.21)
2
(b) Subtract n from each side of the equation in Part (a). On the left side of this equation, explain why this can be done
by subtracting 1 from each term in the summation.
(c) Algebraically simplify the right side of the equation in Part (b) to obtain a formula for the sum
2 + 5 + 8+. . . (3n − 1). Compare this to Exercise (3a).
(d) For two other values of n , find the value of r so that 4 ≡ r (mod 3) and r ∈ {0, 1, 2}.
n
(e) If n ∈ N make a conjecture concerning the value of r where 4 ≡ r (mod 3) and r ∈ {0, 1, 2}. This conjecture
n
9. In Exercise (7), we proved that for each natural number n , 4 ≡ 1 (mod 3). Explain how this result is related to the
n
(b) Based on your work in Part (a), make a conjecture about the values of 5 − 2 for each natural number n . n n
14. Use mathematical induction to prove that the sum of the cubes of any three consecutive natural numbers is a multiple
of 9.
15. Let a be a real number. We will explore the derivatives of the function f (x) = e . By using the chain rule, we see ax
that
d ax ax
(e ) = ae . (4.1.22)
dx
Recall that the second derivative of a function is the derivative of the derivative function. Similarly, the third
derivative is the derivative of the second derivative.
2
d
(a) What is 2
(e
ax
) , the second derivative of e ? ax
dx
3
d
(b) What is 3
(e
ax
) , the third derivative of e ? ax
dx
(c) Let n be a natural number. Make a conjecture about the n th derivatives of the function f (x) = e . That is, what ax
n
d
is n
(e
ax
) ? This conjecture should be written as a self-contained proposition including an appropriate quantifier.
dx
(d) Use mathematical induction to prove that your conjecture.
16. In calculus, it can be shown that
x 1
2
∫ si n xdx = − sinxcosx + c and
2 2
(4.1.23)
x 1
2
∫ cos xdx = + sinxcosx + c.
2 2
Using integration by parts, it is also possible to prove that for each natural number n ,
1 n−1
n n−1 n−2
∫ si n xdx = − si n xcosx + ∫ si n xdx and
n n
(4.1.24)
1 n−1
n n−1 n−2
∫ cos xdx = cos xsinx + ∫ cos xdx.
n n
(b) Use mathematical induction to prove that for each natural number n
π/2
1 ⋅ 3 ⋅ 5 ⋅ ⋅ ⋅ (2n − 1) π
2n
∫ si n xdx = and
0
2 ⋅ 4 ⋅ 6 ⋅ ⋅ ⋅ (2n) 2
(4.1.26)
π/2
2 ⋅ 4 ⋅ 6 ⋅ ⋅ ⋅ (2n)
2n+1
∫ si n xdx =
0
1 ⋅ 3 ⋅ 5 ⋅ ⋅ ⋅ (2n + 1).
π/2 1 ⋅ 3 ⋅ 5 ⋅ ⋅ ⋅ (2n − 1) π
2n
∫ cos xdx = and
0
2 ⋅ 4 ⋅ 6 ⋅ ⋅ ⋅ (2n) 2
(4.1.27)
π/2 2 ⋅ 4 ⋅ 6 ⋅ ⋅ ⋅ (2n)
2n+1
∫ cos xdx =
0
1 ⋅ 3 ⋅ 5 ⋅ ⋅ ⋅ (2n + 1).
(a)
n(3n − 1)
For each natural number n , 1 + 4 + 7 + ⋅ ⋅ ⋅ + (3n − 2) = .
2
Proof
We will prove this proposition using mathematical induction. So we let P (n) be the open sentence
1 + 4 + 7 + ⋅ ⋅ ⋅ + (3n − 2).
k(3k − 1) (k + 1)(3k + 2)
+ (3k + 1) =
2 2
(4.1.29)
2 2
(3 k − k) + (6k + 2) 3k + 5k + 2
=
2 2
2 2
3k + 5k + 2 3k + 5k + 2
= .
2 2
We have thus proved that P (k + 1) is true, and hence, we have proved the proposition.
(b)
n(3n − 1)
For each natural number n , 1 + 4 + 7 + ⋅ ⋅ ⋅ + (3n − 2) = .
2
Proof
k(3k − 2)
= + 3(k + 1) − 2
2
2
3k − k + 6k + 6 − 4
=
(4.1.30)
2
2
3k + 5k + 2
=
2
(k + 1)(3k + 2)
= .
2
we have thus proved that P (k + 1) is true, and hence, we have proved the proposition.
(c)
All dogs are the same breed.
Proof
We will prove this proposition using mathematical induction. For each natural number n , we let P (n) be
Any set of n dogs consists entirely of dogs of the same breed.
We will prove that for each natural number n , P (n) is true, which will prove that all dogs are the same breed.
A set with only one dog consists entirely of dogs of the same breed and, hence, P (1) is true.
So we let k be a natural number and assume that P (k) is true, that is, that every set of k dogs consists of dogs
of the same breed. Now consider a set D of k + 1 dogs, where
D = { d1 , d2 , . . . , dk , dk+1 }.
If we remove the dog d from the set D, we then have a set D of k dogs, and using the assumption that
1 1
P (k) is true, these dogs must all be of the same breed. Similarly, if we remove d from the set D, we again
k+1
have a set D of k dogs, and these dogs must all be of the same breed. Since D = D ∪ D , we have proved
2 1 2
The goal is to prove that P (k + 1) is true. That is, we need to prove that
2
(k + 1 ) + (k + 1) + 1
1 + 2 + ⋅ ⋅ ⋅ + k + (k + 1) = . (4.1.33)
2
= ⋅ ⋅ ⋅.
(b) Is P (1) true? Is P (2) true? What about P (3) and P (4)? Explain how this shows that the basis step is an essential
part of a proof by induction.
20. Regions of a Circle. Place n equally spaced points on a circle and connect each pair of points with the chord of the
circle determined by that pair of points. See Figure 4.1.
Count the number of distinct regions within each circle. For example, with three points on the circle, there are four
distinct regions. Organize your data in a table with two columns: “Number of Points on the Circle” and “Number of
Distinct Regions in the Circle.”
(a) How many regions are there when there are four equally spaced points on the circle?
(b) Based on the work so far, make a conjecture about how many distinct regions would you get with five equally
spaced points.
(c) Based on the work so far, make a conjecture about how many distinct regions would you get with six equally
spaced points.
(d) Figure 4.2 shows the figures associated with Parts (b) and (c). Count the number of regions in each case. Are your
conjectures correct or incorrect?
Answer
Add texts here. Do not delete this text first.
Definition
If n is a natural number, we define n factorial, denoted by n! , to be the product of the first n natural numbers. In
addition, we define 0! to be equal to 1.
1! = 1 4! = 1 ⋅ 2 ⋅ 3 ⋅ 4 = 24 (4.2.1)
2! = 1⋅2 =2 5! = 1 ⋅ 2 ⋅ 3 ⋅ 4 ⋅ 5 = 120.
Let k be a natural number with k ≥ 4 . Suppose that we want to prove that if P (k) is true, then P (k + 1) is true. (This
could be the inductive step in an induction proof.) To do this, we would be assuming that k! > 2 and would need to k
prove that (k + 1)! > 2 . Notice that if we multiply both sides of the inequality k! > 2 by (k + 1) , we obtain
k+1 k
k
(k + 1) ⋅ k! > (k + 1)2 . (4.2.2)
6. Now use the inequality in (4.2.2) and the work in steps (4) and (5) to explain why (k + 1)! > 2 k+1
.
where P (n) is an open sentence. This means that we are proving that every statement in the following infinite list is true.
P (1), P (2), P (3), . . . (4.2.4)
The inductive step in a proof by induction is to prove that if one statement in this infinite list of statements is true, then the
next statement in the list must be true. Now imagine that each statement in Equation ??? is a domino in a chain of dominoes.
When we prove the inductive step, we are proving that if one domino is knocked over, then it will knock over the next one in
the chain. Even if the dominoes are set up so that when one falls, the next one will fall, no dominoes will fall unless we start
by knocking one over. This is why we need the basis step in an induction proof. The basis step guarantees that we knock over
the first domino. The inductive step, then, guarantees that all dominoes after the first one will also fall.
Now think about what would happen if instead of knocking over the first domino, we knock over the sixth domino. If we also
prove the inductive step, then we would know that every domino after the sixth domino would also fall. This is the idea of the
Extended Principle of Mathematical Induction. It is not necessary for the basis step to be the proof that P (1) is true. We can
make the basis step be the proof that P (M ) is true, where M is some natural number. The Extended Principle of Mathematical
Induction can be generalized somewhat by allowing M to be any integer. We are still only concerned with those integers that
are greater than or equal to M .
where M is an integer and P (n) is some open sentence. (In most induction proofs, we will use a value of M that is greater
than or equal to zero.) So our goal is to prove that the truth set T of the predicate P (n) contains all integers greater than or
equal to M . So to verify the hypothesis of the Extended Principle of Mathematical Induction, we must
1. Prove that M ∈ T , That is, prove that P (M ) is true.
2. Prove that for every k ∈ Z with k ≥ M , if k ∈ T , then (k + 1) ∈ T .Thatis, prove that if P (k) is true, then P (k + 1) is
true.
As before, the first step is called the basis step or the initial step, and the second step is called the inductive step. This means
that a proof using the Extended Principle of Mathematical Induction will have the following form:
This is basically the same procedure as the one for using the Principle of Mathematical Induction. The only difference is that
the basis step uses an integer M other than 1. For this reason, when we write a proof that uses the Extended Principle of
Mathematical Induction, we often simply say we are going to use a proof by mathematical induction. We will use the work
from Preview Activity 4.2.1 to illustrate such a proof.
Proof
We will use a proof by mathematical induction. For this proof, we let
P (n) be "n! > 2 ." n
P (4) is true.
For the inductive step, we prove that for all k ∈ N with k ≥ 4 , if P (k) is true, then P (k + 1) is true. So let k be a
natural number greater than or equal to 4, and assume that P (k) is true. That is, assume that
k
k! > 2 . (4.2.5)
k
(k + 1) ⋅ k! > (k + 1) ⋅ 2 , or
(4.2.6)
k
(k + 1)! > (k + 1) ⋅ 2 .
and this proves that if P (k) is true, then P (k + 1) is true. Thus, the inductive step has been established, and so by the
Extended Principle of Mathematical Induction, n! > 2 for each natural number n with n ≥ 4 .
n
1
3. For which natural numbers n is (1 + n
) less than n ?
n
Answer
Add texts here. Do not delete this text first.
This work is intended to show the need for another principle of induction. In the inductive step of a proof by induction, we
assume one statement is true and prove the next one is true. The idea of this new principle is to assume that all of the previous
where M is an integer and P (n) is some predicate. So our goal is to prove that the truth set T of the predicate P (n) contains
all integers greater than or equal to M . To use the Second Principle of Mathematical Induction, we must
1. Prove that M ∈ T , That is, prove that P (M ) is true.
2. Prove that for every k ∈ N , if k ≥ M and {M , M + 1, . . . , k} ⊆ T , then (k + 1) ∈ T . That is, prove that if P (M ),
P (M + 1) , ..., P (k) are true, then P (k + 1) is true.
As before, the first step is called the basis step or the initial step, and the second step is called the inductive step. This means
that a proof using the Second Principle of Mathematical Induction will have the following form:
We will use this procedure to prove the proposition suggested in Preview Activity 4.2.2.
Theorem 4.9
Each natural number greater than 1 is either a prime number or is a product of prime numbers.
Proof
We will use the Second Principle of Mathematical Induction. We let P (n) be
n is either a prime number or n is a product of prime numbers.
We will conclude this section with a progress check that is really more of an activity. We do this rather than including the
activity at the end of the exercises since this activity illustrates a use of the Second Principle of Mathematical Induction in
which it is convenient to have the basis step consist of the proof of more than one statement.
Notice that P (1) is false since if both x and y are zero, then 3x + 5y = 0 and if either x > 0 or y >0 , then
3x + 5y ≥ 3 . Also notice that P (6) is true since 6 = 3 ⋅ 2 + 5 ⋅ 0 and P (8) is true since 8 = 3 ⋅ 1 + 5 ⋅ 1 .
1. Explain why P (2), P (4), and P (7) are false and why P (3) and P (5) are true.
2. Explain why P (9), P (10), P (11), and P (12) are true.
We could continue trying to determine other values of n for which P (n) is true. However, let us see if we can use the
work in part (2) to determine if P (13) is true. Notice that 13 = 3 + 10 and we know that P (10) is true. We should be
able to use this to prove that P (13) is true. This is formalized in the next part.
3. Let k ∈ N . Prove that if P (8), P (9), ..., P (k) are true, then P (k + 1) is true. Hint: k + 1 = 3 + (k − 2) .
4. Prove the following proposition using mathematical induction. Use the Sec- ond Principle of Induction and have the
basis step be a proof that P (8), P (9), and P (10) are true. (The inductive step is part (3).)
Proposition 4.11.
For each n ∈ N with n ≥ 8 , there exist nonnegative integers x and y such that n = 3x + 5y .
Answer
Add texts here. Do not delete this text first.
1 3 1 1 4
4. (a) Verify that (1 − ) = and that (1 − )(1 − ) = .
4 4 4 9 6
1 1 1 5 1 1 1 1 6
(b) Verify that (1 − )(1 − )(1 − ) = and that (1 − )(1 − )(1 − )(1 − ) = .
4 9 16 8 4 9 16 25 10
(c) For n ∈ N with n ≥2 , make a conjecture about a formula for the product
6. Let y = lnx .
2 3 4
dy d y d y d y
(a) Determine ,
2
,
3
, and 4
.
dx dx dx dx
n
d y
(b) Let n be a natural number. Formulate a conjecture for a formula for n
. Then use mathematical induction to
dx
prove your conjecture.
7. For which natural numbers n do there exist nonnegative integers x and y such that n = 4x + 5y ? Justify your
conclusion.
8. Can each natural number greater than or equal to 4 be written as the sum of at least two natural numbers, each of
which is a 2 or a 3? Justify your conclusion. For example, 7 = 2 + 2 + 3 , and 17 = 2 + 2 + 2 + 2 + 3 + 3 + 3 .
9. Can each natural number greater than or equal to 6 be written as the sum of at least two natural numbers, each of
which is a 2 or a 5? Justify your conclusion. For example, 6 = 2 + 2 + 2 , 9 = 2 + 2 + 5 , and 17 = 2 + 5 + 5 + 5 .
10. Use mathematical induction to prove the following proposition:
Let x be a real number with x > 0 . Then for each natural number n with n ≥ 2 , (1 + x ) n
> 1 + nx .
Explain where the assumption that x > 0 was used in the proof.
11. Prove that for each odd natural number n with n ≥ 3 ,
n
1 1 1 (−1)
(1 + )(1 − )(1 + ) ⋅ ⋅ ⋅ (1 + ) = 1. (4.2.8)
2 3 4 n
n(n − 1)
any set. with n elements has two-element subsets.
2
13. Prove or disprove each of the following propositions:
1 1 1 n
(a) For each n ∈ N , .+ +⋅ ⋅ ⋅ + = .
1⋅2 2⋅3 n(n + 1) n+1
.
n(n + 1)(n + 2)
(c) For each n ∈ N , 1 ⋅ 2 + 2 ⋅ 3 + 3 ⋅ 4 + ⋅ ⋅ ⋅ + n(n + 1) = .
3
14. Is the following proposition true or false? Justify your conclusion.
3 2
n n 7n
For each natural number n , ( + + ) is a natural number.
3 2 6
15. Is the following proposition true or false? Justify your conclusion.
5 4 3
n n n n
For each natural number n , ( + + − ) is an integer.
5 2 3 30
(b) For each n ∈ N , prove that there is only one way to write n in the form described in Part (a). To do this, assume
that n = 2 m and n = 2 p where m and p are odd natural numbers and k and q are nonnegative integers. Then prove
k q
that k = q and m = p .
17. Evaluation of proofs
See the instructions for Exercise (19) on page 100 from Section 3.1.
(a)
For each natural number n with n ≥ 2 , 2 n
> 1 +n .
Proof
We let k be a natural number and assume that 2 > 1 + k . Multiplying both sides of this inequality by 2, we
k
2
k+1
> 1 + (k + 1) .
By mathematical induction, we conclude that 2 n
> 1 +n .
(b)
Each natural number greater than or equal to 6 can be written as the sum of natural numbers, each of which is a 2
or a 5.
Proof
We will use a proof by induction. For each natural number n , we let P (n) be, “There exist nonnegative
integers x and y such that n = 2x + 5y .” Since
6 = 3 ⋅ 2 +0 ⋅ 5 7 = 2 +5
(4.2.10)
8 = 4 ⋅ 2 +0 ⋅ 5 9 = 2 ⋅ 2 +1 ⋅ 5
This proves that P (k + 1) is true, and hence, by the Second Principle of Mathematical Induction, we have
proved that for each natural number n with n ≥ 6 , there exist nonnegative integers x and y such that
n = 2x + 5y .
(a) Use the theorem about triangles to determine the sum of the angles of a convex quadrilateral. Hint: Draw a convex
quadrilateral and draw a diagonal.
(b) Use the result in Part (1) to determine the sum of the angles of a convex pentagon.
(c) Use the result in Part (2) to determine the sum of the angles of a convex hexagon.
(d) Let n be a natural number with n ≥ 3 . Make a conjecture about the sum of the angles of a convex polygon with n
sides and use mathematical induction to prove your conjecture.
This theorem is named after Abraham de Moivre (1667 – 1754), a French mathematician.
(a) The proof of De Moivre’s Theorem requires the use of the trigonometric identities for the sine and cosine of the
sum of two angles. Use the Internet or a book to find identities for sin(α + β) and cos(α + β) .
(b) To get a sense of how things work, expand [cosx + i(sinx)] and write the result in the form a + bi . Then use the
2
identities from part (1) to prove that [cosx + i(sinx)] = cos(2x) + i(sin(2x)) .
2
Answer
Add texts here. Do not delete this text first.
Another way to define a sequence is to give a specific definition of the first term (or the first few terms) and then state, in
general terms, how to determine a in terms of n and the first n terms a , a , . . . , a . This process is known as
n+1 1 2 n
definition by recursion and is also called a recursive definition. The specific definition of the first term is called the
initial condition, and the general definition of a in terms of n and the first n terms a , a , . . . , a is called the
n+1 1 2 n
recurrence relation. (When more than one term is defined explicitly, we say that these are the initial conditions.) For
example, we can define a sequence recursively as follows:
1
b1 = 16 , and for each n ∈ N , b n+1 = bn .
2
1 1 (4.3.1)
= ⋅ 16 = ⋅8
2 2
= 8 = 4
1
Then T 2 = 16 + T1 = 16 + 8 = 24 . Caluculate T through T . What seems to be happening to the values of
3 10 Tn
2
as n gets larger?
The sequences in Parts (1) and (2) can be generalized as follows: Let a and r be real numbers. Define two sequences
recursively as follows:
a1 = a , and for each n ∈ N , a n+1 = r ⋅ an .
S1 = a , and for each n ∈ N , S n+1 = a + r ⋅ Sn .
3. Determine formulas (in terms of a and r) for a through a . What do you think an is equal to (in terms of a , r, and
2 6
n )?
4. Determine formulas (in terms of a and r) for S through S . What do you think an is equal to (in terms of a , r, and
2 6
n )?
In Preview Activity 4.3.1 in Section 4.2, for each natural number n , we defined n!, read n factorial, as the product of
the first n natural numbers. We also defined 0! to be equal to 1. Now recursively define a sequence of numbers a , a , 0 1
a , ... as follows:
2
a0 = 1 , and
Using n = 0 , we see that this implies that a 1 = 1 ⋅ a0 = 1 ⋅ 1 = 1 , Then using n = 1 , we see that
a2 = 2 a1 = 2 ⋅ 1 = 2. (4.3.2)
5. Calculate a , a , a and a .
3 4 5 6
8. Compare the values of a , a , a , a , a , a , and a with those of 0!, 1!, 2!, 3!, 4!, 5!, and 6!. What do you observe?
0 1 2 3 4 5 6
We will use mathematical induction to prove a result about this sequence in Exercise (1).
f1 = 1 and f = 1 , and
2
f4 = f3 + f2 = 2 + 1 = 3, and (4.3.3)
f5 = f4 + f3 = 3 + 2 = 5,
1. Calculate f through f .
6 20
2. Which of the Fibonacci numbers f through f are even? Which are multiples of 3?
1 20
3. For n = 2 , n = 3 , n = 4 , and n = 5 , how is the sum of the first (n − 1) Fibonacci numbers related to the (n + 1) st
Fibonacci number?
4. Record any other observations about the values of the Fibonacci numbers or any patterns that you observe in the
sequence of Fibonacci numbers. If necessary, compute more Fibonacci numbers.
Adult Pairs 1 1 2 3 5 8 13 21 34 55
Newborn
1 1 2 3 5 8 13 21 34 55
Pairs
Historically, it is interesting to note that Indian mathematicians were studying these types of numerical sequences well before
Fibonacci. In particular, about fifty years before Fibonacci introduced his sequence, Acharya Hemachandra (1089 – 1173)
considered the following problem, which is from the biography of Hemachandra in the MacTutor History of Mathematics
Archive:
Suppose we assume that lines are composed of syllables which are either short or long. Suppose also that each long
syllable takes twice as long to articulate as a short syllable. A line of length n contains n units where each short syllable
is one unit and each long syllable is two units. Clearly a line of length n units takes the same time to articulate
regardless of how it is composed. Hemchandra asks: How many different combinations of short and long syllables are
possible in a line of length n ?
This is an important problem in the Sanskrit language since Sanskrit meters are based on duration rather than on accent as in
the English Language. The answer to this question generates a sequence similar to the Fibonacci sequence. Suppose that hn is
the number of patterns of syllables of length n . We then see that h = 1 and h = 2 . Now let n be a natural number and
1 2
consider pattern of length n + 2 . This pattern either ends in a short syllable or a long syllable. If it ends in a short syllable and
this syllable is removed, then there is a pattern of length n + 1 , and there are h + 1 such patterns. Similarly, if it ends in a
n
long syllable and this syllable is removed, then there is a pattern of length n , and there are h such patterns. From this, we
n
conclude that
hn+2 = hn+1 + hn .
This actually generates the sequence 1, 2, 3, 5, 8, 13, 21, .... For more information about Hemachandra, see the article Math for
Poets and Drummers by Rachel Wells Hall in the February 2008 issue of Math Horizons.
We will continue to use the Fibonacci sequence in this book. This sequence may not seem all that important or interesting.
However, it turns out that this sequence occurs in nature frequently and has applications in computer science. There is even a
scholarly journal, The Fibonacci Quarterly, devoted to the Fibonacci numbers.
The sequence of Fibonacci numbers is one of the most studied sequences in mathematics, due mainly to the many beautiful
patterns it contains. Perhaps one observation you made in Preview Activity 4.3.2 is that every third Fibonacci number is even.
This can be written as a proposition as follows:
For each natural number n , f 3n is an even natural number.
As with many propositions associated with definitions by recursion, we can prove this using mathematical induction. The first
step is to define the appropriate open sentence. For this, we can let P (n) be, “f is an even natural number.”
3n
Notice that P (1) is true since f3n =2 . We now need to prove the inductive step. To do this, we need to prove that for each
k ∈ N,
Using this and continuing to use the Fibonacci relation, we obtain the following:
f3(k+1) = f3k+3
Proposition 4.13.
For each natural number n , the Fibonacci number f 3n is an even natural number.
Hint: We have already defined the predicate P (n) to be used in an induction proof and have proved the basis step. Use
the information in and after the preceding know-show table to help prove that if f is even, then f
3k is even. 3(k+1)
Answer
Add texts here. Do not delete this text first.
Initial condition : a1 = a.
(4.3.5)
Recurrence relation : For each n ∈ N, an+1 = r ⋅ an .
This is a recursive definition for a geometric sequence with initial term a and (common) ratio r. The basic idea is that the
next term in the sequence is obtained by multiplying the previous term by the ratio r. The work in Preview Activity 4.3.1
suggests that the following proposition is true.
Theorem 4.14
Let a, r ∈ R , If a geometric sequence is defined by a1 = a and for each n ∈ N , an+1 = r ⋅ an , then for each n ∈ N ,
an = a ⋅ r
n−1
.
Proof
The proof of this proposition is Exercise (6).
Another sequence that was introduced in Preview Activity 4.3.1 is related to geometric series and is defined as follows:
Initial condition : S1 = a.
(4.3.6)
Recurrence relation : For each n ∈ N, Sn+1 = r ⋅ Sn .
Theorem 4.15
Let a, r ∈ R . If the sequence S , S , . . . , S , . . . is defined by S = a and for each n ∈ N , S
1 2 n = a+r⋅ S , then for
1 n+1 n
each n ∈ N , S = a + a ⋅ r + a ⋅ r + ⋅ ⋅ ⋅ + a ⋅ r
n
2
. That is, the geometric series S is the sum of the first n terms of
n−1
n
Proof
Add proof here and it will automatically be hidden if you have a "AutoNum" template active on the page.
The proof of Proposition 4.15 is Exercise (7). The recursive definition of a geometric series and Proposition 4.15 give two
different ways to look at geometric series. Proposition 4.15 represents a geometric series as the sum of the first nterms of the
corresponding geometric sequence. Another way to determine this sum a geometric series is given in Theorem 4.16, which
gives a formula for the sum of a geometric series that does not use a summation.
Theorem 4.16
Let a, r ∈ R and r ≠1 . If the sequence S1 , S2 , . . . , Sn , . . . is defined by S1 = a and for each n ∈ N ,
n
1 −r
Sn+1 = a + r ⋅ Sn , then for each n ∈ N , S n = a( ) .
1 −r
Proof
The proof of Proposition 4.16 is Exercise (8).
2. Assume that f , f , . . . , f , . . . are the Fibonacci numbers. Prove each of the following:
1 2 n
– –
1 + √5 1 − √5
4. The quadratic formula can be used to show that α = and β = are the two real number solutions of
2 2
the quadratic equation x 2
−x −1 = 0 . Notice that this implies that
2
α = α + 1, and
(4.3.8)
2
β = β + 1.
It may be surprising to find out that these two irrational numbers are closely related to the Fibonacci numbers.
(b) (This part is optional, but it may help with the induction proof in part (c).) Work with the relation f = f + f 3 2 1
and substitute the expressions for f and f from part (a). Rewrite the expression as a single fraction and then in the
1 2
3 3
α −β
numerator use α 2
+ α = α(α + 1) and a similar equation involving β. Now prove that f 3 = .
α −β
– – n n
1 + √5 1 − √5 α −β
(c) Use induction to prove that for each natural number n , if α = and β = , then fn = .
2 2 α −β
Note: This formula for the n Fibonacci number is known as Binet's formula, named after the French mathematician
th
Conjecture. Let f , f , . . . , f , . . . be the sequence of the Fibonacci numbers. For each natural number n , the
1 2 m
numbers f f , 2f f , and (f
n n+3 n+1 +f
n+2 ) form a Pythagorean triple.
2
n+1
2
n+2
6. Prove Proposition 4.14. Let a, r ∈ R , If a geometric sequence is defined by a = a and for each n ∈ N , 1
7. Prove Proposition 4.15. Let a, r ∈ R . If the sequence S , S , . . . , S , . . . is defined by S = a and for each n ∈ N ,
1 2 n 1
9. For the sequence a 1, a2 , . . . , an , . . . , assume that a 1 =2 and that for each n ∈ N , a n+1 = an + 5 .
(b) Make a conjecture for a formula for a for each n for each n ∈ N . n
Let c and d be real numbers. Define the sequence a 1, a2 , . . . , an , . . . by a 1 =c and for each n ∈ N , a n+1 = an + d .
(b) Make a conjecture for a formula for a for each n for each n ∈ N . n
−−−− −
12. For the sequence a , a , . . . , a , . . ., assume that a = 1 and that for each n ∈ N , a
1 2 n = √5 + a 1. n+1 n
(b) Make a conjecture for a formula for a for each n for each n ∈ N . n
16. For the sequence a , a , . . . , a , . . ., assume that a = 1 , and for each natural number n ,
1 2 n 1
(c) Make a conjecture about a formula for a in terms of n that does not involve a summation or a recursion.
n
Determine which terms in this sequence are divisible by 4 and prove that your answer is correct.
18. The Lucas numbers are a sequence of natural numbers L , L , L , . . . , L , . . ., which are defined recursively as
1 2 3 n
follows:
List the first 10 Lucas numbers and the first ten Fibonacci numbers and then prove each of the following propositions.
The Second Principle of Mathematical Induction may be needed to prove some of these propositions.
19. There is a formula for the Lucas number similar to the formula for the Fibonacci numbers in Exercise (4). Let
– –
1 + √5 1 − √5
α = and β = . Prove that for each n ∈ N , L n =α
n
+β
n
.
2 2
20. Use the result in Exercise (19), previously proven results from Exercise (18), or mathematical induction to prove each
of the following results about Lucas numbers and Fibonacci numbers.
f2n
(a) For each n ∈ N , L n =
fn
fn + Ln
(b) For each n ∈ N , f n+1 = .
2
Ln + 5 fn
(c) For each n ∈ N , L n+1 = .
2
(d) For each n ∈ N with n ≥ 2 , L = f +f . n n+1 n−1
(a)
Let fn be the n th Fibonacci number, and let α be the positive solution of the equation x
2
= x +1 . So
–
1 + √5
α = . For each natural number n , f n ≤α
n−1
.
2
Proof
We will use a proof by mathematical induction. For each natural number n , we let P (n) be, “f ≤ α .” n
n−1
We first note that P (1) is true since f = 1 andα = 1 . We also notice that P (2) is true since f = 1 and,
1
0
2
hence, f ≤ α .
2
1
This proves that if P (1) , P (2) , ..., P (k) are true, then P (k + 1) is true. Hence, by the Second Principle of
Mathematical Induction, we conclude that or each natural number n , f ≤ α . n
n−1
2
= (1 + i ) R.
(a) Explain why V = V + i ⋅ V . Then use the formula for V2 to determine a formula for V in terms of i and R .
3 2 2 3
(c) Write the recurrence relation in Part (22b) so that it is in the form of a recurrence relation for a geometric sequence.
What is the initial term of the geometric sequence and what is the common ratio?
(d) Use Proposition 4.14 to determine a formula for V in terms of I , R , and n .
n
23. The Future Value of an Ordinary Annuity. For an ordinary annuity, R dollars is deposited in an account at the
end of each compounding period. It is assumed that the interest rate, i, per compounding period for the account
remains constant.
Let S represent the amount in the account at the end of the t th compounding period. S is frequently called the future
t t
interest and grow to (1 + i)S . In addition, a new deposit of R dollars will be made at the end of the second month.
1
So
S2 = R + (1 + i)S1 (4.3.13)
(a) For each n ∈ N , use a similar argument to determine a recurrence relation for S in terms of R , i, and S .
n+1 n
(b) By recognizing this as a recursion formula for a geometric series, use Proposition 4.16 to determine a formula for
S in terms of R , i , and n that does not use a summation. Then show that this formula can be written as
n
n
(1 + i ) −1
Sn = R( ). (4.3.14)
i
(c) What is the future value of an ordinary annuity in 20 years if $200 dollars is deposited in an account at the end of
Answer
Add texts here. Do not delete this text first.
(a) 1 ∈ T , and
(b) For every k ∈ N , if k ∈ T , then (k + 1) ∈ T .
then T = N
Procedure for a Proof by Mathematical Induction
To prove (∀n ∈ N (P(n))\)
Basis step : ProveP (1).
(4.S.1)
Inductive step : Prove that for eachk ∈ N, ifP (k)is true, thenP (k + 1)is true.
(a) M ∈ T , and
(b) For every k ∈ Z with k ≥ M , if k ∈ T , then (k + 1) ∈ T .
(a) M ∈ T , and
(b) For every k ∈ Z with k ≥ M , if {M , M + 1, . . . , k} ⊆ T , then (k + 1) ∈ T .
geometric sequence.
Theorem 4.16. Let a, r ∈ R and r ≠ 1 . If the sequence S , S , . . . , S , . . . is defined by S = a and for each n ∈ N , S
1 2 n 1 n+1 = a+r⋅ S n ,
n
1 −r
then for each n ∈ N , Sn = a( ) .
1 −r
1 7/21/2021
5.1: Sets and Operations on Sets
Before beginning this section, it would be a good idea to review sets and set notation, including the roster method and set
builder notation, in Section 2.3.
The set consisting of all natural numbers that are in A and are in B is the set {1, 3, 5};
The set consisting of all natural numbers that are in A or are in B is the set {1, 2, 3, 4, 5, 6, 7, 9}; and
The set consisting of all natural numbers that are in A and are not in B is the set {2, 4, 6}.
These sets are examples of some of the most common set operations, which are given in the following definitions.
Definition: intersection
Let A and B be subsets of some universal set U . The intersection of A and B , written A ∩ B and read “A intersect B ,”
is the set of all elements that are in both A and B . That is,
The union of A and B , written A ∪ B and read “A union B ,” is the set of all elements that are in A or in B . That is,
A ∪ B = {x ∈ U | x ∈ A or x ∈ B}. (5.1.3)
Definition: complement
Let A and B be subsets of some universal set U . The set difference of A and B , or relative complement of B with respect
to A , written A − B and read “A minus B ” or “the complement of B with respect to A ,” is the set of all elements in A
that are not in B . That is,
A − B = {x ∈ U | x ∈ A and x ∉ B}. (5.1.4)
The complement of the set A , written A and read “the complement of A ,” is the set of all elements of U that are not in
c
A . That is,
c
A = {x ∈ U | x ∉ A}. (5.1.5)
For the rest of this preview activity, the universal set is U , and we will use the following subsets of
= {0, 1, 2, 3, . . . , 10}
U:
So in this case, A ∩ B = {x ∈ U | x ∈ A and x ∈ B} = {2, 3}. Use the roster method to specify each of the following
subsets of U .
1. A ∪ B
2. Ac
3. Bc
We can now use these sets to form even more sets. For example,
c
A∩B = {0, 1, 2, 3, 9} ∩ {0, 1, 7, 8, 9, 10} = {0, 1, 9}. (5.1.7)
5. A ∩ B
c c
6. A ∪ B
c c
7. (A ∩ B) c
1 In A and not in B A −B
2 In A and in B A ∩ B
3 In B and not in A B −A
We can use these regions to represent other sets. For example, the set A ∪ B is represented by regions 1, 2, and 3 or the
shaded region in Figure 5.1.2.
2. B c
3. A ∪ B
c
4. A ∪ B
c c
5. (A ∩ B) c
6. (A ∪ B) − (A ∩ B)
One reason for the definition of proper subset is that each set is a subset of itself. That is,
If A is a set, then A ⊆ A
However, sometimes we need to indicate that a set X is a subset of Y but X ≠ Y . For example, if
X = {1, 2} and Y = {0, 1, 2, 3}.
then X ⊂ Y . We know that X ⊆ Y since each element of X is an element of Y , but X ≠ Y since 0 ∈ Y and 0 ∉ X . (Also,
3 ∈ Y and 3 ∉ X .) Notice that the notations A ⊂ B and A ⊆ B are used in a manner similar to inequality notation for
Theorem 5.1
For any set B , ∅ ⊆ B and B ⊆ B .
Theorem 5.2
Let A and B be subsets of some universal set U . Then A = B if and only if A ⊆ B and B ⊆ A .
, ,
A = {1, 2, 4} B = {1, 2, 3, 5} C = {x ∈ U | x
2
≤ 2} .
In each of the following, fill in the blank with one or more of the symbols ⊂, ⊆, =, ≠, ∈ or ∉ so that the resulting
statement is true. For each blank, include all symbols that result in a true statement. If none of these symbols makes a true
statement, write nothing in the blank.
A _____________ B ∅ _____________ A
6 _____________ A B _____________ ∅
Answer
Add texts here. Do not delete this text first.
In this diagram, there are eight distinct regions, and each region has a unique reference number. For example, the set A is
represented by the combination of regions 1, 2, 4, and 5, whereas the set C is represented by the combination of regions 4, 5, 6,
and 7. This means that the set A ∩ C is represented by the combination of regions 4 and 5. This is shown as the shaded region
in Figure 5.1.3.
Finally, Venn diagrams can also be used to illustrate special relationships be- tween sets. For example, if A ⊆ B , then the
circle representing A should be completely contained in the circle for B . So if A ⊆ B , and we know nothing about
(a) (A ∩ B) ∩ C
(b) (A ∩ B) ∪ C
(c) (A ∪ B)
c
(d) A ∩ (B ∪ C )
c
Answer
Add texts here. Do not delete this text first.
When dealing with the power set of A , we must always remember that ∅ ⊆ A and A ⊆ A . For example, if A = {a, b} , then
the subsets of A are
∅, {a}, {b}, {a, b}. (5.1.9)
Now let B = {a, b, c} . Notice that B = A ∪ {c} . We can determine the subsets of B by starting with the subsets of A in
(5.1.10). We can form the other subsets of B by taking the union of each set in (5.1.10) with the set {c}. This gives us the
following subsets of B .
{c}, {a, c}, {b, c}, {a, b, c}. (5.1.10)
So the subsets of B are those sets in (5.1.10) combined with those sets in (5.1.11). That is, the subsets of B are
∅, {a}, {b}, {a, b}, {c}, {a, c}, {b, c}, {a, b, c}, (5.1.11)
Theorem 5.5.
Let n be a nonnegative integer and let T be a subset of some universal set. If the set T has n elements, then the set T has
2 subsets. That is, P(T ) has 2 elements.
n n
Definition: cardinality
The number of elements in a finite set A is called the cardinality of A and is denoted by card(A )
Example
card(∅) = 0;
card({a , b }) = 2
card(P({a, b})) = 4
Theoretical Note: There is a mathematical way to distinguish between finite and infinite sets, and there is a way to define the
cardinality of an infinite set. We will not concern ourselves with this at this time. More about the cardinality of finite and
infinite sets is discussed in Chapter 9.
The integers consist of the natural numbers, the negatives of the natural numbers, and zero. If we let
= {. . . , −4, −3, −2, −1}, then we can use set union and write
−
N
Z =N
−
∪ {0} ∪ N .
So we see that N ⊆ Z , and in fact, N ⊂ Z .
We need to use set builder notation for the set Q of all rational numbers, which consists of quotients of integers.
m
Q={ | m, n ∈ Zand n ≠ 0}
n
n
Since any integer n can be written as n = , we see that Z ⊆ Q .
1
We do not yet have the tools to give a complete description of the real numbers. We will simply say that the real numbers
consist of the rational numbers and the irrational numbers. In effect, the irrational numbers are the complement of the set of
rational numbers Q in R. So we can use the notation Q = {x ∈ R | x ∉ Q} and write
c
R = Q∪Q
c
and Q ∩ Q c
=∅ .
A number system that we have not yet discussed is the set of complex numbers. The complex numbers, C , consist of all
−
−−
numbers of the form a + bi , where a, b ∈ R and i = √−1 (or i = −1 ). That is,2
C = {a + bi | a, b ∈ Rand i = sqrt−1}.
2
(a + bi)(c + di) = ac + adi + bci + bdi (5.1.12)
D = {x ∈ R | x > 0}.
Respond to each of the following questions. In each case, explain your answer.
C = {x ∈ Z | x ≥ −3},
D = {1, 2, 3, 4},
4 _____________ B D _____________ ∅
4. Write all of the proper subset relations that are possible using the sets of numbers N, Z, Q, and R.
5. For each statement, write a brief, clear explanation of why the statement is true or why it is false.
A = {3, 4, 5, 6, 7}
B = {1, 5, 7, 9}
C = {3, 6, 9}
D = {2, 4, 6, 8}
Use the roster method to list all of the elements of each of the following sets.
(a) A ∩ B
(b) A ∪ B
(c) (A ∪ B) c
(d) A ∩ B
c c
(e) (A ∪ B) ∩ C
(f) A ∩ C
(g) B ∩ C
(h) (A ∩ C ) ∪ (B ∩ C )
(i) B ∩ D
(j) (B ∩ D) c
(k) A − D
(l) B − D
(m) (A − D) ∪ (B − D)
(n) (A ∪ B) − D
8. Let U =N , and let
A = {x ∈ N | x ≥ 7},
B = {x ∈ N | x is odd},
D = {x ∈ N | x is even},
Use the roster method to list all of the elements of each of the following sets.
(a) A ∩ B
(b) A ∪ B
(c) (A ∪ B) c
(d) A ∩ B
c c
(e) (A ∪ B) ∩ C
(f) (A ∩ C ) ∪ (B ∩ C )
(g) B ∩ D
(h) (B ∩ D) c
(i) A − D
(j) B − D
(k) (A − D) ∪ (B − D)
(l) (A ∪ B) − D
9. let P , Q, R , and S , be subsets of a universal set U , Assume that (P − Q) ⊆ (R ∩ S) .
(a) A ⊆ C
(b) A ∩ B = ∅
(c) A ⊈ B , B ⊈ A , C ⊆ A , and C ⊈ B
(d) A ⊆ B , C ⊆ B , and A ∩ C = ∅
12. Let A , B , and C be subsets of some universal sets U . For each of the following, draw a general Venn diagram for the
three sets and then shade the indicated region.
(a) A ∩ B
(b) A ∩ C
(c) (A ∩ B) ∪ (A ∩ C )
(d) B ∪ C
(e) A ∩ (B ∪ C )
(f) (A ∩ B) − C
13. We can extend the idea of consecutive integers (See Exercise (2) in Section 3.5) to represent four consecutive integers
as m, m + 1 , m + 2 , and m + 3 , where m is an integer. There are other ways to represent four consecutive integers.
For example, if k ∈ Z , then k − 1 , k , k + 1 , and k + 2 are four consecutive integers.
(a) Prove that for each n ∈ Z , n is the sum of four consecutive integers if and only if n ≡ 2 (mod 4).
(b) Use set builder notation or the roster method to specify the set of integers that are the sum of four consecutive
integers.
Is the following proposition concerning sets true or false? Either provide a proof that it is true or a counterexample
showing it is false.
If A and B are subsets of some universal set, then exactly one of the following is true:
A ⊆ B;
A = B;
B ⊆ A.
i. the intersection of the interval [−3, 7] with the interval (5, 9];
ii. the union of the interval [−3, 7] with the interval (5, 9];
iii. the set difference [−3, 7] − (5, 9].
(d) Write the set {x ∈ R | |x| ≤ 0.01} using interval notation.
(e) Write the set {x ∈ R | |x| > 2} as the union of two intervals.
16. More Work with Intervals. For this exercise, use the interval notation described in Exercise 15.
(a) Determine the intersection and union of [2, 5] and [−1, +∞).
(b) Determine the intersection and union of [2, 5] and [3.4, +∞).
(c) Determine the intersection and union of [2, 5] and [7, +∞).
(d) Explain why the intersection of [a, b] and [c, +∞) is either a closed interval, a set with one element, or the empty set.
(e)Explain why the union of [a, b] and [c, +∞) is either a closed ray or the union of a closed interval and a closed ray.
17. Proof of Theorem 5.5. To help with the proof by induction of Theorem 5.5, we first prove the following lemma. (The
idea for the proof of this lemma was illustrated with the discussion of power set after the definition on page 222.)
Lemma 5.6
Let A and B be subsets of some universal set. If A = B ∪ {x} , where x ∉ B , then any subset of A is either a subset
of B or a set of the form C ∪ {x}, where C is a subset of B .
Proof
Let A and B be subsets of some universal set, and assume that A = B ∪ {x} where x ∉ B . Let Y be a subset of
A . We need to show that Y is a subset of B or that Y = C ∪ {x} , where C is some subset of B. There are two
To begin the induction proof of Theorem 5.5, for each nonnegative integer n , we let P (n) be, “If a finite set has exactly
n elements, then that set has exactly 2 subsets.”
n
(a) Verify that P (0) is true. (This is the basis step for the induction proof.)
(b) Verify that P (1) and P (2) are true.
(c) Now assume that k is a nonnegative integer and assume that P (k) is true. That is, assume that if a set has k elements,
then that set has 2 subsets. (This is the inductive assumption for the induction proof.) Let T be a subset of the universal
k
set with card(T ) = k + 1 , and let x ∈ T . Then the set B = T − {x} has k elements.
Now use the inductive assumption to determine how many subsets B has. Then use Lemma 5.6 to prove that T has twice
as many subsets as B . This should help complete the inductive step for the induction proof.
Answer
Add texts here. Do not delete this text first.
Complete the know-show table in Table 5.1 for the proposition that S is a subset of T .
This table is in the form of a proof method called the choose-an-element method. This method is frequently used
when we encounter a universal quantifier in a statement in the backward process. (In this case, this is Step Q1.) The
key is that we have to prove something about all elements in Z. We can then add something to the forward process by
choosing an arbitrary element from the set S. (This is done in Step P 1.) This does not mean that we can choose a
specific element of S . Rather, we must give the arbitrary element a name and use only the properties it has by being a
member of the set S . In this case, the element is a multiple of 6.
Table 5.1: Know-show table for Preview Activity 5.2.1
Step Know Reason
2. Draw a general Venn diagram for two sets, A and B . First determine the region that corresponds to the set A − B and
then, on the Venn diagram, shade the region corresponding to A − (A − B) and shade the region corresponding to
A ∩ B . What appears to be the relationship between these two sets? Explain.
In this section, we will learn how to prove certain relationships about sets. Two of the most basic types of relationships
between sets are the equality relation and the subset relation. So if we are asked a question of the form, “How are the sets A
and B related?”, we can answer the question if we can prove that the two sets are equal or that one set is a subset of the other
Proposition 5.7
Let S be the set of all integers that are multiples of 6, and let T be the set of all even integers. Then S is a subset of T .
Proof
Let S be the set of all integers that are multiples of 6, and let T be the set of all even integers. We will show that S is a
subset of T by showing that if an integer x is an element of S , then it is also an element of T .
Let x ∈ S . (Note: The use of the word “let” is often an indication that the we are choosing an arbitrary element.) This
means that x is a multiple of 6. Therefore, there exists an integer m such that
x = 6m .
Since 6 = 2 ⋅ 3 , this equation can be written in the form
x = 2(3m) .
By closure properties of the integers, 3m is an integer. Hence, this last equation proves that x must be even. Therefore,
we have shown that if x is an element of S , then x is an element of T , and hence that S ⊆ T .
Answer
Add texts here. Do not delete this text first.
Proposition 5.10.
Let A and B be subsets of the universal set U . If A ⊆ B , then B c c
⊆A .
1. The conclusion of the conditional statement is B ⊆ A . Explain why we should try the choose-an-element
c c
P A ⊆ B Hypothesis
P 1 Let x ∈ B
c
. Choose an arbitrary element of B .
c
Q 1 If x ∈ B
c
, then x ∈ A
c
.
Q B
c c
⊆ A Definition of "subset"
Answer
Add texts here. Do not delete this text first.
Proof
Let A and B be subsets of some universal set. We will prove that A − (A − B) = A ∩ B by proving that
A − (A − B) ⊆ A ∩ B and that A ∩ B ⊆ A − (A − B) .
First, let x ∈ A − (A − B) . This means that
x ∈ A and x ∉ (A − B) .
We know that an element is in (A − B) if and only if it is in A and not in B. Since x ∉ (A − B) , we conclude that
x ∉ A or x ∈ B . However, we also know that x ∈ A and so we conclude that x ∈ B . This proves that
x ∈ A and x ∈ B .
This means that x ∈ A ∩ B , and hence we have proved that A − (A − B) ⊆ A ∩ B .
Now we choose y ∈ A ∩ B . This means that
y ∈ A and y ∈ B.
We note that y ∈ (A − B) if and only if y ∈ A and y ∉ B and hence, y ∉ (A − B) if and only if y ∉ A or y ∈ B.
Since we have proved that y ∈ B, we conclude that y ∉ (A − B) , and hence, we have established that y ∈ A and
y ∉ (A − B) . This proves that if y ∈ A ∩ B , then y ∈ A − (A − B) and hence, A ∩ B ⊆ A − (A − B) .
Proposition 5.13.
Let A and B be subsets of some universal set. Then A − B = A ∩ B . c
Answer
Add texts here. Do not delete this text first.
Disjoint Sets
Earlier in this section, we discussed the concept of set equality and the relation of one set being a subset of another set. There
are other possible relationships between two sets; one is that the sets are disjoint. Basically, two sets are disjoint if and only if
they have nothing in common. We express this formally in the following definition.
Definition: disjoint
Let A and B be subsets of the universal set U . The sets A and B are said to be disjoint provided that A ∩ B = ∅ .
For example, the Venn diagram in Figure 5.5 shows two sets A and B with A ⊆ B . The shaded region is the region that
represents B . From the Venn diagram, it appears that A ∩ B = ∅ . This means that A and B are disjoint. The preceding
c c c
Proposition 5.14
Let A and B be subsets of some universal set. Then A ⊆ B if and only if A ∩ B c
=∅ .
Proof
Let A and B be subsets of some universal set. We will first prove that if A ⊆B , then A∩B
c
=∅ , by
proving its contrapositive. That is, we will prove
If A ∩ B c
≠∅ , then A ⊈ B .
So assume that A ∩ B ≠ ∅ . We will prove that
c
A ⊈B by proving that there must exist an element x
x ∈ A and x ∈ B . c
Now the fact that x ∈ B means that x ∉ B . Hence, we can conclude that
c
x ∈ A and x ∉ B .
This means that A ⊈ B , and hence, we have proved that if A ∩ B c
≠∅ , then A ⊈ B , and therefore, we
have proved that if A ⊆ B , then A ∩ B = ∅ . c
Answer
Add texts here. Do not delete this text first.
A Final Comment
We have used the choose-an-element method to prove Propositions 5.7, 5.11, and 5.14. Proofs involving sets that use this
method are sometimes referred to aselement-chasing proofs. This name is used since the basic method is to choose an
arbitrary element from one set and “chase it” until you prove it must be in another set.
(a) List at least five different elements of the set A and at least five elements of the set B .
(b) Is A ⊆ B ? Justify your conclusion with a proof or a counterexample.
(c) Is B ⊆ A ? Justify your conclusion with a proof or a counterexample.
4. Let C = {x ∈ Z | x ≡ 7 (mod 9)} and D = {x ∈ Z | x ≡ 1 (mod 3)} .
(a) List at least five different elements of the set C and at least five elements of the set D.
(b) Is C ⊆ D ? Justify your conclusion with a proof or a counterexample.
(c) Is D ⊆ C ? Justify your conclusion with a proof or a counterexample.
5. In each case, determine if A ⊆ B , B ⊆ A , A = B , or A ∩ B = ∅ or none of these.
For example, if x(x − 2) < 0 , then we can conclude that either (1) x < 0 and x − 2 > 0 or (2) x > 0 and x − 2 < 0 .
However, in the first case, we must have x < 0 and x > 2 , and this is impossible. Therefore, we conclude that x > 0
and x − 2 < 0 , which means that 0 < x < 2 .
(b) {x ∈ R | x 2
− 5x + 6 < 0} = {x ∈ R | 2 < x < 3}
(c) {x ∈ R | x 2
≥ 4} = {x ∈ R | x ≤ −2} cup{x ∈ R | x ≥ 2}
7. Let A and B be subsets of some universal set U . Prove each of the following:
(a) A ∩ B ⊆ A
(b) A ⊆ A ∪ B
(c) A ∩ A = A
(d) A ∪ A = A
(e) A ∩ ∅ = ∅
(f) A ∪ ∅ = A
8. Let A and B be subsets of some universal set U . From Proposition 5.10, we know that if A ⊆ B , then B c
⊆A
c
. Now
prove the following proposition:
For all sets (A\) and B be subsets of some universal set U , A ⊆ B if and only if B c
⊆A
c
.
9. Is the following proposition true or false? Justify your conclusion with a proof or a counterexample.
For all sets (A\) and B be subsets of some universal set U , the sets A ∩ B and A − B are disjoint.
10. Complete the proof of Proposition 5.14 by proving the following conditional statement:
11. Let A , B , C , and D be subsets of some universal set U . Are the following propositions true or false? Justify your
conclusions.
(a) If A ⊆ B and C ⊆ D and A and C are disjoint, then B and D are disjoint.
(b) If A ⊆ B and C ⊆ D and B and D are disjoint, then A and C are disjoint.
12. Let A , B , and C be subsets of a universal set U . Prove:
(a) If A ⊆ B , then A ∩ C ⊆ B ∩ C .
(b) If A ⊆ B , then A ∪ C ⊆ B ∪ C .
13. Let A , B , and C be subsets of a universal set U . Are the following propositions true or false? Justify your
conclusions.
(a) If A ∩ C ⊆ B ∩ C , then A ⊆ B .
(b) If A ∪ C ⊆ B ∪ C , then A ⊆ B .
(c) If A ∪ C = B ∪ C , then A = B .
(d) If A ∩ C = B ∪ C , then A = B .
(e) If A ∪ C = B ∪ C and A ∩ C = B ∩ C , then A = B .
14. Prove the following proposition:
For all sets A , B , and C that are subsets of some universal set, if A ∩ B = A ∩ C and A ∩ B = A ∩ C , then
c c
B =C.
15. Are the following biconditional statements true or false? Justify your conclusion. If a biconditional statement is found
to be false, you should clearly determine if one of the conditional statements within it is true and provide a proof of
this conditional statement.
(a) For all subsets A and B of some universal set U , A ⊆ B if and only if A ∩ B = ∅ .
c
(b) For all subsets A and B of some universal set U , A ⊆ B if and only if A ∪ B = B .
(c) For all subsets A and B of some universal set U , A ⊆ B if and only if A ∩ B = A .
(d) For all subsets A , B , and C of some universal set U , A ⊆ B ∪ C if and only if A ⊆ B or A ⊆ C .
(e) For all subsets A , B , and C of some universal set U , A ⊆ B ∪ C if and only if A ⊆ B and A ⊆ C .
(a) Using assumption (i), what conclusion(s) can be made if it is known that a ∈ T ?
(b) Using assumption (ii), what conclusion(s) can be made if it is known that a ∈ T ?
(c) Using all three assumptions, either prove that T ⊆ Y or explain why it is not possible to do so.
17. Evaluation of Proofs
See the instructions for Exercise (19) on page 100 from Section 3.1.
(a)
Let A , B , and C be subsets of some universal set. If A ⊈ B and B ⊈ C , then A ⊈ C .
Proof
We assume that A, B, and C be subsets of some universal set and that A ⊈ B and B ⊈ C . This means that
there exists an element x in A that is not in B and there exists an element x that is in B and not in C .
Therefore, x ∈ A and x ∉ C , and we have proved that A ⊈ C .
(b)
Let A , B , and C be subsets of some universal set. If A ∩ B = A ∩ C , then B = C .
Proof
We assume that A ∩ B = A ∩ C and prove that B = C . We will first prove that B ⊆ C .
So let x ∈ B . If x ∈ A , then x ∈ A ∩ B , and hence, x ∈ A ∩ C . From this we can conclude that x ∈ C . If
x ∉ A , then x ∉ A ∩ B , and hence, x ∉ A ∩ C . However, since x ∉ A , we may conclude that x ∈ C .
Therefore, B ⊆ C .
The proof that C ⊆B may be done in a similar manner. Hence, B = C .
Proof
Assume that A ⊈ B and B ⊆ C . Since A ⊈ B , there exists an element x such that x ∈ A and x ∉ B . Since
B ⊆ C , we may conclude that x ∉ C . Hence, x ∈ A and x ∉ C , and we have proved that A ⊈ C .
Proposition 5.16.
Let a ,
and b t be integers with t ≠0 . If t divides a and t divides b , then for all integers x and y , t divides
(ax + by) .
(a) Whenever we encounter a new proposition, it is a good idea to explore the proposition by looking at specific
examples. For example, let a = 20 , b = 12 , and t = 4 . In this case, t | a and t | b . In each of the following cases,
i. x = 1 , y = 1 .
ii. x = 1 , y = −1 .
iii. x = 2 , y = 2 .
iv. x = 2 , y = −3 .
v. x = −2 , y = 3 .
vi. x = −2 , y = −5 .
(b) Repeat Part (18a) with a = 21 , b = 6 , and t = 3 .
Notice that the conclusion of the conditional statement in this proposition involves the universal quantifier. So in the
backward process, we would have
Q : For all integers x and y , t divides ax + by .
The “elements” in this sentence are the integers x and y . In this case, these integers have no “given property” other than
that they are integers. The “something that happens” is that t divides (ax + by) . This means that in the forward process,
we can use the hypothesis of the proposition and choose integers x and y . That is, in the forward process, we could have
P : a , b , and t are integers with t ≠ 0 , t divides a and t divides b .
P 1: Let x ∈ Z and let y ∈ Z .
(c) Complete the following proof of Proposition 5.16.
Proof. Let a , b and t be integers with t ≠0 , and assume that t divides a and t divides b . We will prove that for all
integers x and y , t dibides (ax + by) .
So let x ∈ Z and let y ∈ Z . Since t divides a , there exists an integer m such that ... .
Answer
Add texts here. Do not delete this text first.
other, shade the region that represents A ∩ B . Explain carefully how you determined these regions.
c c
2. Based on the Venn diagrams in Part (1), what appears to be the relationship between the sets ((A \cup B)^c\) and
A ∩B ?
c c
Some of the properties of set operations are closely related to some of the logical operators we studied in Section 2.1.
This is due to the fact that set intersection is defined using a conjunction (and), and set union is defined using a
disjunction (or). For example, if A and B are subsets of some universal set U , then an element x is in A ∪ B if and only
if x ∈ A or x ∈ B .
3. Use one of De Morgan’s Laws (Theorem 2.8 on page 48) to explain carefully what it means to say that an element x is
not in A ∪ B .
4. What does it mean to say that an element x is in A ? What does it mean to say that an element x is in B ?
c c
6. Compare your response in Part (3) to your response in Part (5). Are they equivalent? Explain.
7. How do you think the sets (A ∪ B) and A ∩ B are related? Is this consistent with the Venn diagrams from Part
c c c
(1)?
2. Assume that P , Q, and R are statements and that we have proven that the following conditional statements are true:
Theorem 5.17
Let A , B , and C be subsets of some universal set U . Then
A∩B ⊆ A and A ⊆ A ∪ B .
If A ⊆ B , then A ∩ C ⊆ B ∩ C and A ∪ C ⊆ B∪C .
The next theorem provides many of the properties of set operations dealing with intersection and union. Many of these results
may be intuitively obvious, but to be complete in the development of set theory, we should prove all of them. We choose to
prove only some of them and leave some as exercises.
Associative Laws (A ∩ B) ∩ C = A ∩ (B ∩ C )
(A ∪ B) ∪ C = A ∪ (B ∪ C )
Distributive Laws A ∩ (B ∪ C ) = (A ∩ B) ∪ (A ∩ C )
A ∪ (B ∩ C ) = (A ∪ B) ∩ (A ∪ C )
Before proving some of these properties, we note that in Section 5.2, we learned that we can prove that two sets are equal by
proving that each one is a subset of the other one. However, we also know that if S and T are both subsets of a universal set
U , then
However, we know that if P and Q are statements, then P wedgeQ is logically equivalent to Q∧P . Consequently, we
can conclude that
x ∈ A and x ∈ B if and only if x ∈ B and x ∈ A. (5.3.2)
This means that we can use (5.3.1), (5.3.2) and (5.3.3) to conclude that
x ∈ A∩B if and only if x ∈ B ∩ A ,
and, hence, we have proved that A ∩ B = B ∩ A .
□
Answer
Add texts here. Do not delete this text first.
hence, y ∈ A ∪ (B ∩ C ) .
In both cases, we have proved that y ∈ A ∪ (B ∩ C ) . This proves that (A ∪ B) ∩ (A ∪ C ) ⊆ A ∪ (B ∩ C ) . The two
subset relations establish the equality of the two sets. Thus, A ∪ (B ∩ C ) = (A ∪ B) ∩ (A ∪ C ) .
square
Theorem 5.20
Let A , B , and C be subsets of some universal set U . Then the following are true:
Basic Properties (A c c
) =A
c
A−B = A∩B
∅ = U and U
c c
=∅
De Morgan's Laws (A ∩ B) c c
=A
c
∪B
c c c
(A ∪ B) =A ∩B
and
x ∉ A ∪ B if and only if x ∉ A and x ∉ B. (5.3.5)
2. Determine which properties from Theorems 5.18 and 5.20 justify each of the last three steps in the following outline of
the proof that (A ∪ B) − C = (A − C ) ∪ (B − C ) .
c
(A ∪ B) − C = (A ∪ B) ∩ C (Theorem 5.20)
c
= C ∩ (A ∪ B) (Commutative Property)
c c
= (C ∩ A) ∪ (C ∩ B) (5.3.9)
c c
= (A ∩ C ) ∪ (B ∩ C )
= (A − C ) ∪ (B − C )
Note: It is sometimes difficult to use the properties in the theorems when the theorems use the same letters to represent
the sets as those being used in the current problem. For example, one of the distributive properties from Theorems 5.18
can be written as follows: For all sets X, Y , and Z that are subsets of a universal set U ,
(X ∩ (Y ∪ Z) = (X ∩ Y ) ∪ (X ∩ Z).
Answer
Theorem 5.22
Let A and B be subsets of some universal set U . The following are equivalent:
1. A ⊆ B
2. A ∩ B = ∅ c
3. A ∪ B = U
c
Proof
To prove that these are equivalent conditions, we will prove that (1) implies (2), that (2) implies (3), and that (3)
implies (1).
Let A and B be subsets of some universal set U . We have proved that (1) implies (2) in Proposition 5.14.
To prove that (2) implies (3), we will assume that A ∩ B c
=∅ and use the fact that ∅c
=U . We then see that
(A ∩ B )
c c c
=∅ .
Then, using one of De Morgan's Laws, we obtain
begin{array} {rcl} {A^c \cup (B^c)^c} &= & {U} \\ {A^c \cup B} &= & {U.} \end{array}
∪ B . Since x ∉ A , we conclude that x ∈ B . This proves that A ⊆ B and hence that (3) implies (1).
c c
x ∈ A
Since we have now proved that (1) implies (2), that (2) implies (3), and that (3) implies (1), we have proved that the
three conditions are equivalent.
(a) (A ) = A
c c
(b) A − ∅ = A
(c) ∅ = U
c
(d) U = ∅ c
2. Let A , B , and C be subsets of some universal set U . As part of Theorem 5.18, we proved one of the distributive laws.
Prove the other one. That is, prove that
A ∩ (B ∪ C ) = (A ∩ B) ∪ (A ∩ C ). (5.3.10)
3. Let A , B , and C be subsets of some universal set U . As part of Theorem 5.20, we proved one of De Morgan’s Laws.
Prove the other one. That is, prove that
(a) Draw two general Venn diagrams for the sets A , B , and C . On one, shade the region that represents A − (B ∪ C ) ,
and on the other, shade the region that represents (A − B) ∩ (A − C ) . Based on the Venn diagrams, make a
conjecture about the relationship between the sets A − (B ∪ C ) and (A − B) ∩ (A − C ) .
(b) Use the choose-an-element method to prove the conjecture from Exercise (4a).
(c) Use the algebra of sets to prove the conjecture from Exercise (4a).
5. Let A , B , and C be subsets of some universal set U .
(a) Draw two general Venn diagrams for the sets A , B , and C . On one, shade the region that represents A − (B ∩ C ) ,
and on the other, shade the region that represents (A − B) ∪ (A − C ) . Based on the Venn diagrams, make a
conjecture about the relationship between the sets A − (B ∩ C ) and (A − B) ∪ (A − C ) .
(b) Use the choose-an-element method to prove the conjecture from Exercise (5a).
(c) Use the algebra of sets to prove the conjecture from Exercise (5a).
6. Let A , B , and C be subsets of some universal set U . Prove or disprove each of the following:
(a) (A ∩ B) − C = (A − C ) ∩ (B − C )
(b) (A ∪ B) − (A ∩ B) = (A − B) ∪ (B − A)
7. Let A , B , and C be subsets of some universal set U .
(a) Draw two general Venn diagrams for the sets A , B , and C . On one, shade the region that represents A − (B − C ) ,
and on the other, shade the region that represents (A − B) − C . Based on the Venn diagrams, make a conjecture
about the relationship between the sets A − (B − C ) and (A − B) − C .
(b) Prove the conjecture from Exercise (7a).
8. Let A , B , and C be subsets of some universal set U .
(a) Draw two general Venn diagrams for the sets A , B , and C . On one, shade the region that represents A − (B − C ) ,
and on the other, shade the region that represents (A − B) ∪ (A − C ) . Based on the Venn diagrams, make a
c
(a) A − (A ∩ B ) = A ∩ B
c
(b) (A ∪ B) ∩ A = A − B
c c
(c) (A ∪ B) − A = B − A
(d) (A ∪ B) − B = A − (A ∩ B)
(e) (A ∪ B) − (A ∩ B) = (A − B) ∪ (B − A)
12. Evaluation of proofs
See the instructions for Exercise (19) on page 100 from Section 3.1.
(a)
Let A , B , and C be subsets of some universal set U , then A − (B − C ) = A − (B ∪ C ) .
c c
= (A ∩ B ) ∩ (A ∩ C )
c c
= A ∩ (B ∩C ) (5.3.12)
c
= A ∩ (B ∪ C )
= A − (B ∪ C )
Theorem 5.3.1
Let A , B , and C be subsets of some universal set U , then A − (B ∪ C ) = (A − B) ∩ (A − C ) .
Proof
We first write A − (B ∪ C ) = A ∩ (B ∪ C ) c
and then use one of De Morgan's Laws to obtain
A − (B ∪ C ) = A ∩ (B
c
∩C )
c
.
We now use the fact that A = A ∩ A and obtain
c c
A − (B ∪ C ) = A∩A∩B ∩C
c c
= (A ∩ B ) ∩ (A ∩ C ) (5.3.13)
= (A − B) ∩ (A − C ).
Answer
Add texts here. Do not delete this text first.
is an open sentence with two variables. An element of the truth set of this open sentence (also called a solution of the
equation) is an ordered pair (a , b ) of real numbers so that when a is substituted for x and b is substituted for y , the open
sentence becomes a true statement (a true equation in this case). For example, we see that the ordered pair (6, 0) is in the
truth set for this open sentence since
2 ⋅ 6 + 3 = 12
is a true statement. On the other hand, the ordered pair (4, 1) is not in the truth set for this open sentence since
2 ⋅ 4 + 3 ⋅ 1 = 12
is a false statement.
Important Note: The order of the of the two numbers in the ordered pair is very important. We are using the convention
that the first number is to be substituted for x and the second number is to be substituted for y . With this convention, (3,
2) is a solution of the equation 2x + 3y = 12 , but (2, 3) is not a solution of this equation.
1. List six different elements of the truth set (often called the solution set) of the open sentence with two variables
2x + 3y = 12 .
2. From previous mathematics courses, we know that the graph of the equation 2x + 3y = 12 is a straight line. Sketch
the graph of the equation 2x + 3y = 12 in the xy-coordinate plane. What does the graph of the equation
2x + 3y = 12 show?
3. Write a description of the solution set S of the equation 2x + 3y = 12 using set builder notation.
We will now introduce a new set operation that gives a way of combining elements from two given sets to form ordered
pairs. The basic idea is that we will create a set of ordered pairs.
x ∈ A and y ∈ B . We use the notation A × B for the Cartesian product of A and B , and using set builder notation,
we can write
A × B = {(x, y) | x ∈ A and y ∈ B} .
We frequently read A × B as "A cross B ." In the case where the two sets are the same, we will write A for A × A . 2
That is,
2
A = A × A = {(a, b) | a ∈ A and b ∈ A} .
6. For any sets C and D, explain carefully what it means to say that the ordered pair (x, y ) is not in the Cartesian
product C × D .
Cartesian Products
When working with Cartesian products, it is important to remember that the Cartesian product of two sets is itself a set. As a
set, it consists of a collection of elements. In this case, the elements of a Cartesian product are ordered pairs. We should think
of an ordered pair as a single object that consists of two other objects in a specified order. For example,
If a ≠ 1 , then the ordered pair (1, a ) is not equal to the ordered pair (a , 1). That is, (1, a ) ≠ (a , 1).
If A = {1, 2, 3} and B = {a , b }, then the ordered pair (3, a ) is an element of the set A × B . That is, (3, a ) ∈ A × B .
If A = {1, 2, 3} and B = {a , b }, then the ordered pair (5, a ) is not an element of the set A × B since 5 ∉ A . That is,
(5, a) ∉ A × B .
In Section 5.3, we studied certain properties of set union, set intersection, and set complements, which we called the algebra of
sets. We will now begin something similar for Cartesian products. We begin by examining some specific examples in Progress
Check 5.23 and a little later in Progress Check 5.24.
1. Use the roster method to list all of the elements (ordered pairs) in each of the following sets:
(a) A × B
(b) T × B
(c) A × C
(d) A × (B ∩ C )
(e) (A × B) ∩ (A × C )
(f) A × (B ∪ C )
(g) (A × B) ∪ (A × C )
(h) A × (B − C )
(i) (A × B) − (A × C )
(j) B × A
2. List all the relationships between the sets in Part (1) that you observe.
The basic idea is that each ordered pair of real numbers corresponds to a point in the plane, and each point in the plane
corresponds to an ordered pair of real numbers. This geometric representation of R is an extension of the geometric
2
subset of the Cartesian plane. For example, if A is the interval [1, 3], and B is the interval [2, 5], then
2
A × B = {(x, y) ∈ R | 1 ≤ x ≤ 3 and 2 ≤ y ≤ 5}.
A graph of the set A × B can then be drawn in the Cartesian plane as shown in Figure 5.6.
This illustrates that the graph of a Cartesian product of two intervals of finite length in R corresponds to the interior of a
rectangle and possibly some or all of its boundary. The solid line for the boundary in Figure 5.6 indicates that the boundary is
included. In this case, the Cartesian product contained all of the boundary of the rectangle. When the graph does not contain a
portion of the boundary, we usually draw that portion of the boundary with a dotted line.
Note: A Caution about Notation. The standard notation for an open interval in R is the same as the notation for an ordered
pair, which is an element of R × R . We need to use the context in which the notation is used to determine which interpretation
is intended. For example,
If we write (sqrt2, 7) ∈ R × R , then we are using (sqrt2, 7) to represent an ordered pair of real numbers.
If we write (1, 2) × {4}, then we are interpreting (1, 2) as an open interval. We could write
(1, 2) × {4} = {(x, 4) | 1 < x < 2}.
The following progress check explores some of the same ideas explored in Progress Check 5.23 except that intervals of real
numbers are used for the sets.
(a) A × B
(b) T × B
(c) A × C
(d) A × (B ∩ C )
(e) (A × B) ∩ (A × C )
(f) A × (B ∪ C )
(g) (A × B) ∪ (A × C )
(h) A × (B − C )
(i) (A × B) − (A × C )
(j) B × A
2. List all the relationships between the sets in Part (1) that you observe.
Answer
Add texts here. Do not delete this text first.
One purpose of the work in Progress Checks 5.23 and 5.24 was to indicate the plausibility of many of the results contained in
the next theorem.
Theorem 5.25
Let A , B . and C be sets. Then
1. A × (B ∩ C ) = (A × B) ∩ (A × C )
2. A × (B ∪ C ) = (A × B) ∪ (A × C )
3. (A ∩ B) × C = (A × C ) ∩ (B × C )
4. (A ∪ B) × C = (A × C ) ∪ (B × C )
5. A × (B − C ) = (A × B) − (A × C )
6. (A − B) × C = (A × C ) − (B × C )
7. If T ⊆ A , then T × B ⊆ A × B .
8. If T ⊆ B , then A × Y ⊆ A × B .
We will not prove all these results; rather, we will prove Part (2) of Theorem 5.25 and leave some of the rest to the exercises.
In constructing these proofs, we need to keep in mind that Cartesian products are sets, and so we follow many of the same
principles to prove set relationships that were introduced in Sections 5.2and 5.3.
The other thing to remember is that the elements of a Cartesian product are ordered pairs. So when we start a proof of a result
such as Part (2) of Theorem 5.25, the primary goal is to prove that the two sets are equal. We will do this by proving that each
one is a subset of the other one. So if we want to prove that A × (B ∪ C ) ⊆ (A × B) ∪ (A × C ) , we can start by choosing an
arbitrary element of A × (B ∪ C ) . The goal is then to show that this element must be in (A × B) ∪ (A × C ) . When we start
by choosing an arbitrary element of A × (B ∪ C ) , we could give that element a name. For example, we could start by letting
u be an element of A × (B ∪ C ). (5.4.1)
In order to prove that A × (B ∪ C ) ⊆ (A × B) ∪ (A × C ) , we must now show that the ordered pair u from (5.4.1) is in
A × (B ∪ C ) ⊆ (A × B) ∪ (A × C ) . In order to do this, we can use the definition of set union and prove that
u ∈ (A × B) or u ∈ (A × C ). (5.4.3)
If we look at the sentences in (5.4.2) and (5.4.4), it would seem that we are very close to proving that
A × (B ∪ C ) ⊆ (A × B) ∪ (A × C ) . Following is a proof of Part (2) of Theorem 5.25.
Proof
Let A, B. and C be sets. We will prove that A × (B ∪ C ) is equal to (A × B) ∪ (A × C ) by proving that each set is
a subset of the other set.
To prove that A × (B ∪ C ) ⊆ (A × B) ∪ (A × C ) , we let u ∈ A × (B ∪ C ) . Then there exists x ∈ A and there
exists y ∈ B ∪ C such that u = (x, y) . Since y ∈ B ∪ C , we know that y ∈ B or y ∈ C .
In the case where y ∈ B , we have u = (x, y) , where x ∈ A and y ∈ B. So in this case, u ∈ A × B , and hence
u ∈ (A × B) ∪ (A × C ) . Similarly, in the case where y ∈ C , we have u = (x, y) , where x ∈ A and y ∈ C . So in
this case, u ∈ A × C and, hence, u ∈ (A × B) ∪ (A × C ) .
In both cases, u ∈ (A × B) ∪ (A × C ) . Hence, we may conclude that if u is an element of A × (B ∪ C ) , then
u ∈ (A × B) ∪ (A × C ) , and this proves that
A × (B ∪ C ) ⊆ (A × B) ∪ (A × C ). (5.4.5)
In the case where v ∈ (A × B) , we know that there exists s ∈ A and there exists t ∈ B such that v = (s, t) . But
because t ∈ C , we can conclude that t ∈ B ∪ C and, hence, v ∈ A × (B ∪ C ) .
In both cases, v ∈ A × (B ∪ C ) . Hence, we may conclude that if v ∈ (A × B) ∪ (A × C ) , then v ∈ A × (B ∪ C ) ,
and this proves that
(A × B) ∪ (A × C ) ⊆ A × (B ∪ C ). (5.4.6)
Final Note.
The definition of an ordered pair in Preview Activity 5.4.2 may have seemed like a lengthy definition, but in some areas
of mathematics, an even more formal and precise definition of “ordered pair” is needed. This definition is explored in
Exercise (10).
(a) A × B
(b) B × A
(c) A × C
(d) A 2
(e) A × (B ∩ C )
(f) (A × B) ∩ (A × C )
Let A , B and C be sets with A ≠∅ . If A × B = A × C , then B = C . Explain where the assumption that A ≠∅ is
needed.
Let x be an element of the set A , and let y be an element of the set B . The ordered pair (x, y ) is defined to be the set
{{x}, {x, y}} . That is,
(x, y) = {{x}, {x, y}}. (5.4.7)
(a) Explain how this definition allows us to distinguish between the ordered pairs (3, 5) and (5, 3).
(b) Let A and B be sets and let a, c ∈ A and b, d ∈ B . Use this definition of an ordered pair and the concept of set
equality to prove that (a, b) = (c, d) if and only if a = c and b = d .
An ordered triple can be thought of as a single triple of objects, denoted by (a , b , c ), with an implied order. This
means that in order for two ordered triples to be equal, they must contain exactly the same objects in the same order.
That is (a, b, c) = (p, q, r) if and only if a = p , b = q and c = r .
(c) Let A , B and C be sets, and let x ∈ A , y ∈ B , and z ∈ C . Write a set theoretic definition of the ordered triple
(x, y, z) similar to the set theoretic definition of “ordered pair.”
Answer
For this activity, the universal set is N and we will use the following four sets:
A = {1, 2, 3, 4, 5}
B = {2, 3, 4, 5, 6}
C = {3, 4, 5, 6, 7}
D = {4, 5, 6, 7, 8}
1. Use the roster method to specify the sets A ∪ B ∪ C , B ∪ C ∪ D , A ∩ B ∩ C , and B ∩ C ∩ D .
2. Use the roster method to specify each of the following sets. In each case, be sure to follow the order specified by the
parentheses.
(a) (A ∪ B ∪ C ) ∪ D
(b) A ∪ (B ∪ C ∪ D)
(c) A ∪ (B ∪ C ) ∪ D
(d) (A ∪ B) ∪ (C ∪ D)
(e) (A ∩ B ∩ C ) ∩ D
(f) A ∩ (B ∩ C ∩ D)
(g) A ∩ (B ∩ C ) ∩ D
(h) (A ∩ B) ∩ (C ∩ D)
3. Based on the work in Part (2), does the placement of the parentheses matter when determining the union (or
intersection) of these four sets? Does this make it possible to define A ∪ B ∪ C ∪ D and A ∩ B ∩ C ∩ D ?
We have already seen that the elements of a set may themselves be sets. For example, the power set of a set T , P(T ) , is
the set of all subsets of T . The phrase, “a set of sets” sounds confusing, and so we often use the terms collection and
family when we wish to emphasize that the elements of a given set are themselves sets. We would then say that the power
set of T is the family (or collection) of sets that are subsets of T .
One of the purposes of the work we have done so far in this preview activity was to show that it is possible to define the
union and intersection of a family of sets.
Definition
Let C be a family of sets. The union over C is defined as the set of all elements that are in at least one of the sets in
C . We write
⋃ X = {x ∈ U | x ∈ X for some X ∈ C}
X∈C
The intersection over C is defined as the set of all elements that are in all of the sets in C . That is,
⋂ X = {x ∈ U | x ∈ X for some X ∈ C}
X∈C
For example, consider the four sets A , B , C , and D used earlier in this preview activity and the sets
S = {5, 6, 7, 8, 9} and T = {6, 7, 8, 9, 10}
We can then consider the following families of sets: A = {A, B, C , D} and B = {A, B, C , D, S, T }
and use your work in (1), (2), and (3) to determine ⋃ X∈A
X and ⋂ X∈A
X .
5. Use the roster method to specify ⋃ X∈B
X and ⋂ X∈B
X
tag, or index, for each set. We can also use this idea to specify an infinite family of sets. For example, for each natural
number n , we define
Cn = {n, n + 1, n + 2, n + 3, n + 4}.
4
So if we have a family of sets C = {C 1, C2 , C3 , C4 } , we use the notation ⋃ j=1
Cj to mean the same thing as ⋃ x∈C
X .
4 4
1. Determine ⋃ j=1
Cj and ⋂ j=1
Cj
We can see that with the use of subscripts, we do not even have to define the family of sets A . We can work with the
infinite family of sets
∗
C = { An | n ∈ N} (5.5.1)
and use the subscripts to indicate which sets to use in a union or an intersection.
2. Use the roster method to specify each of the following pairs of sets. The universal set is N.
(a) ⋃ 6
j=1
Cj and ⋂ 6
j=1
Cj
(b) ⋃ 8
j=1
Cj and ⋂ 8
j=1
Cj
(c) ⋃ 8
j=4
Cj and ⋂ 8
j=4
Cj
(d) (⋂ 4
j=1
Cj )
c
and ⋃ 4
j=1
C
c
j
defined as
n
j=1
j=1
Aj , as
n
j=1
We can also extend this idea to define the union and intersection of a family that consists of infinitely many sets. So if
B = { B , B , . . . , B , . . . }, then
1 2 n
∞
⋃
j=1
Bj = {x ∈ U | x ∈ Bj , for some j with j ≥ 1} , and
∞
⋂j=1 Bj = {x ∈ U | x ∈ Bj , for all j with j ≥ 1} .
j=1
Aj = {1, 2, 3, 4, 9} ⋂ , 3
j=1
Aj = {1} .
Determine each of the following sets:
1. ⋃ 6
j=1
Aj
6
2. ⋂ j=1
Aj
6
3. ⋃ j=3
Aj
4. ⋂ 6
j=3
Aj
∞
5. ⋃ j=1
Aj
6. ⋂ ∞
j=1
Aj
Answer
Add texts here. Do not delete this text first.
In all of the examples we have studied so far, we have used N or a subset of N to index or label the sets in a family of sets. We
can use other sets to index or label sets in a family of sets. For example, for each real number x, we can define B to be the x
Definition
Let Λbe a nonempty set and suppose that for each α ∈ ∧ , there is a corresponding set A . The family of sets α
{ Aα | α ∈ ∧} is called an indexed family of sets indexed by ∧. Each α ∈ ∧ is called an index and Λ is called an
indexing set.
A , A , A , and A .
1 2 3 4
2. Is the following statement true or false for the indexed family A in (1)?
3. Now let Λ = R . For each x ∈ R, define B = {0, x , x } . Is the following statement true for the indexed family of
x
2 4
set B = {B | x ∈ R} ?
x
Answer
Add texts here. Do not delete this text first.
We now restate the definitions of the union and intersection of a family of sets for an indexed family of sets.
Definition
as the set of all elements that are in at least one of sets A , where α ∈ ∧ . We write
α
⋃
α∈Λ
Aα = {x ∈ U | there exits an α ∈ Λ with x ∈ Aα } .
The intersection over (\mathcal{A}\) is the set of all elements that are in all of the sets A for each α ∈ Λ . That is,
α
⋂
α∈∧
Aα = {x ∈ U | for all α ∈ ∧, x ∈ Aα } .
Aα = {x ∈ R | − 1 < x ≤ α}.
If we let R be the set of positive real numbers, then we have a family of sets indexed by R . We will first determine the
+ +
union of this family of sets. Notice that for each α ∈ mathbbR , α ∈ A , and if y is a real number with −1 < y ≤ 0 ,
+
α
then y ∈ A . Also notice that if y ∈ R and y < −1 , then for each α ∈ mathbbR , y ∉ A . With these observations, we
α
+
α
conclude that
⋃ + Aα = (−1, ∞) = {x ∈ R | − 1 < x}.
α∈R
y
if y ∈ R and y > 0 , then of we let β = , y > β and y ∉ A . β
2
c
Aα = (−∞, 1] ∪ (α, ∞).
Use the results from Example 5.28 to help determine each of the following sets. For each set, use either interval notation
or set builder notation.
1. (⋃ α∈R
+ Aα )
c
2. (⋂ α∈R
+ Aα )
c
3. ⋂ α∈R
+ Aα
c
4. ⋃ α∈R
+ Aα
c
Answer
Add texts here. Do not delete this text first.
Theorem 5.30.
Let Λ be a nonempty indexing set and let A = {A α | α ∈ ∧} be an indexed family of sets. Then
2. For each β ∈ Λ , A β ⊆⋃
α∈Λ
Aα
3. (⋂ α∈Λ
A ) =⋃
α
c
α∈Λ
c
Aα
4. (⋃ α∈Λ
A ) =⋂
α
c
α∈Λ
c
Aα
Proof
We will prove Parts (1) and (3). The proofs of Parts (2) and (4) are included in Exercise (4). So we let Λ be a
nonempty indexing set and let mathcalA = {A | α ∈ Λ} be an indexed family of sets. To prove Part (1), we let
α
β ∈ Λ and note that if x ∈ ⋂ A , then x ∈ A , for all α ∈ Λ . Since β is one element in Λ , we may conclude that
α∈Λ α α
To prove Part (3), we will prove that each set is a subset of the other set. We first let x ∈ (⋂ A ) . This means
α∈Λ α
c
c c
( ⋂ Aα ) ⊆ ⋃ Aα . (5.5.4)
α∈Λ α∈Λ
c c
⋃ Aα ⊆ ( ⋂ Aα ) . (5.5.5)
α∈Λ α∈Λ
Using the results in (5.5.4) and (5.5.5), we have proved that (⋂ α∈Λ
Aα )
c
=⋃
α∈Λ
c
Aα .
Many of the other properties of set operations are also true for indexed families of sets. Theorem 5.31 states the distributive
laws for set operations.
Theorem 5.31.
Let Λ be a nonempty indexing set and let A = {A α | α ∈ Λ} be an indexed family of sets, and let B be a set. Then
1. B ∩ (⋃ α∈Λ
Aα ) = ⋃
α∈Λ
(B ∩ Aα ) , and
2. B ∪ (⋂ α∈Λ
Aα ) = ⋂
α∈Λ
(B ∪ Aα ) .
Proof
The proof of Theorem 5.31 is Exercise (5).
Definition
Let Λ be a nonempty indexing set, and let A = {A | α ∈ Λ} be an indexed family of sets. We say that
α A is pair wise
disjoint provided that for all α and β in Λ , if A ≠ A , then A ∩ A = ∅ .
α β α β
1. Is the family of sets A a disjoint family of sets? A pairwise disjoint family of sets?
2. Is the family of sets B a disjoint family of sets? A pairwise disjoint family of sets?
Now let the universal be R. For each n ∈ N , let C = (n, ∞) , and let C = {C | n ∈ N} .
n n
3. Is the family of sets C a disjoint family of sets? A pairwise disjoint family of sets?
Answer
Add texts here. Do not delete this text first.
Exercise 5.5.1
1. For each natural number n , let An = {n, n + 1, n + 2, n + 3} . Use the roster method to specify each of the
following sets:
3
(a) ⋂ j=1
Aj
(b) ⋃ 3
j=1
Aj
(c) ⋂ 7
j=3
Aj
(d) ⋃ 7
j=3
Aj
(e) A 9 ∩ (⋃
7
j=3
Aj )
(f) ⋃ (A ∩ A )
7
j=3 9 j
2. For each natural number n , let A n = {k ∈ N | k ≥ n} . Use the roster method or set builder notation to specify each
of the following sets:
5
(a) ⋂ j=1
Aj
(b) (⋂ 5
j=1
Aj )
c
(c) ⋂ 5
j=1
A
c
j
(d) ⋃ 5
j=1
A
c
j
(e) ⋃ 5
j=1
Aj
j=1 j
c
Let ∧ = {m ∈ N | 1 ≤ m ≤ 10} . Use either interval notation or set builder notation to specify each of the following
sets:
(a) ⋃k∈∧
T k
(b) ⋂k∈∧
T k
(c) ⋃r∈R
T
+
k
(d) ⋂r∈R
T
+
k
(e) ⋃r∈N
T k
(f) ⋂r∈N
T k
4. Prove Parts (2) and (4) of Theorem 5.30. Let Λ be a nonempty indexing set and let A = {A α | α ∈ Λ} be an indexed
family of sets.
(b) (⋃α∈Λ
A ) =⋂ αA
c
α∈Λ
c
α
5. Prove Theorem 5.31. Let Λ be a nonempty indexing set, let A = {A α | α ∈ Λ} be an indexed family of sets, and let
B be a set. Then
(a) B ∩ (⋃ A ) =⋃
α∈Λ
(B ∩ A ) , and
α α∈Λ α
(b) B ∪ (⋂ A ) =⋂
α∈Λ
(B ∪ A ) .
α α∈Λ α
6. Let Λ and Γ be nonempty indexing sets and let A = { Aα | α ∈ Λ} and B = { Bβ | β ∈ Γ} be indexed families of
sets. Use the distributive laws in Exercise (5) to:
(a) Write \((\bigcup_{\alpha \in \Lambda}^{} A_{\alpha}) \cap (\bigcup_{\beta \in \Gamma}^{} B_{\beta}) as a
union of intersections of two sets.
(b) Write \((\bigcap_{\alpha \in \Lambda}^{} A_{\alpha}) \cup (\bigcap_{\beta \in \Gamma}^{} B_{\beta}) as a
union of intersections of two sets.
7. Let Λ be a nonempty indexing set and let A = {A | α ∈ Λ} be an indexed family of sets. Also, assume that Γ ⊆ Λ
α
and Γ ≠ ∅ . (Note: The letter Γ is the uppercase Greek letter gamma.) Prove that
(a) ⋃α∈Γ
A ⊆⋃α A α∈Λ α
(b) ⋂α∈Λ
A ⊆⋂ α A α∈Γ α
(b) Prove that if C is a set such that A ⊆ C for every α ∈ Λ , then ⋂α A ⊆C . α∈Λ α
9. For each natural number n , let A = {x ∈ R | n − 1 < x < n} . Prove that {A | n ∈ N} is a pairwise disjoint
n n
10. For each natural number n , let A = {k ∈ N | k ≥ n} . Determine if the following statements are true or false. Justify
n
each conclusion.
(b) ⋂k∈N
A = ∅. k
11. Give an example of an indexed family of sets {A n | n ∈ N} such all three of the following conditions are true:
(iii) ⋂
k∈N
A = ∅.
k
12. Let Λ be a nonempty indexing set, let A = {A | α ∈ Λ} be an indexed family of sets, and let α B be a set. Use the
results of Theorem 5.30 and Theorem 5.31 to prove each of the following:
(a) (⋃ α∈Λ
A α) −B = ⋃
α∈Λ
(Aα − B)
(b) (⋂ α∈Λ
A α) −B = ⋂
α∈Λ
(Aα − B)
(c) B − (⋃ α∈Λ
Aα ) = ⋂
α∈Λ
B − (Aα )
(d) B − (⋂ α∈Λ
Aα ) = ⋃
α∈Λ
B − (Aα )
2 2 2
Cr = {(x, y) ∈ R × R | x +y =r }
2 2 2
Dr = {(x, y) ∈ R × R | x +y ≤r } (5.5.7)
2 2 2 c
Tr = {(x, y) ∈ R × R | x +y >r } = Dr .
If r > 0 , then the set C is the circle of radius r with center at the origin as shown in Figure 5.8, and the set D is the
r r
(d) Let C = {C | r ∈ R } , D = {D | r ∈ R
r
∗
r
∗
} , and T = { Tr | r ∈ R }
∗
. Are any of these indexed families of sets
pairwise disjoint? Explain.
Now let I be the closed interval [0, 2] and let J be the closed interval [1, 2].
(e) Determine ⋃ C , ⋂ C , ⋃
r∈I r C , and ⋂
r∈I
C
r r∈J r r∈J r
(f) Determine ⋃ D , ⋂ D , ⋃
r∈I r D , and ⋂
r∈I rD
r∈J r r∈J r
(g) Determine (⋃ D ) , (⋂ D ) , (⋃
r∈I r
c
D ) , and (bigcap
r∈I r D )
c
r∈J r
c
r∈J r
c
(h) Determine ⋃ T , ⋂ T , ⋃
r∈I r T , and ⋂
r∈I
T
r r∈J r r∈J r
(i) Use De Morgan's Laws to explain the relationship between your answers in Parts (13g) and (13h).
Answer
Theorem 5.18. Let A , B , and C be subsets of some universal set U . Then all of the following equalities hold.
Associative Laws (A ∩ B) ∩ C = A ∩ (B ∩ C )
(A ∪ B) ∪ C = A ∪ (B ∪ C )
Distributive Laws A ∩ (B ∪ C ) = (A ∩ B) ∪ (A ∩ C )
A ∪ (B ∩ C ) = (A ∪ B) ∩ (A ∪ C )
Theorem 5.20. Let A and B be subsets of some universal set U . Then the following are true:
c c
Basic Properties (A ) =A
c
A−B = A∩B
c c
∅ = U and U =∅ (5.S.1)
c c c
De Morgan's Laws (A ∩ B) =A ∪B
c c c
(A ∪ B) =A ∩B
c c
Subsets and Complements A ⊆ B if and only if B ⊆A .
1. A × (B ∩ C ) = (A × B) ∩ (A × C )
2. A × (B ∪ C ) = (A × B) ∪ (A × C )
3. (A ∩ B) × C = (A × C ) ∩ (B × C )
4. (A ∪ B) × C = (A × C ) ∪ (B × C )
5. A × (B − C ) = (A × B) − (A × C )
6. (A − B) × C = (A × C ) − (B × C )
7. If T ⊆ A , then T × B ⊆ A × B .
8. If T ⊆ B , then A × Y ⊆ A × B .
Theorem 5.30. Let Λ be a nonempty indexing set and let A = {A α | α ∈ Λ} be an indexed family of sets. Then
4. (⋃ α∈Λ
A ) =⋂α
c
α∈Λ
Aα
c
1. B ∩ (⋃ α∈Λ
Aα ) = ⋃
α∈Λ
(B ∩ Aα ) , and
2. B ∪ (⋂ α∈Λ
Aα ) = ⋂
α∈Λ
(B ∪ Aα ) ,
Important Proof Method
The Choose-an-Element Method
The choose-an-element method is frequently used when we encounter a universal quantifier in a statement in the backward
process of a proof. This statement often has the form
For each element with a given property, something happens.
In the forward process of the proof, we then we choose an arbitrary element with the given property.
Whenever we choose an arbitrary element with a given property, we are not selecting a specific element. Rather, the
only thing we can assume about the element is the given property.
For more information, see page 232.
page297image2085397184 page297image2085397456
1 7/21/2021
6.1: Introduction to Functions
Exercise 6.1.1
Preview Activity 1 (Functions from Previous Courses)
One of the most important concepts in modern mathematics is that of a function. In previous mathematics courses, we
have often thought of a function as some sort of input-output rule that assigns exactly one output to each input. So in this
context, a function can be thought of as a procedure for associating with each element of some set, called the domain of
the function, exactly one element of another set, called the codomain of the function. This procedure can be considered
an input-output-rule. The function takes the input, which is an element of the domain, and produces an output, which is an
element of the codomain. In calculus and precalculus, the inputs and outputs were almost always real numbers. So the
notationf f (x) = x sinx means the following:
2
For this function, it is understood that the domain of the function is the set R of all real numbers. In this situation, we
think of the domain as the set of all possible inputs. That is, the domain is the set of all possible real numbers x for which
a real number output can be determined.
This is closely related to the equation f = x sinx . With this equation, we frequently think of x as the input and y as the
2
output. In fact, we sometimes write y = f (x). The key to remember is that a function must have exactly one output for
each input. When we write an equation such as
1
3
y = x − 1,
2
we can use this equation to define y as a function of x. This is because when we substitute a real number for x (the input),
the equation produces exactly one real number for y (the output). We can give this function a name, such as g , and write
1
3
y = g(x) = x − 1.
2
cannot be used to define y as a function of x since there are real numbers that can be substituted for x that will produce
more than one possible value of y . For example, if x = 1 , then y = 4 , and y could be -2 or 2.
2
Which of the following equations can be used to define a function with x ∈ R as the input and y ∈ R as the output?
1. y = x − 2
2
2. y = x + 3
2
1
3. y = x
3
−1
2
1
4. y = xsinx
2
5. x + y = 4
2 2
6. y = 2x − 1
7. y = df racxx − 1
is by a rule determined by some mathematical expression. For example, when we say that f is the function such that
x
f (x) = ,
x −1
x
then the algebraic rule that determines the output of the function f when the input is x is . In this case, we would
x −1
say that the domain of f is the set of all real numbers not equal to 1 since division by zero is not defined.
However, the concept of a function is much more general than this. The domain and codomain of a function can be any
set, and the way in which a function associates elements of the domain with elements of the codomain can have many
different forms. The input-output rule for a function can be a formula, a graph, a table, a random process, or a verbal
description. We will explore two different examples in this preview activity.
1. Let b be the function that assigns to each person his or her birthday (month and day). The domain of the function b is
the set of all people and the codomain of b is the set of all days in a leap year (i.e., January 1 through December 31,
including February 29).
(a) Explain why b really is a function. We will call this the birthday function.
(b) In 1995, Andrew Wiles became famous for publishing a proof of Fermat’s Last Theorem. (See A. D. Aczel,
Fermat’s Last Theorem: Unlocking the Secret of an Ancient Mathematical Problem, Dell Publishing, New York,
1996.) Andrew Wiles’s birthday is April 11, 1953. Translate this fact into functional notation using the “birthday
function” b . That is, fill in the spaces for the following question marks:
b(?) =?. (6.1.2)
(a) Calculate s(k) for each natural number k from 1 through 15.
(b) Does there exist a natural number n such that s(n) = 5 ? Justify your conclusion.
(c) Is it possible to find two different natural numbers m and n such that s(m) = s(n) ? Explain.
(d) Use your responses in (b) and (c) to determine whether the following statements true or false.
i. For each m ∈ N , there exists a natural number n such that s(n) = m .
ii. For all m, n ∈ N , if m ≠ n , then s(m) ≠ s(n) .
Definition
A function from a set A to a set B is a rule that associates with each element x of the set A exactly one element of the set
B . A function from A to B is also called a mapping from A to B .
Function Notation. When we work with a function, we usually give it a name. The name is often a single letter, such as f or
g . If f is a function from the set A to be the set B , we will write f : A → B . This is simply shorthand notation for the fact
that f is a function from the set A to the set B . In this case, we also say that f maps A to B .
Definition
Let f : A → B . (This is read, “Let f be a function from A to B .”) The set A is called the domain of the function f , and
we write A = dom(f ) . The set B is called the codomain of the function f , and we write B = codom(f ) .
If a ∈ A , then the element of B that is associated with a is denoted by f (a) and is called the image of a under f . If
f (a) = b , with b ∈ B , then a is called a preimage of b under f .
Some Function Terminology with an Example. When we have a function f : A → B , we often write y = f (x). In this case,
we consider x to be an unspecified object that can be chosen from the set A , and we would say that x is the independent
variable of the function f and y is the dependent variable of the function f .
For a specific example, consider the function g : R → R , where g(x) is defined by the formula
2
g(x) = x − 2.
Note that this is indeed a function since given any input x in the domain, R, there is exactly one output g(x) in the codomain,
R . For example,
2
g(−2) = (−2 ) − 2 = 2,
2
g(5) = 5 − 2 = 23,
(6.1.4)
– – 2
g(√2) = (√2) − 2 = 0,
– – 2
g(−√2) = (−√2) − 2 = 0.
So we say that the image of -2 under g is 2, the image of 5 under g is 23, and so on.
– –
Notice in this case that the number 0 in the codomain has two preimages, −√2 and √2. This does not violate the
mathematical definition of a function since the definition only states that each input must produce one and only one output.
That is, each element of the domain has exactly one image in the codomain. Nowhere does the definition stipulate that two
different inputs must produce different outputs.
Finding the preimages of an element in the codomain can sometimes be difficult. In general, if y is in the codomain, to find its
preimages, we need to ask, “For which values of x in the domain will we have y = g(x) ?” For example, for the function g, to
find the preimages of 5, we need to find all x for which g(x) = 5 . In this case, since g(x) = x − 2 , we can do this by solving
2
the equation
2
x − 2 = 5.
– – – –
The solutions of this equation are −√7 and √7 . So for the function g , the preimages of 5 are −√7 and √7. We often use set
– –
notation for this and say that the set of preimages of 5 for the function g is {−√7, √7}.
Also notice that for this function, not every element in the codomain has a preimage. For example, there is no input x such that
g(x) = −3 . This is true since for all real numbers x, x ≥ 0 and hence x − 2 ≥ −2 . This means that for all x in R ,
2 2
Answer
Add texts here. Do not delete this text first.
Definition
Let f : A → B . The set {f (x) | x ∈ A} is called the range of the function f and is denoted by range (f ). The range of
f is sometimes called the image of the function f (or the image of A under f ).
Answer
Add texts here. Do not delete this text first.
Every point on this graph corresponds to an ordered pair (x, y ) of real numbers, where y = g(x) = x − 2x − 1 . Because we
2
use the Cartesian plane when drawing this type of graph, we can only use this type of graph when both the domain and the
codomain of the function are subsets of the real numbers R. Such a function is sometimes called a real function. The graph of
a real function is a visual way to communicate information about the function. For example, the range of g is the set of all y-
values that correspond to points on the graph. In this case, the graph of g is a parabola and has a vertex at the point (1, -2).
(Note: The x-coordinate of the vertex can be found by using calculus and solving the equation f ′(x) = 0.) Since the graph of
the function g is a parabola, we know that pattern shown on the left end and the right end of the graph continues and we can
conclude that the range of g is the set of all y ∈ R such that y ≥ −2 . That is,
range(g )= {y ∈ R | y ≥ −2}.
Answer
Add texts here. Do not delete this text first.
Arrow Diagrams
Sometimes the domain and codomain of a function are small, finite sets. When this is the case, we can define a function
simply by specifying the outputs for each input in the domain. For example, if we let A = {1, 2, 3} and let B = {a, b} , we
can define a function F : A → B by specifying that
F (1) = a, F (2) = a, and F (3) = b.
This is a function since each element of the domain is mapped to exactly one element in B . A convenient way to illustrate or
visualize this type of function is with a so-called arrow diagram as shown in Figure 6.3. An arrow diagram can
Answer
Add texts here. Do not delete this text first.
Exercises 6.1
1. Let f : R → R be defined by f (x) = x 2
− 2x .
we would be assuming that the domain is the set of all real numbers that are not equal to 2 and that the codomain in R.
Determine the domain and range of each of the following real functions. It might help to use a graphing calculator to
plot a graph of the function.
−−−−−
(a) The function k defined by k(x) = √x − 3
(b) The function F defined by F (x) = ln(2x − 1)
(c) The function f defined by f (x) = 3sin(2x)
4
(d) The function g defined by g(x) =
x2 − 4
(a) Calculate d(k) for each natural number k from 1 through 12.
(b) Does there exist a natural number n such that d(n) = 1 ? What is the set of preimages of the natural number 1.
(c) Does there exist a natural number n such that d(n) = 2 ? If so, determine the set of all preimages of the natural
number 2.
(d) Is the following statement true or false? Justify your conclusion.
For all m, n ∈ N , if m ≠ n , then d(m) ≠ d(n) .
(e) Calculate d(2 ) for k = 0 and for each natural number k from 1 through 6.
k
(f) Based on your work in Exercise (6e), make a conjecture for a formula for d(2 ) where n is a nonnegative integer.
n
(a) Discuss the function S by carefully stating its domain, codomain, and its rule for determining outputs.
(b) Determine S(n) for at least five different values of n .
(c) Determine S(n) for at least three different prime number values of n .
(d) Does there exist a natural number n such that card(S(n) = 1 )? Explain. [Recall that card(S(n) ) is the number of
elements in the set S(n) .]
(e) Does there exist a natural number n such that card(S(n) = 2 )? Explain.
(f) Write the output for the function d in terms of the output for the function S . That is, write d(n) in terms of S(n) .
(g) Is the following statement true or false? Justify your conclusion.
For all natural numbers m and n , if m ≠ n , then S(m) ≠ S(n) .
(h) Is the following statement true or false? Justify your conclusion.
For all sets T that are subsets of N, there exists a natural number n such that S(n) = T .
(a) Create a function f : A → C whose range is the set C or explain why it is not possible to construct such a
function.
(b) Create a function f : A → C whose range is the set {u, v} or explain why it is not possible to construct such a
function.
(c) Create a function f : B → C whose range is the set C or explain why it is not possible to construct such a
function.
(d) Create a function f : A → C whose range is the set {u} or explain why it is not possible to construct such a
function.
(e) If possible, create a function f : A → C that satisfies the following condition:
For all x, y ∈ A, if x ≠ y , then f (x) ≠ f (y).
If it is not possible to create such a function, explain why.
(f) If possible, create a function f : A → {s, t, u} that satisfies the following condition:
For all x, y ∈ A, if x ≠ y , then f (x) ≠ f (y).
If it is not possible to create such a function, explain why.
Answer
Add texts here. Do not delete this text first.
Determine the values of f (0), f (1), f (2), f (3), f (4), f (5), f (6), f (7), f (8), and f 9). Arrange the results in the
form of a table of values for the function f .
4. Compare the functions in Parts (2) and (3). What are the similarities between the two functions and what are the
differences? Should these two functions be considered equal functions? Explain.
(a) f (x) = x − 5x
4 3
+ 3x − 7
Zn = {0, 1, 2, . . . , n − 1}.
For example, Z 4 = {0, 1, 2, 3} and Z 6 = {0, 1, 2, 3, 4, 5} . We will now explore a method to define a function from Z to Z . 6 6
(x
2
+ 3) ≡ r (mod 6).
Since r must be in Z , we must have 0 ≤ r < 6 . The results are shown in the following table.
6
0 3 3 0
1 4 4 1
2 1 5 4
The value of x in the first column can be thought of as the input for a function with the value of r in the second column as the
corresponding output. Each input produces exactly one output. So we could write
f : Z6 → Z6 by f (x) = r where (x 2
+ 3) ≡ r (mod 6).
This description and the notation for the outputs of this function are quite cumbersome. So we will use a more concise
notation. We will, instead, write
Let f : Z6 → Z6 by f (x) = (x 2
+ 3) (mod 6).
1. Determine f (0), f (1), f (2), f (3), and f (4) and represent the function f with an arrow diagram.
2. Determine g(0) , g(1) , g(2) , g(3) , and g(4) and represent the function g with an arrow diagram.
Answer
Add texts here. Do not delete this text first.
Equality of Functions
The idea of equality of functions has been in the background of our discussion of functions, and it is now time to discuss it
explicitly. The preliminary work for this discussion was Preview Activity 6.2.1, in which D = N − {1, 2} and there were two
functions:
d : D → N ∪ {0} , where d(n) is the number of diagonals of a convex polygon with n sides
x(x − 3)
f : R → R , where f (x) = , for each real number x.
2
In Preview Activity 6.2.1, we saw that these two functions produced the same outputs for certain values of the input
(independent variable). For example, we can verify that
d(3) = f (3) = 0 , d(4) = f (4) = 2 ,
d(5) = f (5) = 5 , and d(6) = f (6) = 9 .
Although we have not proved this statement, it is a true statement. (See Exercise 6.) However, we know the function d and the
function f are not the same function. For example,
f (0) = 0 , but 0 is not in the domain of d ;
π(π − 3)
f (π) = , but π is not in the domain of d .
2
We thus see the importance of considering the domain and codomain of each of the two functions in determining whether the
two functions are equal or not. This motivates the following definition.
For this progress check, we will use the functions f and g from Progress Check 6.5. The identity function on the set Z is 5
IZ
5
: Z5 → Z5 by I
Z5 (x) = x (mod 5), for each x ∈ Z .
5
Is the identity function on Z equal to either of the functions f or g from Progress Check 6.5? Explain.
5
Answer
Add texts here. Do not delete this text first.
centered lines following these show the resulting Maple output. The first line defines the function f , and the second line uses
the derivative function D to produce the derivative of the function f .
[> f := x → x^2 ∗ sin (x);
2
f := x → x sin(x)
[> f1 := D(f);
2
f 1 := x → 2x sin(x) + x cos(x)
Answer
Add texts here. Do not delete this text first.
Sequences as Functions
A sequence can be considered to be an infinite list of objects that are indexed (subscripted) by the natural numbers (or some
infinite subset of N ∪ {0} ). Using this idea, we often write a sequence in the following form:
a1 , a2 , . . . , an , . . . .
In order to shorten our notation, we will often use the notation ⟨a ⟩ to represent this sequence. Sometimes a formula can be
n
used to represent the terms of a sequence, and we might include this formula as the n th term in the list for a sequence such as
in the following example:
1 1 1
1, , ,..., ,....
2 3 n
1
In this case, the n th term of the sequence is . If we know a formula for the n th term, we often use this formula to represent
n
the sequence. For example, we might say
1
Define the sequence ⟨a n⟩ by a n = for each n ∈ N .
n
This shows that this sequence is a function with domain N . If it is understood that the domain is N , we could refer to this as
1
the sequence ⟨ ⟩ . Given an element of the domain, we can consider a to be the output. In this case, we have used subscript
n
n
notation to indicate the output rather than the usual function notation. We could just as easily write
1 1
a(n) = instead of a n = .
n n
Definition: sequence
An (infinite) sequence is a function whose domain is N or some infinite subset of N ∪ {0} .
Answer
Add texts here. Do not delete this text first.
Since the domain of this function is Z × Z and each element of Z × Z is an ordered pair of integers, we frequently call this
type of function a function of two variables.
Finding the preimages of an element of the codomain for the function f , Z, usually involves solving an equation with two
variables. For example, to find the preimages of 0 2 Z, we need to find all ordered pairs (m, n) ∈ Z × Z such that
f (m, n) = 0 . This means that we must find all ordered pairs (m, n) ∈ Z × Z such that
2m + n = 0
Three such ordered pairs are (0,0), (1, -2), and (-1, 2). In fact, whenever we choose an integer value for m, we can find a
corresponding integer n such that 2m + n = 0 . This means that 0 has infinitely many preimages, and it may be difficult to
specify the set of all of the preimages of 0 using the roster method. One way that can be used to specify this set is to use set
builder notation and say that the following set consists of all of the preimages of 0:
{(m, n) ∈ Z × Z | 2m + n = 0} = {(m, n) ∈ Z × Z | n = −2m}.
The second formulation for this set was obtained by solving the equation 2m + n = 0 for n .
Answer
Add texts here. Do not delete this text first.
Exercise 6.2
–
(a) Calculate f (2), f (−2), f (3), and f (√2).
–
(b) Calculate g(0) , g(2) , g(−2) , g(3) , and g(√2).
(c) Is the function f equal to the function g ? Explain.
(d) Now let h : (R − {0}) → R by h(x) = x + 5 . Is the function f equal to the function h ? Explain.
2
4. Represent each of the following sequences as functions. In each case, state the domain, codomain, and rule for
determining the outputs of the function. Also, determine if any of the sequences are equal.
1 1 1
(a) 1, , , ,...
4 9 16
1 1 1 1
(b) , , , ,...
3 9 27 81
(c) 1, -1, 1, -1, 1, -1, ...
(d) cos(0), cos(π), cos(2π), cos(3π), cos(4π), ...
5. Let A and B be two nonempty sets. There are two projection functions with domain A × B , the Cartesian product of
A and B . One projection function will map an ordered pair to its first coordinate, and the other projection function
(a) Determine the outputs for all possible inputs for the projection functionp : A × B → A . 1
(b) Determine the outputs for all possible inputs for the projection functionp : A × B → B . 2
6. Let D = N − {1, 2} and define d : D → N ∪ {0} by d(n) = the number of diagonals of a convex polygon with n
sides. In Preview Activity 6.2.1, we showed that for values of n from 3 through 8,
n(n − 3)
d(n) = . (6.2.4)
2
where a , b , c and d are real numbers. The determinant of the 2 by 2 matrix A , denoted by det(A ), is defined as
det(A ) = ad − bc .
(b) Let M (R) be the set of all 2 by 2 matrices over R. The mathematical process of finding the determinant of a 2 by
2
2 matrix over R can be thought of as a function. Explain carefully how to do so, including a clear statement of the
domain and codomain of this function.
10. Using the notation from Exercise (9), let
a b
A =[ ] (6.2.7)
c d
be a 2 by 2 matrix over R. The transpose of the matrix A , denoted by A , is the 2 by 2 matrix over R defined by
T
T
a c
A =[ ] (6.2.8)
b d
(b) Let M (R) be the set of all 2 by 2 matrices over R. The mathematical process of finding the determinant of a 2 by
2
2 matrix over R can be thought of as a function. Explain carefully how to do so, including a clear statement of the
domain and codomain of this function.
states that
b
(a) Let [a , b ] be a closed interval of real numbers and let C [a, b] be the set of all real functions that are continuous on [
a , b ]. That is,
b
i. Explain how the definite integral ∫ f (x)dx can be used to define a function I from C [a, b] to R.
a
iii. Let [a, b] = [0, 2]. Calculate I (g) , where g(x) = sin(πx).
In calculus, we also learned how to determine the indefinite integral ∫ f (x)dx of a continuous funtion f .
(b) Let f (x) = x + 1 and g(x) = cos(2x) . Determine ∫ f (x)dx and ∫ g(x)dx .
2
(c) Let f be a continuous function on the closed interval [0, 1] and let T be the set of all real functions. Can the
process of determining the indefinite integral of a continuous function be used to define a function from C [0, 1] to T ?
Explain.
(d) Another form of the Fundamental Theorem of Calculus states that if f is continuous on the interval [a , b ] and if
x
For each x in [a , b ], then g′(x) = f (x). That is, g is an antiderivative of f . Explain how this t heorem can be used to
define a function from C [a, b] to T , where the output of the function i s an antiderivative of the input. (Recall that T is
the set of all real functions.)
Answer
Add texts here. Do not delete this text first.
function.
Also, the definition of a function does not require that the range of the function must equal the codomain. The range is
always a subset of the codomain, but these two sets are not required to be equal. That is, if g : A → B , then it is possible
to have a y ∈ B such that g(x) ≠ y for all x ∈ A . The arrow diagram for the function g in Figure 6.5 illustrates such a
function.
5a + 3 = 5b + 3. (6.3.1)
Injections
In previous sections and in Preview Activity 6.3.1, we have seen examples of functions for which there exist different inputs
that produce the same output. Using more formal notation, this means that there are functions f : A → B for which there exist
x , x ∈ A with x ≠ x
1 2 1 and f (x ) = f (x ) . The work in the preview activities was intended to motivate the following
2 1 2
definition.
Definition
Let f : A → B be a function from the set A to the set B . The function f is called an injection provided that
for all x 1, x2 ∈ A , if x
1 ≠ x2 , then f (x 1) ≠ f (x2 ) .
When f is an injection, we also say that f is a one-to-one function, or that f is an injective function.
Notice that the condition that specifies that a function f is an injection is given in the form of a conditional statement. As we
shall see, in proofs, it is usually easier to use the contrapositive of this conditional statement. Although we did not define the
term then, we have already written the contrapositive for the conditional statement in the definition of an injection in Part (1)
of Preview Activity 6.3.2. In that preview activity, we also wrote the negation of the definition of an injection. Following is a
summary of this work giving the conditions for f being an injection or not being an injection.
Let f : A → B
its negation) to determine whether or not the following functions are injections.
1. k : A → B , where A = {a, b, c} , B = {1, 2, 3, 4}, and k(a) = 4, k(b) = 1 , and k(c) = 3 .
2. f : A → C , where A = {a, b, c} , C = {1, 2, 3}, and f (a) = 2, f (b) = 3 , and f (c) = 2 .
3. F : Z → Z defined by F (m) = 3m + 2 for all m ∈ Z
4. h : R → R defined by h(x) = x − 3x for all x ∈ R
2
Answer
Add texts here. Do not delete this text first.
Surjections
In previous sections and in Preview Activity 6.3.1, we have seen that there exist functions f : A → B for which range
(f ) = B . This means that every element of B is an output of the function f for some input from the set A . Using quantifiers,
this means that for every y ∈ B , there exists an x ∈ A such that f (x) = y . One of the objectives of the preview activities was
to motivate the following definition.
Definition
Let f : A → B be a function from the set A to the set B . The function f is called a surjection provided that the range of
f equals the codomain of f . This means that
One of the conditions that specifies that a function f is a surjection is given in the form of a universally quantified statement,
which is the primary statement used in proving a function is (or is not) a surjection. Although we did not define the term then,
we have already written the negation for the statement defining a surjection in Part (2) of Preview Activity 6.3.2. We now
summarize the conditions for f being a surjection or not being a surjection.
Let f : A → B
One other important type of function is when a function is both an injection and surjection. This type of function is called a
bijection.
Definition
A bijection is a function that is both an injection and a surjection. If the function f is a bijection, we also say that f is
one-to-one and onto and that f is a bijective function.
Answer
Add texts here. Do not delete this text first.
To see if it is a surjection, we must determine if it is true that for every y ∈ T , there exists an x ∈ R such that F (x) = y .
So we choose y ∈ T . The goal is to determine if there exists an x ∈ R such that
F (x) = y, or
(6.3.2)
2
x +1 = y.
One way to proceed is to work backward and solve the last equation (if possible) for x. Doing so, we get
2
x = y −1
−−−− −−−−
x = √y − 1 or x = −√y − 1 .
−−−−
Now, since y ∈ T , we know that y ≥1 and hence that y −1 ≥ 0 . This means that √y − 1 ∈ R . Hence, if we use
−−−−
x = √y − 1 , then x ∈ R, and
− −−−
F (x) = F (√ y − 1 )
− −−− 2
= (√ y − 1 ) + 1
(6.3.3)
= (y − 1) + 1
= y.
An Important Lesson.
In Examples 6.12 and 6.13, the same mathematical formula was used to determine the outputs for the functions. However,
one function was not a surjection and the other one was a surjection. This illustrates the important fact that whether a
function is surjective not only depends on the formula that defines the output of the function but also on the domain and
codomain of the function.
The next example will show that whether or not a function is an injection also depends on the domain of the function.
in Examples 6.12 and 6.13.) Following is a table of values for some inputs for the function g .
Notice that the codomain is N, and the table of values suggests that some natural numbers are not outputs of this function.
So it appears that the function g is not a surjection.
To prove that g is not a surjection, pick an element of N that does not appear to be in the range. We will use 3, and we will
use a proof by contradiction to prove that there is no x in the domain (Z ) such that g(x) = 3 . So we assume that there
∗
2
x +1 = 3
2
x = 2 (6.3.4)
–
x = ±√2.
–
But this is not possible since √2 ∉ Z . Therefore, there is no x ∈ Z with g(x) = 3 . This means that for every x ∈ Z ,
∗ ∗ ∗
The table of values suggests that different inputs produce different outputs, and hence that g is an injection. To prove that
g is an injection, assume that s, t ∈ Z (the domain) with g(s) = g(t) . Then
∗
2 2
s +1 = t +1
(6.3.5)
2 2
s = t .
Since s, t ∈ Z , we know that s ≥ 0 and t ≥ 0 . So the preceding equation implies that s = t . Hence, g is an injection.
∗
An Important Lesson
The functions in the three preceding examples all used the same formula to determine the outputs. The functions in Exam-
ples 6.12 and 6.13 are not injections but the function in Example 6.14 is an injection. This illustrates the important fact
that whether a function is injective not only depends on the formula that defines the output of the function but also on the
domain of the function.
−2 ≤ y ≤ 10 . Please keep in mind that the graph is does not prove your conclusions, but may help you arrive at the
Answer
Add texts here. Do not delete this text first.
By adding the corresponding sides of the two equations in this system, we obtain 3a = 3c and hence, a =c . Substituting
a = c into either equation in the system give us b = d . Since a = c and b = d , we conclude that
(a, b) = (c, d) .
Hence, we have shown that if f (a, b) = f (c, d) , then (a, b) = (c, d) . Therefore, f is an injection.
Now, to determine if f is a surjection, we let (r, s) ∈ R × R , where (r, s) is considered to be an arbitrary element of the
codomain of the function f . Can we find an ordered pair (a, b) ∈ R × R such that f (a, b) = (r, s) ? Working backward, we
see that in order to do this, we need
(2a + b, a − b) = (r, s).
r+s r − 2s r+s r − 2s
= (2( )+ , − )
3 3 3 3 (6.3.7)
2r + 2s + r − 2s r + s − r + 2s
= ( , )
3 3
= (r, s).
This proves that for all (r, s) ∈ R × R , there exists (a, b) ∈ R × R such that f (a, b) = (r, s) . Hence, the function f is a
surjection. Since f is both an injection and a surjection, it is a bijection.
Answer
Add texts here. Do not delete this text first.
Exercise 6.3
1. (a) Draw an arrow diagram that represents a function that is an injection but is not a surjection.
(b) Draw an arrow diagram that represents a function that is an injection and is a surjection.
(c) Draw an arrow diagram that represents a function that is not an injection and is not a surjection.
(d) Draw an arrow diagram that represents a function that is not an injection but is a surjection.
(e) Draw an arrow diagram that represents a function that is not a bijection.
2. Let Z = {0, 1, 2, 3, 4} and let Z = {0, 1, 2, 3, 4, 5}. For each of the following functions, determine if the function
5 6
3. For each of the following functions, determine if the function is an injection and determine if the function is a
surjection. Justify all conclusions.
Note: R = {x ∈ R | x ≥ 0}.
∗
p1 : A × B → A by p1 (a, b) = a (6.3.8)
for every (a, b) ∈ A × B . That is the first projection function introduced in Exercise (5) in Section 6.2.
(a) Is the function p a surjection? Justify your conclusion.
1
(c) Under what condition(s) is the function p not an injection? Make a conjecture and prove it.
1
Suggestions. Start by calculating several outputs for the function before you attempt to write a proof. In exploring
whether or not the function is an injection, it might be a good idea to uses cases based on whether the inputs are even
or odd. In exploring whether f is a surjection, consider using cases based on whether the output is positive or less than
or equal to zero.
(a)
Proposition. The function f : R ×R → R ×R defined by f (x, y) = (2x + y, x − y) is an injection.
Proof
For each (a, b) and (c, d) in R × R , if f (a, b) = f (c, d), then
(2a + b, a − b) = (2c + d, c − d).
a−b = c −d
(6.3.11)
3a = 3c
a = c
(b)
Proposition. The function f : R ×R → R ×R defined by f (x, y) = (2x + y, x − y) is an surjection.
Proof
We need to find an ordered pair such that f (x, y) = (a, b) for each (a, b) in R ×R . That is, we need
(2x + y, x − y) = (a, b) , or
2x + y = a and x − y = b .
Treating these two equations as a system of equations and solving for x and y, we find that
a+b a − 2b
x = and y = .
3 3
a+b a − 2b a+b a − 2b
= (2( )+ , − )
3 3 3 3
2a + 2b + a − 2b a + b − a + 2b (6.3.12)
= ( , )
3 3
3a 3b
= ( , )
3 3
= (a, b).
Therefore, we. have proved that for every (a, b) ∈ R × R , there exists an (x, y) ∈ R × R such that
f (x, y) = (a, b) . This proves that the function f is a surjection.
(a) Sketch a graph of the function f . Is the function f and injection? Is the function f a surjection? Justify your
conclusions.
For each of the following functions, determine if the function is an injection and determine if the function is a
surjection. Justify all conclusions.
⎧ 0.8, if x = 0;
(c) h : Z → {0, 1} by
0, if x is even;
h(x) = { (6.3.15)
1, if x is odd.
19. Functions Whose Domain is M 2 (R) . Let M 2 (R) . represent the set of all 2 by 2 matrices over R.
This is the determinant function introduced in Exercise (9) from Section 6.2. Is the determinant function an
injection? Is the determinant function a surjection? Justify your conclusions.
Answer
Add texts here. Do not delete this text first.
f : A → B and g : B → C . Notice that if x ∈ A , then f (x) ∈ B. Since f (x) ∈ B, we can apply the function g to f (x),
1 Choose an input. x
2 Multiply by 3. 3x
3 Add 2. 3x + 2
−−−−−−−−−−
sin(4x + 3)
5. k : R → R by k(x) = √ 3
2
, for each x ∈ R.
x +1
Composition of Functions
There are several ways to combine two existing functions to create a new function. For example, in calculus, we learned how
to form the product and quotient of two functions and then how to use the product rule to determine the derivative of a product
of two functions and the quotient rule to determine the derivative of the quotient of two functions. The chain rule in calculus
In this case, f (x), the output of the function f , was used as the input for the function g . We now give the formal definition of
the composition of two functions.
It is helpful to think of composite function g ∘ f as "f followed by g ". We then refer to f as the inner function and g as the
outer function.
Composition and Arrow Diagrams
The concept of the composition of two functions can be illustrated with arrow diagrams when the domain and codomain of the
functions are small, finite sets. Although the term “composition” was not used then, this was done in Preview Activity 6.4.1,
and another example is given here.
Let A = {a, b, c, d} , B = {p, q, r} , and C = {s, t, u, v} . The arrow diagram in Figure 6.7 shows two functions: f : A → B
and g : B → C .
If we follow the arrows from the set A to the set C , we will use the outputs of f as inputs of g , and get the arrow diagram
from A to C shown in Figure 6.8. This diagram represents the composition of f followed by g .
Answer
Add texts here. Do not delete this text first.
Decomposing Functions
We use the chain rule in calculus to find the derivative of a composite function. The first step in the process is to recognize a
given function as a composite function. This can be done in many ways, but the work in Preview Activity 6.4.2 can be used to
decompose a function in a way that works well with the chain rule. The use of the terms “inner function” and “outer function”
can also be helpful. The idea is that we use the last step in the process to represent the outer function, and the steps prior to that
to represent the inner function. So for the function,
f : R → R by f (x) = (3x + 2) , 3
the last step in the verbal description table was to cube the result. This means that we will use the function g (the cubing
function) as the outer function and will use the prior steps as the inner function. We will denote the inner function by h . So we
let h : R → R by h(x) = 3x + 2 and g : R → R by g(x) = x . Then 3
(g ∘ h)(x) = g(h(x))
= g(3x + 2)
(6.4.2)
3
= (3x + 2)
= f (x).
We see that g ∘ h = f and, hence, we have “decomposed” the function f . It should be noted that there are other ways to write
the function f as a composition of two functions, but the way just described is the one that works well with the chain rule. In
this case, the chain rule gives
f ′(x) = (g ∘ h)′(x)
= g′(h(x))h′(x)
(6.4.3)
2
= 3(h(x)) ⋅3
2
= g(3x + 2)
2. G : R → R by G(x) = I n(x + 3) 2
3. f : Z → Z by f (x) = |x − 3|
2
Answer
Add texts here. Do not delete this text first.
1. Draw an arrow diagram for a function f : A → B that is an injection and an arrow diagram for a function g : B → C
that is an injection. In this case, is the composite function g ∘ f : A → C an injection? Explain.
2. Draw an arrow diagram for a function f : A → B that is a surjection and an arrow diagram for a function g : B → D
that is a surjection. In this case, is the composite function g ∘ f : A → D a surjection? Explain.
3. Draw an arrow diagram for a function f : A → B that is a bijection and an arrow diagram for a function g : B → A
that is a bijection. In this case, is the composite function g ∘ f : A → A bijection? Explain.
Answer
Add texts here. Do not delete this text first.
In Progress Check 6.19, we explored some properties of composite functions related to injections, surjections, and bijections.
The following theorem contains results that these explorations were intended to illustrate. Some of the proofs will be included
in the exercises.
Theorem 6.20.
Let A , B , and C be nonempty sets and assume that f : A → B and g : B → C .
1. If f and g are both injections, then (g ∘ f ) : A → C is an injection.
2. If f and g are both surjections, then (g ∘ f ) : A → C is an surjection.
3. If f and g are both bijections, then (g ∘ f ) : A → C is an bijection.
Proof
The proof of Part (1) is Exercise (6).
Part (3) is a direct consequence of the first two parts. We will discuss a process for constructing a proof of Part (2). Using
the forward-backward process, we first look at the conclusion of the conditional statement in Part (2). The goal is to prove
that g ∘ f is a surjection. Since (g ∘ f ) : A → C , this is equivalent to proving that
For all c ∈ C , there exists an a ∈ A such that (g ∘ f )(a) = c .
Since this statement in the backward process uses a universal quantifier, we will use the choose-an-element method and
choose an arbitrary element c in the set C . The goal now is to find an a ∈ A such that (g ∘ f )(a) = c .
Now we can look at the hypotheses. In particular, we are assuming that both f : A → B and g : B → C are surjections.
Since we have chosen c ∈ C , and g : B → C is a surjection, we know that
there exists a b ∈ B such that g(b) = c .
Let c be an arbitrary element of C . We will prove there exists an a ∈ A such that (g ∘ f )(a) = c . Since g : B → C is a
surjection, we conclude that
there exists a b ∈ B such that g(b) = c .
Now, b ∈ B and f : A → B is a surjection. Hence
there exists an a ∈ A such that f (a) = b .
We now see that
= g(b)
= c.
We have now shown that for every c ∈ C , there exists an a ∈ A such that (g ∘ f )(a) = c , and this proves that g ∘ f is a
surjection.
Theorem 6.20 shows us that if f and g are both special types of functions, then the composition of f followed by g is also that
type of function.The next question is, “If the composition of f followed by g is an injection (or surjection), can we make any
conclusions about f or g ?” A partial answer to this question is provided in Theorem 6.21. This theorem will be investigated
and proved in the Explorations and Activities for this section. See Exercise (10).
Theorem 6.21
Let A , B , and C be nonempty sets and assume that f : A → B and g : B → C .
1. If g ∘ f : A → C is an injection, then f : A → B is an injection.
2. If g ∘ f : A → C is a surjection, then f : A → B is a surjection.
Exercise 6.4
1. In our definition of the composition of two functions, f and g , we required that the domain of g be equal to the
codomain of f . However, it is sometimes possible to form the composite function g ∘ f even though dom(g ) ≠
codom(f ). For example, let
2
f : R → R textbedef inedby f (x) = x + 1, and let
1 (6.4.4)
g : R − {0} → R textbedef inedby g(x) = .
x
composite functions g ∘ h and h ∘ g . Is the function g ∘ h equal to the function h ∘ g ? Explain. What does this tell
you about the operation of composition of functions?
3. Following are formulas for certain real functions. Write each of these real functions as the composition of two
functions. That is, decompose each of the functions.
1
(c) H (x) =
sinx
2
(a) For each x ∈ A , determine (f ∘ I )(x) and use this to prove that f ∘ I = f .
A A
5. (a) Let f : R → R be defined by f (x) = x , let g : R → R be defined by g(x) = sinx , and let
2
h : R → R be
defined by h(x) = √− x.
3
(b) Now let A ,, and C be sets and let f : A → B , g : B → C , and h : C → D . Prove that
B
(a) Let f : R → R by f (x) = x + 1 for each x ∈ R. For each n ∈ N and for each x ∈ R, determine a formula for
f (x) and use induction to prove that your formula is correct.
n
(b) Let a, b ∈ R and let f : R → R by f (x) = ax + b for each x ∈ R. For each n ∈ N and for each x ∈ R, determine
a formula for f (x) and use induction to prove that your formula is correct.
n
(c) Now let A be a nonempty set and let f : A → A . Use induction to prove that for each n ∈ N , f =f ∘f .
n+1 n
It might be helpful to consider examples where the sets are small. Try constructing examples where the set A has 2
elements, the set B has 3 elements, and the set C has 2 elements.
(a) Is it possible to construct an example where g ∘ f is an injection, f is an injection, but g is not an injection? Either
construct such an example or explain why it is not possible.
(b) Is it possible to construct an example where g ∘ f is an injection, g is an injection, but f is not an injection? Either
construct such an example or explain why it is not possible.
(c) Is it possible to construct an example where g ∘ f is a surjection, f is a surjection, but g is not a surjection? Either
construct such an example or explain why it is not possible.
(d) Is it possible to construct an example where g ∘ f is a surjection, g is a surjection, but f is not a surjection? Either
construct such an example or explain why it is not possible.
10. The Proof of Theorem 6.21. Use the ideas from Exercise (9) to prove Theorem 6.21. Let A , B and C be nonempty
sets and let f : A → B and g : B → C .
Hint: For part (a), start by asking, “What do we have to do to prove that f is an injection? ” Start with a similar
question for part (b).
Answer
Add texts here. Do not delete this text first.
See Preview Activity 6.5.2 in Section 5.4 for a more thorough discussion of this concept.
Note: Since F is the name of the function, it is customary to use F as the name for the set of ordered pairs.
1. Let A = {1, 2, 3} and let C = {a, b, c, d}. Define the function g : A → C by g(1) = a , g(2) = b , and g(3) = d . Write the
function g as a set of ordered pairs in A × C .
For another example, if we have a real function, such as: g : R → R by g(x) = x 2
−2 , then we can think of g as the following
infinite subset of R × R :
2
g = {(x, y) ∈ R × R | y = x − 2}.
2. Let f : Z → Z be defined by f (m) = 3m + 5 , for all m ∈ Z . Use set builder notation to write the function f as a set of
ordered pairs, and then use the roster method to write the function f as a set of ordered pairs.
So any function f : A → B can be thought of as a set of ordered pairs that is a subset of A × B . This subset is
f = {(a, f (a)) | a ∈ A} or f = {(a, b) ∈ A × B | b = f (a)}.
then we could think of G as a function from A to B with G(1) = a , G(2) = a , and G(3) = b . The idea is to use the first
coordinate of each ordered pair as the input, and the second coordinate as the output. However, not every subset of A × B can be
used to define a function from A to B . This is explored in the following questions.
3. Let f = {(1, a), (2, a), (3, a), (1, b)}. Could this set of ordered pairs be used to define a function from A to B ? Explain.
4. Let g = {(1, a), (2, a), (3, a)} . Could this set of ordered pairs be used to define a function from A to B ? Explain.
5. Let h = {(1, a), (2, b)}. Could this set of ordered pairs be used to define a function from A to B ? Explain.
However, we also learned that some sets of ordered pairs cannot be used to define a function. We now wish to explore under what
conditions a set of ordered pairs can be used to define a function. Starting with a function f : A → B , since dom(f ) = A , we know
that
For every a ∈ A, there exists a b ∈ B such that (a, b) ∈ f . (6.5.1)
Specifically, we use b = f (a) . This says that every element of A can be used as an input. In addition, to be a function, each input can
produce only one output. In terms of ordered pairs, this means that there will never be two ordered pairs (a, b) and (a, c) in the
function f where a ∈ A , b, c ∈ B , and b ≠ c . We can formulate this as a conditional statement as follows:
For every a ∈ A and every b, c ∈ B, (6.5.2)
This also means that if we start with a subset f of A × B that satisfies conditions in Equation 6.5.1 and 6.5.2, then we can consider f
to be a function from A to B by using b = f (a) whenever (a, b) is in f . This proves the following theorem.
Theorem 6.22
Let A and B be nonempty sets and let f be a subset of A × B that satisfies the following two properties:
For every a ∈ A , there exists b ∈ B such that (a, b) ∈ f ; and
For every a ∈ A and every b, c ∈ B , if (a, b) ∈ f and (a, c) ∈ f , then b = c .
If we use f (a) = b whenever (a, b) ∈ f , then f is a function from A to B .
A Note about Theorem 6.22. The first condition in Theorem 6.22 means that every element of A is an input, and the second condition
ensures that every input has exactly one output. Many texts will use Theorem 6.22 as the definition of a function. Many
mathematicians believe that this ordered pair representation of a function is the most rigorous definition of a function. It allows us to
use set theory to work with and compare functions. For example, equality of functions becomes a question of equality of sets.
Therefore, many textbooks will use the ordered pair representation of a function as the definition of a function.
Progress Check 6.23 (Sets of Ordered Pairs that Are Not Functions)
Let A = {1, 2, 3} and let B = {a, b} . Explain why each of the following subsets of A×B cannot be used to define a function
from A to B .
1. F = {(1, a), (2, a)},
2. G = {(1, a), (2, b), (3, c), (2, c)}.
Answer
Add texts here. Do not delete this text first.
Notice that this means that x is the input and y is the output for the natural logarithm function if and only if y is the input and x is the
output for the exponential function. In essence, the inverse function (in this case, the exponential function) reverses the action of the
original function (in this case, the natural logarithm function). In terms of ordered pairs (input-output pairs), this means that if (x, y) is
Notice that this definition does not state that f is a function. It is simply a subset of B × A . After we study the material in Chapter
−1
7, we will say that this means that f is a relation from B to A . This fact, however, is not important to us now. We are mainly
−1
Under what conditions will the inverse of the function f : A → B be a function from B to A?
4. Draw an arrow diagram for each inverse from Part (3) that is a function. Use your existing arrow diagram from Part (1) to
draw this arrow diagram.
5. Make a conjecture about what conditions on a function F : S → T will ensure that its inverse is a function from T to S .
Answer
Add texts here. Do not delete this text first.
We will now consider a general argument suggested by the explorations in Progress Check 6.24. By definition, if f : A → B is a
function, then f −1
is a subset of B × A . However, f may or may not be a function from B to A . For example, suppose that
−1
In this case, if we try to reverse the arrows, we will not get a function from B to A . This is because (y, s) ∈ f and −1
(y, t) ∈ f
−1
with s ≠ t . Consequently, f is not a function. This suggests that when f is not an injection, then f is not a function.
−1 −1
Also, if f is not a surjection, then there exists a z ∈ B such that f (a) ≠ z for all a ∈ A , as in the diagram in Figure 6.9. In other
words, there is no ordered pair in f with z as the second coordinate. This means that there would be no ordered pair in f with z as a
−1
Theorem 6.25.
Let A and B be nonempty sets and let f : A → B . The inverse of f is a function from B to A if and only if f is a bijection.
Proof
Let A and B be nonempty sets and let f : A → B . We will first assume that f is a bijection and prove that f is a function −1
from B to A. To do this, we will show that f satisfies the two conditions of Theorem 6.22.
−1
We first choose b ∈ B . Since the function f is a surjection, there exists an a ∈ A such that f (a) = b . This implies that
(a, b) ∈ f and hence that (b, a) ∈ f . Thus, each element of B is the first coordinate of an ordered pair in f , and hence
−1 −1
f
−1
satisfies the first condition of Theorem 6.22.
To prove that f satisfies the second condition of Theorem 6.22, we must show that each element of B is the first coordinate
−1
(b, a1 ) ∈ f
−1
and (b, a 2) ∈ f
−1
.
This means that \((a_1, b) \in f) and \((a_2, b) \in f). We can then conclude that
f (a1 ) = b and f (a 2) =b .
But this means that f (a ) = f (a ) . Since f is a bijection, it is an injection, and we can conclude that a = a . This proves
1 2 1 2
that b is the first element of only one ordered pair in f . Consequently, we have proved that f satisfies both conditions of
−1 −1
We now assume that f is a function B to A and prove that f is a bijection. First, to prove that f is an injection, we assume
−1
that a , a ∈ A and that f (a ) = f (a ) . We wish to show that a = a . If we let b = f (a ) = f (a ) , we can conclude that
1 2 1 2 1 2 1 2
is a function, b must be the first coordinate of some ordered pair in f . Consequently, there exists an a ∈ A such that
−1
(b, a) ∈. f
−1
.
Now this implies that (a, b) ∈ f and hence that f (a) = b . This proves that f is a surjection. Since we have also proved that f
is an injection, we conclude that f is a bijection.
frequently say that f is an invertible function, and we usually do not use the ordered pair representation for either f or f . Instead of −1
writing (a, b) ∈ f , we write f (a) = b , and instead of writing (b, a) ∈. f , we write f (b) = a . Using the fact that (a, b) ∈ f if and
−1 −1
only if (b, a) ∈. f , we can now write f (a) = b if and only if f (b) = a . We summarize this in Theorem 6.26.
−1 −1
Theorem 6.26
Let A and B be nonempty sets and let f : A → B to be a bijection. Then f −1
: B → A is a function, and for every a ∈ A and
b ∈ B.
Corollary 6.28.
Let A and B be nonempty sets and let f : A → B be a bijection. Then
1. For every x in A , (f ∘ f )(x) = x ).
−1
Proof
Let A and B be nonempty sets and assume that f : A → B is a bijection. So let x ∈ A and let f (x) = y . By Theorem 6.26,
we can conclude that f (y) = x . Therefore,
−1
\begin{array} {rcl} {(f^{-1} \circ f)(x)} &= & {f^{-1}(f(x))} \\ {} &= & {f^{-1}(y}} \\ {} &= & {x.} \end{array}
Notice that
−−
If we substitute x = y into the equation √y = x , we obtain √x = x .
3
3 3 3
This is an illustration of Corollary 6.28. We can see this by using f : R → R defined by f (x) = x and f
3 −1
: R → R defined by
(y) = √y . Then f ∘ f : R → R and f ,
−1 3 −1 −1
f ∘f =I R
\beign{array} {rcl} [(f^{-1} \circ f)(x)} &= & {x} \\ {f^{-1}(f(x))} &= & {x} \\ {f^{-1}(x^3)} &= & {x} \\ {\sqrt[3]{x^3}} &= & {x.} \end{array}
We will now consider the case where f : A → B and g : B → C are both bijections. In this case, f
−1
: B → A and g
−1
: C → B .
Figure 6.10 can be used to illustrate this situation.
Theorem 6.29.
Let f : A → B and g : B → C be bijections. Then g ∘ f is a bijection and (g ∘ f ) −1
=f
−1
∘g
−1
.
Proof
Let f : A → B and g : B → C be bijections. Then f : B → A and g : C → B . Hence, f ∘ g : C → A . Also, by
−1 −1 −1 −1
Theorem 6.20, g ∘ f : A → C is a bijection, and hence (g ∘ f ) : C → A . We will now prove that for each z ∈ C ,
−1
(z) .
−1 −1 −1
(g ∘ f ) (z) = f ∘g
g(y) = z. (6.5.3)
f (x) = y. (6.5.4)
Now these two equations can be written in terms of the respective inverse functions as
−1
= f (y) (6.5.6)
= x.
Using equations (6.5.3) and (6.5.4) again, we see that (g ∘ f )(x) = z . However, in terms of the inverse function, this means
that
−1
(g ∘ f ) (z) = x. (6.5.7)
Comparing equations (6.5.7) and (6.5.8), we have shown that for all z ∈ C , (g ∘ f )
−1
(z) = f
−1
∘g
−1
(z) . This proves that
(g ∘ f )
−1
=f ∘g
−1
. −1
Exercise 6.5
1. Let A = {1, 2, 3} and B = {a, b, c} .
(a) Construct an example of a function f : A → B that is not a bijection. Write the inverse of this function as a set of ordered
pairs. Is the inverse of f a function? Explain. If so, draw an arrow diagram for f and f . −1
(b) Construct an example of a function g : A → B that is a bijection. Write the inverse of this function as a set of ordered
pairs. Is the inverse of g a function? Explain. If so, draw an arrow diagram for g and g . −1
(c) Draw an arrow diagram for f using the arrow diagram from Exercise (2a).
−1
(d) Compute (f ∘ f )(x) and (f ∘ f (x) for each x in S . What theorem does this illustrate?
−1 −1
3. Inverse functions can be used to help solve certain equations. The idea is to use an inverse function to undo the function.
(a) Since the cube root function and the cubing function are inverses of each other, we can often use the cube root function to
help solve an equation involving a cube. For example, the main step in solving the equation
3
(2t − 1 ) = 20 (6.5.9)
is to take the cube root of each side of the equation. This gives
\[\begin{array} {rcl} {\sqrt[3]{(2t - 1)^3} &= & {\sqrt[3]{20}} \\ {2t - 1} &= &{\sqrt[3]{20}.} \end{array}\]
Explain how this step in solving the equation is a use of Corollary 6.28.
(b) A main step in solving the equation \(e^{2t - 1} = 20} is to take the natural logarithm of both sides of this equation.
Explain how this step is a use of Corollary 6.28, and then solve the resulting equation to obtain a solution for t in terms of the
natural logarithm function.
(c) How are the methods of solving the equations in Exercise (3a) and Exercise (3b) similar?
4. Prove Part (2) of Corollary 6.28. Let A and B be nonempty sets and let f : A → B be a bijection. Then for every y in B ,
(y) = y .
−1
(f ∘ f
5. In Progress Check 6.6 on page 298, we defined the identity function on a set. The identity function on the set T , denoted by
I , is the function I
T : T → T defined by I (t) = t for every t in T . Explain how Corollary 6.28 can be stated using the
T T
concept of equality of functions and the identity functions on the sets A and B .
6. Let f : A → B and g : B → A . Let I and I be the identity functions on the sets A and B , respectively. Prove each of the
A B
following:
(a) If g ∘ f = I , then f is an injection.
A
conclusion.
8. (a) Let f : R → R be defined by f (x) = x . Explain why the inverse of f is not a function.
2
(b) Let R = {t ∈ R | t ≥ 0} . Define g : R → R by g(x) = x . Explain why this squaring function (with a restricted
∗ ∗ ∗ 2
−−
(e) True or false: √x = x for all x ∈ R.
2
10. For each natural number k , let A be a set, and for each natural number n , let f : A → A
k . n n n+1
Use mathematical induction to prove that for each natural number n with n ≥ 2 , if f , f , ..., f are all bijections, then 1 2 n
f ∘f
n n−1 ∘⋅⋅⋅∘f ∘f 2 is a bijection and
1
\[(f_n \circ f_{n - 1} \circ \cdot\cdot\cdot \circ f_2 \circ f_1)^{-1} = f_{1}^{-1} \cdot f_{2}^{-1} \cdot \cdot\cdot\cdot \circ
f_{n - 1}^{-1} \circ f_{n}^{-1}
Note: This is an extension of Theorem 6.29. In fact, Theorem 6.29 is the basis step of this proof for n = 2 .
11. a)Def ine\(f : R → R by f (x) = x − 4 for all x ∈ R. Explain why the inverse of the function f is not a function.
2
Explain why the inverse of the function F is a function and find a formula for F (y), where y ∈ T . −1
(a) Define f : Z → Z by f (x) = x + 4 (mod 5) for all x ∈ Z . Write the inverse of f as a set of ordered pairs and explain
5 5
2
5
(b) Define g : Z → Z by g(x) = x + 4 (mod 5) for all x ∈ Z . Write the inverse of g as a set of ordered pairs and explain
5 5
3
5
possible to define a cube root of elements of Z . Recall that for a real number x, we define the cube root of x to the real
5
3 − 3
y = √x if and only if y = x. (6.5.10)
– – – – –
Using this idea, is it possible to define the cube root of each number in Z ? If so, what is √0, √1, √2, √3, and √4. 3 3 3 3 3
(d) Now answer th equestion posed at the beginning of Part (c). If possible, determine a formula for g (y) where −1
: Z → Z .
−1
g 5 5
Let y ∈ R . One way to prove that f is a surjection is to set y = f (x) and solve for x. If this can be done, then we would know
that there exists an x ∈ R such that f (x) = y . For the function f , we are using x for the input and y for the output. By solving
for x in terms of y , we are attempting to write a formula where y is the input and x is the output. This formula represents the
inverse function.
(b) Solve the equation y = 2x − 7 for x. Use this to write a formula for f (y), where f : R → R .
3 −1 −1
(c) Use the result of Part (13b) to verify that for each x ∈ R, f (f (x)) = x and for each y ∈ R , f (f
−1 −1
(y)) = y .
Now let R +
= {y ∈ R | y > 0} . Define g : R → R +
by g(x) = e 2x−1
.
(f) For each x ∈ R, determine (h ∘ g)(x) and for each y ∈ R , determine (g ∘ h)(y) . +
14. The Inverse Sine Function. We have seen that in order to obtain an inverse function, it is sometimes necessary to restrict the
domain (or the codomain) of a function.
(a) Let f : R → R be defined by f (x) = sinx. Explain why the inverse of the function f is not a function. (A graph may be
helpful.)
Notice that if we use the ordered pair representation, then the sine function can be represented as
f = {(x, y) ∈ R → R | y = sinx}. (6.5.11)
Part (14a) proves that f is not a function. However, in previous mathematics courses, we frequently used the “inverse sine
−1
function.” This is not really the inverse of the sine function as defined in Part (14a) but, rather, it is the inverse of the sine
π π
function restricted to the domain [− , .
]
2 2
π π
(b) Explain why the function F : [− , ] → [−1, 1] defined by F (x) = sinx is a bijection.
2 2
The inverse of the function in Part (14b) is itself a function and is called the inverse sine function (or sometimes the arcsine
(c) What is the domain of the inverse sine function? What are the range and codomain of the inverse sine function?
Let us now use F (x) = sin(x) to represent the restricted sine function in Part (14b). Therefore, F
−1 −1
(x) = sin (x) can be
used to represent the inverse sine function. Observe that
π π π π
−1
F : [− , ] → [−1, 1] and F : [−1, 1] → [− , ]. (6.5.13)
2 2 2 2
Answer
Add texts here. Do not delete this text first.
1. Let A = {a, c} and B = {a, d} . Notice that A and B are subsets of S . Use the roster method to specify the elements of
the following two subsets of T :
(a) {f (x) | x ∈ A}
(b) {f (x) | x ∈ B}
2. Let C = {s, t} and D = {s, u} . Notice that C and D are subsets of T . Use the roster method to specify the elements of
the following two subsets of S :
(a) {x ∈ S | f (x) ∈ C }
(b) {x ∈ S | f (x) ∈ D}
3. Let A = {1, 2, 3, −1}. Use the roster method to specify the elements of the set {g(x) | x ∈ A} .
4. Use the roster method to specify the elements of each of the following sets:
(a) {x ∈ R | g(x) = 1}
(b) {x ∈ R | g(x) = 9}
(c) {x ∈ R | g(x) = 15}
(d) {x ∈ R | g(x) = −1}
5. Let B = {1, 9, 15, −1}. Use the roster method to specify the elements of the set
\{\x \in \mathbb{R}\ |\ g(x) \in B\}\).
Preview Activity 2 (Functions and Intervals)
Let g : R → R be defined by g(x) = x , for each x ∈ R.
2
1. We will first determine where g maps the closed interval [1, 2]. (Recall that [1, 2] = {x ∈ R | 1 ≤ x ≤ 2} .) That is, we
will describe, in simpler terms, the set {g(x) | x ∈ [1, 2]}. This is the set of all images of the real numbers in the closed
interval [1, 2].
(c) Now draw horizontal lines from the points P and Q to the y-axis. Use this information from the graph to describe the
set {g(x) | x ∈ [1, 2]} in simpler terms. Use interval notation or set builder notation.
2. We will now determine all real numbers that g maps into the closed interval [1, 4]. That is, we will describe the set
{x ∈ R | g(x) ∈ [1, 4]} in simpler terms. This is the set of all preimages of the real numbers in the closed interval [1, 4].
Definition
Let f : S → T . If A ⊆ S , then the image of A under f is the set f (A), where
f (A) = {f (x) | x ∈ A} .
If there is no confusion as to which function is being used, we call f (A) the image of A.
We now consider the situation in which C is a subset of T and consider the subset of A consisting of all elements of T whose
outputs are in C .
Definition
Let f : S → T . If C ⊆T , then the preimage of C under f is the set f −1
(C ), where
f
−1
(C ) = {x ∈ S | f (x) ∈ C } .
If there is no confusion as to which function is being used, we call f −1
(C ) the preimage of C . The preimage of the set
C under f is also called the inverse image of C under f .
4. f (D)−1
Answer
Add texts here. Do not delete this text first.
The graphs from Preview Activity 6.6.2 illustrate the following results:
If C is the closed interval [1, 4], then the preimage of the set C is
−1
f (C ) = {x ∈ R | f (x) ∈ [1, 4]} = [−2, −1] ∪ [1, 2]. (6.6.2)
1. Verify that f (0) = 2 , f (1) = 3 , f (2) = 6 , and f (3) = 3 . Then determine f (4), f (5), f (6) and f (7).
2. Determine f (A), F = f (A = B) , f (C ), and f (D).
−1 −1
3. For each of the following, determine the two subsets of Z and then determine if there is a relationship between the
8
two sets. For example, A ∩ B = {4} and since f (4) = 2 , we see that f (A ∩ B) = {2} .
(d) f (C ∪ D) and f (C ) ∪ f
−1 −1 −1
(D)
Answer
Add texts here. Do not delete this text first.
2. (a) Explain why f (A ∩ B) = [2, 3] and f (A) ∩ f (B) = [2, 6] . So in this case, f (A ∩ B) ⊆ f (A) ∩ f (B) .
(b) Explain why f (A ∪ B) = [2, 11] and f (A) ∪ f (B) = [2, 11] . So in this case, f (A ∪ B) ⊆ f (A) ∪ f (B) .
(c) Explain why f (C ∩ D) = [−1, 1] and f (C ) ∩ f (D) = [−1, 1] .
−1 −1 −1
So in this case,
(D) .
−1 −1 −1
f (C ∩ D) ⊆ f (C ) ∩ f
3. Reacll that A = [0, 3]. Notice f (A) = [2, 11] is a subset of the codomain, R. Explain why f (f (A)) = [−3, 3] . −1
Since f f (A)) is a subset of the domain, R, we see that in this case, A ⊆ f (f (A)) .
−1 −1
4. Reacll that C = [2, 6]. Notice f (C ) = [−2, 2] is a subset of the codomain, R. Explain why f (f f (C )) = [2, 6].
−1 −1
The examples in Progress Check 6.32 and Example 6.33 were meant to illustrate general results about how functions act on
sets. In particular, we investigated how the action of a function on sets interacts with the set operations of intersection and
union. We will now state the theorems that these examples were meant to illustrate. Some of the proofs will be left as
exercises.
Theorem 6.34.
Let f : S → T be a function and let A and B be subsets of S . Then
1. f (A ∩ B \subseteq f(A) \cap f(B)\)
2. f (A ∪ B = f(A) \cup f(B)\)
Proof
We will prove Part (1). The proof of Part (2) is Exercise (5).
Theorem 6.35
Let f : S → T be a function and let C and D be subsets of T . Then
1. f −1
(C ∩ D) = f
−1
(C ) ∩ f
−1
(D)
2. f −1
(C ∪ D) = f
−1
(C ) ∪ f
−1
(D)
Proof
We will prove Part (2). The proof of Part (1) is Exercise (6).
Assume that f : S → T is a function and that C and D are subsets of T . We will prove that
f
−1
(C ∪ D) = f (C ) ∪ f
−1
(D) by proving that each set is a subset of the other.
−1
We now let t ∈ f −1
(C ) ∪ f
−1
(D) . This means that
t ∈ f
−1
(C ) or t ∈ f −1
(D)
Similarly, when t ∈ f −1
(D) , it follows that f (t) ∈ D and hence that f (t) ∈ C ∪ D . This means that
(C ∪ D) .
−1
t ∈ f
Since we have now proved that each of the two sets is a subset of the other set, we can conclude that
(D) .
−1 −1 −1
f (C ∪ D) = f (C ) ∪ f
Theorem 6.36.
Let f : S → T be a function and let A be a subset of S and let C be a subset of T . Then
1. A ⊆ f (f (A)) −1
2. f (f (C )) ⊆ C
−1
Proof
We will prove Part (1). The proof of Part (2) is Exercise (7).
To prove Part (1), we will prove that for all a ∈ S , if a ∈ A , then a ∈ f (f (A)) . So let a ∈ A . Then, by definition,
−1
−1
f (f (A)) = {x ∈ S | f (x) ∈ f (A)}.
Exercise 6.6
1. Let f : S → T . let A and B be subsets of S , and let C and D be subsets of T . For x ∈ S and y ∈ T , carefully
explain what it means to say that
(a) y ∈ f (A ∩ B)
(b) y ∈ f (A ∪ B)
(c) y ∈ f (A) ∩ f (B)
(d) y ∈ f (A) ∪ f (B)
(e) x ∈ f (C ∩ D)
−1
(f) x ∈ f (C ∪ D)
−1
(g) x ∈ f (C ) ∩ f (D)
−1 −1
(h) x ∈ f (C ) ∪ f (D)
−1 −1
(a) f (A)
(b) f (f (A))
−1
(c) f (C )
−1
(d) f (f (C ))
−1
(e) f (A ∩ B)
(f) f (A) ∩ f (B)
(g) f (C ∩ D)
−1
(h) f (C ) ∩ f (D)
−1 −1
3. Let g : N × N → N by g(m, n) = 2 m n
3 , let A = {1, 2, 3}, and let C = {1, 4, 6, 9, 12, 16, 18} . Find
(a) g(A × A)
(b) g (C )
−1
(d) g(g (C ))
−1
(b) Part (2) of Theorem 6.36 states that f (f (C )) ⊆ C . Give an example where C \notsubseteqf (f (C )).
−1 −1
12. Is the following proposition true or false? Justify your conclusion with a proof or a counterexample.
If f : S → T is an injection and A ⊆ S , then f (f (A)) = A .
−1
13. Is the following proposition true or false? Justify your conclusion with a proof or a counterexample.
If f : S → T is an injection and C ⊆ T , then f (f (C )) = C .
−1
14. Let (f: S \to T\). Prove that f (A ∩ B) = f (A) ∩ f (B) for all subsets A and B of S if and only if f is an injection.
Answer
Add texts here. Do not delete this text first.
Theorem 6.26. Let A and B be nonempty sets and let f : A → B be a bijection. Then f : B → A is a function, and for
−1
every a ∈ A and b ∈ B ,
f (a) = b if and only if f (b) = a .
−1
Corollary 6.28. Let A and B be nonempty sets and let f : A → B be a bijection. Then
1. f (A ∩ B) ⊆ f (A) ∩ f (B)
2. f (A ∪ B) = f (A) ∪ f (B)
Theorem 6.35. Let f : S → T be a function and let C and D be subsets of T . Then
1. f (C ∩ D) = f
−1 −1
(C ) ∩ f
−1
(D)
2. f (C ∪ D) = f
−1 −1
(C ) ∩ f
−1
(D)
Theorem 6.36. Let f : S → T be a function and let A\(beasubsetof \(S and let C be a subset of T . Then
1. A ⊆ f (f (A))
−1
2. f (f (C ) ⊆ C
−1
7.1: RELATIONS
The notion of a function can be thought of as one way of relating the elements of one set with those of another set (or the same set). A
function is a special type of relation in the sense that each element of the first set, the domain, is “related” to exactly one element of
the second set, the codomain. This idea of relating the elements of one set to those of another set using ordered pairs is not restricted
to functions.
1 7/21/2021
7.1: Relations
Let A be the set of all states in the United States and let
R = {(x, y) ∈ A × A | x and y have a land border in common} .
For example, since California and Oregon have a land border, we can say that (California, Oregon) ∈ R and (Oregon,
California) ∈ R . Also, since California and Michigan do not share a land border, (California, Michigan) ∉ R and
(Michigan, California) ∉ R .
1. Use the roster method to specify the elements in each of the following sets:
(a) B = {y ∈ A | (Michigan, y) ∈ R}
(b) C = {x ∈ A | (x, Michigan) ∈ R}
(c) D = {y ∈ A | (Wisconsin, y) ∈ R}
2. Find two different examples of two ordered pairs (x, y) and (y, z) such that (x, y) ∈ R, (y, z) ∈ R , but (x, z) ∉ R , or
explain why no such example exists. Based on this, is the following conditional statement true or false?
PREVIEW ACTIVITY 7.1.2 : The Solution Set of an Equation with Two Variables
In Section 2.3, we introduced the concept of the truth set of an open sentence with one variable. This was defined to be
the set of all elements in the universal set that can be substituted for the variable to make the open sentence a true
proposition. Assume that x and y represent real numbers. Then the equation
2 2
4x +y = 16
is an open sentence with two variables. An element of the truth set of this open sentence (also called a solution of the
equation) is an ordered pair (a, b) of real numbers so that when a is substituted for x and b is substituted for y , the
predicate becomes a true statement (a true equation in this case). We can use set builder notation to describe the truth set
S of this equation with two variables as follows:
2 2
S = {(x, y) ∈ R × R | 4 x +y = 16}.
When a set is a truth set of an open sentence that is an equation, we also call the set the solution set of the equation.
1. List four different elements of the set S .
2. The graph of the equation 4x + y = 16 in the xy-coordinate plane is an ellipse. Draw the graph and explain why
2 2
this graph is a representation of the truth set (solutions set) of the equation 4x + y = 16 . 2 2
Introduction to Relations
In Section 6.1, we introduced the formal definition of a function from one set to another set. The notion of a function can be
thought of as one way of relating the elements of one set with those of another set (or the same set). A function is a special
Definition: relations
Let A and B be sets. A relation R from the set A to the set B is a subset of A × B . That is, R is a collection of
ordered pairs where the first coordinate of each ordered pair is an element of A , and the second coordinate of each
ordered pair is an element of B .
A relation from the set A to the set A is called a relation on the set A. So a relation on the set A is a subset of A × A .
In Section 6.1, we defined the domain and range of a function. We make similar definitions for a relation.
Activity 7.1.2, we actually determined the domain and range of this relation.
dom(S ) = A = {x ∈ R | there exists a y ∈ R such that 4x 2
+y
2
= 16}
So from the results in Preview Activity 7.1.2, we can say that the domain of the relation S is the closed interval [-2, 2]
and the range of S is the closed interval [-4, 4].
2. From Preview Activity 7.1.1, A is the set of all states in the United States, and
R = {(x, y) ∈ A × A | x and y have a border in common}. (7.1.1)
Answer
Add texts here. Do not delete this text first.
In some cases, we will even use a generic relation symbol for defining a new relation or speaking about relations in a general
context. Perhaps the most commonly use symbol is "~", read “tilde” or “squiggle” or “is related to.” When we do this, we will
write
x y means the same thing as (x, y) ∈ R; and
(7.1.2)
x ≁y means the same thing as (x, y) ∉ R.
Answer
Add texts here. Do not delete this text first.
Functions as Relations
If we have a function f : A → B , we can generate a set of ordered pairs f that is a subset of A × B as follows:
f = {(a, f (a)) | a ∈ A} or f = {(a, b) ∈ A × B | b = f (a)}.
(a) A = {x ∈ R | (x, 4) ∈ F }
(b) B = {x ∈ R | (x, 10) ∈ F }
(c) C = {y ∈ R | (5, y) ∈ F }
(d) D = {y ∈ R | (−3, y) ∈ F }
3. Since each real number x produces only one value of y for which y = x , the set 2
F can be used to define a function
from the set R to R. Draw a graph of this function.
Answer
Add texts here. Do not delete this text first.
When R is a relation from a subset of the real numbers R to a subset of R, we can often use a graph to provide a visual
representation of the relation. This is especially true if the relation is defined by an equation or even an inequality. For
example, if
The points (x, y) in the relation R are the points on the graph of y = x or are in the shaded region. This because for these
2
points, y ≥ x . One of the shortcomings of this type of graph is that the graph of the equation and the shaded region are
2
actually unbounded and so we can never show the entire graph of this relation. However, it does allow us to see that the points
in this relation are either on the parabola defined by the equation y = x or are “inside” the parabola.
2
When the domain or range of a relation is infinite, we cannot provide a visualization of the entire relation. However, if A is a
(small) finite set, a relation R on A can be specified by simply listing all the ordered pairs in R . For example, if
A = {1, 2, 3, 4}, then
R = {(1, 1), (4, 4), (1, 3), (3, 2), (1, 2), (2, 1)}
is a relation on A . A convenient way to represent such a relation is to draw a point in the plane for each of the elements of A
and then for each (x, y) ∈ R (or x R y ), we draw an arrow starting at the point x and pointing to the point y . If (x, x) ∈ R (or
x R x ), we draw a loop at the point x. The resulting diagram is called a directed graph or a digraph. The diagram in Figure
Exercise 7.1
1. Let A = {a, b, c} , B = {p, q, r} , and let R be the set of ordered pairs defined by R = {(a, p), (b, q), (c, p), (a, q)}.
(a) Use the roster method to list all the elements of A × B . Explain why A × B can be considered to be a relation
from A to B .
(b) Explain why R is a relation from A to B .
(c) What is the domain of R ? What is the range of R ?
2. Let A = {a, b, c} and let R = {(a, a), (a, c), (b, b), (b, c), (c, a), (c, b)} (so R is a relation on A ). Are the following
statements true or false? Explain.
(a) Write the open sentence (S, T ) ∈ R using standard subset notation.
(b) What is the domain of this subset relation, R ?
(c) What is the range of this subset relation, R ?
(d) Is R a function from P(U ) to P(U ) ? Explain.
5. Let U be a nonempty set, and let R be the "element of" relation from U to P(U ) . That is,
R = {(x, S) ∈ U × P(U ) | x ∈ S}. (7.1.5)
(a) Determine the set of all values of x such that (x, 6) ∈ S , and determine the set of all values of x such that
(x, 9) ∈ S .
(b) Determine the domain and range of the relation S and write each set using set builder notation.
(c) Is the relation S a function from R to R? Explain.
(d) Since S is a relation on R, its elements can be graphed in the coordinate plane. Describe the graph of the relation
S . Is the graph consistent with your answers in Exercises (6a) through (6c)? Explain.
What is the connection between this relation and the relation in Exercise (6)?
8. Determine the domain and range of each of the following relations on R and sketch the graph of each relation.
(a) Use set builder notation to describe the relation R as a set of ordered pairs.
(b) Determine the domain and range of the relation R .
(c) Use the roster method to specify these to fall integers x such that x R 5 and the set of all integers x such that
5 R x.
Note: Remember that a relation is a set. Consequently, we can talk about one relation being a subset of another
relation. Another thing to remember is that the elements of a relation are ordered pairs.
−1
f = {(b, a) ∈ B × A | f (a) = b}
(7.1.7)
= {(b, a) ∈ B × A | (a, b) ∈ f }.
Now that we know about relations, we see that f is always a relation from B to A . The concept of the inverse of a
−1
function is actually a special case of the more general concept of the inverse of a relation, which we now define.
Definition
For example, let D be the “divides” relation on Z. See Progress Check 7.3. So
D = {(m, n) ∈ Z × Z | m divides n}. (7.1.9)
This means that we can write m | n if and only if (m, n) ∈ D . So, in this case,
−1
D = {(n, m) ∈ Z × Z | (m, n) ∈ D}
(7.1.10)
= {(n, m) ∈ Z × Z | m divides n}.
Now, if we would like to focus on the first coordinate instead of the second coordinate in D
−1
, we know that “m
divides n ” means the same thing as “n is a multiple of m.” Hence,
−1
D = {(n, m) ∈ Z × Z | n is a multiple of m}. (7.1.11)
We can say that the inverse of the “divides” relation on Z is the “is a multiple of” relation on Z.
Theorem 7.6, which follows, contains some elementary facts about inverse.
Theorem 7.6.
Let R be a relation from the set A to the set B . Then
The domain of R is the range of R . That is, dom(R ) = range(R ).
−1 −1
To prove the first part of Theorem 7.6, observe that the goal is to prove that two sets are equal,
dom(R −1
) = range(R )
One way to do this is to prove that each is a subset of the other. To prove that dom(R ) ⊆ range(R ), we can −1
start by choosing an arbitrary element of dom(R ). So let y ∈ dom(R ). The goal now is to prove that y ∈
−1 −1
range(R ). What does it mean to say that y ∈ dom(R )? It means that there exists an x ∈ A such that
−1
(y, x) ∈ R
−1
.
Now what does it mean to say that (y, x) ∈ R −1
? It means that (x, y) ∈ R. What does this tell us about y ?
Complete the proof of the first part of Theorem 7.6. Then, complete the proofs of the other two parts of Theorem
7.6.
Proof
Add proof here and it will automatically be hidden
Answer
Add texts here. Do not delete this text first.
Definition
Let A be nonempty set and let R be a relation on A .
The relation R is reflexive on A provided that for each x ∈ A , x R x or, equivalently, (x, x) ∈ R.
The relation R is symmetric provided that for every x, y ∈ A, if x R y , then y R x or, equivalently, for every
x, y ∈ A, if (x, y) ∈ R, then (y, x) ∈ R.
The relation R is transitive provided that for every x, y, z ∈ A, if x R y and y R z , then x R z or, equivalently,
for every x, y, z ∈ A, if (x, y) ∈ R and (y, z) ∈ R , then (x, z) ∈ R .
Before exploring examples, for each of these properties, it is a good idea to understand what it means to say that a relation
does not satisfy the property. So let A be a nonempty set and let R be a relation on A .
1. Carefully explain what it means to say that the relation R is not reflexive on the set A .
2. Carefully explain what it means to say that the relation R is not symmetric.
3. Carefully explain what it means to say that the relation R is not transitive.
To illustrate these properties, we let A = {1, 2, 3, 4} and define the relations R and T on A as follows:
R = {(1, 1), (2, 2), (3, 3), (4, 4), (1, 3), (3, 2)}
(7.2.1)
T = {(1, 1), (1, 4), (2, 4), (4, 1), (4, 2)}
4. Draw a directed graph for the relation R . Then explain why the relation R is reflexive on A , is not symmetric, and is
not transitive.
5. Draw a directed graph for the relation T . Is the relation T reflexive on A ? Is the relation T symmetric? Is the relation
T transitive? Explain.
The relation R is symmetric provided that for every x, y ∈ A, if x R y , then y R x or, equivalently, for every x, y ∈ A, if
(x, y) ∈ R, then (y, x) ∈ R.
This means that if a symmetric relation is represented on a digraph, then anytime there is a directed edge from one vertex
to a second vertex, there would be a directed edge from the second vertex to the first vertex, as is shown in the following
figure.
The relation R is transitive provided that for every x, y, z ∈ A, if x R y and y R z , then x R z or, equivalently, for every
x, y, z ∈ A, if (x, y) ∈ R and (y, z) ∈ R , then (x, z) ∈ R . So if a transitive relation is represented by a digraph, then
anytime there is a directed edge from a vertex x to a vertex y and a directed edge from y to a vertex z , there would be a
directed edge from x to z .
In addition, if a transitive relation is represented by a digraph, then anytime there is a directed edge from a vertex x to a
vertex y and a directed edge from y to the vertex x, there would be loops at x and y . These two situations are illustrated as
follows:
Draw a directed graph for the relation R and then determine if the relation R is reflexive on A , if the relation R is
symmetric, and if the relation R is transitive.
Answer
Add texts here. Do not delete this text first.
Most of the examples we have studied so far have involved a relation on a small finite set. For these examples, it was
convenient to use a directed graph to represent the relation. It is now time to look at some other type of examples, which may
prove to be more interesting. In these examples, keep in mind that there is a subtle difference between the reflexive property
and the other two properties. The reflexive property states that some ordered pairs actually belong to the relation R , or some
elements of A are related. The reflexive property has a universal quantifier and, hence, we must prove that for all x ∈ A ,
x R x . Symmetry and transitivity, on the other hand, are defined by conditional sentences. We often use a direct proof for
these properties, and so we start by assuming the hypothesis and then showing that the conclusion must follow from the
hypothesis.
Using the second equation to make a substitution in the first equation, we see that x = z(pq) . Since pq ∈ Z, we have
shown that x is a multiple of z and hence x M z . Therefore, M is a transitive relation.
The relation M is reflexive on Z and is transitive, but since M is not symmetric, it is not an equivalence relation on Z.
Solution
Add text here.
To prove that ∼ is reflexive on Q, we note that for all q ∈ Q , a − a = 0 . Since 0 ∈ Z , we conclude that a ∼ a . Now
prove that the relation ∼ is symmetric and transitive, and hence, that ∼ is an equivalence relation on Q.
Answer
Add texts here. Do not delete this text first.
a = nq + r and 0 ≤ r < n .
Theorem 3.31 and Corollary 3.32 then tell us that a ≡ r (mod n ). That is, a is congruent modulo n to its remainder r when it is
divided by n . When we use the term “remainder” in this context, we always mean the remainder r with 0 ≤ r < n that is
guaranteed by the Division Algorithm. We can use this idea to prove the following theorem.
Theorem 7.10
Let n ∈ N and let a, b ∈ Z . Then a ≡ b (mod n ) if and only if a and b have the same remainder when divided by n .
Proof
Let n ∈ Nand let a, b ∈ Z . We will first prove that if a and b have the same remainder when divided by n , then
a ≡b (mod n ). So assume that a and bhave the same remainder when divided by n , and let r be this common
remainder. Then, by Theorem 3.31,
a ≡r (mod n ) and b ≡ r (mod n ).
Since congruence modulo n is an equivalence relation, it is a symmetric relation. Hence, since b ≡ r (mod n ), we can
conclude that r ≡ b (mod n ). Combining this with the fact that a ≡ r (mod n ), we now have
a ≡r (mod n ) and r ≡ b (mod n )
We can now use the transitive property to conclude that a ≡b (mod n ). This proves that if a and b have the same
remainder when divided by n , then a ≡ b (mod n ).
We will now prove that if a ≡ b (mod n ), then a and b have the same remainder when divided by n . Assume that
a ≡ b (mod n ), and let r be the least nonnegative remainder when b is divided by n . Then 0 ≤ r < n and, by
Theorem 3.31,
b ≡r (mod n ).
Now, using the facts that a ≡ b (mod n ) and b ≡ r (mod n ), we can use the transitive property to conclude that
a ≡r (mod n )
This means that there exists an integer q such that a − r = nq or that
a = nq + r.
Since we already know that 0 ≤ r < n , the last equation tells us that r is the least nonnegative remainder when a is
divided by n . Hence we have proven that if a ≡ b (mod n ), then a and b have the same remainder when divided by n .
We will prove that the relation ~ is an equivalence relation on R . The relation ∼ is reflexive on R since for each
Since −k ∈ Z , the last equation proves that b ∼ a . Hence, we have proven that if a ∼ b , then b ∼ a and, therefore,
the relation ∼ is symmetric.
To prove transitivity, let a, b, c ∈ R and assume that a ∼ b and b ∼ c . We will prove that a ∼ c . Now, there exist
integers k and n such that
a − b = 2kπ and b − c = 2nπ. (7.2.6)
By the closure properties of the integers, k + n ∈ Z . So this proves that a ∼ c and, hence the relation ∼ is transitive.
We have now proven that ∼ is an equivalence relation on R. This equivalence relation is important in trigonometry. If
a ∼ b , then there exists an integer k such that a − b = 2kπ and, hence, a = b + k(2π) . Since the sine and cosine
Therefore, when a ∼ b , each of the trigonometric functions have the same value at a and b .
4. For an example from Euclidean geometry, we define a relation P on the set L of all lines in the plane as follows:
Forl 1, l2 ∈ L ,l
1 P l2 if and only if l is parallel to l or l
1 2 1 = l2 .
We added the second condition to the definition of P to ensure that P is reflexive on L . Theorems from Euclidean
geometry tell us that if l is parallel to l , then l is parallel to l , and if l is parallel to l and l is parallel to l , then
1 2 2 1 1 2 2 3
l is parallel to l . (Drawing pictures will help visualize these properties.) This tells us that the relation P is reflexive,
1 3
Answer
Add texts here. Do not delete this text first.
Determine an equivalence relation on A that is different from I or explain why this is not possible.
A
8. (a) Repeat Exercise (6a) using the function f : R → R that is defined by f (x) = sin x for each x ∈ R.
(b) Determine all real numbers in the set C = {x ∈ R | x ∼ π} .
9. Define the relation ∼ on Q as follows: For a, b ∈ Q , a ∼ b if and only if a − b ∈ Z . In progress Check 7.9, we
showed that the relation ∼ is a equivalence relation on Q.
5
(a) List four different elements of the set C = {x ∈ Q | x ∼ }.
7
(b) Use set builder notation (without using the symbol sim ) to specify the set C .
(c) Use the roster method to specify the set C .
10. Let ∼ and ≈ be relation on Z defined as follows:
(a)
Proposition. Let R be a relation on a set A . If R is symmetric and transitive, then R is reflexive.
Proof
Let x, y ∈ A. If x R y , then y R x since R is symmetric. Now, x R y and y R x , and since R is transitive,
we can conclude that x R x . Therefore, R is reflexive.
(b)
Proposition. Let ∼ be a relation on Z where for all a, b ∈ Z , a ∼b if and only if (a + 2b) ≡ 0 (mod 3). The
relation ∼ is an equivalence relation on Z.
Proof
Assume a ∼ a . Then (a + 2a) ≡ 0 (mod 3) since (3a) ≡ 0 (mod 3). Therefore, ∼ is reflexive on Z . In
addition, if a ∼ b , then (a + 2b) ≡ 0 (mod 3), and if we multiply both sides of this congruence by 2, we get
2(a + 2b) ≡ 2 ⋅ 0 (mod 3)
Hence, the relation ∼ is transitive and we have proved that ∼ is an equivalence relation on Z .
(c) Let A = {1, 2, 3}. Draw a directed graph of a relation on A that is circular and not transitive and draw a directed
graph of a relation on A that is transitive and not circular.
(d) Prove the following proposition:
A relation R on a set A is an equivalence relation if and only if it is reflexive and circular.
A relation R on a set A is an antisymmetric relation provided that for all x, y ∈ A, if x R y and y R x , then x = y .
(e) Carefully explain what it means to say that a relation on a set A is not antisymmetric.
(f) Let A = {1, 2, 3}. Draw a directed graph of a relation on A that is antisymmetric and draw a directed graph of a
relation on A that is not antisymmetric.
(g)Are the following propositions true or false? Justify all conclusions.
If a relation R on a set A is both symmetric and antisymmetric, then R is transitive.
If a relation R on a set A is both symmetric and antisymmetric, then R is reflexive.
Answer
Add texts here. Do not delete this text first.
a R b b R a b R e e R b
a R e e R a c R d d R c
That is, R[y] consists of those elements in A such that x R y . For example, using y = a , we see that a R a , b R a , and
e R a , and so R[a] = {a, b, e} .
a S b a S d b S c
c S d d S c
5. Draw a digraph that represents the relation S on A . Explain why S is not an equivalence relation on A .
For each y ∈ A , define the subset S[y] of A as follows:
S[y] = {x ∈ A | x S y} = {x ∈ A | (x, y) ∈ S}.
For example, using y = b , we see that S[b] = {a, b} since (a, b) ∈ S and (b, b) ∈ S . In addition, we see that S[a] = ∅
Since an integer a is congruent to 0 modulo 3 if an only if 3 divides a , we can use the roster method to specify this set as
follows:
C [0] = {. . . , −9, −6, −3, 0, 3, 6, 9, . . . }.
(a) The set C [1] of all integers a that are congruent to 1 modulo 3. That is, C [1] = {a ∈ Z | a ≡ 1 (mod 3)}.
(b) The set C [2] of all integers a that are congruent to 2 modulo 3. That is, C [2] = {a ∈ Z | a ≡ 2 (mod 3)}.
(c) The set C [3] of all integers a that are congruent to 3 modulo 3. That is, C [3] = {a ∈ Z | a ≡ 3 (mod 3)}.
2. Now consider the three sets, C [0], C [1], and C [2].
(a) Determine the intersection of any two of these sets. That is, determine C [0] ∩ C [1], C [0] ∩ C [2], and C [1] ∩ C [2].
(b) Let n = 734 . What is the remainder when n is divided by 3? Which of the three sets, if any, contains n = 734 ?
(c) Repeat Part (2b) for n = 79 and for n = −79 .
(d) Do you think that C [0] ∪ C [1] ∪ C [2] = Z Explain.
(e) Is the set C [3] equal to one of the sets C [0], C [1], or C [2]?
(f) We can also define C [4] = {a ∈ Z | a ≡ 4 (mod 3)} . Is this set equal to any of the previous sets we have studied
in this part? Explain.
The main results that we want to use now are Theorem 3.31 and Corollary 3.32 on page 150. This corollary tells us that for
any a ∈ Z , a is congruent to precisely one of the integers 0, 1, or 2. Consequently, the integer a must be congruent to 0, 1, or
2, and it cannot be congruent to two of these numbers. Thus
1. For each a ∈ Z , a ∈ C [0], a ∈ C [1], or a ∈ C [2]; and
2. C [0] ∩ C [1] = ∅, C [0] ∩ C [2] = ∅, and C [1] ∩ C [2] = ∅.
This means that the relation of congruence modulo 3 sorts the integers into three distinct sets, or classes, and that each pair of
these sets have no elements in common. So if we use a rectangle to represent Z, we can divide that rectangle into three smaller
rectangles, corresponding to C [0], C [1], and C [2] and we might picture this situation as follows:
The Integers
C[0] consisting of all integers with a C[1] consisting of all integers with a C[2] consisting of all integers with a
remainder of 0 when divided by 3 remainder of 1 when divided by 3 remainder of 2 when divided by 3
Each integer is in exactly one of the three sets (C[0]\), C [1], or C [2], and two integers are congruent modulo 3 if and only if
they are in the same set. We will see that, in a similar manner, if n is any natural number, then the relation of congruence
modulo n can be used to sort the integers into n classes. We will also see that in general, if we have an equivalence relation R
on a set A , we can sort the elements of the set A into classes in a similar manner.
Definition
Let ∼ be an equivalence relation on a nonempty set A . For each a ∈ A , the equivalence class of a determined by ∼ is the
subset of A , denoted by [a ], consisting of all the elements of A that are equivalent to a . That is,
[a] = {x ∈ A | x ∼ a}.
Notes
the name of the relation, we can use R[a] or [a] for the equivalence class of a determined by R . In any case, always
R
remember that when we are working with any equivalence relation on a set A if a ∈ A , then the equivalence class [a ] is a
subset of A .
2. We know that each integer has an equivalence class for the equivalence relation of congruence modulo 3. But as we have
seen, there are really only three distinct equivalence classes. Using the notation from the definition, they are:
Answer
Add texts here. Do not delete this text first.
We have seen that congruence modulo 3 divides the integers into three distinct congruence classes. Each congruence class
consists of those integers with the same remainder when divided by 3. In a similar manner, if we use congruence modulo 2, we
simply divide the integers into two classes. One class will consist of all the integers that have a remainder of 0 when divided
by 2, and the other class will consist of all the integers that have a remainder of 1 when divided by 2. That is, congruence
modulo 2 simply divides the integers into the even and odd integers.
Answer
Add texts here. Do not delete this text first.
Theorem 7.14
Let A be a nonempty set and let ∼ be an equivalence relation on the set A . Then,
1. For each a ∈ A , a ∈ [a] .
2. For each a, b ∈ A , a ∼ b if and only if [a] = [b] ,
3. For each a, b ∈ A , [a] = [b] or [a] ∩ [b] = ∅ .
Proof
Let A be a nonempty set and assume that ∼ is an equivalence relation on A. To prove the first part of the theorem, let
a ∈ A . Since ∼ is an equivalence relation on A , it is reflexive on A . Thus, a ∼ a , and we can conclude that a ∈ [a] .
The second part of this theorem is a biconditional statement. We will prove it by proving two conditional statements.
We will first prove that if a ∼ b , then [a] = [b]. So let a, b ∈ A and assume that a ∼ b . We will now prove that the
two sets [a] and [b] are equal. We will do this by proving that each is a subset of the other.
First, assume that x ∈ [a] . Then, by definition, x ∼ a . Since we have assumed that a ∼ b , we can use the transitive
property of ∼ to conclude that x ∼ b , and this means that x ∈ [b]. This proves that [a] ⊆ [b].
We now assume that y ∈ [b]. This means that y ∼ b , and hence by the symmetric property, that b ∼ y . Again, we are
assuming that a ∼ b . So we have
a ∼b and b ∼ y .
We use the transitive property to conclude that a ∼ y and then, using the symmetric property, we conclude that y ∼ a .
This proves that y ∈ [a] and, hence, that [b] ⊆ [a]. This means that we can conclude that if a ∼ b , then [a] = [b].
We must now prove that if [a] = [b], then a ∼ b . Let a, b ∈ A and assume that [a] = [b]. Using the first part of the
theorem, we know that a ∈ [a] and since the two sets are equal, this tells us that a ∈ [b]. Hence by the definition of [b],
we conclude that a ∼ b . This completes the proof of the second part of the theorem.
For the third part of the theorem, let a, b ∈ A . Since this part of the theorem is a disjunction, we will consider two
cases: Either
[a] ∩ [b] = ∅ or [a] ∩ [b] ≠ ∅ .
In the case where [a] ∩ [b] = ∅ , the first part of the disjunction is true, and hence there is nothing to prove. So we
assume that [a] ∩ [b] ≠ ∅ ; and will show that [a] = [b]. Since [a] ∩ [b] ≠ ∅ , there is an element x in A such that
a ∈ [a] ∩ [b] .
This means that x ∈ [a] and x ∈ [b]. Consequently, x ∈ a and x ∈ b , and so we can use the first part of the theorem
to conclude that [x] = [a] and [x] = [b]. Hence, [a] = [b], and we have proven that [a] = [b] or [a] ∩ [b] = ∅ .
Theorem 7.14 gives the primary properties of equivalence classes. Consequences of these properties will be explored in the
exercises. The following table restates the properties in Theorem 7.14 and gives a verbal description of each one.
Formal Statement from Theorem 7.14 Verbal Description
For each a ∈ ,
A a ∈ [a] . Every element of A is in its own equivalence class.
Any two equivalence classes are either equal or they are disjoint. This
For each a, b ∈ A , [a] = [b] or [a] ∩ [b] = ∅ means that if two equivalence classes are not disjoint then they must be
equal.
Answer
Add texts here. Do not delete this text first.
The results of Theorem 7.14 are consistent with all the equivalence relations studied in the preview activities and in the
progress checks. Since this theorem applies to all equivalence relations, it applies to the relation of congruence modulo n on
the integers. Because of the importance of this equivalence relation, these results for congruence modulo n are given in the
following corollary.
Corollary 7.16.
Let n ∈ N . For each a ∈ Z , let [a] represent the congruence class of a modulo n .
1. For each a ∈ Z , a ∈ [a] .
2. For each a, b ∈ Z , a ≡ b (mod n ) if and only if [a] = [b] .
3. For each a, b ∈ Z , [a] = [b] or [a] ∩ [b] = ∅ .
For the equivalence relation of congruence modulo n , Theorem 3.31 and Corollary 3.32 tell us that each integer is
congruent to its remainder when divided by n , and that each integer is congruent modulo n to precisely one of one of the
integers 0, 1, 2, . . . , n − 1. This means that each integer is in precisely one of the congruence classes
. Hence, Corollary 7.16 gives us the following result
[0], [1], [2], . . . , [n − 1]
Theorem 7.3.1
Let n ∈ N . For each a ∈ Z , let [a] represent the congruence class of a modulo n .
1. Z = [0] ∪ [1] ∪ [2] ∪ ⋅ ⋅ ⋅ ∪ [n − 1]
2. For j, k ∈ {0, 1, 2, . . . , n − 1} , if j ≠ k , then [j] ∩ [k] = ∅ .
Definition: partition of A
Let A be a nonempty set, and let C be a collection of subsets of A . The collection of subsets C is a partition of A
provided that
There is a close relation between partitions and equivalence classes since the equivalence classes of an equivalence relation
form a partition of the underlying set, as will be proven in Theorem 7.18. The proof of this theorem relies on the results in
Theorem 7.14.
Theorem 7.18
Let ∼ be an equivalence relation on the nonempty set A . Then the collection C of all equivalence classes determined by
∼ is a partition of the set A .
Proof
Let ∼ be an equivalence relation on the nonempty set A , and let C be the collection of all equivalence classes
determined by ∼ . That is,
C = {[a] | a ∈ A} .
We will use Theorem 7.14 to prove that C is a partition of A.
Part (1) of Theorem 7.14 states that for each a ∈ A , a ∈ [a] . In terms of the equivalence classes, this means that each
equivalence class is nonempty since each element of A is in its own equivalence class. Consequently, C , the collection
of all equivalence classes determined by ∼ , satisfies the first two conditions of the definition of a partition.
We must now show that the collection C of all equivalence classes determined by ∼ satisfies the third condition for
being a partition. That is, we need to show that any two equivalence classes are either equal or are disjoint. However,
this is exactly the result in Part (3) of Theorem 7.14.
Hence, we have proven that the collection C of all equivalence classes determined by ∼ is a partition of the set A.
Note: Theorem 7.18 has shown us that if ∼ is an equivalence relation on a nonempty set A , then the collection of the
equivalence classes determined by ∼ form a partition of the set A .
This process can be reversed. This means that given a partition C of a nonempty set A , we can define an equivalence relation
on A whose equivalence classes are precisely the subsets of A that form the partition. This will be explored in Exercise (12).
Exercise 7.3
1. Let A = {a, b, c, d, e} and let ∼ be the relation on A that is represented by the directed graph in Figure 7.4.
Prove that ∼ is an equivalence relation on the set A , and determine all of the equivalence classes determined by this
equivalence relation.
a ∼d a ≁f e ≁c
Draw a complete directed graph for the equivalence relation ∼ on the set A , and then determine all of the equivalence
classes for this equivalence relation.
3. Let A = {0, 1, 2, 3, . . . , 999, 1000}. Define the relation R on A as follws:
For x, y ∈ A, x R y if and only if x and y have the same number of digits.
Prove that R is an equivalence relation on the set A and determine all of the distinct equivalence classes determined
by R .
4. Determine all of the congruence classes for the relation of congruence modulo 5 on the set of integers.
5. Let Z = {0, 1, 2, 3, 4, 5, 6, 7, 8}.
9
(a) Define the relation ∼ on Z as follows: for all a, b ∈ Z , a ∼ b if and only if a ≡ b (mod 9). Prove that ∼ is an
9 9
2 2
equivalence relation on Z and determine all of the distinct equivalence classes of this equivalence relation.
9
(b) Define the relation ≈ on Z as follows: For all a, b ∈ Z , a ≈ b if and only if a ≡ b (mod 9). Prove that ≈ is an
9 9
3 3
equivalence relation on Z and determine all of the distinct equivalence classes of this equivalence relation.
9
6. Define the relation ∼ on Q as follows: For a, b ∈ Q , a ∼ b if and only if a − b ∈ Z . In Progress Check 7.9 of Section
7.2, we showed that the relation ∼ is an equivalence relation on Q. Also, see Exercise (9) in Section 7.2.
5 5
(a) Prove that [ = {m + | m ∈ Z} .
7 7
(b) If a ∈ Z , then what is the equivalence class of a ?
5
(c) If a ∈ Z , prove that there is a bijection from [a] to [ .
]
7
7. Define the relation ∼ on R as follows:
For x, y ∈ R, x ∼ y if and only if x − y ∈ Q .
Define a relation ∼ on A as follows: For x, y ∈ A, x ∼ y if and only if there exists a set U in C such that x ∈ U and
y ∈ U.
(b) Prove that ∼ is an equivalence relation on the set A , and then determine all the equivalence classes for ∼ . How
does the collection of all equivalence classes compare to C ?
What we did for the specific partition in Part (12b) can be done for any partition of a set. So to generalize Part (12b),
we let A be a nonempty set and let C be a partition of A . We then define a relation ∼ on A as follows:
For x, y ∈ A, x ∼ y if and only if there exists a set U in C such that x ∈ U and y ∈ U .
(a) Define a relation ∼ on M (R as follows: For all A, B ∈ M (R , A ∼ B if and only if there exists an
n,n n,n
conclusion.
(b) Define a relation R on M (R as follows: For all A, B ∈ M (R , A R B if and only if det(A ) = det(B ). Is R
n,n n,n
A ≈ B if and only if det(A ) ∼ det(B ). Is ≈ an equivalence relation on M (R? Justify your conclusion.
n,n
Answer
Add texts here. Do not delete this text first.
such that
a = bq + r and 0 ≤ r < b .
In this activity, we are interested in the remainder r. Notice that r = a − bq . So, given a and b , if we can calculate q, then
we can calculate r.
We can use the “int” function on a calculator to calculate q. [The “int” function is the “greatest integer function.” If x is a
real number, then int(x) is the greatest integer that is less than or equal to x.]
a
So, in the context of the Division Algorithm, q = int( ) . Consequently,
b
a
r = a − b ⋅ int( ) .
b
If n is a positive integer, we will let s(n) denote the sum of the digits of n . For example, if n = 731 , then
s(731) = 7 + 3 + 1 = 11 .
For each of the following values of n , calculate
The remainder when n is divided by 9, and
The value of s(n) and the remainder when s(n) is divided by 9.
1. n = 498
2. n = 7319
3. n = 4672
4. n = 9845
5. n = 51381
6. n = 305877
What do you observe?
The set of integers Z is more than a set. We can add and multiply integers. That is, there are the arithmetic operations of
addition and multiplication on the set Z, and we know that Z is closed with respect to these two operations.
One of the basic problems dealt with in modern algebra is to determine if the arithmetic operations on one set “transfer” to a
related set. In this case, the related set is Z . For example, in the integers modulo 5, Z , is it possible to add the congruence
n 5
= [6] (7.4.1)
= [1].
We have used the symbol ̊ to denote addition in Z so that we do not confuse it with addition in Z. This looks simple enough,
5
but there is a problem. The congruence classes [4] and [2] are not numbers, they are infinite sets. We have to make sure that
we get the same answer no matter what element of [4] we use and no matter what element of [2] we use. For example,
9 ≡4 (mod 5) and so [9] = [4]. Also,
7 ≡2 (mod 5) and so [7] = [2].
Do we get the same result if we add [9] and [7] in the way we did when we added [4] and [2]? The following computation
confirms that we do:
[9] ⊕ [7] = [9 + 7]
= [16] (7.4.2)
= [1].
This is one of the ideas that was explored in Preview Activity 7.4.1. The main difference is that in this preview activity, we
used the relation of congruence, and here we are using congruence classes. All of the examples in Preview Activity 7.4.1
should have illustrated the properties of congruence modulo 6 in the following table. The left side shows the properties in
terms of the congruence relation and the right side shows the properties in terms of the congruence classes.
If a ≡ 3 (mod 6) and b ≡ 4 (mod 6), then If [a] = [3] and [b] = [4] in Z , then 6
(a + b) ≡ (3 + 4) (mod 6); [a + b] = [3 + 4] ;
(a ⋅ b) ≡ (3 ⋅ 4) (mod 6). [a ⋅ b] = [3 ⋅ 4] .
These are illustrations of general properties that we have already proved in Theorem 3.28. We repeat the statement of the
theorem here because it is so important for defining the operations of addition and multiplication in Z . n
Theorem 3.28
Let n be a natural number and let a , b , c , and d be integers. Then
1. If a ≡ b (mod n ) and c ≡ d (mod n ), then (a + c) ≡ (b + d) (mod n ).
2. If a ≡ b (mod n ) and c ≡ d (mod n ), then ac ≡ bd (mod n ).
3. If a ≡ b (mod n ) and m ∈ N , then a ≡ b (mod n ).
m m
Proof
Since x ≡ y (mod n ) if and only if [x] = [y], we can restate the result of this Theorem 3.28 in terms of congruence classes in
Z .
n
Corollary 7.19.
Let n be a natural number and let a , b , c , and d be integers. Then, in Z . n
Because of Corollary 7.19, we know that the following formal definition of addition and multiplication of congruence classes
in Z is independent of the choice of the elements we choose from each class. We say that these definitions of addition and
n
Definition
Let n ∈ N . Addition and multiplication in Z are defined as follows: For [a], [c] ∈ Z ,
n n
Always remember that for each of the equations in the definitions, the operations on the left, ⊕ and ⊙, are the new operations
that are being defined. The operations on the right side of the equations (+ and ⋅) are the known operations of addition and
multiplication in Z.
Since Z is a finite set, it is possible to construct addition and multiplication tables for Z . In constructing these tables, we
n n
follow the convention that all sums and products should be in the form [r], where 0 ≤ r < n . For example, in Z , we see that
3
by the definition, [1] ⊕ [2] = [3], but since 3 ≡ 0 (mod 3), we see that [3] = [0] and so we write
[1] ⊕ [2] = [3] = [0]
2. Verify that the following addition and multiplication tables for Z are correct.
5
4. In the integers, the following statement is true. We sometimes call this the zero product property for the integers.
For all a, b ∈ Z , if a ⋅ b = 0 , then a = 0 or b = 0 .
Write the contrapositive of the conditional statement in this property.
5. Are the following statements true or false? Justify your conclusions.
(a) For all [a], [b] ∈ Z , if [a] ⊙ [b] = [0] , then [a] = [0] or [b] = [0].
5
(b) For all [a], [b] ∈ Z , if [a] ⊙ [b] = [0] , then [a] = [0] or [b] = [0].
6
Answer
Add texts here. Do not delete this text first.
Divisibility Tests
Congruence arithmetic can be used to proof certain divisibility tests. For example, you may have learned that a natural number
is divisible by 9 if the sum of its digits is divisible by 9. As an easy example, note that the sum of the digits of 5823 is equal to
5 + 8 + 2 + 3 = 18 , and we know that 18 is divisible by 9. It can also be verified that 5823 is divisible by 9. (The quotient is
647.) We can actually generalize this property by dealing with remainders when a natural number is divided by 9.
Let n ∈ N and let s.n/ denote the sum of the digits of n . For example, if n = 7319 , then s(7319) = 7 + 3 + 1 + 9 = 20 . In
Preview Activity 7.4.2, we saw that
7319 ≡ 2 (mod 9) and 20 ≡ 2 (mod 9).
In fact, for every example in Preview Activity 7.4.2, we saw that n and s.n/ were congruent modulo 9 since they both had the
same remainder when divided by 9. The concepts of congruence and congruence classes can help prove that this is always
true.
We will use the case of n = 7319 to illustrate the general process. We must use our standard place value system. By this, we
mean that we will write 7319 as follows:
3 2 1 0
7319 = (7 × 10 ) + (3 × 10 ) + (1 × 10 ) + (9 × 10 ). (7.4.3)
The idea is to now use the definition of addition and multiplication in Z to convert equation (7.4.3) to an equation in Z . We
9 9
do this as follows:
3 2 1 0
[7319] = [(7 × 10 ) + (3 × 10 ) + (1 × 10 ) + (9 × 10 )]
3 2 1 0
= [7 × 10 ] ⊕ [3 × 10 ] ⊕ [1 × 10 ] ⊕ [9 × 10 ] (7.4.4)
3 2 1
= ([7] ⊙ [ 10 ]) ⊕ ([3] ⊙ [ 10 ]) ⊕ ([1] ⊙ [ 10 ]) ⊕ ([9] ⊙ [1]).
Since 10 ≡ 1 (mod 9), 10 ≡ 1 (mod 9) and 10 ≡ 1 (mod 9), we can conclude that
3 2 3
[ 10 ] = [1] , 2
[ 10 ] = [1] and .
[10] = [1]
= [7 + 3 + 1 + 9].
Equation (7.4.5) tells us that 7319 has the same remainder when divided by 9 as the sum of its digits. It is easy to check that
the sum of the digits is 20 and hence has a remainder of 2. This means that when 7319 is divided by 9, the remainder is 2.
To prove that any natural number has the same remainder when divided by 9 as the sum of its digits, it is helpful to introduce
notation for the decimal representation of a natural number. The notation we will use is similar to the notation for the number
7319 in equation (7.4.3).
In general, if n ∈ N , and n = a k ak−1 ⋅ ⋅ ⋅ a1 a0 is the decimal representation of n , then
k k−1 1 0
n = (ak × 10 ) + (ak−1 × 10 ) + ⋅ ⋅ ⋅ + (a1 × 10 ) + (a0 × 10 ).
k k−1 1 0
= [ ak × 10 ] ⊕ [ ak−1 × 10 ] ⊕ ⋅ ⋅ ⋅ ⊕ [ a1 × 10 ] ⊕ [ a0 × 10 ] (7.4.6)
k k−1 1 0
= ([ ak ] ⊙ [ 10 ]) ⊕ ([ ak−1 ] ⊙ [ 10 ]) ⊕ ⋅ ⋅ ⋅ ⊕ ([ a1 ] ⊙ [ 10 ]) ⊕ ([ a0 ] ⊙ [ 10 ]).
One last detail is needed. It is given in Proposition 7.21. The proof by mathematical induction is Exercise (6).
Proposition 7.21.
If n is a nonnegative integer, then 10
n
≡1 (mod 9), and hence for the equivalence relation of congruence modulo 9,
] = [1] .
n
[ 10
Theorem 7.22.
Let n ∈ N and let s(n) denote the sum of the digits of n . Then
1. [n] = [s(n)] , using congruence classes modulo 9.
2. n ≡ s(n) (mod 9)
3. 9 | n if and only if 9 | s(n) .
Part (3) of Theorem 7.22 is called a divisibility test. If gives a necessary and sufficient condition for a natural number to be
divisible by 9. Other divisibility tests will be explored in the exercises. Most of these divisibility tests can be proved in a
manner similar to the proof of the divisibility test for 9.
Exercise 7.4
1. (a) Complete the addition and multiplication tables for Z . 4
2. The set Z contains n elements. One way to solve an equation in Z is to substitute each of these n elements in the
n n
equation to check which ones are solutions. In Z , when parentheses are not used, we follow the usual order of
n
operations, which means that multiplications are done first and then additions. Solve each of the following equations:
(a) [x ] = [1] in Z
2
4
(b) [x ] = [1] in Z
2
8
(c) [x ] = [1] in Z
4
5
(a) For all [a] ∈ Z , if [a] ≠ [0] , then there exists a [b] ∈ Z such that [a] ⊙ [b] = [1] .
6 6
(b) For all [a] ∈ Z , if [a] ≠ [0] , then there exists a [b] ∈ Z such that [a] ⊙ [b] = [1] .
5 5
(a) For all [a], [b] ∈ Z , if [a] ≠ [0] and [b] ≠ [0], then [a] ⊙ [b] ≠ [0] .
6
(b) For all [a], [b] ∈ Z , if [a] ≠ [0] and [b] ≠ [0], then [a] ⊙ [b] ≠ [0] .
5
(b) Does there exist an integer a such that a = 5, 158, 232, 468, 953, 153? Use your work in Part (a) to justify your
2
[ 10 ] = [1] .
n
7. Use mathematical induction to prove that if n is a nonnegative integer, then 10 ≡ 1 (mod 3). Hence, for congruence
n
8. Let n ∈ N and let s(n) denote the sum of the digits of n .So if we write
k k−1 1 0
n = (ak × 10 \) + (ak−1 × 10 + ⋅ ⋅ ⋅ + (a1 × 10 ) + (a0 × 10 ). (7.4.7)
then s(n) = a k + ak−1 + ⋅ ⋅ ⋅ + a1 + a0 . Use the result in Exercise (7) to help prove each of the following:
Use the result in Exercise (9) to help prove each of the following:
(c) 5 | n if only if 5 | a . 0
11. Use mathematical induction to prove that if n is an integer and nge2 , then 10 n
≡0 (mod 4). Hence, for congruence
classes modulo 4, if n is an integer and n ≥ 2 , then [10 ] = [0] . n
Use the result in Exercise (11) to help prove each of the following:
13. Use mathematical induction to prove that if n is an integer and nge3 , then 10 n
≡0 (mod 8). Hence, for congruence
classes modulo 8, if n is an integer and n ≥ 3 , then [10 ] = [0] . n
Use the result in Exercise (13) to help develop a divisibility test for 8. Prove that your divisibility test is correct.
15. Use mathematical induction to prove that if n is a nonnegative integer then 10 ≡ (−1) (mod11) . Hence, for n n
Use the result in Exercise (15) to help prove each of the following:
(a) n ≡ ∑ k
j=0
(−1 ) aj
j
(mod 11).
(b) [n] = [∑ k
j=0
(−1 ) aj ]
j
, using congruence classes modulo 11.
(c) 11 divides n if and only if 11 divides ∑ (−1) a k
j=0
j
j
7.
19. Is the following proposition true or false? Justify your conclusion.
For n ∈ Z . If n is odd, then 8 | (n − 1) . Hint: What are the possible values of n (mod 8)?
2
the n elements in Z as the n cases for a proof using cases. For example, if n ∈ Z , then in Z , [n] = [0], [n] = [1],
n 4
(a) Prove that if n ∈ Z , then in Z , [n] = [0] or [n] = [1]. Use this to conclude that in Z , [n
4
2 2
4
2
] = [0] or [n
2
] = [1] .
(b) Translate the equations [n ] = [0] and [n ] = [1] in Z into congruences modulo 4.
2 2
4
(c) Use a result in Exercise (12) to determine the value of r so that r ∈ Z , 0 ≤ r < 3 , and
104 257 833 259 ≡ r (mod 4). (7.4.12)
(d) Is the natural number 104 257 833 259 a perfect square? Justify your conclusion.
Answer
Add texts here. Do not delete this text first.
Important Theorems and Results about Relations, Equivalence Relations, and Equivalence Classes
Theorem 7.6. Let R be a relation from the set A to the set B . Then
Theorem 7.10. Let n ∈ N and let a, b ∈ Z . Then a ≡ b (mod n if and only if a and b have the same remainder when
divided by n .
Theorem 7.14. Let A be a nonempty set and let ∼ be an equivalence relation on A .
1 7/21/2021
8.1: The Greatest Common Divisor
Definition
Let a and b be integers, not both 0. A common divisor of a and b is any nonzero integer that divides both a and b .
The largest natural number that divides both a and b is called the greatest common divisor of a and b . The greatest
common divisor of a and b is denoted by gcd(a , b ).
1. Use the roster method to list the elements of the set that contains all the natural numbers that are divisors of 48.
2. Use the roster method to list the elements of the set that contains all the natural numbers that are divisors of 84.
3. Determine the intersection of the two sets in Parts (3) and (4). This set contains all the natural numbers that are
common divisors of 48 and 84.
4. What is the greatest common divisor of 48 and 84?
5. Use the method suggested in Parts (3) through (6) to determine each of the following: gcd (8, -12), gcd (0, 5), gcd (8,
27), and gcd (14, 28).
6. If a and b are integers, make a conjecture about how the common divisors of a and b are related to the greatest
common divisor of a and b .
44 12
75 21
50 33
multiplication and under the usual ordering relation of “less than.” The properties of the integers in Table 8.1 will be
considered axioms in this text.
Table 8.1: Axioms for the Integers
For all integers a , b , and c ;
We will also assume the properties of the integers shown in Table 8.2. These properties can be proven from the properties in
Table 8.1. (However, we will not do so here.)
Table 8.2: Properties of the Integers
Zero Property of Multiplication If a ∈ Z , then a ⋅ 0 = 0 ⋅a = 0 .
If a, b, c ∈ Z , and a + b = a + c , then b = c.
Cancellation Properties of Addition and Multiplication
If a, b, c ∈ Z , a ≠ 0 and ac = bc, then b = c.
We have already studied a good deal of number theory in this text in our discussion of proof methods. In particular, we have
studied even and odd integers, divisibility of integers, congruence, and the Division Algorithm. See the summary for Chapter 3
for a summary of results concerning even and odd integers as well as results concerning properties of divisors. We reviewed
some of these properties and the Division Algorithm in the Preview Activities.
3. This means that d is not the greatest common divisor of a and b provided that it is not a common divisor of a and b or that
there exists a common divisor of a and b that is greater than d .
In the preview activities, we determined the greatest common divisors for several pairs of integers. The process we used was to
list all the divisors of both integers, then list all the common divisors of both integers and, finally, from the list of all common
divisors, find the greatest (largest) common divisor. This method works reasonably well for small integers but can get quite
cumbersome if the integers are large. Before we develop an efficient method for determining the greatest common divisor of
two integers, we need to establish some properties of greatest common divisors.
One property was suggested in Preview Activity 8.1.1. If we look at the results in Part (7) of that preview activity, we should
observe that any common divisor of a and b will divide gcd(a , b ). In fact, the primary goals of the remainder of this section
are
1. To find an efficient method for determining gcd(a , b ), where a and b are integers.
2. To prove that the natural number gcd(a , b ) is the only natural number d that satisfies the following properties:
The second goal is only slightly different from the definition of the greatest common divisor. The only difference is in the
second condition where k ≤ d is replaced by k | d .
Lemma 8.1.
Let c and d be integers, not both equal to zero. If q and r are integers such that c = d ⋅ q + r , then gcd(c , d ) = gcd(d , r).
Proof
Let c and d be integers, not both equal to zero. Assume that q and r are integers such that c = d ⋅ q + r . For ease of
notation, we will let
m = gcd(c , d ) and n = gcd(d , r ).
Now, m divides c and m divides d . Consequently, there exist integers x and y such that c = mx and d = my . Hence,
r = c −d⋅ q
r = mx − (my)q (8.1.1)
r = m(x − yq).
But this means that m divides r . Since m divides d and m divides r , m is less than or equal to gcd(d , r ). Thus,
m ≤ n.
Using a similar argument, we see that n divides d and n divides r . Since c = d ⋅ q + r , we can prove that n divides c.
Hence, n divides c and n divides d . Thus, n ≤ gcd(c, d ) or n ≤ m . We now have m ≤ n and n ≤ m . Hence,
m = n and gcd(c , d ) = gcd(d , r ).
1. According to the Division Algorithm, what is the remainder r when 56 is divided by 12?
2. What is the greatest common divisor of 12 and the remainder r?
The key to finding the greatest common divisor (in more complicated cases) is to use the Division Algorithm again,
this time with 12 and r. We now find integers q and r such that
2 2
12 = r ⋅ q2 + r2 . (8.1.2)
Answer
Add texts here. Do not delete this text first.
r such that
2
If r = 0 , then equation (8.1.4) implies that r divides b. This means that r = gcd(b, r ). But we have already seen
2 1 1 1
that gcd(a , b) = gcd(b, r ). Hence, r = gcd(a , b). In addition, if k is an integer that divides both a and b, then, using
1 1
equation (8.1.3), we see that r = a − b ⋅ q and, hence k divides r . This shows that r = gcd(a , b) satisfies
1 1 1 1
gcd(a , b) = gcd(r , r ). We now continue to apply the Division Algorithm to produce a sequence of pairs of integers
1 2
(all of which have the same greatest common divisor). This is summarized in the following table:
Inequality from Division
Original Pair Equation from Division New Pair
Algorithm
From the inequalities in the third column of this table, we have a strictly decreasing sequence of nonnegative integers
(b > r > r > r > r ⋅ ⋅⋅ ). Consequently, a term in this sequence must eventually be equal to zero. Let p be the
1 2 3 4
smallest natural number such that r = 0 . This means that the last two rows in the preceding table will be
p+1
Remember that this table was constructed by repeated use of Lemma 8.1 and that the greatest common divisor of each
pair of integers produced equals gcd(a , b). Also, the last row in the table indicates that r divides r . This means p p−1
This proves that r = gcd(a , b) satisfies Condition (a) of this theorem. Now assume that k is an integer such that
p k
divides a and k divides b. We proceed through the table row by row. First, since r = a − b ⋅ q , we see that 1
k must divide r . 1
The second row tells us that r 2 = b − r1 ⋅ q2 . Since k divides b and k divides r , we conclude that 1
k divides r .
2
Continuing with each row, we see that k divides each of the remainders r 1, r2 , r3 , . . . , rp . This means that r p = gcd(
a , b ) satisfies Condition (b) of the theorem.
Answer
Add texts here. Do not delete this text first.
Lemma 8.5.
Let a, b ∈ Z with b ≠ 0 . Then
1. gcd(0, b ) = |b |.
2. If gcd(a , b ) = d , then gcd(a , −b ) = d .
The proofs of these results are in Exercise (4). An application of this result is given in the next example.
4 (18, 6) 18 = 6 ⋅ 3
6 = 24 − 18 ⋅ 1
Use the equation in Step 2 to write \(18 = 42 - 24 \cdot 1\). Substitute
= 24 − (42 − 24 ⋅ 1)
this into the preceding result and simplify.
= 42 ⋅ (−1) + 24 ⋅ 2
We now have written 6 in terms of 42 and 24. Use the equation in Step 6 = 42 ⋅ (−1) + 24 ⋅ 2
1 to write 24 = 234 − 42 ⋅ 5. Substitute this into the preceding result = 42 ⋅ (−1) + (234 − 42 ⋅ 5) ⋅ 2
(Check this with a calculator.) In this case, we say that we have written gcd(234, 42) as a linear combination of 234 and 42.
More generally, we have the following definition.
Definition
Let a and b be integers. A linear combination of a and b is an integer of the form ax + by , where x and y are integers.
Answer
Add texts here. Do not delete this text first.
The previous example and progress check illustrate the following important result in number theory, which will be used in the
next section to help prove some other significant results.
Theorem 8.8
Let a and b be integers, not both 0. Then gcd(a , b ) can be written as a linear combination of a and b . That is, there exist
integers u and v such that gcd(a, b) = au + bv .
We will not give a formal proof of this theorem. Hopefully, the examples and activities provide evidence for its validity. The
idea is to use the steps of the Euclidean Algorithm in reverse order to write gcd(a , b ) as a linear combination of a and b . For
example, assume the completed table for the Euclidean Algorithm is
1 (a, b) a = b ⋅ q1 + r1 (b, r1 )
2 (b, r1 ) b = r1 ⋅ q2 + r2 (r1 , r2 )
3 (r1 , r2 ) r1 = r2 ⋅ q3 + r3 (r2 , r3 )
4 (r2 , r3 ) r2 = r3 ⋅ q4 + 0 (r3 , r4 )
We can use Step 3 to write r = gcd(a, b) as a linear combination of r and r . We can then solve the equation in Step 2 for
3 1 2
r and use this to write r = gcd(a, b) as a linear combination of r and b . We can then use the equation in Step 1 to solve for
2 3 1
In general, if we can write r = gcd(a, b) as a linear combination of a pair in a given row, then we can use the equation in the
p
preceding step to write r = gcd(a, b) as a linear combination of the pair in this preceding row.
p
Exercise 8.1
1. Find each of the following greatest common divisors by listing all of the common divisors of each pair of integers.
(a) gcd(0, b ) = |b |
(b) If gcd(a , b ) = d , then gcd(a , −b ) = d . That is, gcd(a , −b ) = gcd(a , b ).
5. For each of the following pairs of integers, use the Euclidean Algorithm to find gcd(a , b ) and to write gcd(a , b ) as a
linear combination of a and b . That is, find integers m and n such that d = am + bn .
(a) a = 36 , b = 60
(b) a = 901 , b = 935
(c) a = 72 , b = 714
(d) a = 12528, b = 21361
(e) a = −36 , b = −60
(f) a = 901 , b = −935
6. (a) Find integers u and v such that 9u + 14v = 1 or explain why it is not possible to do so. Then find integers x and y
such that 9x + 14y = 10 or explain why it is not possible to do so.
(b) Find integers x and y such that 9x + 15y = 10 or explain why it is not possible to do so.
(c) Find integers x and y such that 9x + 15y = 3162 or explain why it is not possible to do so.
7. (a) Notice that gcd(11, 17) = 1. Find integers x and y such that 11x + 17y = 1 .
m n
(b) Let m, n ∈ Z . Wrtie the sum + as a single fraction.
11 17
10
(c) Find two rational numbers with denominators of 11 and 17, respectively, whose sum is equal to . Hint: Write
187
m n
the rational numbers in the form + , where m, n ∈ Z . Then write
11 17
m n 10
+ = . (8.1.5)
11 17 187
Proposition 5.16
Let a , b , and t be integers with t ≠0 . If t divides a and t divides b , then for all integers x and y , t divides
ax + by
Proof: Let a , b and t be integers with t ≠ 0 , and assume that t divides a and t divides b . We will prove that for all
integers x and y , t divides (ax + by) .
So let x ∈ Z and let y ∈ Z . Since t divides a , there exists an integer msuch that ...
(f) Now let a and b be integers, not both zero and let d = gcd(a , b ). Theorem 8.8 states that d is a linear combination
of a and b . In addition, let S and T be the following sets:
That is, S is the set of all linear combinations of a and b , and T is the set of all multiples of the greatest common
divisor of a and b . Does the set S equal the set T ? If not, is one of these sets a subset of the other set? Justify your
conclusions.
Note: In Parts (c) and (d), we were exploring special cases for these two sets.
Answer
Add texts here. Do not delete this text first.
of 60.
2. Write the number 40 as a product of prime numbers by first writing 40 = 2 ⋅ 20 and then factoring 20 into a product
of primes. Next, write the number 40 as a product of prime numbers by first writing 40 = 5 ⋅ 8 and then factoring 8
into a product of primes.
3. In Part (2), we used two different methods to obtain a prime factorization of 40. Did these methods produce the same
prime factorization or different prime factorizations? Explain.
4. Repeat Parts (2) and (3) with 150. First, start with 150 = 3 ⋅ 50 , and then start with 150 = 5 ⋅ 30 .
Theorem 5.16
Let a , b , and t be integers with t ≠ 0 . If t divides a and t divides b , then for all integers x and y , t divides (ax + by) .
Proof
Let a , b, and t be integers with t ≠ 0 , and assuem that t divides a and t divides b. We will prove that for all integers x
and y, t divides (ax + by) .
So let x ∈ Z and let y ∈ Z . Since t divides a , there exists an integer m such that a = mt and since t divides b, there
exists an integer n such that b = nt . Using substitution and algebra, we then see that
ax + by = (mt)x + (nt)y
(8.2.1)
= t(mx + ny)
We now let a, b ∈ Z , not both 0, and let d = gcd(a, b) . Theorem 8.8 states that d can be written as a linear combination of a
and b . Now, since d | a and d | b , we can use the result of Proposition 5.16 to conclude that for all x, y ∈ Z, d | (ax + by) .
This means that d divides every linear combination of a and b . In addition, this means that d must be the smallest positive
number that is a linear combination of a and b . We summarize these results in Theorem 8.9.
Theorem 8.9.
Let a, b ∈ Z , not both 0.
1. The greatest common divisor, d , is a linear combination of a and b . That is, there exist integers m and n such that
d = am + bn .
2. The greatest common divisor, d , divides every linear combination of a and b . That is, for all x, y ∈ Z, d | (ax + by) .
3. The greatest common divisor, d , is the smallest positive number that is a linear combination of a and b .
and a does not divide c . For each example, we observed that gcd(a, b) ≠ 1 and gcd(a, c) ≠ 1 .
We also constructed several examples where a | (bc) and gcd(a, b) = 1 . In all of these cases, we noted that a divides c .
Integers whose greatest common divisor is equal to 1 are given a special name.
2. Construct at least three different examples where p is a prime number, a ∈ Z , and p does not divide a . In each
example, what is gcd(a, p)? Based on these examples, formulate a conjecture about gcd(a , p) when p does not divide
a.
3. Give at least three different examples of integers a and b where a is not prime, b is not prime, and gcd(a, b) = 1 , or
explain why it is not possible to construct such examples.
Answer
Add texts here. Do not delete this text first.
Theorem 8.11.
Let a and b be nonzero integers, and let p be a prime number.
1. If a and b are relatively prime, then there exist integers m and n such that am + bn = 1 . That is, 1 can be written as
linear combination of a of b .
2. If p | a , then gcd(a, p) = p .
3. If p does not divide a , then gcd(a, p) = 1 .
Part (1) of Theorem 8.11 is actually a corollary of Theorem 8.9. Parts (2) and (3) could have been the conjectures you
formulated in Progress Check 8.10. The proofs are included in Exercise (1).
Theorem 8.12
Let a , b , be nonzero integers and let c be an integer. If a and b are relatively prime and a | (bc) , then a | c
The explorations in Preview Activity 8.2.1 were related to this theorem. We will first explore the forward-backward process
for the proof. The goal is to prove that a | c . A standard way to do this is to prove that there exists an integer q such that
c = aq. (8.2.2)
It may seem tempting to divide both sides of Equation ??? by b , but if we do so, we run into problems with the fact that the
integers are not closed under division. Instead, we look at the other part of the hypothesis, which is that a and b are relatively
prime. This means that gcd(a, b) = 1 . How can we use this? This means that a and b have no common factors except for 1. In
light of Equation ??? , it seems reasonable that any factor of a must also be a factor of c . But how do we formalize this?
One conclusion that we can use is that since gcd(a, b) = 1 , by Theorem 8.11, there exist integers m and n such that
am + bn = 1. (8.2.4)
We may consider solving equation (8.2.4) for b and substituting this into Equation ??? . The problem, again, is that in order to
solve Equation ??? for b , we need to divide by n .
Before doing anything else, we should look at the goal in Equation ??? . We need to introduce c into Equation ??? . One way to
do this is to multiply both sides of equation (8.2.4) by c . (This keeps us in the system of integers since the integers are closed
under multiplication.) This gives
(am + bn)c = 1⋅c
(8.2.5)
acm + bcn = c.
Notice that the left side of Equation ??? contains a term, bcn, that contains bc. This means that we can use Equation ??? and
substitute bc D ak in Equation ??? . After doing this, we can factor the left side of the equation to prove that a | c .
Answer
Add texts here. Do not delete this text first.
Corollary 8.14
1. Let a, b ∈ Z , and let p be a prime number. If p | (ab) , then p | a or p | b .
2. Let p be a prime number, let n ∈ N , and let a , a , . . . , a ∈ Z. If p | (a
1 2 n 1 a2 ⋅ ⋅ ⋅ an ) , then there exists a natural
number k with 1 ≤ k ≤ n such that p | a . k
Part (1) of Corollary 8.14 is a corollary of Theorem 8.12. Part (2) is proved using mathematical induction. The basis step is the
case where n = 1 , and Part (1) is the case where n = 2 . The proofs of these two results are included in Exercises (2) and (3).
This is a prime factorization of 120, but it is not the way we usually write this factorization. Most often, we will write the
prime number factors in ascending order. So we write
120 = 2 ⋅ 2 ⋅ 2 ⋅ 2 ⋅ 3 ⋅ 5 or 120 = 2 3
⋅3⋅5 .
Now, let n ∈ N . To write the prime factorization of n with the prime factors in ascending order requires that if we write
n = p1 p2 ⋅ ⋅ ⋅ pr , where p p ⋅ ⋅ ⋅ p are prime numbers, we will have p ≤ p ≤ ⋅ ⋅ ⋅ ≤ p .
1 2 r 1 2 r
Proof
The first part of this theorem was proved in Theorem 4.9. We will prove the second
part of the theorem by induction on n using the Second Principle of Mathematical
Induction. (See Section 4.2.) For each natural number n with n > 1 , let P (n) be
If n = p p ⋅ ⋅ ⋅ p and n = q q ⋅ ⋅ ⋅ q , where p p ⋅ ⋅ ⋅ p and q q ⋅ ⋅ ⋅ q are primes
1 2 r 1 2 s 1 2 r 1 2 s
to r , p = qj .
j
For the basis step, we notice that since 2 is a prime number, its only factorization is
2 = 1 ⋅ 2 . This means that the only equation of the form n = p p ⋅ ⋅ ⋅ p , where 1 2 r
p p ⋅⋅⋅p
1 2 are prime numbers, is the case where r = 1 and p = 2 .This proves that
r 1
P (2) is true.
prove this, we assume that (k + 1) has two prime factorizations and then prove that
these prime factorizations are the same. So we assume that
k + 1 = p1 p2 ⋅ ⋅ ⋅ pr and that k + 1 = q1 q2 ⋅ ⋅ ⋅ qs , wher p1 p2 ⋅ ⋅ ⋅ pr and q1 q2 ⋅ ⋅ ⋅ qs
proof into two cases: (1) p ≤ q ; and (2) q ≤ p . Since one of these must be true,
1 1 1 1
and since the proofs will be similar, we can assume, without loss of generality, that
p ≤q .
1 1
p1 = qj .
We now use this and the fact that k + 1 = p 1 p2 ⋅ ⋅ ⋅ pr = q1 q2 ⋅ ⋅ ⋅ qs to conclude that
p2 ⋅ ⋅ ⋅ pr = q2 ⋅ ⋅ ⋅ qs .
The product in the previous equation is less that k + 1 . Hence, we can apply our
induction hypothesis to these factorizations and conclude that r = s , and for each j
from 2 to r , p = q .
j j
This completes the proof that if P (2), P (3), . . . , P (k) are true, then P (k + 1) is true.
Hence, by the Second Principle of Mathematical Induction, we conclude that P (n) is
true for all n ∈ N with n ≥ 2 . This completes the proof of the theorem.
Note: We often shorten the result of the Fundamental Theorem of Arithmetic by simply saying that each natural number
greater than one that is not a prime has a unique factorization as a product of primes. This simply means that if n ∈ N ,
n > 1 , and n is not prime, then no matter how we choose to factor n into a product of primes, we will always have the same
prime factors. The only difference may be in the order in which we write the prime factors.
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97
This list contains the first 25 prime numbers. Does this list ever stop? The question was answered in Euclid’s Elements, and
the result is stated in Theorem 8.16. The proof of this theorem is considered to be one of the classical proofs by
contradiction.
Theorem 8.16.
There are infinitely many prime numbers.
Proof
We will use a proof by contradiction. We assume that there are only finitely many primes, and let
p1 , p2 , . . . , pm
Notice that M ≠ 1 . So M is either a prime number or, by the Fundamental Theorem of Arithmetic, M is a
product of prime numbers. In either case, M has a factor that is a prime number. Since we have listed all the prime
numbers, this means that there exists a natural number j with 1 ≤ j ≤ m such that p | M . Now, we can rewrite j
. Since p divides both of the terms on the right side of equation (8.2.9), we can use this
pj | (p1 p2 ⋅ ⋅ ⋅ pm ) j
equation to conclude that p divides 1. This is a contradiction since a prime number is greater than 1 and cannot
j
divide 1. Hence, our assumption that there are only finitely many primes is false, and so there must be infinitely
many primes.
2. There are infinitely many primes, but when we write a list of the prime numbers, we can see some long sequences of
consecutive natural numbers that contain no prime numbers. For example, there are no prime numbers between 113 and
127. The following theorem shows that there exist arbitrarily long sequences of consecutive natural numbers containing no
prime numbers. A guided proof of this theorem is included in Exercise (15).
Theorem 8.17,
For any natural number n , there exist at least n consecutive natural numbers that are composite numbers.
There are many unanswered questions about prime numbers, two of which will now be discussed.
3. By looking at the list of the first 25 prime numbers, we see several cases where consecutive prime numbers differ by 2.
Examples are: 3 and 5; 11 and 13; 17 and 19; 29 and 31. Such pairs of prime numbers are said to be twin primes. How
many twin primes exist? The answer is not known. The Twin Prime Conjecture states that there are infinitely many twin
primes. As of June 25, 2010, this is still a conjecture as it has not been proved or disproved.
For some interesting information on prime numbers, visit the Web site The Prime Pages (primes.utm.edu/), where there is a
link to The Largest Known Primes Web site. According to information at this site as of June 25, 2010, the largest known
twin primes are
333333 333333
(65516468355 × 2 − 1) and (65516468355 × 2 + 1). (8.2.10)
4=2+26=3+38=5+3
78 = 37 + 41 90 = 43 + 47 128 = 67 + 71
One of the most famous unsolved problems in mathematics is a conjecture made by Christian Goldbach in a letter to
Leonhard Euler in 1742. The conjecture, now known as Goldbach’s Conjecture, is as follows:
Every even integer greater than 2 can be expressed as the sum of two (not necessarily distinct) prime numbers.
As of June 25, 2010, it is not known if this conjecture is true or false, al- though most mathematicians believe it to be true.
Exercise 8.2
1. Prove the second and third parts of Theorem 8.11.
(a) Let a be a nonzero integer, and let p be a prime number. If p | a , then gcd(a, p) = p .
(b) Let a be a nonzero integer, and let p be a prime number. If p does not divide a , then gcd(a, p) = 1 .
2. Prove the first part of Corollary 8.14.
Let a, b ∈ Z , let p be a prime number. If p | (ab) , then p | a or p | b . Hint: Consider two cases: (1) p | a ; and (2) p
does not divide a .
3. Use mathematical induction to prove the second part of Corollary 8.14.
Let p be a prime number, let n ∈ N , and let a , a , . . . , a ∈ Z. If p | (a a ⋅ ⋅ ⋅ a ) , then there exists a k ∈ N with
1 2 n 1 2 n
1 ≤ k ≤ n such that p | a . k
proved in Exercise (19) in Section 7.4.) Now, prove the following proposition:
If n is an odd integer and 3 does not divide n , then 24 | (n − 1) . 2
14. (a) Determine five different primes that are congruent to 3 modulo 4.
(b) Prove that there are infinitely many primes that are congruent to 3 modulo 4.
15. (a) Let n ∈ N . Prove that 2 divides [(n + 1)! + 2] .
(b) Let n ∈ N with n ≥ 2 . Prove that 3 divides [(n + 1)! + 3] .
(c) Let n ∈ N . Prove that for each k ∈ N with 2 ≤ k ≤ (n + 1) , k divides [(n + 1)! + k] .
(d) Use the result of Exercise (15c) to prove that for each n ∈ N , there exist at least n consecutive composite natural
numbers.
16. The Twin Prime Conjecture states that there are infinitely many twin primes, but it is not known if this conjecture is
true or false. The answers to the following questions, however, can be determined.
(a) How many pairs of primes p and q exist where q − p = 3 ? That is, how many pairs of primes are there that differ
Hint: Look at several examples of twin primes. What do you notice about the number that is between the two twin
primes? Set up cases based on this observation.
Explorations and Activities
– –
19. Square Roots and Irrational Numbers. In Chapter 3, we proved that some square roots (such as √2 and √3) are
irrational numbers. In this activity, we will use the Fundamental Theorem of Arithmetic to prove that if a natural number
is not a perfect square, then its square root is an irrational number.
(a) Let n be a natural number. Use the Fundamental Theorem of Arithmetic to explain why if n is composite, then there
exist prime numbers p , p , . . . , p and natural numbers α , α , . . . , α such that
1 2 r 1 2 r
α1 α2 αr
n =p p ⋅ ⋅ ⋅ pr . (8.2.11)
1 2
Then,if we use r = 1 and α 1 =1 for a prime number, explain why we can write any natural number in the form given in
equation (8.2.11).
(b) A natural number b is a perfect square if and only if there exists a natural number a such that b = a . Explain why 36,
2
400, and 15876 are perfect squares. Then determine the prime factorization of these perfect squares. What do you notice
about these prime factorizations?
(c) Let n be a natural number written in the form given in equation (8.2.11) in part (a). Prove that n is a perfect square if
and only if for each natural number k with 1 ≤ k ≤ r , α is even.
k
(d) Prove that for all natural numbers n , if n is not a perfect square, then √−
n is an irrational number. Hint: Use a proof
by contradiction.
Answer
Add texts here. Do not delete this text first.
Preview Activity 8.3.1 : Integer Solutions for Linear Equations in One Variable
1. Does the linear equation 6x = 42 have a solutions that is an integer? Explain.
2. Does the linear equation 7x = −21 have a solution that is an integer? Explain.
3. Does the linear equation 4x = 9 have a solution that is an integer? Explain.
4. Does the linear equation −3x = 20 have a solution that is an integer? Explain.
5. Prove the following theorem:
Theorem 8.18
Let a, b ∈ Z with a ≠ 0 .
If a divides b , then the equation ax = b has exactly one solution that is an integer.
If a does not divide b , then the equation ax = b has no solution that is an integer.
In the two preview activities, we were interested only in integer solutions for certain equations. In such instances, we give the
equation a special name.
Diophantine equations are named in honor of the Greek mathematician Diophantus of Alexandria (circa 300 c.e.). Very little is
known about Diophantus’ life except that he probably lived in Alexandria in the early part of the fourth centuryc.e. and was
probably the first to use letters for unknown quantities in arithmetic problems. His most famous work, Arithmetica, consists of
approximately 130 problems and their solutions. Most of these problems involved solutions of equations in various numbers of
Theorem 8.18 in Preview Activity 8.3.1 provides us with results that allows us to determine which linear diophantine
equations in one variable have solutions and which ones do not have a solution.
A linear Diophantine equation in two variables can be defined in a manner similar to the definition for a linear Diophantine
equation in one variable.
The equations that were investigated in Preview Activity 8.3.2 were linear Diophantine equations in two variables. The
problem of determining all the solutions of a linear Diophantine equation has been completely solved. Before stating the
general result, we will provide a few more examples.
It would be nice to determine the pattern that these solutions exhibit. If we consider the solution x = 2 and y = −1 to be
the “starting point,” then we can see that the other solutions are obtained by adding 3 to x and subtracting 4 from y in the
previous solution. So we can write these solutions to the equation as
x = 2 + 3k and y = −1 − 4k ,
where k is an integer. We can use substitution and algebra to verify that these expressions for x and y give solutions of
this equation as follows:
4x + 3y = 4(2 + 3k) + 3(−1 − 4k)
= 5.
We should note that we have not yet proved that these solutions are all of the solutions of the Diophantine equation
4x + 3y = 5 . This will be done later.
If the general form for a linear Diophantine equation is ax + by = c , then for this example, a = 4 and b = 3 . Notice that
for this equation, we started with one solution and obtained other solutions by adding b = 3 to x and subtracting a = 4
from y in the previous solution. Also, notice that gcd(3, 4) = 1.
2. Follow the pattern in this table to determine formulas for x and y that will generate integer solutions of the equation
6x + 9y = 12 . Verify that the formulas actually produce solutions for the equation 6x + 9y = 12 .
Answer
Add texts here. Do not delete this text first.
Answer
Add texts here. Do not delete this text first.
The solutions for the linear Diophantine equations in Preview Activity 8.3.2, Example 8.19, and Progress Check 8.20 provide
examples for the second part of Theorem 8.22.
Theorem 8.22
Let a , b and c be integers with a ≠ 0 and b ≠ 0 , and let d = gcd(a, b) .
1. If d does not divide c , then the linear Diophantine equation ax + by = c has no solution.
2. If d divides c , then the linear Diophantine equation ax + by = c has infinitely many solutions. In addition, if (x , y ) 0 0
is a particular solution of this equation, then all the solutions of this equation can be written in the form
b a
x = x0 + k and y = y0 − k, (8.3.2)
d d
Proof
The proof of Part (1) is Exercise (1). For Part (2), we let a , b, and c be integers with a ≠ 0 and b ≠ 0 , and let
d = gcd(a, b) . We also assume that d | c . Since d = gcd(a, b) , Theorem 8.8 tells us that d is a linear combination of
d = as + bt. (8.3.3)
Since d | c, there exists an integer m such that c = dm . We can now multiply both sides of equation (8.3.3) by m and
obtain
dm = (as + bt)m
(8.3.4)
c = a(sm) + b(tm).
This means that x = sm , y = tm is a solution of ax + by = c , and we have proved that the Diophantine equation
ax + by = c has at least one solution.
ab ab
= ax0 + k + b y0 − k (8.3.6)
d d
= ax0 + b y0
= c.
This proves that the Diophantine equation ax + by = c has infinitely many solutions.
We now show that every solution of this equation can be written in the form described in (8.3.4). So suppose that x
a b a
However, by Exercise (7) in Section 8.2, textgcd( , ) =1 , and so by Theorem 8.12, we can conclude that
d d d
a
divides y 0 −y . This means that there exists an integer k such that y 0 −y = k , and solving for y gives
d
a
y = y0 − k.
d
Substituting this value for y in equation (8.3.5) and solving for x yields
b
x = x0 + )k.
d
This proves that every solution of the Diophantine equation ax + by = c can be written in the form prescribed in
(8.3.4).
Theorem 8.3.1
Let a , b , andc be integers with a ≠ 0 and b ≠ 0 .If a and b are relatively prime, then the linear Diophantine equation
ax + by = c has infinitely many solutions. In addition, if x0 , y is a particular solution of this equation, then all the
0
where k ∈ Z
Answer
Add texts here. Do not delete this text first.
Exercises 8.3
1. Prove Part (1) of Theorem 8.22:
Let a , b , and c be integers with a ≠ 0 and b ≠ 0 , and let d = gcd(a, b) . If d does not divide c , then the linear
Diophantine equation ax + by = c has no solution.
2. Prove Corollary 8.23.
Let a , b , and c be integers with a ≠ 0 and b ≠ 0 . If a and b are relatively prime, then the linear Diophantine equation
ax + by = c has infinitely many solutions. In addition, if (x , y ) is a particular solution of this equation, then all the
0 0
where k ∈ Z .
3. Determine all solutions of the following linear Diophantine equations.
(a) 9x + 14y = 1
(b) 18x + 22y = 4
(c) 48x − 18y = 15
(d) 12x + 9y = 6
(e) 200x + 49y = 10
(f) 200x + 54y = 21
(g) 10x − 7y = 31
(h) 12x + 18y = 6
4. A certain rare artifact is supposed to weigh exactly 25 grams. Suppose that you have an accurate balance scale and
500 each of 27 gram weights and 50 gram weights. Explain how to use Theorem 8.22 to devise a plan to check the
weight of this artifact.
Hint: Notice that gcd(50, 27) = 1. Start by writing 1 as a linear combination of 50 and 27.
5. On the night of a certain banquet, a caterer offered the choice of two dinners, a steak dinner for $25 and a vegetarian
dinner for $16. At the end of the evening, the caterer presented the host with a bill (before tax and tips) for $1461.
What is the minimum number of people who could have attended the banquet? What is the maximum number of
people who could have attended the banquet?
6. The goal of this exercise is to determine all (integer) solutions of the linear Diophantine equation in three variables
12 x1 + 9 x2 + 16 x3 = 20.
(a) First, notice that gcd(12, 9) = 3. Determine formulas that will generate all solutions for the linear Diophantine
equation 3y + 16x = 20 .
3
(b) Explain why the solutions (for x and x ) of the Diophantine equation 12x + 9x = 3y can be used to geneate
1 2 1 2
(c) Use the general value for y from Exercise (6a) to determine the solutions of 12x + 9x = 3y 1 2
(d) Use the results from Exercises (6a) and (6c) to determine formulas that will generate all solutions for the
Diophantine equation 12x + 9x + 16x = 20 .
1 2 3
Note: These formulas will involve two arbitrary integer parameters. Substitute specific values for these integers and
7. Use the method suggested in Exercise (6) to determine formulas that will generate all solutions of the Diophantine
equation 8x + 4x − 6x = 6 . Check the general solution.
1 2 3
8. Explain why the Diophantine equation 24x − 18x + 60x = 21 has no solution.
1 2 3
9. The purpose of this exercise will be to prove that the nonlinear Diophantine equation 3x − y = −2 has no solution.
2 2
(a) Explain why if there is a solution of the Diophantine equation 3x − y = −2 , then that solution must also be a
2 2
(b) If there is a solution to the congruence 3x − y ≡ −2 (mod 3), explain why there then must be an integer y such
2 2
(c) Use a proof by contradiction to prove that the Diophantine equation 3x − y = −2 has no solution.
2 2
10. Use the method suggested in Exercise (9) to prove that the Diophantine equation 7x + 2 = y has no solution.
2 3
∙ The integer x = 3 is a solution for the congruence 2x ≡ 1 (mod 5) since 2 ⋅ 3 ≡ 1 (mod 5) is a true congruence.
∙ The integer x = 7 is a solution for the congruence 3x ≡ 1 (mod 6) since 3 ⋅ 7 ≡ 1 (mod 6) is not a true congruence.
(a) Verify that x = 2 and x = 5 are the only solutions the linear congruence 4x ≡ 2 (mod 6) with 0 ≤ x < 6 .
(b) Show that the linear congruence 4x ≡ 3 (mod 6) has no solutions with 0 ≤ x < 6 .
(c) Determine all solutions of the linear congruence 3x ≡ 7 (mod 8) with 0 ≤ x < 8 .
The following parts of this activity show that we can use the results of Theorem 8.22 to help find all solutions of the
linear congruence 6x ≡ 4 (mod 8).
(d) Verify that x = 2 and x = 5 are the only solutions the linear congruence 6x ≡ 4 (mod 8) with 0 ≤ x < 8 .
(e) Use the definition of “congruence” to rewrite the congruence 6x ≡ 4 (mod 8) in terms of "divides".
(f) Use the definition of “divides” to rewrite the result in part (11e) in the form of an equation. (An existential
quantifier must be used.)
(g) Use the results of parts (11d) and (11f) to write an equation that will generate all the solutions of the linear
congruence 6x ≡ 4 (mod 8).
Hint: Use Theorem 8.22. This can be used to generate solutions for x and the variable introduced in part (11f). In this
case, we are interested only in the solutions for x.
Now let n be a natural number and let a, c ∈ Z with a ≠ 0 . A general linear congruence of the form ax ≡ c (mod n )
can be handled in the same way that we handled in 6x ≡ 4 (mod 8).
(a) d divides a ,
(b) d divides b , and
(c) if k is an integer that divides both a and b , then k divides d .
Theorem 8.8. Let a and b be integers, not both 0. Then gcd(a, b) can be written as a linear combination of a and b . That is,
there exist integers u and v such that gcd(a, b) = au + bv .
Theorem 8.9.
1. The greatest common divisor, d , is a linear combination of a and b . That is, there exist integers m and n such that
d = am + bn .
2. The greatest common divisor, d , divides every linear combination of a and b . That is, for all x, y ∈ Z, d | (ax + by) .
3. The greatest common divisor, d , is the smallest positive number that is a linear combination of a and b .
Theorem 8.11. Let a and b be nonzero integers, and let p be a prime number.
1. If a and b are relatively prime, then there exist integers m and n such that am + bn = 1 . That is, 1 can be written as
linear combination of a and b .
2. If p | a ,then gcd(a, p) = p .
3. If p does not divide a , then gcd(a, p) = 1 .
Theorem 8.12 Let a , b , and c be integers. If a and b are relatively prime and a | (bc) , then a | c .
Corollary8.14
1. Let a, b ∈ Z , and let p be a prime number. If p | (ab) , then p | a or p | b .
2. Let p be a prime number, let n ∈ N , and let a , a , . . . , a ∈ Z. If p | (a
1 2 n 1 a2 ⋅ ⋅ ⋅ an ) , then there exists a natural number
k with 1 ≤ k ≤ n such that p | a . k
where p p ⋅ ⋅ ⋅ p and q q
1 2 r 1 2 ⋅ ⋅ ⋅ qs are primes with p1 ≤ p2 ≤ ⋅ ⋅ ⋅ pr and q1 ≤ q2 ≤ ⋅ ⋅ ⋅ ≤ qs . Then r =s , and for
each j from 1 to r, p = q .
j j
where k ∈ Z .
Corollary8.23. Let a , b , and c be integers with a ≠ 0 and b ≠ 0 . If a and b are relatively prime, then the linear
Diophantine equation ax + by = c has infinitely many solutions. In addition, if x , y is a particular solution of this
0 0
where k ∈ Z .
1 7/21/2021
9.1: Finite Sets
2. For each of the following, use the definition of equivalent sets to determine if the first set is equivalent to the second
set.
a. A = {1, 2, 3} and B = {a, b, c}
b. C = {1, 2} and B = {a, b, c}
c. X = {1, 2, 3, . . . , 10} and Y = {57, 58, 59, . . . , 66}
3. Let D be the set of all odd natural numbers. Prove that the function f : N → D defined by f (x) = 2x − 1 , for all
+ +
4. Let R be the set of all positive real numbers. Prove that the function g : R → R defined by g(x) = e , for all
+ + x
Theorem 9.1.
Let A , B , and C be sets.
a. For each set A , A ≈ A .
b. For all sets A and B , if A ≈ B , then B ≈ A .
c. For all sets A , B and C , if A ≈ B and B ≈ C , then A ≈ C .
Equivalent Sets
In Preview Activity 9.1.1, we introduced the concept of equivalent sets. The motivation for this definition was to have a
formal method for determining whether or not two sets “have the same number of elements.” This idea was described in terms
of a one-to-one correspondence (a bijection) from one set onto the other set. This idea may seem simple for finite sets, but as
Technical Note
The three properties we proved in Theorem 9.1 in Preview Activity 9.1.2 are very similar to the concepts of reflexive,
symmetric, and transitive relations. However, we do not consider equivalence of sets to be an equivalence relation on a
set U since an equivalence relation requires an underlying (universal) set U . In this case, our elements would be the sets
A , B , and C , and these would then have to subsets of some universal set W (elements of the power set of W ). For
equivalence of sets, we are not requiring that the sets A , B , and C be subsets of the same universal set. So we do not use
the term relation in regards to the equivalence of sets. However, if A and B are sets and A ≈ B , then we often say that A
and B are equivalent sets.
Answer
Add texts here. Do not delete this text first.
In Part (3) of Progress Check 9.2, notice that if b > 1 , then (0, 1) is a proper subset of (0, b ) and (0, 1) ≈ (0, b). Also, in Part
(3) of Preview Activity 9.1.1, we proved that the set D of all odd natural numbers is equivalent to N, and we know that D is a
proper subset of N.
These results may seem a bit strange, but they are logical consequences of the definition of equivalent sets. Although we have
not defined the terms yet, we will see that one thing that will distinguish an infinite set from a finite set is that an infinite set
can be equivalent to one of its proper subsets, whereas a finite set cannot be equivalent to one of its proper subsets.
Finite Sets
In Section 5.1, we defined the cardinality of a finite set A , denoted by card(A ), to be the number of elements in the set A .
Now that we know about functions and bijections, we can define this concept more formally and more rigorously. First, for
each k ∈ N , we define N to be the set of all natural numbers between 1 and k , inclusive. That is,
k
.
Nk = {1, 2, . . . , k}
We will use the concept of equivalent sets introduced in Preview Activity 9.1.1 to define a finite set.
In addition, we say that the empty set has cardinality 0 (or cardinal number 0), and we write card(∅) = 0 .
Theorem 9.3
Any set equivalent to a finite nonempty set A is a finite set and has the same cardinality as A .
Proof
Suppose that A is a finite nonempty set, B is a set, and A ≈ B . Since A is a finite set, there exists a k ∈ N such that
A ≈ N . We also have assumed that A ≈ B and so by part (b) of Theorem 9.1 (in Preview Activity 9.1.2), we can
k
conclude that B ≈ A . Since A ≈ N , we can use part (c) of Theorem 9.1 to conclude that B ≈ N . Thus, B is finite
k k
It may seem that we have done a lot of work to prove an “obvious” result in Theorem 9.3. The same may be true of the
remaining results in this section, which give further results about finite sets. One of the goals is to make sure that the concept
of cardinality for a finite set corresponds to our intuitive notion of the number of elements in the set. Another important goal is
to lay the groundwork for a more rigorous and mathematical treatment of infinite sets than we have encountered before. Along
the way, we will see the mathematical distinction between finite and infinite sets.
The following two lemmas will be used to prove the theorem that states that every subset of a finite set is finite.
Lemma 9.4
If A is a finite set and x ∉ A , then A ∪ {x} is a finite set and card(A ∪ {x}) = card(A) + 1 .
Proof
Let A is a finite set and assume that card(A) = k , where k = 0 or k ∈ N . Assume x ∉ A .
If A = ∅ , then card(A) = 0 and A ∪ {x} = {x} , which is equivalent to N . Thus, A ∪ {x} is a finite set with
1
will now use this bijection to define a function g : A ∪ {x} → N and then prove that the function g is a bijection.
k+1
f (x ) ∈ N
2 and g(x ) = f (x ) , we can conclude that g(x ) ≠ g(x ) .
k 2 2 1 2
This proves that the function g is an injection. The proof that g is a surjection is Exercise (1). Since g is a bijection, we
conclude that A ∪ {x} ≈ N , and
k+1
card(A ∪ {x}) = k + 1 .
Since card(A) = k , we have proved that card(A ∪ {x}) = card(A) + 1 .
Lemma 9.5
For each natural number m, if A ⊆ N , then A is a finite set and card(A) ≤ m .
m
Proof
We will use a proof using induction on m . For each m ∈ N , let P (m) be, "If A ⊆ Nm , then A is finite and
card(A) ≤ m ".
For the inductive step, let k ∈ N and assume that P (k) is true. That is, assume that if B ⊆ N , then B is a finite set
k
Theorem 9.6.
If S is a finite set and A is a subset of S , then A is a finite set and card(A) ≤ card(S) .
Proof
Let S be a finite set and assume that A is a subset of S . If A = ∅ , then A is a finite set and card(A) ≤ card(S) . So
we assume that A ≠ ∅ .
Since S is finite, there exists a bijection f : S → N for some k ∈ N . In this case, card(S) = k . We need to show that
k
bijection.
Hence, we have proved that A ≈ f (A) . Since f (A) is a subset of N , we use Lemma 9.5 to conclude that f (A) is
k
finite and card(f (A)) ≤ k . In addition, by Theorem 9.3, A is a finite set and card(A) = card(f (A)) . This proves
that A is a finite set and card(A) ≤ card(S) .
Lemma 9.4 implies that adding one element to a finite set increases its cardinality by 1. It is also true that removing one
element from a finite nonempty set reduces the cardinality by 1. The proof of Corollary 9.7 is Exercise (4).
corollary 9.7
If A is a finite set and x ∈ A , then A − {x} is a finite set and card(A − {x}) = card(A) − 1
The next corollary will be used in the next section to provide a mathematical distinction between finite and infinite sets.
Corollary 9.8
A finite set is not equivalent to any of its proper subsets.
Theorem 9.3 implies that B ≉ A . This proves that a finite set is not equivalent to any of its proper subsets.
Proof
Let A and B be finite sets. We will prove the contrapositive o the theorem, which is, if there exists a function
f : A → B that is an injection, then card(A) ≤ card(B) .
So assume that f : A → B is an injection. As in Theorem 9.6, we define a function g : A → f (A) by
g(x) = f (x) for each x ∈ A .
As we saw in Theorem 9.6, the function g is a bijection. But then A ≈ f (A) and f (A) ⊆ B . Hence,
card(A) = card(f (x)) and cardf ((A)) ≤ card(B) .
Hence, cardf ((A)) ≤ card(B) , and this proves the contrapositive. Hence, if card(A) > card(B) , then any function
f : A → B is not an injection.
The Pigeonhole Principle has many applications in the branch of mathematics called “combinatorics.” Some of these will be
explored in the exercises.
Exercises 9.1
1. Prove that the function g : A ∪ {x} → N k+1in Lemma 9.4 is a surjection.
2. Let A be a subset of some universal set U . Prove that if x ∈ U , then A × {x} ≈ A .
3. Let E be the set of all even natural numbers. Prove that N ≈ E .
+ +
f (x) if t ∈ A
k(x) = { (9.1.1)
g(x) if x ∈ C .
8. Let A = {a, b, c} .
(b) Use the function f to construct a function g : A → N so that f ∘ g = I , where I is the identity function on the
5 A A
Prove that f ∘ g = I , where I is the identity function on the set A and prove that g is an injection.
A A
10. Let B be a finite, nonempty set and assume that f : B → A is a surjection. Prove that there exists a function
h : A → B such that f ∘ h = I A and h is an injection.
Hint: Since B is finite, there exists a natural number m such that N ≈ B . This means there exists a bijection
m
(a) One such set is A = {3, 5, 11, 17, 21, 24, 26, 29}. Notice that
{3, 21, 24, 26} ⊆ A and 3 + 21 + 24 + 26 = 74
(9.1.2)
{3, 5, 11, 26, 29} ⊆ A and 3 + 5 + 11 + 26 + 29 = 74
Use this information to find two disjoint subsets of A whose elements have the same sum.
(b) Let B = {3, 5, 9, 12, 15, 18, 21, 24}. Find two disjoint subsets of B whose elements have the same sum. Note: By
convention, if T = {a} , where a ∈ N , then the sum of the elements in T is equal to a .
(c) Now let C be any subset of N that contains eight elements.
30
Use the Pigeonhole Principle to prove that there exist two subsets of C whose elements have the same sum.
(d) If the two subsets in part (11(c)iii) are not disjoint, use the idea presented in part (11a) to prove that there exist two
disjoint subsets of C whose elements have the same sum.
Answer
Add texts here. Do not delete this text first.
also defined an infinite set to be a set that is not finite, but the question now is, “How do we know if a set is infinite?”
One way to determine if a set is an infinite set is to use Corollary 9.8, which states that a finite set is not equivalent to any
of its subsets. We can write this as a conditional statement as follows:
If A is a finite set, then A is not equivalent to any of its proper subsets. or more formally as
For each set A , if A is a finite set, then for each proper subset B of A , A ≉ B .
1. Write the contrapositive of the preceding conditional statement. Then explain how this statement can be used to
determine if a set is infinite.
2. Let DC be the set of all odd natural numbers. In Preview Activity 9.2.1 from Section 9.1, we proved that N ≈ D . +
3. Let b be a positive real number. Let (0, 1) and (0, b) be the open intervals from 0 to 1 and 0 to b , respectively. In Part
(3) of Progress Check 9.2 (on page 454), we proved that (0, 1) ≈ (0, b).
(a) Use a value for b where 0 < b < 1 to explain why (0, 1) is an infinite set.
(b) Use a value for b where b > 1 to explain why (0, b) is an infinite set.
Notice that if we list the outputs of f in the order f (1), f (2), f (3), ..., we create the following list of integers: 0, 1, -1, 2,
-2, 3, -3, ... . We can also illustrate the outputs of this function with the following diagram:
1. If the pattern suggested by the function values we have defined continues, what are f (11) and f (12)? What is f (n)
for n from 13 to 16?
2. If the pattern of outputs continues, does the function f appear to be an injection? Does f appear to be a surjection?
(Formal proofs are not required.)
We will now attempt to determine a formula for f (n), where n ∈ N . We will actually determine two formulas: one for
when n is even and one for when n is odd.
3. Look at the pattern of the values of f (n) when n is even. What appears to be a formula for f (n) when n is even?
4. Look at the pattern of the values of f (n) when n is odd. What appears to be a formula for f (n) when n is odd?
5. Use the work in Part (3) and Part (4) to complete the following: Define f : N → Z , where
?? if n is even
f (n) = { (9.2.1)
?? if n is odd.
Infinite Sets
In Preview Activity 9.2.1, we saw how to use Corollary 9.8 to prove that a set is infinite. This corollary implies that if A is a
finite set, then A is not equivalent to any of its proper subsets. By writing the contrapositive of this conditional statement, we
can restate Corollary 9.8 in the following form:
Corollary 9.8
If a set A is equivalent to one of its proper subsets, then A is infinite.
Theorem 9.10.
Let A and B be sets.
1. If A is infinite and A ≈ B , then B is infinite.
2. If A is infinite and A ⊆ B , then B is infinite.
Proof
We will prove part (1). The proof of part (2) is exercise (3) on page 473.
To prove part (1), we use a proof by contradiction and assume that A is an infinite set, A ≈ B , and B is not infinite.
That is, B is a finite set. Since A ≈ B and B is finite, Theorem 9.3 on page 455 implies that A is a finite set. This is a
contradiction to the assumption that A is infinite. We have therefore proved that if A is infinite and A ≈ B , then B is
infinite.
2. Let D be the set of all odd natural numbers. In Part (2) of Preview Activity 9.2.1, we proved that D ≈ N . Use
+ +
3. Prove that the set E of all even natural numbers is an infinite set.
+
Answer
Add texts here. Do not delete this text first.
equivalent to N . In a similar manner, we will use some infinite sets as standard sets for certain infinite cardinal numbers. The
k
number k . We will be able to “count” the elements of an infinite set if we can define a one-to-one correspondence between the
set and N.
Definition
The cardinality of N is denoted by ℵ . The symbol ℵ is the first letter of the Hebrew alphabet, aleph. The subscript 0 is
0
Definition
A set A is countably infinite provided that A ≈ N . In this case, we write
card(A) = ℵ0
A set that is countably infinite is sometimes called a denumerable set. A set is countable provided that it is finite or
countably infinite. An infinite set that is not countably infinite is called an uncountable set.
3. At this point, if we wish to prove a set S is countably infinite, we must find a bijection between the set S and some set
that is known to be countably infinite.
Let S be the set of all natural numbers that are perfect squares. Define a function
f : S → N (9.2.2)
Answer
Add texts here. Do not delete this text first.
The fact that the set of integers is a countably infinite set is important enough to be called a theorem. The function we will use
to establish that N ≈ Z was explored in Preview Activity 9.2.2.
Theorem 9.13
The set Z of integers is countably infinite, and so card(Z) = ℵ 0
Proof
To prove that N ≈ Z , we will use the following funciton: f : N → Z , where
n
⎧ if n is even
⎪
2
f (n) = ⎨
1 −n
⎩
⎪ if n is odd.
2
These two cases prove that if y ∈ Z , then there exists an n ∈ N such that f (n) = y . Hence, f is a surjection.
To prove that f is an injection, we let m, n ∈ N and assume that f (m) = f (n) . First note that if one of m and n is
odd and the other is even, then one of f (m) and f (n) is positive and the other is less than or equal to 0. So if
f (m) = f (n) , then both m and n must be even or both m and n must be odd.
From this, we conclude that 1 − m = 1 − n and hence that m =n . This proves that if f (m) = f (n) , then
m = n and hence that f is an injection.
Since f is both a surjection and an injection, we see that f is a bijection and, therefore, N ≈ Z . Hence, Z is countably
infinite and card(Z) = ℵ . 0
The result in Theorem 9.13 can seem a bit surprising. It exhibits one of the distinctions between finite and infinite sets. If we
add elements to a finite set, we will increase its size in the sense that the new set will have a greater cardinality than the old set.
However, with infinite sets, we can add elements and the new set may still have the same cardinality as the original set. For
example, there is a one-to-one correspondence between the elements of the sets N and Z. We say that these sets have the same
cardinality.
Following is a summary of some of the main examples dealing with the cardinality of sets that we have explored.
The sets N , where k ∈ N , are examples of sets that are countable and finite.
k
The sets N, Z, the set of all odd natural numbers, and the set of all even natural numbers are examples of sets that are
countable and countably infinite.
We have not yet proved that any set is uncountable.
a+b 1 1 1 5
= ( + ) =
2 2 3 2 12
5 1
as a rational number between a and b . We can then repeat this process to find a rational number between and .
12 2
a+b
So we will now let a and b be any two rational numbers with a < b and let c 1 = . We then see that
2
Since b > a , we see that b −a > 0 and so the previous equations show that c1 − a > 0 and b − c1 > 0 . We can then
conclude that a < c < b .
1
c1 + b
We can now repeat this process by using c 2 = and proving that c 1 < c2 < b , In fact, for each natural number, we can
2
define
ck + b
ck+1 =
2
and obtain the result that a < c < c < ⋅ ⋅ ⋅ < c < ⋅ ⋅ ⋅ < b and this proves that the set {c | k ∈ N is a countably infinite
1 2 n k
set where each element is a rational number between a and b . (A formal proof can be completed using mathematical induction.
See Exercise ().
This result is true no matter how close together a and b are. For example, we can now conclude that there are infinitely many
1
rational numbers between 0 and This might suggest that the set Q of rational numbers is uncountable. Surprisingly,
10000
this is not the case. We start with a proof that the set of positive rational numbers is countable.
Theorem 9.14
The set of positive rational numbers is countably infinite.
Proof
We can write all the positive rational numbers in a two-dimensional array as shown in Figure 9.2. The top row in
Figure 9.2 represents the numerator of the rational number, and the left column represents the denominator. We follow
the arrows in Figure 9.2 to define f : N → Q . The idea is to start in the upper left corner of the table and move to
+
2 1
We next use those fractions in which the sum of the numerator and denominator is 3. So f (2) = and f (3) = .
1 2
1 3
We next use those fractions in which the sum of the numerator and denominator is 4. So f (4) = , f (5) = .
3 1
2 2 1
We skipped since = . In this way, we will ensure that the function f is a one-to-one function.
2 2 1
We now continue with successive diagonals omitting fractions that are not in lowest terms. This process guarantees
that the function f will be an injection and a surjection. Therefore, N ≈ Q and card(Q ) = ℵ .
+ +
0
Note: For another proof of Theorem 9.14, see exercise (14) on page 475.
Since Q is countable, it seems reasonable to expect that Q is countable. We will explore this soon. On the other hand, at this
+
Theorem 9.15.
If A is a countably infinite set, then A ∪ {x} is a countably infinite set.
Proof
Let A be a countably infinite set. Then there exists a bijection f : N → A . Since x is either in A or not in A, we can
consider two cases.
If x ∈ A , then A ∪ {x} = A and A ∪ {x} is countably infinite.
If x ∉ A , define g : N → A ∪ {x} by
x if n = 1
g(n) = {
f (n − 1) if n > 1.
The proof that the function g is a bijection is Exercise (4). Since g is a bijection, we have proved that A ∪ {x} ≈ N
Proof
Exercise (5) on page 474.
Theorem 9.16 says that if we add a finite number of elements to a countably infinite set, the resulting set is still countably
infinite. In other words, the cardinality of the new set is the same as the cardinality of the original set. Finite sets behave very
differently in the sense that if we add elements to a finite set, we will change the cardinality. What may even be more
surprising is the result in Theorem 9.17 that states that the union of two countably infinite (disjoint) sets is countably infinite.
The proof of this result is similar to the proof that the integers are countably infinite (Theorem 9.13). In fact, if
A = { a , a , a , . . . } and B = { b , b , b , . . . } , then we can use the following diagram to help define a bijection from N to
1 2 3 1 2 3
A∪B.
Theorem 9.17
If A and B are disjoint countably infinite sets, then A ∪ B is a countably infinite set.
Proof
Let A and B be countably infinite sets and let f : N → A and g : N → B be bijections. Define h : N → A ∪ B by
⎧ n+1
⎪ f( ) if n is odd
2
h(n) = ⎨
n
⎩ g(
⎪ ) if n is even.
2
It is left as Exercise (6) on page 474 to prove that the function h is a bijection.
Since we can write the set of rational numbers Q as the union of the set of nonnegative rational numbers and the set of rational
numbers, we can use the results in Theorem 9.14, Theorem 9.15, and Theorem 9.17 to prove the following theorem.
Theorem 9.18.
The set Q of all rational numbers is countably infinite.
Proof
Exercise (7) on page 474.
In Section 9.1, we proved that any subset of a finite set is finite (Theorem 9.6). A similar result should be expected for
countable sets. We first prove that every subset of N is countable. For an infinite subset B of N, the idea of the proof is to
define a function g : N → B by removing the elements from B from smallest to the next smallest to the next smallest, and so
on. We do this by defining the function g recursively as follows:
Let g(1) be the smallest natural number in B .
Remove g(1) from B and let g(2) be the smallest natural number in B − {g(1)} .
Remove g(2) and let g(3) be the smallest natural number in B − {g(1), g(2)} .
We continue this process. The formal recursive definition of g : N → B is included in the proof of Theorem 9.19.
Proof
Let B be a subset of N . If B is finte, then B is countable. So we next assume that B is infinite. We will next give a
recursive definition of a function g : N → B and then prove that g is a bijection.
Let g(1) be the smallest natural number in B.
For each n ∈ N , the set B − {g(1), g(2), . . . , g(n)} is not empty since B is infinte. Define g(n + 1) to be the
smallest natural number in B − {g(1), g(2), . . . , g(n)} .
The proof that the function g is a bijection is Exercise (11) on page 475.
Corollary 9.20.
Every subset of a countable set is countable.
Proof
Exercise (12) on page 475.
Exercise 9.2
1. State whether each of the following is true or false.
x if n = 1
g(n) = { (9.2.7)
f (n − 1) if n > 1.
(a) Prove that f is an injection. Hint: If f (m, n) = f (s, t) , there are three cases to consider: m > s , m < s , and
m = s . Use laws of exponents to prove that the first two cases lead to a contradiction.
(b) Prove that f is a surjection. Hint: You may use the fact that if y ∈ N , then y = 2 x , where x is an odd natural k
number and k is a nonnegative integer. This is actually a consequence of the Fundamental Theorem of Arithmetic,
Theorem 8.15. [See Exercise (13) in Section 8.2.]
(c) Prove that N × N ≈ N and hence that card(N × N) = ℵ . 0
10. Use Exercise (9) to prove that if A and B are countably infinite sets, then A × B is a countably infinite set.
11. Complete the proof of Theorem 9.19 by proving that the function g defined in the proof is a bijection from N to B .
Hint: To prove that g is an injection, it might be easier to prove that for all r, s ∈ N , if r ≠ s , then g(r) ≠ g(s) . To do
this, we may assume that r < s since one of the two numbers must be less than the other. Then notice that
g(r) ∈ {g(1), g(2), . . . , g(s − 1)} .
To prove that g is a surjection, let b ∈ B and notice that for some k ∈ N , there will be k natural numbers in B that are
less than b .
12. Prove Corollary 9.20, which states that every subset of a countable set is countable.
Hint: Let S be a countable set and assume that A ⊆ S . There are two cases: A is finite or A is infinite. If A is
infinite, let f : S → N be a bijection and define g : A → f (A) by g(x) = f (x) , for each x ∈ A .
13. Use Corollary 9.20 to prove that the set of all rational numbers between 0 and 1 is countably infinite.
Arithmetic (see Theorem 8.15 on page 432). Let Q be the set of positive rational numbers. Every positive rational
+
m
number has a unique representation as a fraction , where m and n are relatively prime natural numbers. We will
n
now define a function f : Q
+
→ N as follows:
m
If x ∈ Q and x =
+
, where m, n ∈ N , n ≠ 1 and gcd(m, n) = 1 , we write
n
α1 α2 αr
m = p p ⋅ ⋅ ⋅ pr , and
1 2
(9.2.10)
β1 β2 βs
n = q q ⋅ ⋅ ⋅ qs ,
1 2
1
p
2α2
2
⋅ ⋅ ⋅ pr
2αr
=m
2
.
1
3 3
2 5 12 375 2 ⋅ 11
(a) Determine f ( ,
) f( , ,
) f (6) f ( ,
) f( , and f (
)
4
.
)
3 6 25 392 3⋅5
(b) If possible, find x ∈ Q such that f (x) = 100.
+
Answer
Add texts here. Do not delete this text first.
The game continues with Player One completing a row with six letters (X’s and O’s), one in each box of the next row
followed by Player Two writing one letter (an X or an O) in the next box of his or her row. The game is completed
when Player One has completed all six rows and Player Two has completed all six boxes in his or her row.
Winning the Game
Player One wins if any horizontal row in the 6 by 6 array is identical to the row that Player Two created. (Player One
matches Player Two.)
Player Two wins if Player Two’s row of six letters is different than each of the six rows produced by Player One.
(Player Two “dodges” Player One.)
There is a winning strategy for one of the two players. This means that there is plan by which one of the two players will
always win. Which player has a winning strategy? Carefully describe this winning strategy.
Applying the Winning Strategy to Lists of Real Numbers
Following is a list of real numbers between 0 and 1. Each real number is written as a decimal number.
a1 = 0.1234567890a6 = 0.0103492222
a2 = 0.3216400000a7 = 0.0011223344
a3 = 0.4321593333a8 = 0.7077700022
a4 = 0.9120930092a9 = 0.2100000000
a5 = 0.0000234102a10 = 0.9870008943
(a) Determine f (1), f (2), f (3), and f (4). In each of these cases, determine if k ∈ f (k) .
(b) Prove that if n > 3 , then n ∈ f (n) . Hint: Prove that if n > 3 , then n > n and n − 2n > n .
2 2
We have seen examples of sets that are countably infinite, but we have not yet seen an example of an infinite set that is
uncountable. We will do so in this section. The first example of an uncountable set will be the open interval of real numbers (0,
1). The proof that this interval is uncountable uses a method similar to the winning strategy for Player Two in the game of
Dodge Ball from Preview Activity 1. Before considering the proof, we need to state an important results about decimal
expressions for real numbers.
5
= 0.416666...
12
5
We often abbreviate this as = 0.41 6̄ to indicate that the 6 is repeated. We can also repeat a block of digits. For example,
12
5 ¯
¯¯¯¯¯¯¯¯¯¯¯¯¯
¯
= 0.19 230769 to indicate that the block 230769 repeats. That is
26
5
= 0.19230769230769230769...
26
There is only one situation in which a real number can be represented as a decimal in more than one way. A decimal that ends
with an infinite string of 9’s is equal to one that ends with an infinite string of 0’s. For example, 0.3199999... . represents the
same real number as 0.3200000... . Geometric series can be used to prove that a decimal that ends with an infinite string of 9’s
is equal to one that ends with an infinite string of 0’s, but we will not do so here.
Definition
A decimal representation of a real number a is in normalized form provided that there is no natural number k such that
for all natural numbers n with n > k , a = 9 . That is, the decimal representation of a is in normalized form if and only if
n
One reason the normalized form is important is the following theorem (which will not be proved here).
Theorem 9.21
Two decimal numbers in normalized form are equal if and only if they have identical digits in each decimal position.
Uncountable Subsets of R
In the proof that follows, we will use only the normalized form for the decimal representation of a real number in the interval
(0, 1).
Theorem 9.22.
The open interval (0, 1) is an uncountable set.
Proof
1 1 1
Since the interval (0, 1) contains the infinite subset�� { , , , we can use Theorem 9.10, to conclude that
,...}
2 3 4
(0, 1) is an infinite set. So (0, 1) is either countably infinite or uncountable. We will prove that (0, 1) is uncountable by
proving that any injection from (0, 1) to N cannot be a surjection, and hence, there is no bijection between (0, 1) and
N.
So suppose that the function f : N → (0, 1) is an injection. We will show that f cannot be a surjection by showing
that there exists an element in (0, 1) that cannot be in the range of f . Writing the images of the elements of N in
normalized form, we can write
f (1) = 0. a11 a12 a13 a14 a15 . . .
...
...
Notice the use of the double subscripts. The number aij is the j th digit to the right of the decimal point in the
normalized decimal representation of f (i).
We will now construct a real number b = 0.b 1 b2 b3 b4 b5 . .. in (0, 1) and in normalized form that is not in this list.
Note: The idea is to start in the upper left corner and move down the diagonal in a manner similar to the winning
strategy for Player Two in the game in Preview Activity 1. At each step, we choose a digit that is not equal to the
diagonal digit.
Start with a in f (1). We want to choose b so that b ≠ 0 , b ≠ a , and b ≠ 9 . (To ensure that we end up with a
11 1 1 1 11 1
decimal that is in normalized form, we make sure that each digit is not equal to 9.) We then repeat this process with
a , a , a , a , and so on. So we let b be the real number b = 0.b b b b b . . ., where for each k ∈ N
22 33 44 55 1 2 3 4 5
3 if akk ≠ 3
bk = {
5 if akk = 3.
(The choice of 3 and 5 is arbitrary. Other choices of distinct digits will also work.)
Now for each n ∈ N , b ≠ f (n) since b and f (n) are in normalized form and b and f (n) differ in the n th decimal
place. This proves that any function from N to (0, 1) cannot be surjection and hence, there is no bijection from N to
(0, 1). Therefore, (0, 1) is not countably infinite and hence must be an uncountable set.
Answer
Add texts here. Do not delete this text first.
The open interval (0, 1) is our first example of an uncountable set. The cardinal number of (0, 1) is defined to be c , which
stands for the cardinal number of the continuum. So the two infinite cardinal numbers we have seen are ℵ for countably 0
Definition
A set A is said to have cardinality c provided that A is equivalent to (0, 1). In this case, we write card(A) = c and say
that the cardinal number of A is c .
Theorem 9.24.
Let a and b be real numbers with a < b . The open interval (a, b) is uncountable and has cardinality c .
Proof
Add proof here and it will automatically be hidden
Answer
Add texts here. Do not delete this text first.
Theorem 9.26.
The set of real numbers R is uncountable and has cardinality c .
Proof
π π
Let f : (− , ) → R be defined by f (x) = tanx , for each x ∈ R . The function f is as bijection and, hence,
2 2
π π
(− , ) ≈R . So by Theorem 9.24, R is uncountable and has cardinality c.
2 2
Cantor’s Theorem
We have now seen two different infinite cardinal numbers, ℵ and c . It can seem surprising that there is more than one infinite
0
cardinal number. A reasonable question at this point is, “Are there any other infinite cardinal numbers?” The astonishing
answer is that there are, and in fact, there are infinitely many different infinite cardinal numbers. The basis for this fact is the
following theorem, which states that a set is not equivalent to its power set. The proof is due to Georg Cantor (1845–1918),
and the idea for this proof was explored in Preview Activity 2. The basic idea of the proof is to prove that any function from a
set A to its power set cannot be a surjection.
Proof
Let A be a set. If A =∅ , then P(A) = {∅} , which has cardinality 1. Therefore, ∅ and P(∅) do not have the same
cardinality.
Now suppose that A ≠ ∅ , and let f : A → P(A) . We will show that f cannot be a surjection, and hence there is no
bijection from A to P(A) . This will prove that A is not equivalentt to P(A) . Define
S = {x ∈ A | x ∉ f (x)} .
Assume that there exists a t in A such that f (t) = S . Now, either f ∈ S to t ∉ S .
If t ∈ S , then t ∈ {x ∈ A | x ∉ f (x)} . By the definition of S , this means that t ∉ f (t). However, f (t) = S and
so we conclude that t ∉ S . But now we have t ∈ S and t ∉ S . This is a contradiction.
If t ∉ S , then t ∉ {x ∈ A | x ∉ f (x)} . By the definition of S , this means that t ∈ f (t). However, f (t) = S and
so we conclude that t ∈ S . But now we have t ∉ S and t ∈ S . This is a contradiction.
So in both cases we have arrived at a contradiction. This means that there does not exist a t in A such that f (t) = S .
Therefore, any function from A to P(A) is not a surjection and hence not a bijection. Hence, A and P(A) do not
have the same cardinality.
corollary 9.28.
Proof
Since P(N) contains the infinite subset {{1}, {2}, {3}. . . ,}we can use Theorem 9.10, to conclude that P(N) is an
infinite set. By Cantor’s Theorem (Theorem 9.27), N and P(N) do not have the same cardinality. Therefore, P.N/ is
not countable and hence is an uncountable set.
The answer is yes, although we are not in a position to prove it yet. A proof of this fact uses the following theorem, which
is known as the Cantor-Schrö der-Bernstein Theorem.
In the statement of this theorem, notice that it is not required that the function g be the inverse of the function f . We will
not prove the Cantor-Schrö der-Bernstein Theorem here. The following items will show some uses of this important
theorem.
2. The Cantor-Schrö der-Bernstein Theorem can also be used to prove that the closed interval [0, 1] is equivalent to the open
interval (0, 1). See Exercise (6) on page 486.
3. Another question that was posed earlier is,
“Are there other infinite cardinal numbers other than ℵ0 and c?” (9.3.5)
Again, the answer is yes, and the basis for this is Cantor’s Theorem (Theorem 9.27). We can start with card(N) = ℵ . We 0
Cantor’s Theorem tells us that these are all different cardinal numbers, and so we are just using the lowercase Greek letter
α (alpha) to help give names to these cardinal numbers. In fact, although we will not define it here, there is a way to
Keep in mind, however, that even though these are different cardinal numbers, Cantor’s Theorem does not tell us that these
are the only cardinal numbers.
4. In Comment (1), we indicated that P(N) and R have the same cardinality. Combining this with the notation in Comment
(3), this means that
α1 = c. (9.3.8)
However, this does not necessarily mean that c is the “next largest” cardinal number after ℵ . A reasonable question is, “Is
0
there an infinite set with cardinality between ℵ and c ?” Rewording this in terms of the real number line, the question is,
0
“On the real number line, is there an infinite set of points that is not equivalent to the entire line and also not equivalent to
the set of natural numbers?” This question was asked by Cantor, but he was unable to find any such set. He conjectured
to be known as the Continuum Hypothesis. Stated somewhat more formally, the Continuum Hypothesis is
There is no set X such that ℵ0 < card(X) < c. (9.3.9)
The question of whether the Continuum Hypothesis is true or false is one of the most famous problems in modern
mathematics.
Through the combined work of Kurt Gö del in the 1930s and Paul Cohen in 1963, it has been proved that the Continuum
Hypothesis cannot be proved or disproved from the standard axioms of set theory. This means that either the Continuum
Hypothesis or its negation can be added to the standard axioms of set theory without creating a contradiction.
Exercise 9.3
1. Use an appropriate bijection to prove that each of the following sets has cardinality c .
(a) (0, ∞)
(b) (a , ∞), for any a ∈ R
(c) R − {0}
(d) R − {a} , for any a ∈ R
2. Is the set of irrational numbers countable or uncountable? Prove that your answer is correct.
3. Prove that if A is uncountable and A ⊆ B , then B is uncountable.
4. Do two uncountable sets always have the same cardinality? Justify your conclusion.
5. Let C be the set of all infinite sequences, each of whose entries is the digit 0 or the digit 1. For example,
(1, 0, 1, 0, 1, 0, 1, 0, . . . ) ∈ C;
(0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, . . . ) ∈ C; (9.3.10)
(2, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, . . . ) ∉ C.
8. Is the set of all finite subsets of N countable or uncountable? Let F be the set of all finite subsets of N. Determine the
cardinality of the set F .
It might be helpful to use the Fundamental Theorem of Arithmetic on page 432and to denote the set of all primes as
1
f (A) = p p p
1
2
2
, f (B) = p p , and f (C ) = p p p p .
6
3
3
1
6
2
m1
1
m2
2
m3
3
m4
9. In Exercise (2), we showed that the set of irrational numbers is uncountable. However, we still do not know the
cardinality of the set of irrational numbers. Notice that we can use Q to stand for the set of irrational numbers. c
We know that any real number a can be represented in decimal form as follows:
a = A. a1 a2 a3 a4 ⋅ ⋅ ⋅ an ⋅ ⋅⋅, (9.3.11)
where A is an integer and the decimal part (0.a a a a 1 2 3 4 ⋅ ⋅⋅) is in normalized form. (See page 480.) We also know that
the real number a is an irrational number if and only a has an infinite non-repeating decimal expansion. We now
associate with a the real number
A. a1 0 a2 11 a3 000 a4 1111 a5 00000 a6 111111 ⋅ ⋅⋅. (9.3.12)
Notice that to construct the real number in (9.3.12), we started with the decimal expansion of a, inserted a 0 to the
right of the first digit after the decimal point, inserted two 1’s to the right of the second digit to the right of the decimal
point, inserted three 0’s to the right of the third digit to the right of the decimal point, and so on.
(d) What can we now conclude by using the Cantor-Schrö der-Bernstein Theorem?
10. Let J be the unit open interval. That is, J = {x ∈ R | 0 < x < 1} and let
S = {(x, y) ∈ R × R | 0 < x < 1 and 0 < y < 1} . We call S the unit open square. We will now define a function f
from S to J . Let (a, b) ∈ S and write the decimal expansions of a and b in normalized form as
a = 0. a1 a2 a3 a4 ⋅ ⋅ ⋅ an ⋅ ⋅⋅
(9.3.13)
b = 0. b1 b2 b3 b4 ⋅ ⋅ ⋅ bn ⋅ ⋅⋅.
1 1 1 5
(a) Determine the values of f (0.3, 0.625), f ( , ) , and f ( , ) .
3 4 6 6
(b) If possible, find (x, y) ∈ S such that f (x, y) = 0.2345.
1
(c) If possible, find (x, y) ∈ S such that f (x, y) = .
3
1
(d) If possible, find (x, y) ∈ S such that f (x, y) = .
2
(e) Explain why the function f : S → J is an injection but is not a surjection.
(f) Use the Cantor-Schrö der-Bernstein Theorem to prove that the cardinality of the unit open square S is equal to c . If
this result seems surprising, you are in good company. In a letter written in 1877 to the mathematician Richard
Dedekind describing this result that he had discovered, Georg Cantor wrote, “I see it but I do not believe it.”
f (x) = ⎨ 1 1 (9.3.14)
if x = for some n ∈ N
⎪
⎪ n+1
⎪ 2
⎩
⎪
x otherwise.
1 1 1 1
i. Determine f (0), f (1), f ( ,
) f( ,
) f( , and f (
) .
)
2 3 4 5
ii. Sketch a graph of the function f . Hint: Start with the graph of y =x for 0 ≤ x ≤ 1 . Remove the point (1, 1) and
1 1 1 1 1
replace it with the point (1, ). Next, remove the point ( , ) and replace it with the point ( , . Continue this
)
2 2 2 2 3
process of removing points on the graph of y = x and replacing them with the points determined from the information
in Part (11(a)i). Stop after repeating this four or five times so that pattern of this process becomes apparent.
iii. Explain why the function f is a bijection.
iv. Prove that [0, 1] ≈ [0, 1).
(b) Let g : [0, 1) → (0, 1) by
⎧ 1 1
if x = for some n ∈ N
g(x) = ⎨ n + 1 2 (9.3.15)
⎩
x otherwise.
Answer
Add texts here. Do not delete this text first.
then A ≈ B .
started as follows:
Theorem. If x is an odd integer, then x is an odd integer.
2
1
3 2
x − 3x +
2
(Appendix A.1)
2x
−7
3
Example
In addition, make sure the reader knows the status of every assertion that is made. That is, make sure it is clearly stated
whether an assertion is an assumption of the theorem, a previously proven result, a well-known result, or something from
the reader’s mathematical background.
9. Display important equations and mathematical expressions. Equations and manipulations are often an integral part of
the exposition. Do not write equations, algebraic manipulations, or formulas in one column with reasons given in another
column (as is often done in geometry texts). Important equations and manipulations should be displayed. This means that
they should be centered with blank lines before and after the equation or manipulations, and if one side of an equation does
not change, it should not be repeated. For example,
Using algebra, we obtain
= 2(2mn + m + n) + 1.
Example
Since x is an odd integer, there exists an integer n such that
x = 2n + 1 (Appendix A.3)
Please note that we should only number those equations we will be referring to later in the proof. Also, note that the word
“equation” is not capitalized when we are referring to an equation by number. Although it may be appropriate to use a
capital “E,” the usual convention in mathematics is not to capitalize.
11. Do not use a mathematical symbol at the beginning of a sentence.
For example, we should not write, “Let n be an integer. n is an odd integer provided that ... .” Many people find this hard
to read and often have to reread it to understand it. It would be better to write, “An integer n is an odd integer provided that
... .”
12. Use English and minimize the use of cumbersome notation. Do not use the special symbols for quantifiers ∀ (for all), ∃
(there exists), ∍ (such that), or ∴ (therefore) in formal mathematical writing. It is often easier to write, and usually easier to
read, if the English words are used instead of the symbols. For example, why make the reader interpret
For each real number x, there exists a real number y such that x + y = 0 , or more succinctly (if appropriate)
Every real number has an additive inverse.
2. This proposition is true, as we can see by using x = 3 and y = 7 . We could also use x = −2 and y = 9 . There are many other possible choices for
x and y .
3. This proposition appears to be true. Anytime we use an example where x is an even integer, the number x is an even integer. However, we cannot 2
claim that this is true based on examples since we cannot list all of the examples where x is an even integer.
4. This proposition appears to be true. Anytime we use an example where x and y are both integers, the number x ⋅ y is an odd integer. However, we
cannot claim that this is true based on examples since we cannot list all of the examples where both x and y are odd integers.
Progress Check 1.4
1. (a) This does not mean the conditional statement is false since when x = −3 , the hypothesis is false, and the only time a conditional statement is
false is when the hypothesis is true and the conclusion is false.
(b) This does not mean the conditional statement is true since we have not checked all positive real numbers, only the one where x = 4 .
(c) All examples should indicate that the conditional statement is true.
2. The number (n2 − n + 41 ) will be a prime number for all examples of \(n\) that are less than 41. However, when n = 41 , we get
2 2
n − n + 41 = 41 − 41 + 41
(Appendix B.1)
2 2
n − n + 41 = 41
So in the case where n = 41 , the hypothesis is true (41 is a positive integer) and the conclusion is false (41 is not prime). Therefore, 41 is a 2
counterexample that shows the conditional statement is false. There are other counterexamples (such as n = 42 , n = 45 , and n = 50 ), but only one
counterexample is needed to prove that the statement is false.
Progress Check 1.5
1. We can conclude that this function is continuous at 0.
2. We can make no conclusion about this function from the theorem.
3. We can make no conclusion about this function from the theorem.
4. We can conclude that this function is not differentiable at 0.
Progress Check 1.7
a c ad + bc
1. The set of rational numbers is closed under addition since + = .
b d bd
2
2. The set of integers is not closed under division. For example, is not an integer.
3
a c ad − bc
3. The set of rational numbers is closed under subtraction since − = .
b d bd
Section 1.2
Progress Check 1.10
All examples should indicate the proposition is true. Following is a proof.
Proof. We assume that m is an odd integer and will prove that (3m + 4m + 6 ). Since m is an odd integer, there exists an integer
2
k such that
mD = 2k + 1 . Substituting this into the expression (3 m + 4m + 6 ) and using algebra, we obtain
2
2 2
3m + 4m + 6 = 3(2k + 1 ) + 4(2k + 1) + 6
2
= (12 k + 12k + 3) + (8k + 4) + 6
2
= 12 k + 20k + 13
2
= 12 k + 20k + 12 + 1
2
= 2(6 k + 10k + 6) + 1
2 2 2
m + (m + 2m + 1) = m + 4m + 4
2 2
2m + 2m + 1 = m + 4m + 4
The last equation is a quadratic equation. To solve for m, we rewrite the equation in standard form and then factor the left side. This gives
(m − 3)(m + 1) = 0
The two solutions of this equation are m = 3 and m = −1 . However, since m is the length of a side of a right triangle, m must be positive and we
conclude that m = 3 . This proves that if m, m + 1 , and m + 2 are the lengths of the three sides of a right triangle, then m = 3 .
Section 2.1
Progress Check 2.1
1. Whenever a quadrilateral is a square, it is a rectangle, or a quadrilateral is a rectangle whenever it is a square.
2. A quadrilateral is a square only if it is a rectangle.
3. Being a rectangle is necessary for a quadrilateral to be a square.
4. Being a square is sufficient for a quadrilateral to be a rectangle.
Progress Check 2.2
P Q P ∧ ┐Q ┐(P ∧ Q) ┐P ∧ ┐Q ┐P ∨ ┐Q
T T F F F F
T F T T F T
F T F T F T
F F F T T T
P ┐P P ∨ ┐P P ∧ ┐P
T F T F
F T T F
P Q P ∨ Q P → (P ∨ Q)
T T T T
T F T T
F T T T
F F F T
Section 2.2
Progress Check 2.7
1. Starting with the suggested equivalency, we obtain
(P ∧ ┐Q) → R ≡ ┐(P ∧ ┐Q) ∨ R
≡ (┐P ∨ ┐(┐Q)) ∨ R
(Appendix B.2)
≡ ┐P ∨ (Q ∨ R)
≡ P → (Q ∨ R)
2. For this, let P be,“3 is a factor of a ⋅ b ,” let Q be, “is a factor of a ,” and let R be, “3 is a factor of b .” Then the stated proposition is written in the
form P → (Q ∨ R) . Since this is logically equivalent to (P ∧ ┐Q) → R , if we prove that
if 3 is a factor of a ⋅ b and 3 is not a factor of a , then 3 is a factor of b , then we have proven the original proposition.
Section 2.3
Progress Check 2.9
1. 10 ∈ A, 22 ∈ A, 13 ∉ A, 0 ∈ A , −12 ∉ A
2. A = B, A ⊆ B, B ⊆ A, A ⊆ C , A ⊆ D, B ⊆ C , B ⊆ D
Progress Check 2.11
1. (a) Two values of x for which P (x) is false are x = 3 and x = −4 .
(b) The set of all x for which P (x) is true is the set {-2, -1, 0, 1, 2}.
2. (a) Two examples for which R(x, y, z) is false are: x = 1, y = 1, z = 1 and x = 3 , y = −1 , z = 5 .
(b) Two examples for which R(x, y, z) is true are: x = 3, y = 4, z = 5 and x = 5, y = 12, z = 13 .
Progress Check 2.13
2. The truth set is the set of all integers whose square is less than or equal to 9. The truth set is {-3, -2, -1, 0, 1, 2, 3}.
3. The truth sets in Parts (1) and (2) equal are not equal. One purpose of this progress check is to show that the truth set of a predicate depends on the
predicate and on the universal set.
Progress Check 2.15
A = {4n − 3 | n ∈ N} = {x ∈ N | x = 4n − 3 for some natural number n}.
n
D = {3 | n is a nonnegative integer}.
Section 2.4
Progress Check 2.18
1. ∙ For each real number a , a + 0 = a .
∙ (∃a ∈ R)(a + 0 ≠ a).
∙ There exists a real number x such that sin (2x) ≠ 2 (sin x) (cos x).
2
∙ (∀x ∈ Q)(x − 3x − 7 ≠ 0).
2
∙ (∀x ∈ R)(x + 1 ≠ 0).
Section 3.1
Progress Check 3.2
2. For each example in Part (1), the integer a divides the sum b + c .
3. Conjecture: For all integers a , b , and c with a ≠ 0 , if a divides b and a divides c , then a divides b + c .
4. A Know-show table for a proof of the conjecture in Part (3).
P a | b and a | c Hypothesis
(∃s ∈ Z)(b = a ⋅ s)
P 1 Definition of "divides"
(∃t ∈ Z)(c = a ⋅ t)
Q a | (b + c) Definition of "divides"
Section 3.2
Progress Check 3.8
1. For all real numbers a and b , if ab = 0 , then a = 0 or b = 0 .
2. For all real numbers a and b , if ab = 0 and a ≠ 0 , b = 0
3. This gives
1 1
(ab) = ⋅ 0. (Appendix B.3)
a a
We now use the associative property on the left side of this equation and simplify both sides of the equation to obtain
1
( ⋅ a)b = 0
a
(Appendix B.4)
1⋅b = 0
b = 0
Therefore, b = 0 and this completes the proof of a statement that is logically equivalent to the contrapositive. Hence, we have proved the
proposition.
Section 3.3
Progress Check 3.15
1. There exists a real number x such that x is irrational and √−
x is rational.
3
– –
2. There exists a real number x such that x + √2 is rational and (−x + √2) is rational.
3. There exist integers a and b such that 5 divides ab and 5 does not divide a and 5 does not divide b .
2 2 4
4. There exist real numbers a and b such that a > 0 and b > 0 and + = .
a b a+b
We can also use the assumption that n ≡ 3 (mod 6) to conclude that 6 divides n − 3 and that there exists an integer m such that
Since 2k + 1 is an integer and 3m + 1 is an integer, this last equation is a contradiction since the left side is an even integer and the right side is an
odd integer. Hence, we have proven that if n ≡ 2 (mod 4), then n ≡ 3 (mod 6).
Progress Check 3.18
1. x + y = (2m + 1) + (2n + 1) = 2(2m + 2m + 2n
2 2 2 2 2 2
+ 2n + 1).
However, the left side of the last equation is an odd integer and the right side is an even integer. This is a contradiction, and so we have proved that
for all integers x and y , if x and y are odd integers, then there does not exist an integer z such that x + y = z . 2 2 2
Section 3.4
Progress Check 3.21
Proposition. For each integer n , n 2
− 5n + 7 is an odd integer.
Proof. Let n be an integer. We will prove that n 2
− 5n + 7 is an odd integer by examining the case where n is even and the case where n is odd.
In the case where n is even, there exists an integer m such that n = 2m . So in this case,
2 2
n − 5n + 7 = (2 m ) − 5(2m) + 7
2
= 4m − 10m + 6 + 1
2
= 2(2 m − 5m + 3) + 1.
Since (2m 2
− 5m + 3 ) is an integer, the last equation shows that if n is even, then n 2
− 5n + 7 is odd.
In the case where n is odd, there exists an integer m such that n = 2m + 1 . So in this case,
2 2
n − 5n + 7 = (2m + 1 ) − 5(2m + 1) + 7
2
= 4m − 14m + 3
2
= 2(2 m − 7m + 1) + 1.
Since (2m − 7m + 1 ) is an integer, the last equation shows that if n is odd, then n
2 2
− 5n + 7 is odd. Hence, by using these two cases, we have shown
that for each integer n , n − 5n + 7 is an odd integer.
2
Section 3.5
Progress Check 3.26
1. (a) The possible remainders are 0, 1, 2, and 3.
(b) The possible remainders are 0, 1, 2, 3, 4, 5, 6, 7, and 8.
(a) 17 = 5 ⋅ 3 + 2
(b) −17 = (−6) ⋅ 3 + 1
(c) 73 = 10 ⋅ 7 + 3
(d) −73 = (−11) ⋅ 7 + 4
Since (k + q) is an integer, this proves that n divides (a + c) − (b + d) , and hence, we can conclude that (a + c) ≡ (b + d) (mod n ).
Progress Check 3.34
Case 2. (a ≡ 2 (mod 5)). In this case, we use Theorem 3.28 to conclude that
a
2
≡2
2
(mod 5) or a 2
≡4 (mod 5).
This proves that if a ≡ 2 (mod 5), then a 2
≡4 (mod 5).
Case 3. (a ≡ 3 (mod 5)). In this case, we use Theorem 3.28 to conclude that
a
2
≡3
2
(mod 5) or a 2
≡9 (mod 5).
We also know that 9 ≡ 4 (mod 5). So we have a ≡ 9 (mod 5) and 9 ≡ 4 (mod 5), and we can now use the transitive property of congruence (Theorem
2
3.30) to conclude that a ≡ 4 (mod 5). This proves that if a ≡ 3 (mod 5), then a ≡ 4 (mod 5).
2 2
Section 4.1
Progress Check 4.1
1. It is not possible to tell if 1 ∈ T and 5 ∈ T .
2. True.
3. True. The contrapositive is, "If 2 ∈ T , then 5 ∈ T ," which is true.
4. True.
5. False. If k ∈ T , then k + 1 ∈ T .
6. True, since "k \notin t\) OR k + 1 ∈ T " is logically equivalent to "If k ∈ T , then k + 1 ∈ T ."
7. It is not possible to tell if this is true. It is the converse of the conditional statement, “For each integer k , if k ∈ T , then k + 1 ∈ T ."
8. True. This is the contrapositive of the conditional statement, “For each integer k , if k ∈ T , then k + 1 ∈ T ."
Progress Check 4.3
n(n + 1) 1(1 + 1)
Proof. Let P (n) be the predicate, "1 + 2 + 3 + ⋅ ⋅ ⋅ + n = ." For basis step, notice that the equation 1 = shows that P (1) is true.
2 2
Now let k be a natural number an assume that P (k) is true. That is, assume that
k(k + 1)
1 +2 +3 +⋅ ⋅ ⋅ +k = . (Appendix B.11)
2
k(k + 1) + 2(k + 1)
=
2
2
k + 3k + 2
=
2
(k + 1)(k + 2)
= .
2
By comparing the last equation to equation (2), we see that we have proved that if P (k) is true, then P (k + 1) is true, and the inductive step has been
n(n + 1)
established. Hence, by the Principle of Mathematical Induction, we have proved that for each integer n , 1 + 2 + 3 + ⋅ ⋅ ⋅ + n = .
2
k k+1
5⋅5 ≡ 5 ⋅ 1 (mod 4) or 5 ≡ 5 (mod 4). (Appendix B.13)
3. Since 5 ≡ 5 (mod 4) and we know that 5 ≡ 1 (mod 4), we can use the transitive property of congruence to obtain 5
k+1
≡ 1 (mod 4). This proves
k+1
that if P (k) is true, then P (k + 1) is true, and hence, by the Principle of Mathematical Induction, we have proved that for each natural number n ,
5 ≡ 1 (mod 4).
n
Section 4.2
Progress Check 4.8
1. For each natural number n , if n ≥ 3 , then 3 n
> 1 +2
n
.
2. For each natural number n , if n ≥ 6 , then 2 n
> (n + 1 )
2
.
1
3. For each natural number n , if n ≥ 6 , then (1 + n
) > 2.5 .
n
x 0 1 2 3 4 0 1 2 0 1 1
y 0 0 0 0 0 1 1 1 2 2 3
3x + 5y 0 3 6 9 12 5 8 11 10 13 18
The following proposition provides answers for Problems (3) and (4).
Proposition 4.11. For all natural numbers n with n ≥ 8 , there exist non-negative integers x and y such that n = 3x + 5y .
Proof. (by mathematical induction) Let Z
∗
= {x ∈ Z | x ≥ 0} , and for each natural number n , let P (n) be, "there exist x, y ∈ Z
∗
such that
n = 3x + 5y ."
Basis Step: Using the table above, we see that P (8), P (9), and P (10) are true.
Inductive Step: Let k ∈ N with k ≥ 13 . assume that P (8), P (9), ..., P (k) are true. Now, notice that
k + 1 = 3 + (k − 2).
Since k ≥ 10 , we can conclude that k − 2 ≥ 8 and hence P (k − 2) is true. Therefore, there exist non-negative integers u and v such that
k − 2 = (3u + 5v) . Using this equation, we see that
= 3 + (3u + 5v)
= 3(1 + u) + 5v.
Hence, we can conclude that P (k + 1) is true. This proves that if P (8), P (9), ..., P (k) are true, then P (k + 1) is true. Hence, by the Second Principle
of Mathematical Induction, for all natural numbers n with n ≥ 8 , there exist nonnegative integers x and y such that n = 3x + 5y .
Section 4.3
Progress Check 4.12
Proof. We will use a proof by induction. For each natural number n , we let P (n) be,
f3n is an even natural number.
Since f 3 =2 , we see that P (1) is true and this proves the basis step.
For the inductive step, we let k be a natural number and assume that P (k) is true. That is, assume that f 3k is an even natural number. This means that
there exists an integer m such that
f3k = 2m. (Appendix B.14)
We need to prove that P (k + 1) is true or that f is even. Notice that 3(k + 1) = 3k + 3 and, hence, \(f_{3(k + 1) = f_{3k + 3}\). We can now use
3(k+1)
= f3k+2 + f3k+1
(Appendix B.15)
= (f3k+1 + f3k ) + f3k+1
= 2 f3k+1 + f3k .
We now substitute the expression for f 3k in equation (B.14) into equation (B.15). This gives
This preceding equation shows that f is even. Hence it has been proved that if P (k) is true, then P (k + 1) is true and the inductive step has been
3(k+1)
established. By the Principle of Mathematical Induction, this proves that for each natural number n , the Fibonacci number f is an even natural 3n
number.
Section 5.1
Progress Check 5.3
1.
Using the standard Venn diagram for three sets shown above:
2.
3.
Section 5.2
Progress Check 5.8
A = {x ∈ Z | x is multiple of 9} and B = {x ∈ Z | x is a multiple of 3}.
1. The set A is a subset of B . To prove this, we let x ∈ A . Then there exists an integer m such that x = 9m , which can be written as
x = 3(3m). (Appendix B.17)
P A ⊆ B Hypothesis
P 1 Let x ∈ B
c
. Choose an arbitrary element of B .
c
P 3 If x ∉ B , then x ∉ A . Contrapositive
P 4 If x ∈ B
c
, then x ∈ A
c
. Step P 3 and definition of “complement”
Q 2 The element x is in A . c
Step P 1 and P 4
Q B
c
⊆ A
c
Definition of "subset"
first prove that A − B ⊆ A ∩ B . Let x ∈ A − B . We then know that x ∈ A and x ∉ B . However, x ∉ B implies that x ∈ B . Hence, x ∈ A and
c c
To prove that A ∩ B ⊆ A − B , we let y ∈ A ∩ B . This means that y ∈ A and y ∈ B , and hence, y ∈ A and y ∉ B . Therefore, y ∈ A − B and this
c c c
proves that A ∩ B ⊆ A − B . Since we have proved that each set is a subset of the other set, we have proved that A − B = A ∩ B .
c c
Section 5.3
Progress Check 5.19
1. In our standard configuration for a Venn diagram with three sets, regions 1, 2, 4, 5, and 6 are the shaded regions for both A ∪ (B ∩ C ) and
(A ∪ B) ∩ (A ∪ C ) .
c
= C ∩ (A ∪ B) (Commutative Property)
2. = (C
c
∩ A) ∪ (C
c
∩ B) (Distributive Property)
c c
= (A ∩ C ) ∪ (B ∩ C ) (Commutative Property)
= (A − C ) ∪ (B − C ) (Theorem 5.20)
Section 5.4
Progress Check 5.23
1. Let A = {1, 2, 3}, T ,
= {1, 2} B = {a, b} , and C = {a, c} .
(a) A × B = {(1, a), (1, b), (2, a), (2, b), (3, a), (3, b)}
(b) T × B = {(1, a), (1, b), (2, a), (2, b)}
(c) A × C = {(1, a), (1, c), (2, a), (2, c), (3, a), (3, c)}
(d) A × (B ∩ C ) = {(1, a), (2, a), (3, a)}
(e) (A × B) ∩ (A × C ) = {(1, a), (2, a), (3, a)}
(f) A × (B ∪ C ) = {(1, a), (1, b), (1, c), (2, a), (2, b), (2, c), (3, a), (3, b), (3, c)}
(g) (A × B) ∪ (A × C ) = {(1, a), (1, b), (1, c), (2, a), (2, b), (2, c), (3, a), (3, b), (3, c)}
(h) A × (B − C ) = {(1, b), (2, b), (3, b)}
(i) (A × B) − (A × C ) = {(1, b), (2, b), (3, b)}
(j) B × A = {(a, 1), (b, 1), (a, 2), (b, 2), (a, 3), (b, 3)}
T ×B ⊆ A×B A × (B ∪ C ) = (A × B) ∪ (A × C )
2.
A × (B ∩ C ) = (A × B) ∩ (A × C ) A × (B − C ) = (A × B) − (A × C )
A × (B ∪ C ) = (A × C ) ∪ (A × C )
A × (B − C ) = (A × C ) − (A × C )
Section 5.5
Progress Check 5.26
1. ⋃ 6
j=1
Aj = {1, 2, 3, 4, 5, 6, 9, 16, 25, 36}
6
2. ⋂ j=1
Aj = {1}
3. ⋃ 6
j=3
Aj = {3, 4, 5, 6, 9, 16, 25, 36}
4. ⋂ 6
j=3
Aj = {1}
∞
5. ⋃ j=1
Aj = N
6. ⋂ ∞
j=1
Aj = {1}
Section 6.1
Progress Check 6.1
1. f (−3) = 24
– –
f (√8) = 8 − 5 √8
Section 6.2
Progress Check 6.5
1. f (0) = 0 , f (1) = 1 , f (2) = 1 , f (3) = 1 , f (4) = 1 .
2. g(0) = 0 , g(1) = 1 , g(2) = 2 , g(3) = 3 , g(4) = 4 .
Progress Check 6.6
a1 + a2 + ⋅ ⋅ ⋅ an
(A) = .
n
3. {(m, n) ∈ Z × Z | n = m − 5} 2
Section 6.3
Progress Check 6.10
The functions k , F , and s are injections. The functions f and h are not injections.
Progress Check 6.11
The functions f and s are surjections. The functions k and F are not surjections.
Progress Check 6.15
The function f is an injection but not a surjection. To see that it is an injection, let a, b ∈ R and assume that f (a) = f (b) . This implies that e = e .
−a −b
Now use the natural logarithm function to prove that a = b . Since e > 0 for each real number x, there is no x ∈ R such that f (x) = −1 . So f is not
−x
a surjection.
The function g is an injection and is a surjection. The proof that g is an injection is basically the same as the proof that f is an injection. To prove that g
is a surjection, let b ∈ R . To construct the real number a such that g.a/ D b, solve the equation e = b for a . The solution is a = −lnb . It can then be
+
−a
Section 6.4
Progress Check 6.17
The arrow diagram for g ∘ f : A → B should show the following:
(g ∘ f )(a) = g(f (a)) (g ∘ f )(b) = g(f (b))
= g(2) = 1 = g(3) = 2
= g(1) = 3 = g(2) = 1
= g(3) = 2 = g(1) = 3
= g(2) = 1
Section 6.5
Progress Check 6.23
Neither set can be used to define a function.
1. The set F does not satisfy the first condition of Theorem 6.22.
2. The set G does not satisfy the second condition of Theorem 6.22.
Progress Check 6.24
2. f −1
= {(r, a), (p, b), (q, c)}
−1
h = {(p, a), (q, b), (r, c), (q, d)}
−1
g = {(p, a), (q, b), (p, c)}
Section 6.6
Progress Check 6.30
1. f (A) = {s, t}
2. f (B) = {f (x) | x ∈ b} = {x}
3. f (C ) = {x ∈ S | f (x) ∈ C } = {a, b, c, d}
−1
4. f (A) = {2, 3, 6}. Hence, f (f (A)) = {0, 1, 2, 3, 4, 5, 6, 7}. So in this case, A ⊆ f (f (A)) .
−1 −1
Section 7.1
Progress Check 7.2
1. (a) T is a relation on R since S is a subset of R × R .
–
(b) Solve the equation x + 4 = 64 . This gives x = ±√48 .
2 2
Solve the equation x + 9 = 64 . There are no real number solutions. So there does not exist an x ∈ R such that (x, 9) ∈ S .
2 2
2. (a) A = {−2, 2}
−− − −
(b) B = {−√10, √10}
(c) C = {25}
(d) D = {9}
3. The graph of y = x is a parabola with vertex at the origin that is concave up.
2
Section 7.2
Progress Check 7.7
The relation R :
Is not reflexive since (c, c) ∉ R and (d, d) ∉ R .
Is symmetric.
Is not transitive. For example, (c, a) ∈ R , (a, c) ∈ R , but (c, c) ∉ R .
Progress Check 7.9
Proof that the relation ∼ is symmetric: Let a, b ∈ Q and assume that a ∼ b . This means that a − b ∈ Z . Therefore, −(a − b) ∈ Z and this means
that b − a ∈ Z , and hence, b ∼ a .
Proof that the relation ∼ is transitive: Let a, b, c ∈ Qand assume that a ∼ b and b ∼ c . This means that a − b ∈ Z and that b − c ∈ Z . Therefore,
((a − b) + (b − c)) ∈ Z and this means that a − c ∈ Z , and hence, a ∼ c .
Progress Check 7.11
The relation ≈ is reflexive on P(U ) since for all A ∈ P(U ) , card(A )= card(A ).
The relation ≈ is symmetric since for all A, B ∈ P(U ) , if card(A ) = card(B ), then using the fact that equality on Z is symmetric, we conclude that
card(B ) = card(A ). That is, if A has the same number of elements as B , then B has the same number of elements as A .
The relation ≈ is transitive since for all A, B, C ∈ P(U ) , if card(A ) = card(B ) and card(B ) = card(C ), then using the fact that equality on Z is
transitive, we conclude that card(A ) = card(C ). That is, if A and B have the same number of elements and B and C have the same number of elements,
then A and C have the same number of elements.
Therefore, the relation ≈ is an equivalence relation on P(U ) .
Section 7.3
Progress Check 7.12
The distinct equivalence classes for the relation R are: {a, b, e} and {c, d}.
Progress Check 7.13
The distinct congruence classes for congruence modulo 4 are
[0] = {..., -12, -8, -4, 0, 4, 8, 12, ...} [1] = {..., -11, -7, -3, 1, 5, 9, 13, ...}
[2] = {..., -10, -6, -2, 2, 6, 10, 14, ...} [1] = {..., -9, -5, -1, 3, 7, 11, 15, ...}
Progress Check 7.15
1. [5] = [-5] = {-5, 5} [π] = [-π] = {-π, π}
[10] = [-10] = {-10, 10}
2. [0] = {0}
3. [a ] = {-a , a }
1.
2.
3. For all a, b ∈ Z , if a ≠ 0 and b ≠ 0 , then ab ≠ 0 .
4. The statement in (a) is true and the statement in (b) is false. For example, in Z , [2] ⊙ [3] = [0].
6
Section 8.1
Progress Check 8.2
1. The remainder is 8.
2. gcd(12, 8) = 4
3. 12 = 8 ⋅ 1 + 4 and gcd(r, r ) = gcd(8, 4) = 4.
2
(54, 18) 54 = 18 ⋅ 3 + 0
(48, 16) 48 = 16 ⋅ 3 + 0
18 = 126 − 54 ⋅ 2
16 = 64 − 48
= (176 − 112) ⋅ 2 − 112 = 176 ⋅ 2 − 112 ⋅ 3 = 176 ⋅ 2 − (288 − 176) ⋅ 3 = 176 ⋅ 5 − 288 ⋅ 3 (Appendix B.19)
Section 8.2
Progress Check 8.10
In addition, we are assuming that a and b are relatively prime and hence gcd(a , b ) = 1. So by Theorem 8.9, there exist integers m and n such that
am + bn = 1. (Appendix B.21)
We can now use equation (B.20) to substitute bc = ak in equation (B.22) and obtain
acm + akn = c.
If we now factor the left side of this last equation, we see that a(cm + kn) = c . Since (cm + kn ) is an integer, this proves that a divides c . Hence, we
have proven that if a and b are relatively prime and a | (bc) , then a | c .
Section 8.3
Progress Check 8.20
2. x = 2 + 3k and y = 0 − 2k , where k can be any integer. Again, this does not prove that these are the only solutions.
Progress Check 8.21
One of the Diophantine equations in Preview Activity 2 was 3x + 5y = 11 . We were able to write the solutions of this Diophantine equation in the
form
x = 2 + 5k and y = 1 − 3k ,
where k is an integer. Notice that x = 2 and y = 1 is a solution of this equation. If we consider this equation to be in the form ax + by = c , then we see
that a = 3 , b = 5 , and c = 11 . Solutions for this equation can be written in the form
x = 2 + bk and y = 1 − ak ,
where k is an integer.
The other equation was 4x + 6y = 16 . So in this case, a = 4 , b = 6 , and c = 16 . Also notice that d = gcd(4, 6) = 2 . We note that x = 4 and y = 0 is
one solution of this Diophantine equation and solutions can be written in the form
x = 4 + 3k and y = 0 − 2k ,
where k is an integer. Using the values of a , b , and d given above, we see that the solutions can be written in the form
b a
x =2+ k and y = 0 − ,
d d
where k is an integer.
Progress Check 8.24
1. Since 21 does not divide 40, Theorem 8.22 tells us that the Diophantine equation 63x + 336y = 40 has no solutions. Remember that this means
there is no ordered pair of integers (x, y ) such that 63x + 336y = 40. However, if we allow x and y to be real numbers, then there are real number
solutions. In fact, we can graph the straight line whose equation is 63x + 336y = 40 in the Cartesian plane. From the fact that there is no pair of
integers x, y such that 63x + 336y = 40, we can conclude that there is no point on the graph of this line in which both coordinates are integers.
2. To write formulas that will generate all the solutions, we first need to find one solution for 144x + 225y = 27. This can sometimes be done by trial
and error, but there is a systematic way to find a solution. The first step is to use the Euclidean Algorithm in reverse to write gcd(144, 225) as a
linear combination of 144 and 225. See Section 8.1 to review how to do this. The result from using the Euclidean Algorithm in reverse for this
situation is
144 ⋅ 11 + 225 ⋅ (−7) = 9. (Appendix B.23)
that all solutions of this Diophantine equation can be written in the form
225 144
x = 33 + k y = −21 − k, (Appendix B.25)
9 9
where k ∈ Z .
We check this general solution as follows: Let k ∈ Z . Then
144x + 225y = 144(33 + 25k) + 225(−21 − 16k)
= 27.
Section 9.1
Progress Check 9.2
1. We first prove that f : A → B is an injection. So let x, y ∈ A and assume that f (x) = f (y). Then x + 350 = y + 350 and we can conclude that
x = y . Hence, f is an injection. To prove that f is a surjection, let b ∈ B . Then 351 ≤ b ≤ 450 and hence, 1 ≤ b − 350 ≤ 100 and so
b − 350 ∈ A . In addtion, f (b − 350) = (b − 350) + 350 = b . This proves that f is a surjection, Hence, the function f is a bijection, and so,
A ≈ B.
2. If x and t are even integers and F (x) = F (t) , then x + 1 = t + 1 and, hence, x = t . Therefore, F is an injection.
To prove that F is a surjection, let y ∈ D . This means that y is an odd integer and, hence, y − 1 is an even integer. In addition,
F (y − 1) = (y − 1 + 1 = y. (Appendix B.27)
y y
f( ) − b( \) = y. (Appendix B.28)
b b
Section 9.2
Progress Check 9.11
1. The set of natural numbers N is a subset of Z, Q, and R. Since N is an infinite set, we can use Part (2) of Theorem 9.10 to conclude that Z, Q, and
R are infinite sets.
This implies that (b − a)x = (b − a)t , and since b − a ≠ 0 , e can conclude that x = t . Therefore, f is an injection.
y −a
To prove that f is a surjection, we let y ∈ (a, b) . If x = , then
b −a
\begin{array} {rcl} {f(x)} &= & {f(\dfrac{y - a}{b - a})} \\ {} &= & {(b - a) (\dfrac{y - a}{b - a}) + a} \\ {} &= & {(y - a) + a} \\ {} &= & {y} \begin{array}
This proves that f is a surjection. Hence, f is a bijection and (0, 1) ≈ (a, b). Therefore, (a, b) is uncountable and has cardinality c .
2. Now, if a, b, c, d are real number with a < b and c < d , then we know that
2. Hypothesis Conclusion
a. n is a prime number. n
2
has three positive divisors.
Section 1.2
1. (a)
P 2 m + 1 = 2k + 1 Algebra
2. (c) We assume that x and y are odd integers and will prove that x + y is an even integer. Since x and y are odd, there exist
integers m and n such that x = 2m + 1 and y = 2n + 1 . Then
x +y = (2m + 1) + (2n + 1)
= 2m + 2n + 2 (Appendix C.1)
= 2(m + n + 1).
Since the integers are closed under addition, (m + n + 1) is an integer, and hence the last equation shows that x +y is
even. Therefore, we have proven that if x and y are odd integers, then x + y is an even integer.
3. (b) Use Part (a) to prove this.
a + b = 3(m + n) + 2.
The closure properties of the integers imply that m + n is an integer. Therefore, the last equation tells us that a + b is a type 2
integer. Hence, we have proved that if a and b are both type 1 integers, then a + b is a type 2 integer.
Section 2.1
1. The statement was true. When the hypothesis is false, the conditional statement is true.
2. (a) P is false .
(b) P ∧ Q is false.
(c) P ∨ Q is false.
4. (c) Cannot tell if P ∧R is true or false.
5. Statements (a) and (d) have the same truth table. Statements (b) and (c) have the same truth tables.
7. The two statements have the same truth table.
9. (c) The integer x is even only if x is even. 2
Section 2.2
1. (a) Converse: If a = 25 , then a = 5 . Contrapositive: If a ≠ 25 , then a ≠ 5 .
2 2
(b) Converse: If Laura is playing golf, then it is not raining. Contrapositive: If Laura is not playing golf, then it is raining.
2. (a) Disjunction: a ≠ 5 or a = 25 . Negation: a = 5 and a = 25 .
2 2
(b) Disjunction: It is raining or Laura is playing golf. Negation: It is not raining and Laura is not playing golf.
3. (a) We will not win the first game or we will not win the second game.
(c) You mow the lawn and I will not pay you $20.
(f) You graduate from college, and you will not get a job and you will not go to graduate school.
7. (a) In this case, it may be better to work with the right side first.
(P → R) ∨ (Q → R) ≡ (┐R ∨ R) ∨ (┐Q ∨ R)
≡ (┐R ∨ ┐Q) ∨ (R ∨ R)
≡ (P ∧ Q) → R.
10. Statements (c) and (d) are logically equivalent to the given conditional statement. Statement (f) is the negation of the given
conditional statement.
11. (d) This is the contrapositive of the given statement and hence, it is logically equivalent to the given statement.
Section 2.3
1
1. (a) , −2}
2
(d) {1, 2, 3, 4}|
(e) {0.5, 4.5}
2. A = {n 2
| n ∈ N
Section 2.4
1. (a) There exists a rational number x such that 2
x − 3x − 7 = 0 . This statement is false since the solutions of the equation
−−
3 ± √37
are x = , which are irrational numbers.
2
2. (b) x = 0 is a counterexample. The negation is: There exists a real number x such that x 2
≤0 .
π
(g) x = is a counterexample. The negation is: There exists a real number x such that tan 2
x + 1 ≠ sec x
2
.
2
–
3. (a) There exists a rational number x such that x > √2 .
– –
The negation is (∀x ∈ Q)(x ≤ √2) , which is, For each rational number x, x ≤ √2 .
(c) For each integer x, x is even or x is odd.
The negation is (∃x ∈ Z (x is odd and x is even), which is, There exists an integer x such that x is odd and x is even.
(e) For each integer x, if x is odd, then x is odd.
2
The negation is (∃x ∈ Z (x is odd and x is even), which is, There exists an integer x such that x is odd and x is even.
2 2
Section 3.1
1. (a) Remember that to prove that a | (b − c) , you need to prove that there exists an integer q such that b − c = a ⋅ q .
(b) What do you need to do in order to prove that n is odd? Notice that ifn is an odd integer, then there exists an integer k
3
such that n = 2k + 1 . Remember that to prove that n is an odd integer, you need to prove that there exists an integer q such
3
that n = 2q + 1 .
3
Or you can approach this as follows: If n is odd, then by Theorem 1.8, n is odd. Now use the fact that n = n ⋅ n .
2 3 2
(c) If 4 divides (a − 1) , then there exists an integer k such that a − 1 = 4k . Write a = 4k + 1 and then use algebra to rewrite
(a − 1) .
2
3. (e) Make sure you first try some examples. How do you prove that an integer is an odd integer?
(f) The following algebra may be useful.
2 2
4(2m + 1 ) + 7(2m + 1) + 6 = 6 m + 30m + 17.
4. (a) If xy = 1, then x and y are both divisors of 1, and the only divisors of 1 are -1 and 1.|
(b) Part (a) is useful in proving this.
3. Let n ∈ N . For a, b ∈ Z , you need to prove that if a ≡ b (mod n ), then b ≡ a (mod n ). Remember that for x, y ∈ Z, x ≡ y
(mod n ) if and only if n | (x − y) .
5. Another hint: (4n + 3) − 2(2n + 1) = 1 .
8. (a) Assuming a and b are both congruent to 2 modulo 3, there exist integers m and n such that a = 3m + 2 and
b = 3n + 2 . Then show that
a + b = 3(m + n + 1) + 1
Section 3.2
1. (a) Let n be an even integer. Since n is even, there exists an integer k such that n = 2k . Now use this to prove that n must 3
be even.
(b) Prove the contrapositive.
(c) Explain why Parts (a) and (b) prove this.
(d) Explain why Parts (a) and (b) prove this.
2. (a) The contrapositive is, For all integers a and b , if ab ≡ 0 (mod 6), then a ≡ 0 (mod 6) or b ≡ 0 (mod 6).
4. (a) If a ≡ 2 (mod 5), then there exists an integer k such that a − 2 = 5k . Then a
2
= (2 + 5k)
2
= 4 + 20k + 25 k
2
. This
means that a − 4 = 5(4k + 5k ) .
2 2
triangle. (2) If the right triangle is an isosceles triange, then the area of the right triangle is c /4. 2
even and hence by Exercise (1), b is even. So there exists an integer m such that b = 2m . Use this to prove that m must be 3
Section 3.3
1. (a) P ∨C
3. (a) Let r be a real number such that r = 18 . We will prove that r is irrational using a proof by contradiction. So we assume
2
14. Hint: Three consecutive natural numbers can be represented by n , n + 1 , and n+2 , where n ∈ N , or three consecutive
natural numbers can be represented by m − 1 , m and m + 1 , where m ∈ N .
Section 3.4
1. Use the fact that n 2
+ n = n(n + 1) .
3. First write n = 2m + 1 for some integer m. The integer m can be even or odd.
5. (c) For all integers a , b , and d with d ≠ 0 , if d divides the product ab , then d divides a or d divdes b .
8. Try a proof by contradiction with two cases: a is even or a is odd.
10. (a) One way is to use three cases: (i) x >0 ; (ii) x =0 ; and x <0 . For the first case, −x < 0 and
| − x| = −(−x) = x = |x| .
Section 3.5
2. (b) Factor n − n .
3
Section 4.1
1. The sets in Parts (a) and (b) are inductive.
2. A finite nonempty set is not inductive (why?) but the empty set is inductive (why?).
n(3n + 1)
3. (a) For each n ∈ N , let P (n) be, 2 + 5 + 8 + ⋅ ⋅ ⋅ + (3n − 1) = . Verify that P (1) is true. The key to the
2
inductive step is that if P (k) is true, then
2 + 5 + 8 + ⋅ ⋅ ⋅ + (3k − 1) + [3(k + 1) − 1] = (2 + 5 + 8 + ⋅ ⋅ ⋅ + (3k − 1)) + (3k + 2)
3k(k + 1)
= + (3k + 2).
2
(k + 1)(3k + 4)
Now use algebra to show that the last expression can be rewritten as and then explain why this completes
2
the proof that if P (k) is true, then P (k + 1) is true.
n
6. The conjecture is that for each n ∈ N , ∑ j=1
(2j − 1) = n
2
. The key to the inductive step is that
k+1 k
∑ (2j − 1) = ∑ (2j − 1) + [2(k + 1) − 1]
j=1 j=1
k
= ∑ (2j − 1) + [2k + 1].
j=1
13. Let k be a natural number. If a ≡ b (mod n ), then since we are also assuming that a ≡ b (mod n ), we can use Part (2) of
k k
Section 4.2
1. (a) If P (k) is true, then 3 k
> 1 +2
k
. Multiplying both sides of this inequality by 3 gives
k+1 k
3 > 3 +3 ⋅ 2
Now use the assumption that k > 4 to prove that 2k + 1 < k and combine this with the assumption that k
2 2
<2
k
.
5. Let P (n) be the predicate, "8 | (4n)! ." Verify that
n
P (0) , P (1) , P (2) , and P (3) are true. For the inductive step, the
following fact about factorials may be useful:
[4(k + 1)]! = (4k + 4)!
8. Let P (n) be, "The natural number n can be written as a sum of natural numbers, each of which is a 2 or a 3.” Verify that
P (4), P (5), P (6), and P (7) are true.
To use the Second Principle of Mathematical Induction, assume that k ∈ N , k ≥5 and that P (4) , P (5), ... P (k) are true.
Then notice that
k + 1 = (k − 1) + 2.
Since k − 1 ≤ 4 , we have assume that P (k − 1) is true. Use this to complete the inductive step.
n(n − 1)
12. Let P (n) be, “Any set with n elements has 2-element subsets.” P (1) is true since any set with only one
2
element has no 2-element subsets. Let k ∈ N and assume that P (k) is true. This means that any set with k elements has
k(k − 1)
2-element subsets. Let A be a set with k + 1 elements, and let x ∈ A . Now use the inductive hypothesis on the set
2
A − {x} , and determine how the 2-element subsets of A are related to the set A − {x} .
16. (a) Use Theorem 4.9
(b) Assume k ≠ q and consider two cases: (i) k < q ; (ii) k > q .
Section 4.3
1. For the inductive step, if a k = k! , then
ak+1 = (k + 1)ak
= (k + 1)k!
= (k + 1)!.
f4(k+1) = f4k+4
= f4k+3 + f4k+2
(c) Let P (n) be, "f + f 1 2 + ⋅ ⋅ ⋅ + fn−1 = fn+1 − 1 ." Since f 1 = f3 − 1 , P (2) is true. For k ≥ 2 , if k ≥ 2 , if P (k) is true,
then f + f + ⋅ ⋅ ⋅ + f
1 2 k−1 = fk+1 − 1 . Then
= (fk+1 + fk ) − 1
= fk+2 − 1.
2 2 2 2
f +f +⋅ ⋅ ⋅ +f +f = fk+1 (fk + fk+1 )
1 2 k k+1
= fk+1 fk+2 .
k−1
= r(a ⋅ r )
k
= a⋅r .
8. For the inductive step, use the assumption that \(S_{k} = a(\dfrac{1 - r^{k}{1 - r})\) and the recursive definition to write
Sk+1 = a+r⋅ S . k
9. (a) a = 7 , a = 12 , a = 17 , a = 22 , a = 27 .
2 3 4 5 6
– −−−
– −−−
12. (a) a 2 ,a
= √6 3 = √√6 + 5 ≈ 2.729 , a ≈ 2.780 , a ≈ 2.789 , a ≈ 2.791
4 5 6
(b) Let P (n) be, "a n <3 ." Since a 1 =1 , P (1) is true. For k ∈ N , if P (k) is true, then a k <3 . Now
−−−− −
ak+1 = √5 + ak .
–
Since a k <3 , this implies that a k+1 < √8 and hence, a k+1 <3 . This proves that if P (k) is true, then P (k + 1) is true.
13. (a) a = 7 , a = 15 , a = 31 , a
3 4 5 6 = 63
a3 = 23 a2 = 5039 a9 = 3628799
18. (a) Let P (n) be, "L = 2f −f ." First, verify that P (1) and P (2) are true. Now let k be a natural number with k ≥ 2
n n+1 n
and assume that P (1), P (2), ..., P (k) are all true. Since P (k) and P (k − 1) are both assumed to be true, we can use them to
help prove that P (k + 1) must then be true as follows:
Lk+1 = Lk + Lk−1
= (2 fk+1 − fk ) + (2 fk − fk−1 )
= 2 fk+2 − fk+1 .
(b) Let P (n) be, "5f = L +L n ." First, verify that P (2) and P (3) are true. Now let k be a natural number with k ≥ 3
n−1 n+1
and assume that P (2), P (3), ..., P (k) are all true. Since P (k) and P (k − 1) are both assumed to be true, we can use them to
help prove that P (k + 1) must then be true as follows:
5fk+1 = 5 fk + 5k−1
= Lk + Lk+2 .
Section 5.1
5 ∈ C {5} ⊂, ⊆, ≠ C
5. (a) The set {a, b} is a not a subset of {a, c, d, e} since b ∈ {a, b} and b ∈ {a, c, d, e} .
7. (c) (A ∪ B) = {2, 8, 10} (h) (A ∩ C ) ∪ (B ∩ C ) = {3, 6, 9}
c
(e) (A ∪ B) ∩ C = {3, 6, 9}
9. (b) There exists an x ∈ U such that x ∈ (P − Q) and x ∉ (R ∩ S) . This can be written as, There exists an x ∈ U such that
x ∈ P , x ∉ Q, and x ∉ R or x ∉ S .
10. (a) The given statement is a conditional statement. We can rewrite the subset relations in terms of conditional sentences:
A ⊆ B means, "For all x ∈ U , if x ∈ A , then x ∈ B ," and B ⊆ A means, "For all x ∈ U , if x ∈ B , then x ∈ A ."
c c c c
Section 5.2
1. (a) The set A is a subset of B . A proof is required. The idea is that if x ∈ A , then −2 < x < 2 . Since x < 2 , we conclude
that x ∈ B .
(b) The set B is not a subset of A . Give an example of a real number that is in B but not in A .
3. (b) A ⊆ B B ⊈A
(b) To prove "If AsubseteqB , then A ∪ B = B ," first note that if x ∈ B , then x ∈ A ∪ B and, hence, B ⊆ A ∪ B . Now let
x ∈ A ∪ B and note that since A ⊆ B , if x ∈ A , then x ∈ B . Use this to argue that under the assumption that A ⊆ B ,
A∪B ⊆ B .
Tp prove "If A ∪ B = B , then A ⊆ B ," start with, Let x ∈ A and use this asusmption to prove that x must be an element of
B.
Section 5.3
1. (a) Let x ∈ (A ) . Then x ∉ A , which means x ∈ A . Hence, (A ) ⊆ A . Now prove that A ⊆ (A ) .
c c c c c c c
(c) Let x ∈ U . Then x ∉ ∅ and so x ∈ ∅ . Therefore, U ⊆ ∅ . Also, since every set we deal with is a subset of the universal
c c
set, ∅ ⊆ U .
c
c c
= (A ∩ A) ∩ (B ∩C )
c
= A ∩ (B ∪ C )
= A − (B ∪ C ).
9. (a) Use a proof by contradiction. Assume the sets are not disjoint and let x ∈ A ∩ (B − A) . Then x ∈ A and x ∈ B − A ,
which implies that x ∉ A .
Section 5.4
1, (a) A × B = {(1, a), (1, b), (1, c), (1, d), (2, a), (2, b), (2, c), (2, d)}
(b) B × A = {(a, 1), (b, 1), (c, 1), (d, 1), (a, 2), (b, 2), (c, 2), (d, 2)}
(c) A × (B ∩ C ) = {(1, a), (1, b), (2, a), (2, b)}
3. Start of proof that A × (B ∩ C ) ⊆ (A × B) ∩ (A × C ) :
Let u ∈ A × (B ∩ C ) . Then there exists x ∈ A and there exists y ∈ B ∩ C such that u = (x, y). Since y ∈ B ∩ C , we know
that y ∈ B and y ∈ C . So we have
u = (x, y) , where x ∈ A and y ∈ B . This means that u ∈ A × B .
u = (x, y) , where x ∈ A and y ∈ C . This means that u ∈ A × C .
4. Start of proof that (A ∪ B) × C ⊆ (A × C ) ∪ (B × C ) :
let u ∈ (A ∪ B) × C . Then there exists x ∈ A ∪ B and there exists y ∈ C such that u = (x, y) . Since x ∈ A∪B , we know
that x ∈ A or x ∈ B .
Section 5.5
1. (a) {3, 4}
(d) {3, 4, 5, 6, 7, 8, 9, 10}
2. (a) {5, 6, 7, ...}
(c) ∅
(d) {1, 2, 3, 4}
(f) ∅
3. (a) {x ∈ R | − 100 ≤ x ≤ 100}
(b) {x ∈ R | − 1 ≤ x ≤ 1}
4. (a) We let β ∈ Λ and let x ∈ Aβ . Then x ∈ Aα , for at lest one α ∈ Λ and, hence, x ∈ ⋃
α∈Λ
Aα . This proves that
Aβ ⊆ ⋃
α∈Λ
Aα .
5. (a) We first let x ∈ B ∩ (⋃ A ) . Then x ∈ B and
α∈Λ α x ∈ ⋃
α∈Λ
Aα . This means that there exists an α ∈ Λ such that
x ∈ A . Hence, x ∈ B ∩ A , which implies that x ∈ ⋃
α α (B ∩ Aα ) . This prove that B ∩ (⋃ A ) ⊆⋃ (B ∩ A ) ,
α α
α∈Λ α∈Λ α∈Λ
12. (a) We first rewrite the set difference and then use a distributive law.
c
(⋃ Aα ) − B = (⋃ Aα ) ∩ B
α∈Λ α∈Λ
c
= ⋃ (Aα ∩ B )
α∈Λ
= ⋃ (Aα − B)
α∈Λ
Section 6.1
1. (a) f (−3) = 15 , f (−1) = 3 , f (1) = −1 , f (3) = 3 .
−− −−
2 − √20 2 + √20
(b) The set of preimages of 0 is {0, 2}. The set of preimages of 4 is { , }. (Use the quadratic formula.)
2 2
(d) range(f ) = {y ∈ R | y ≥ −1} .
7. (a) The domain of S is N. The power set of N, [P(N)] can be the codomain. The rule for determining outputs is that for
each n ∈ N , S(n) is the set of all distinct natural number factors of n .
(b) For example, S(8) = {1, 2, 4, 8}, S(15) = {1, 3, 5, 15}.
(c) For example, S(2) = {1, 2}, S(3) = {1, 3}, S(31) = {1, 31}.
Section 6.2
1. (a) f (0) = 4 , f (1) = 0 , f (2) = 3 , f (3) = 3 , f (4) = 0
(b) g(0) = 4 , g(1) = 0 , g(2) = 3 , g(3) = 3 , g(4) = 0
(c) The two functions are equal.
2. (c) The two functions are not equal. For example, f (1) = 5 and g(1) = 4 .
4. (a) ⟨a ⟩ , where a = cos(nπ) for each n ∈ N . The domain is N, and {-1, 1} can be the codomain. This sequence is equal
n n
n(n − 3)
6. Start of the inductive step: Let P (n) be “A convex polygon with n sides has diagonals.” Let k ∈ D and assume
2
k(k − 3)
that P (k) is true, that is, a convex polygon with k sides has diagonals. Now let Q be convex polygon with (k + 1)
2
sides. Let v be one of the (k + 1) vertices of Q and let u and w be the two vertices adjacent to v . By drawing the line segment
from u to w and omitting the vertex v, we form a convex polygon with k sides. Now complete the inductive step.
7. (a) f (−3, 4) = 9, f (−2, −7) = −23
(b) {(m, n) ∈ Z × Z | m = 4 − 3n}
3 5 1 0 3 −2
9. (a) det[ ] = -17, det[ ] = 7, and det[ ] = 10.
4 1 0 7 5 0
Section 6.3
2. (a) The function f is not an injection and is not a surjection.
(c) The function F is an injection and is a surjection.
3. (a) The function f is an injection and is not a surjection.
(b) The function F is an injection and is a surjection.
4. (a) Let F : R → R be defined by F (x) = 5x + 3 for all x ∈ R. Let x , x ∈ R and assume that 1 2 F (x1 ) = F (x2 ) . Then
5 x1 + 3 = 5 x2 + 3 . Show that this implies that x = x and, hence, F is an injection.
1 2
y −3 y −3
Now let y ∈ R . Then ∈ R . Prove that F ( ) =y . Thus, F is a sujection and hence F is a bijection.
5 5
(b) Notice that for each x ∈ Z, G(x) ≡ 3 (mod 5). Now explain why G is not a surjection.
Section 6.4
3. (a) F (x) = (g ∘ f )(x) , f (x) = e , g(x) = cosxx
6. Start of a proof: Let A , B , and C be nonempty sets and let f : A → B and g : B → C . Assume that f and g are both
injections. Let x, y ∈ A and assume that (g ∘ f )(x) = (g ∘ f )(y) .
7. (a) f : R → R by f (x) = x, g : R → R by g(x) = x . The function f is a surjection, but g ∘ f is not a surjection.
2
(f) By Part (1) of Theorem 6.21, this is not possible since if g ∘ f is an injection, then f is an injection.
Section 6.5
2. (b) f −1
= {(c, a), (b, b), (d, c), (a, d)}
(d) (f −1
∘ f )(x) = x = (f ∘ f
−1
)(x) . This illustrates Corollary 6.28.
4. Using the notation from Corollary 6.28, if y = f (x) and x = f −1
(y) , then
−1 −1
(f ∘ f (y) = f (f (y))
= f (x)
= y
6. (a) Let x, y ∈ A and assume that f (x) = f (y). Apply g to both sides of this equation to prove that (g ∘ f )(x) = (g ∘ f )(y) .
Since g ∘ f = I , this impliies that x = y and hence that f is an injection.
A
(b) Start by assuming that f ∘ g = I , and then let y ∈ B . You need to prove there exists an x ∈ A such that f (x) = y .
B
1
(d) g : R +
→ R by g(y) = (Iny + 1)
2
Section 6.6
1. (a) There exists an x ∈ A ∩ B such that f (x) = y .
(d) There exists an a ∈ A such that f (a) = y or there exists a b ∈ B such that f (b) = y .
(f) f (x) ∈ C ∪ D
(h) f (x) ∈ C or f (x) ∈ D.
2. (b) f (f (A)) = [2, 5] .
−1
6. To prove that f
−1
(C ∩ D) ⊆ f
−1
(C ) ∩ f
−1
(D) , let x ∈ f
−1
(C ∩ D) . Then f (x) ∈ C ∩ D . How do you prove that
x ∈ f
−1
(C ) ∩ f
−1
(D) ?
9. Statement (a) is true and Statement (b) is false.
(e) The relation R is not a function from P(U ) to P(U ) since any proper subset of U is a subset of more than one subset of
U.
(b) The domain and range of S is the closed interval [-10, 10].
(d) The relation S is not a function from R to R.
9. (a) R = {(a, b) ∈ Z × Z | |a − b| ≤ 2}
(b) dom(R) = Z and range(R) = Z
Section 7.2
1. The relation R is not reflexive on A and is not symmetric. However, it is transitive since the conditional statement "For all
x, y, z ∈ A, if x R y and y R z , then x R z " is a true conditional statement.
Section 7.3
1. [a] = [b] = {a, b} ; [c] = {c}; [d] = [e] = {d, e}
2. [a] = [b] = [d] = {a, b, d} ; [c] = {c}; [e] = [f ] = {e, f }
3. The equivalence classes are {0, 1, 2, ..., 9}, {10, 11, 12, ..., 99}, {100, 101, 102, ..., 999}, {1000}.
4. The congruence classes for the relation of congruence modulo 5 on the set of integers are
[0] = {5n | n ∈ Z [3] = {5n + 3 | n ∈ Z
[1] = {5n + 1 | n ∈ Z
5. (a) The distinct equivalence classes are {0, 3, 6}, {1, 8}, {2, 7}, and {4, 5}.
5 5 5 5
6. (a) Let x ∈ [ ] . Then x− ∈ Z , which means that there is an integer m such that x− =m , or x = +m . This
7 7 7 7
5 5 5
proves that x ∈ {m + | m ∈ Z} and, hence, that [ ] ⊆ {m + | m ∈ Z} . We still need to prove that
7 7 7
9. (a) To prove the relation is symmetric, note that if (a, b) ≈ (c, d) , then ad = bc . This implies that cb = da and, hence,
(c, d) ≈ (a, b)
(c) 3a = 2b
Section 7.4
1. (a)
(b)
2. (a) [x] = [1] or [x] = [3]
(e) [x] = [2] or [x] = [3]
(g) The equation has no solution.
3. The statement in (a) is false. The statement in (b) is true.
5. (a) The proof consists of the following computations:
1 1
[1 ] = [1] [3 ] = [9] = [4]
1 1
[2 ] = [4] [4 ] = [16] = [1].
Section 8.1
1. (a) gcd(21, 28) = 7
(b) gcd(-21, 28) = 7
(c) gcd(58, 63) = 1
(d) gcd(0, 12) = 12
2. (a) Hint: Prove that k | [(a + 1) − a] .
4. (a) |b| is the largest natural number that divides 0 and b .
(b) The integers b and −b have the same divisors. Therefore, gcd(a, −b) = gcd(a, b) .
5. (a) gcd(36, 60) = 12 12 = 36 ⋅ 2 + 60 ⋅ (−1)
(a) gcd(901, 935) = 17 17 = 901 ⋅ 27 + 935 ⋅ (−26)
(a) gcd(901, -935) = 17 17 = 901 ⋅ 27 + (−935) ⋅ (26)
Section 8.2
1. The only natural number divisors of a prime number p are 1 and p.
2. Use cases: (1) p divides a ; (2) p does not divide a . In this case, use the fact that gcd(a , p) = 1 to write the number 1 as a
linear combination of a and p.
3. A hint for the inductive step: Write p | (a1 a2 ⋅ ⋅ ⋅ am )am+1 . Then look at two cases: (1) p | am+1 ; (2) p does not divide
am+1 .
4. (a) gcd(a , b ) = 1. Why?
(b) gcd(a , b ) = 1 or gcd(a , b ) = 1=2. Why?
16 28
7. (a) gcd(16, 28) = 4. Also, =4 , =7 , and gcd(4, 7) = 1.
4 4
Section 8.3
3. (a) x = −3 + 14k, y = 2 − 9k
(b) x = −1 + 11k, y = 1 + 9k
(c) No solution
(d) x = 2 + 3k, y = −2 − 4k
4. There are several possible solutions to this problem, each of which can be generated from the solutions of the Diophantine
equation 27x + 50y = 25.
5. This problem can be solved by finding all solutions of a linear Diophantine equation in x and y , where both x and y are
positive. The minimum number of people attending the banquet is 66.
6. (a) y = 12 + 16k , x = −1 − 3k 3
(c) x = y + 3n , x = −y + 4n
1 2
Section 9.1
2. Use f : A × {x} → A by f (a, x) = a , for all (a, x) ∈ A × {x} .
4. Notice that A = (A − {x}) ∪ {x} . Use Theorem 9.6 to conclude that A − {x} is finte. Then use Lemma 9.4.
5. (a) Since A ∩ B ⊆ A , if A is finite, then Theorem 9.6 implies that A ∩ B is finte.
7. (a) Remember that two ordered pairs are equal if and only if their corresponding coordinates are equal. So if
h(a , c ) = h(a , c ) , then (f (a ), g(c )) = (f (a ), g(c )) . We can then conclude that f (a ) = f (a ) and g(c ) = g(c ) .
1 1 2 2 1 1 2 2 1 2 1 2
8. (a) If we define the function f by f (1) = a , f (2) = b , f (3) = c , f (4) = a , and f (5) = b , then we can use g(a) = 1 ,
g(b) = 1 , and g(3) = c . The function g is an injection.
Section 9.2
1. All except Part (d) are true.
2. (e) Either define an appropriate bijection or use Corollary 9.20 to conclude that N − {4, 5, 6} is countable. Prove that
N − {4, 5, 6} cannot be finite.
Section 9.3
1. (a) f : (0, ∞) → R by f (x) = Inx for all x ∈ (0, ∞)
(b) g : (0, ∞) → (a, ∞) by g(x) = x + a for all x ∈ (0, ∞). The function g is a bijection and so (0, ∞) ≈ (a, ∞) . Then use
Part (a).
2. Show that the assumption that the set of irrational numbers is countable leads to a contradiction.
3. Use Corollary 9.20.
→ Conditional statement
Z set of integers
y ∈ A y is an element of A
z ∉ A z is not an element of A
∀ universal quantifier
∃ existential quantifier
∧ conjunction
vee disjunction
┐ negation
↔ biconditional statement
≡ logically equivalent
m | n m divides n
|x| m divides n
A ⊆ B A is a subset of B
A ⊈ B A is not a subset of B
A ⊂ B A is a proper subset of B
A ∩ B intersection of A and B
A
c
complement of A
R
2
Cartesian plane
⋃
α∈Λ
Aα union of an indexed family of sets
⋂
α∈Λ
Aα intersection of an indexed family of sets
n! n factorial
f1 , f2 , f3 , . . . Fibonacci numbers
f : A → B function from A to B
p1 , p2 projection functions
det(A) determinant of A
A
T
transpose of A
f
−1
the inverse of the function f
Sin −1
the inverse sine function
x R y x is related to y
x is not related to y
x ∼ y x is related to y
x ≁ y x is not related to y
R
−1
the inverse of the relation R
f
−1
(C) pre-image of C under the funtion f
A is equivalent to B
A ≈ B
A and B have the same cardinality
card(A) = k cardinality of A is k
aleph0 cardinality of N