0% found this document useful (0 votes)
147 views

mm5 Logic and Set Theory

This document provides an overview of logic and set theory concepts including: 1. It defines statements, open sentences, truth values, and logical connectives like negation, conjunction, disjunction, conditionals, biconditionals. 2. It explains how to construct truth tables to determine the truth values of composite statements for all combinations of simple statements. 3. Logical equivalence is defined as two statements having identical truth tables. Examples show how to use truth tables to verify logical equivalence laws.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
147 views

mm5 Logic and Set Theory

This document provides an overview of logic and set theory concepts including: 1. It defines statements, open sentences, truth values, and logical connectives like negation, conjunction, disjunction, conditionals, biconditionals. 2. It explains how to construct truth tables to determine the truth values of composite statements for all combinations of simple statements. 3. Logical equivalence is defined as two statements having identical truth tables. Examples show how to use truth tables to verify logical equivalence laws.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 61

lOMoARcPSD|25000625

MM5 Logic and Set Theory

Mathematical Logic I (University of the Philippines System)

Studocu is not sponsored or endorsed by any college or university


Downloaded by Christian paul Arnaiz ([email protected])
lOMoARcPSD|25000625

Learning Module in
MM5 - Logic and Set Theory
Title: 1 Logic and Proof

Topics: Statement and Open Sentences; Composite Statement; Truth Tables and Logical Equiv-
alence; Quantifiers

Time Frame: 8 hours

Introduction:

Our goal in this section is to understand truth values of statements and how statements
can be combined using logical connectives. Most sentences, such as and “Earth is the closest
planet to the sun, have a truth value. That is, they are either true or false. We call these
sentences statements. Other sentences, such as What time is it? and Look out! are interrogatory
or exclamatory; they express complete thoughts but have no truth value.

Objectives:

1. Discuss and apply the sentencial connectives

2. Use mathematical symbols and discern truth values of arguments

3. Construct truth tables

4. Determine whether the given statements is a tautology

Pretest:
Name: Score:
Course/Year/Section: Date:

Determine which of the following are open sentences, true or false statements.

1. 7 + 1 = 8

2. 5 − 3 = 10

3. The product of 2 and 4 is 16 .

4. The sum of a whole number and −3 is −3.

5. If 24 is divided by zero, the quotient is zero.

Learning Activities:

1.1 Statements and Open Sentences


Definition 1.1.1 A statement is an ordinary declarative sentence which is so precisely stated
it is either true (T) or false (F) but not both.

A statement could be simple or composite (compound). Simple statements are usually


denoted by letters p, q, r, etc.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Example 1.1.2 The first 3 sentences below are statements while the rest are not.

1. Maria Cristina Falls is in Iligan City.



2. The number 3 is irrational.

3. 3 + 2 ≥ 7

4. Is it a sunny day?

5. x − 2 > 3

Definition 1.1.3 The truth or falsity of a statement is called its truth value.

In Example 1.1.2, statements (1), (2), (3) have truth values T, T, F, respectively.

Definition 1.1.4 A variable is a symbol in a statement which may be replaced by any element
of a given universal set U . A constant is a fixed element of a set.

Definition 1.1.5 An open sentence is a declarative sentence containing a variable; it becomes


a statement when the value of the variable is specified.

Open sentences are usually denoted by px , qx , rx , etc. In Example 1.1.2, (5) is an open
sentence. When x is replaced by any real number greater than 5, (5) becomes a true statement.
Otherwise, it becomes a false statement.

Definition 1.1.6 The truth set of an open sentence is the set of elements of the universal set
U whose substitution to the variable converts the sentence into a true statement.

In Example 1.1.2, the truth set of (5) is the set {x ∈ R : x5}or the open interval (5, +∞).

1.2 Composite Statement


Definition 1.2.1 The negation of a statement p is a statement whose truth value is precisely
the opposite of the truth value of p, and is denoted by ¬p.

Example 1.2.2 Here are four negations of the statement “Melai is a girl ”.

a. It is not true that Melai is a girl.

b. It is false that Melai is a girl

c. Melai is not a girl.

d. Melai is a boy.

Definition 1.2.3 Any two statements p and q combined by the word “and ” (or its equivalent:
but, yet, while, etc.) form a composite statement called the conjunction of p and q, and is
denoted by p ∧ q.

Example 1.2.4

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

1. p: Ali is a Maranao.
q: Ali lives in Metro Manila.
p ∧ q : Ali is a Maranao, but he lives in Metro Manila

2. SSCT is in Surigao del Norte, and Surigao del Norte is in Mindanao.

3. Cory Aquino is a president of the Philippines while Kris Aquino is a Miss Philippines
winner.

4. 4 < π < 7

The conjunction p ∧ q is true precisely when p and q are both true. Otherwise, p ∧ q is
false. In Example 1.2.4, statement (2) is true; (3) and (4) are false.

Definition 1.2.5 Any two statements p and q combined by the word “or ” forms a composite
statement called the disjunction of p and q, and is denoted by p ∨ q.

Example 1.2.6
1. p: Alvin studies calculus.
q: Alvin studies psychology.
r Alvin likes history.
p ∨ r : Either Alvin studies calculus, or he likes history.
p ∨ q : Alvin either studies calculus, or he studies psychology.

2. 3 ≤ 5

3. Either SSCT is in Cebu City, or 3 + 3 = 5.

4. Siargao is either an island or a town.

5. Either 0 ∈ ∅, or 2 is a positive integer.

The disjunction p ∨ q is false precisely when p and q are both false. Otherwise, p ∨ g is
true. In Example 1.2.6, statement (3) is false; (2),(4) and (5) are true.

Definition 1.2.7 A composite statement of the form “if p, then q” is called a conditional
statement and is denoted by p → q.

A conditional statement p → q can be expressed in any of the following equivalent ways:


1. If p, then q

2. p implies q.

3. p only if q.

4. p is a sufficient condition for q.

5. q is a necessary condition for p.


A conditional statement p → q is always true except in the case who statement p is true
but statement q is false; that is, a true statement cannot imply a false statement.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Example 1.2.8 Find the truth value of each of these conditionals:

1. If 2 + 3 = 5, then 5 − 3 = 2

2. If man has no brain, then fear is useless.

3. If all nolvonns are triangles, then Ricky is a girl.

4. If Cebu is in the Visavas, then Davao is in Luzon.

5. 2x − 1 > 0 implies that x is a positive real number.

In Example 1.2.8 statement (4) is false; all the others are true.

Definition 1.2.9 A composite statement of the form ”p if and only if q”is called a bicondi-
tional statement and is denoted by p ↔ q.

Clearly, the biconditional p ↔ q is equivalent to (p → q) ∧ (q → p). Hence, p ↔ q is true


precisely when p and q have the same truth values, otherwise, it is false.

Example 1.2.10 Find the truth value of each of these statements:

1. 2 · 6 = 12 if and only if 12 ÷ 2 = 6

2. 6 < −2 if and only if 8 < 0.

3. 32 + 3 = 12 if and only if 33 = 9
√ √ √ √ √
4. 3 27 + 9 = 5 36 if and only if 3 27 + 9 = 6

In Example 1.2.10, statements (1) and (2) are true while (3) and (4) are false.

As a summary, the truth values of the composite statements which involve two substate-
ments p and q in different cases are shown in the table below.

p q p∧q p∨q p→q p↔q


T T T T T T
T F F T F F
F T F T T F
F F F F T T

1.3 Derived Conditionals


Associated with the conditional statement are three conditionals:

Converse of p → q : q→p
Inverse of p → q : ¬p → −q
Contrapositive of p → q : ¬q → ¬p

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Example 1.3.1 This example will clarify the preceding definitions

Conditional: If Manila is in Visayas, then Davao City is in Luzon.

Converse: If Davao City is in Luzon,then Manila is in Visayas.

Inverse: If Manila is not in Visayas, then DavaoCity is not in Luzon.

Contrapositive: If Davao is not in Luzon, then Manila is not in Visayas.

Exercise Determine the contrapositive, converse and inverse of the following statements:

1. If x is less than zero, then x is not positive.

2. If x and y are both even integers, then x + yis even.

3. If Ferdie is an Ilocano, then he was born in Northern Luzon.

4. Calculus is an easy subject implies students have Calculus.

1.4 Truth Table Construction and Logical Equivalence


Definition 1.4.1 A table showing the truth value of a statement P (p, q, r, . . .) involving simple
statements p, q, r, . . . for all the possible cases for p, q, r, . . . is called a truth table.

The table above is a truth table for the different composite statements involving 2 simple
statements p and q with 4 truth value combinations or cases as shown in the 4 rows.

Hence, a truth table with n simple statements has 2n rows. The next definition deals
with logical equivalence where the term logic means “correct reasoning”.

Definition 1.4.2 Two statements P (p, q, r, . . .) and Q(p, q, r, . . .) are said to be logically equiv-
alent, denoted by
P (p, q, r, . . .) ≡ Q(p, q, r, . . .)
if their truth tables are identical.

Example 1.4.3 One mat verify using truth tables that the following laws hold:

1. (p → q) ∧ (q → p) ≡ (p ↔ q)

2. (p → q) ≡ (¬p ∨ q)

3. p → (q ∧ r) ≡ (p → q) ∧ (p → r)

4. ¬(p → q) ≡ (p ∧ ¬q)

5. De Morgan’s Laws: ¬(p ∧ q) ≡ (¬p ∨ ¬q) and ¬(p ∨ q) ≡ (¬p ∧ ¬q)

To appreciate the logical equivalence in Example 1.4.3 (4) and (5), the negation of the
different composite statements may be restated as shown in what follows:

Example 1.4.4

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

1. It is not true that Lake Lanao is big and beautiful.


Restatement: Either Lake Lanao is not big. or it is not beautiful.

2. It is false that San Miguel team won or Danny Siegel scored 40 points.
Restatement: The San Miguel team lost, and Danny Siegel did not score 40 points.

3. It is not true that if Claudine studies hard, then she passes MM5.
Restatement: Claudine studies hard, but she does not pass MM5 anyway.

4. By definition, x ∈ A ∩ B means x ∈ A and x ∈ B.


Thus, x ∈/ A ∩ B means x ∈
/ A or x ∈
/ B.
Similarly, x ∈ A ∪ B means x ∈ A or x ∈ B.
Thus, x ∈/ A ∪ B means x ∈
/ A and x ∈/ B.

Definition 1.4.5 A statement that is always true a tautology. On the other hand, a statement
that is always false is called a contradiction.

Example 1.4.6 Verify using truth tables that the following statements are tautologies:

Name Tautology

1. Transitivity Law [(p → q) ∧ (q → r)] → (p → r)

2. Law of Excluded Middle p ∨ ¬p

3. Law of Syllogism [p ∧ (p → q)] → q

Exercises Prove or disprove (by the use of truth tables):

1. p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)

2. r → ¬(p ∨ q) ≡ (r → ¬p) ∧ (r → ¬q)

3. ¬[(¬p ∧ q) ↔ r] ≡ ¬(p ∨ ¬q) ↔ ¬r

4. (p → q) ≡ (¬p ∨ q)

5. [p → (¬q ∨ r)] ∧ ¬[q ∨ (p ↔ ¬r)] ≡ (p ∨ q) ↔ (−q ∧ r)

1.5 Quantifiers
Definition 1.5.1 Let px be an open statement on the universal set U whose truth set is P .
Then (∀x ∈ U, px ) or (∀x, px )is a statement which reads “for every element x in U , px is true.”
The quantified statement (∀x ∈ U, px ) is true if the truth set P = U , that is, its truth set
is the universal set. The symbol ∀, which reads for all or for every, is called the universal
quantifier.

Definition 1.5.2 Let px be an open statement on U . Then (∃x ∈ U, px ) or (∃x, px ) is a


statement that reads as “there exists some element x of U such that px is true” or “for some
x ∈ U , px is true if P 6= ∅. The symbol ∃, is called the existential quantifier.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Note: An open statement px does not have a truth value. But px with a quantifier is a statement
and has a truth value.

Because P 6= U if and only if the complement P ′ 6= ∅, the negation of a statement px


with a quantifier is given by the following relations:

I. ¬ (∀x, px ) ≡ (∃x, ¬px )

II. ¬ (∃x, px ) ≡ (∀x, ¬px )

Example 1.5.3 Restate the following statements:

1. All gold is yellow.


Paraphrase:

(a) Given anything, if it is gold, then it is yellow


(b) ∀x, if x is gold, then it is yellow

2. There is a gold that is yellow.


Paraphrase:

(a) There exists a gold such that it is yellow.


(b) ∃x, if x is gold, then it is yellow.

Example 1.5.4 Restate the following negations:

1. Not all Filipinos are friendly.


Restatement: Some Filipinos are not friendly.

2. It is not true that some Ilokanos are immortal.


Restatement: All Ilokanos are mortal.

3. It is false that ∀x, if x is an integer, then 2x is even


Restatement:

4. It is false that ∃ real number x, for which x2 < 0.


Restatement:

Definition 1.5.5 A counterexample is an example which disproves a given statement.

Example 1.5.6 How do we prove that an assertion like (∀x ∈ R, x> 0) is false? According
to I, we need to find one x for which it is not true that x2 > 0. This element x is called a
counterexample. Here, 0 is a counterexample.

Exercise
I. Find the negation of the following statements

1. ∀x, x + 2 = x.

2. ∀n ∈ N, n + 4 > 3.

3. ∃n ∈ N, n + 4 < 7.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

II. Determine the truth value of the following:

1. ∀x ∈ N, |2x + 4| ≥ 8

2. ∃x ∈ R, 3x2 − 26 = 7

Self Evaluation:
Name: Score:
Course/Year/Section: Date:

Let p be ”Ganddalf the Grev is the white wizard.”, and let q be ”Frodo is the ring bearer.” .
Give a simple verbal description of each of the following statements.
1. q ∨ ¬p

2. p ↔ −q

3. (p ∧ −q) → p
Let p be ”He is rich”, q be ”He is happy”, and r be ”He is healthy”. Write each statement in
symbolic form using p, q, and r.
4. He is happy if and only if he is rich and healthy.

5. He is happy or healthy if he is not rich.

Review of Concepts:
• A statement is an ordinary declarative sentence which is so precisely stated it is either
true (T) or false (F) but not both.

• An open sentence is a declarative sentence containing a variable; it becomes a statement


when the value of the variable is specified.

• The negation of a statement p is a statement whose truth value is precisely the opposite
of the truth value of p, and is denoted by ¬p.

• Any two statements p and q combined by the word “and ” (or its equivalent: but, yet, while,
etc.) form a composite statement called the conjunction of p and q, and is denoted by
p ∧ q.

• Any two statements p and q combined by the word “or ” forms a composite statement
called the disjunction of p and q, and is denoted by p ∨ q.

• A composite statement of the form “if p, then q” is called a conditional statement and
is denoted by p → q.

• A composite statement of the form ”p if and only if q”is called a biconditional statement
and is denoted by p ↔ q.

• Summary of truth values of the composite statements which involve two substatements p
and q in different cases:

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

p q p∧q p∨q p→q p↔q


T T T T T T
T F F T F F
F T F T T F
F F F F T T

Posttest:
Name: Score:
Course/Year/Section: Date:

Prove or disprove (by the use of truth tables):

1. [p → (¬q ∨ r)] ∧ ¬[q ∨ (p ↔ ¬r)] ≡ (p ∨ q) ↔ (¬q ∧ r)

2. p → (q ↔ r) ≡ ¬p ∨ [(q → r) ∧ (r → q)]

Let S = {1, 2, 3, 4, 5}. Determine the truth value of the following statements:

3. ∃x ∈ S, x + 2 > 5

4. ∀x ∈ S, x + 4 ≤ 2

5. ∃x ∈ S, 5x + 7 ≥ 12
5x − 3
6. ∃x ∈ Z : = −9
2
Determine the truth value of each of the following composite statements.

7. If Surigao is in Mindanao, then Siargao Island is in Davao.

8. It is not true that 2 + 2 = 5 if and only if 4 + 4 = 10.

9. Palawan is in Luzon if and only if Basilan is in Mindanao.

10. It is false that 2 + 2 = 5, or 4 + 4 = 8.

References:

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Learning Module in
MM5 - Logic and Set Theory
Title: 2 METHODS OF PROOF

Topics: Direct Proof; Proof by Contrapositive; Proof by Contradiction; Proof of a Biconditional


Statement

Time Frame: 8 hours

Introduction:

In mathematics, a theorem is a statement that describes a pattern or relationship among


quantities or structures and a proof is a justification of the truth of a theorem.

You wont find truth tables displayed or referred to in proofs that you encounter in
mathematics: It is expected that readers are familiar with the rules of logic and correct forms
of proof. As a general rule, when you write a step in a proof, ask yourself if deducing that step
is valid in the sense that it uses the rules of logic. If the step follows as a result of the use of
a tautology, it is not necessary to cite the tautology in your proof. In fact, with practice you
should eventually come to write proofs without purposefully thinking about tautologies. What
is necessary is that every step be justifiable.

Objectives:
1. Prove different kinds of statements using the appropriate method of proof.
2. Perform the different kinds of methods of proofs.
Pretest:
Name: Score:
Course/Year/Section: Date:

Prove the following statements.


1. If x is an odd integer, then x + 5 is even.
2. If x and y are both even integers, then x + y is even.
Learning Activities:

2.1 Direct Proof


The firstand most importantproof method is the direct proof of statement of the form
P → Q which proceeds in a step by step fashion from the antecedent P to the consequent Q.

Definition 2.1.1 Definition A direct proof is a procedure for proving the truth of P → Q.
First we assume that P is true. Then we build an argument, using a chain of implications,
leading directly to the conclusion that Q is a true statement.

Since P → Q is false only when P is true and Q is false, it suffices to show that this
situation cannot happen. The direct way to proceed is to assume that P is true and show
(deduce) that Q is also true. A direct proof of P → Q will have the following form:

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Example 2.1.2 Let x be an integer. Prove that if x is odd, then x + 1 is even.

Proof : (The theorem has the form P → Q, where P is “ x is odd” and Q is “ x + 1 is even.”
) Let x be an integer. (We may assume this hypothesis since it is given in the statement of the
theorem.) Suppose x is odd. (We assume that the antecedent P is true. The goal is to derive
the consequent Q as our last step.) From the definition of odd, x = 2k + 1 for some integer k.
(This deduction is the replacement of P by an equivalent statement-the definition of ”odd.” We
now have an equation to use.) Then x + 1 = (2k + 1) + 1 for some integer k. (This is another
replacement using an algebraic property of N.) Since (2k + 1) + 1 = 2k + 2 = 2(k + 1), x + 1 is
the product of 2 and an integer. ( Another equivalent using algebra.) Thus x + 1 is even. (We
have deduced Q.)
Therefore, if x is an odd integer, then x + 1 is even. ( We conclude that P → Q.) 2

In this example, we did not worry about what would happen if x were not odd. Remember
that it is appropriate to assume P is true when giving a direct proof of P → Q. (If P is false, it
does not matter what the truth of Q is; the statement we are trying to prove, P → Q, will be
true.) The process of assuming that the antecedent is true and proceeding step by step to show
the consequent is true is what makes this type of proof direct.
This example also includes parenthetical comments offset by (. . .) and in italics to
explain how and why a proof is proceeding as it is. Such comments are not a requisite part of
the proof, but are inserted to help clarify the workings of the proof. The proof above would
stand alone as correct with all the comments deleted, or it could be written in shorter form, as
follows.

Example 2.1.3 Let x be an integer. Prove that if x is odd, then x + 1 is even.

Proof : Let x be an integer. Suppose x is odd. Then x = 2k + 1 for some integer k Then

x + 1 = (2k + 1) + 1 = 2k + 2 = 2(k + 1).

Since k + 1 is an integer and x + 1 = 2(k + 1), x + 1 is even.


Therefore, if x is an odd integer, then x + 1 is even. 2

Example 2.1.4 Prove that if n and m are integers and 3 is a factor of both n and m, then 3 is
a factor of nx + my where x and y are integers.

Proof : Let n and m be integers such that 3 is a factor of both n and m. Then n = 3k and
m = 3l for some integers k and l. Thus, for any integers x and y

nx + my = 3kx + 3ly = 3(kx + ly)

Since kx + ly is an integer by closure property, it follows that 3 is a factor of nx + my. 2

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

2.2 Proof by Contrapositive


In the last section, we saw that the method of direct proof for P → Q proceeds as a chain
of statements from the antecedent to the consequent. This is the most basic form of proof and
is the foundation for several other proof techniques. The techniques in this section are based on
tautologies that replace the statement to be proved by an equivalent statement or statements.
We call these indirect proofs.

Definition 2.2.1 A proof by contrapositive uses the fact that an implication and its contra-
positive are equivalent. So. if we can prove that the contrapositive is true, then we may conclude
that the original implication is also true

A proof by contraposition or contrapositive proof for a conditional sentence P → Q


makes use of the tautology (P → Q) ↔ (¬Q → ¬P ). Since P → Q and ¬Q → ¬P are equivalent
statements, we first give proof of ¬Q → ¬P and then conclude by replacement that P → Q.

Example 2.2.2 Let m be an integer. Prove that if m2 is even, then m is even.

Proof : Suppose that the integer m is not even. (Suppose ¬Q.) Then m is odd so m = 2k + 1
for some integer k. Then

m2 = (2k + 1)2 = 4k 2 + 4k + 1 = 2 2k 2 + 2k + 1


Since m2 is twice an integer, plus 1, m2 is odd. ( Since k is an integer; 2k 2 + 2k is an integer. )


Therefore, m2 is not even. ( We have concluded ¬P. )
Thus, if m is not even, then m2 is not even. By contraposition, if m2 is even, then m is even.
2

Example 2.2.3 Prove the next statement by contrapositive.


“If the sum of two real numbers is positive, then at least one of them is positive, that is, if
x, y ∈ R and x + y > 0, then either x > 0 or y > 0.”

Proof : Assume that x ≤ 0 and y ≤ 0. (We are assuming that the conclusion is false.) Then
x + y ≤ x + 0 = x ≤ 0. Thus, x + y ≤ 0, which means that the hypothesis is false. This proves
the contrapositive, hence the assertion is true. 2

2.3 Proof by Contradiction


Definition 2.3.1 A proof by contradiction is based on the fact that a statement is either
true or false. So instead of showing that an assertion is true directly, we may show that it cannot
be false. Then we conclude that it must be true.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Thus, to prove by contradiction that the implication p → q is true, we begin by assuming


that it is false. (By definition, this means that p is true and q is false.) Then we construct
an argument that leads to a contradiction- something that is always false. Theoretically, this
is impossible, because we can never prove that a false statement is true. This will force us to
conclude that the assumption is the source of the contradiction. Hence, we can not assume that
the implication p → q is false.
Example 2.3.2 Prove the statement “If x is an odd integer, then x2 is odd.”

Proof : Suppose that x is odd and x2 is even. (We are assuming that the hypothesis is true, and
the conclusion is false.) Then x = 2a + 1 and x2 = 2b for some integers a and b. Thus,

2b = x2 = (2a + 1)2 = 4a2 + 4a + 1 = 2(2a2 + 2a) + 1.

Hence,
1 = 2b − 2(2a2 + 2a) = 2[b − (2a2 + 2a)].
But [b − (2a2 + 2a)] is clearly an integer, so the last equation implies that 1 is divisible by 2 with
the integer [b − (2a2 + 2a)] as quotient. This is not true because if we divide 1 by 2 the quotient
is 21 and this is not an integer. Hence, we cannot assume that the assertion is false. Therefore,
it must be true. 2
2.4 Proof of Biconditional State
Since p ↔ q is logically equivalent to (p → q) ∧ (q → p), the following definition hold.
Definition 2.4.1 A proof of a biconditional statement ↔ consists of two parts, one is by
proving that p → q is true and other is by proving that q → p is true.
Note: In constructing a proof of a biconditional statement, the previous methods of proof
maybe employed as shown in the following example.
Example 2.4.2 Prove that for x, y ∈ Z, xy is divisible by 2 if and only if x or y is divisible by
2.
Proof : Let x and y be integers.
(←) Suppose that x is divisible by 2. Then x = 2k for some integer k. Thus, xy = 2ky is
divisible by 2 since ky ∈ Z. Also, if y is divisible by 2, then y = 2l for some l ∈ Z. Thus,
xy = x(2l) = 2(xl) is again divisible by 2 since xl ∈ Z. Hence, if x or y is divisible by 2, then
xy is divisible by 2.

(→) To show that if xy is divisible by 2, then x or y is divisible by 2, we prove the contrapositive


which is:
“If x and y are both not divisible by 2, then xy is not divisible by 2.”
Now, x and y both not divisible by 2 means that x = 2p + 1 and y = 2q + 1 for some integers p
and q. So,

xy = (2p + 1)(2q + 1) = 4pq + 2p + 2q + 1 = 2(2pq + p + q) + 1 = 2v + 1

where v = 2pq + p + q is an integer. Thus, xy is not divisible by 2. By contrpositive, if xy is


divisible by 2, then x or y is divisible by 2.

Therefore, for x, y ∈ Z, xy is divisible by 2 if and only if x or y is divisible by 2 2

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Self Evaluation:
Name: Score:
Course/Year/Section: Date:

Prove the following using direct proof.

1. If x and y are both odd integers, then x + y is even.

2. Let a ∈ Z. If 3a + 2 is odd, then 5a − 1 is even.

Prove the following using indirect proof.

3. If x2 is an integer greater than zero, then x 6= 0.

4. If n2 is odd, then n is odd.

Review of Concepts:

• A direct proof is a procedure for proving the truth of P → Q. First we assume that P
is true. Then we build an argument, using a chain of implications, leading directly to the
conclusion that Q is a true statement.

• A proof by contrapositive uses the fact that an implication and its contrapositive are
equivalent. So. if we can prove that the contrapositive is true, then we may conclude that
the original implication is also true.

• A proof by contradiction is based on the fact that a statement is either true or false.
So instead of showing that an assertion is true directly, we may show that it cannot be
false. Then we conclude that it must be true.

• A proof of a biconditional statement ↔ consists of two parts, one is by proving that


p → q is true and other is by proving that q → p is true.

Posttest:
Name: Score:
Course/Year/Section: Date:

Prove the following statements and indicate what method of proof is used.

1. 3x2 − 7x + 4 = x2 + 3x − 8 if and only if x = 2 or x = 3.

2. For any integer n, n is odd if and only if n2 is odd.

3. For any integer x, x is even if and only if 3x+is odd.

4. For any integer a, a3 + a2 + a is even if and only if a is even.

References:

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Learning Module in
MM5 - Logic and Set Theory
Title: 3 METHODS OF PROOF II

Topics: Mathematical Induction; The Sigma Notation; Equivalent Forms of Induction; Proofs
Involving Quantifiers

Time Frame: 8 hours

Introduction:

In this chapter, other proof methods are discussed. This includes the principle of math-
ematical induction which is usually used to prove assertions concerning the positive integers.
This method has practically nothing to do with the so-called inductive reasoning, wherein gen-
eralizations are based a large number of experimental observations. Actually, it is deductive in
nature, and it leads to a definite conclusion.

Objectives:

1. Use the Principle of Mathematical Induction in proving assertions concerning the positive
integers.

2. Perform mathematical induction in proving relations in mathematics that involve sums


and products.

Pretest:
Name: Score:
Course/Year/Section: Date:

Evaluate or simplify each.

1. 4! (n + 2)!
5.
n!
2. 7!
97! (n + 3)!
3. 6.
96! (n + 1)!
8!
4. 7. (n2 + 3n + 2) n!
3! · 5!
Learning Activities:

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

3.1 Principle of Mathematical Induction


The Principle of Mathematical Induction (PMI)

Let Pn be a statement involving the positive integer n. Let m be a fixed positive


integer (usually, we take m = 1 ). Suppose

i. Pn is true for n = m, and

ii. For all k ≥ m, if Pk is true, then Pk+1 is also true.

Then Pn is true for all integers n ≥ m.

A proof by mathematical induction has three parts.

i. Verify the validity of Pn for n = m,

ii. Verify the inductive property: If, for any integer k ≥ m, Pn is true for
n = k, then it is also true for n = k + 1, and

iii. State the conclusion that Pn is true for all integers n ≥ m.

Example 3.1.1 Prove that 1 + 3 + 5 + · · · + (2n − 1) = ṅ2 for all integers n ≥ 1

Proof : Let Pn be the formula 1 + 3 + 5 ÷ · · · + (2n − 1) = n2 .

i. When n = 1, then P1 is “1 = 12 ,” which is true (there is only one term at the left-hand-side
(LHS) of P1 ). Thus, P1 is true.

ii. Assume that Pn is true when n = k. This means that

1 + 3 + 5 + · · · + (2k − 1) = k 2 . (3.1)

Now we shall prove that Pn is also true for n = k + 1, that is, we have to show that

1 + 3 + 5 + · · · + (2k − 1) + [2(k + 1) − 1] = (k + 1)2 (3.2)

Observe that the LHS of equation (3.2) can be obtained from the LHS of equation (3.1)
simply by adding the term [2(k + 1) − 1] to both sides of equation (3.1). Thus.

1 + 3 + · · · + (2k − 1) + [2(k + 1) − 1] = k 2 + [2(k + 1) − 1]


(3.3)
= k 2 + 2k + 1

Therefore,
1 + 3 + 5 + · · · + (2k − 1) + [2(k + 1) − 1] = (k + 1)2
and Pn is true when n = k + 1

iii. By the PMI, the given formula Pn : 1 + 3 + 5 + · · · + (2n − 1) = n2 , holds for all integers
n ≥ 1.

Example 3.1.2 Prove that n3 − n is divisible by 3 for all positive integers n.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Proof : Let Pn be the statement “n3 − n is divisible by 3”.

i. When n = 1, P1 is the statement “13 − 1 is divisible by 3”, which is certainly true, since
13 − 1 = 0.

1. Assume now that Pn is true for n = k. In other words, assume that

k 3 − k is divisible by 3. (3.4)

Next we shall prove that Pn is also true for n = k + 1, that is, we shall prove that

(k + 1)3 − (k + 1) is divisible by 3. (3.5)

Observe that
(k + 1)3 − (k + 1) = k 3 + 3k 2 + 3k + 1 − (k + 1)


= k3 − k + 3 k2 + k + 1 − 1
 

= k3 − k + 3 k2 + k
 

By (3.4), the term (k 3 − k) is divisible by 3 and the term 3 (k 2 + k) is clearly divisible by


3. Thus, (3.5) is true, that is, Pn is true when n = k + 1.

iii. Therefore by PMI, n3 − n is divisible by 3 for all integers n > 1.

Example 3.1.3 For all n ∈ N, n + 3 < 5n2 .

Proof : Let Pn be the statement “n + 3 < 5n2 ”.

i. When n = 1, P1 is the statement “1 + 3 < 5 · 12 ”, so the statement is true for 1.

1. Assume now that Pn is true for n = k. In other words, assume that

k + 3 < 5k 2 (3.6)

Next we shall prove that Pn is also true for n = k + 1, that is, we shall prove that

(k + 1) + 3 < 5(k + 1)2 (3.7)

Observe that
(k + 1) + 3 = k + 3 + 1
< 5k 2 + 1 by (3.6)
2
< 5k + 10k + 5
= 5(k + 1)2 .
Thus, (3.7) is true, that is, Pn is true when n = k + 1.

iii. Therefore by PMI, n + 3 < 5n2 , for all n ∈ N.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

3.2 The Sigma Notation


Mathematical induction is used to prove many relations in mathematics that involves
sums and products. Many of these relations are stated using the factorial notation (for products)
and the summation Σ.

Definition 3.2.1 The upper case Σ of the Greek letter sigma is the standard mathematical
symbol for sums. If x1 , x2 , x3 , x4 , . . . , xn are real (or complex) numbers, then the sum of these
numbers is denoted by
Xn
xi = x1 + x2 + x3 + · · · + xn .
i=1

The left-hand side is read as “the sum of the xi as the index i ranges from 1 to n”.

Example 3.2.2 If xi = 2i + 1, then the sum of xi for i = 1 to n is written as


n
X n
X
xi = (2i − 1) = 1 + 3 + 5 + · · · + (2n − 1).
i=1 i=1
Pn
Observe that in Example 3.1.1, it is shown that i=1 (2i − 1) = n2 for all integers n ≥ 1.

We can also allow xi to have the same constant value for all i, that is, xi = c for all i.
Thus,
n
X n
X
xi = c = c + c + c + · · · + c = nc.
i=1 i=1

Note that every value of the index i corresponds to one term of the long sum.

Similarly, the notation for products uses the capital Greek letter Π. For example
4
Y
i2 + 1 = 2 · 5 · 10 · 17 = 1700

i−1

Note that products with n + 1 factors may be written, as in


n+1
Y n
Y n
Y
(2i) = [2(n + 1)] · (2i) = (2n + 2) · (2i).
i=1 i=1 i=1

Our next example involves both factorial and product notation.

Recall the definition of a factorial.

Definition 3.2.3 If n is a positive integer, then n factorial denoted by n! is defined as the


product of consecutive integers from 1 to n That is n! = n · (n − 1) · (n − 2) · · · 2 · 1. We define,
0! = 1
n
Y (2n)!
Example 3.2.4 Prove that for all n ∈ N, (4i − 2) = .
i=1
n!

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

n
Y (2n)!
Proof : Let Pn be the statement (4i − 2) = .
i=1
n!

1
Y (2 · 1)!
i. The statement is true for n = 1 because (4i − 2) = 2 and = 2.
i=1
1!

ii. Assume now that Pn is true for n = k. In other words, assume that
k
Y (2k)!
(4i − 2) = (3.8)
i=1
k!

Next we shall prove that Pn is also true for n = k + 1, that is, we shall prove that
k+1
Y (2(k + 1))!
(4i − 2) = (3.9)
i=1
(k + 1)!

Observe that " #


k+1
Y k
Y
(4i − 2) = (4i − 2) · [4(n + 1) − 2]
i=1 i=1
(2k)!
= (4k + 2).
k!
We also compute
(2(k + 1))! (2k + 2)!
=
(k + 1)! (k + 1)!
(2k + 2)(2k + 1)(2k)!
=
(k + 1)k!
2(k + 1)(2k + 1)(2k)!
=
(n + 1)k!
2(2k + 1)(2k)!
=
k!
(4k + 2)(2k)!
= .
k!
Since these expressions are equal, Pn is true when n = k + 1.
n
Y (2n)!
iii. By the Principle of Mathematical Induction, (4i − 2) = for all n ∈ N.
i=1
n!
2
Exercises Prove the following by the Principle of Mathematical Induction:

1. 2n ≤ 2n , for all integers n ≥ 1

2. (ab)n = an bn , for all integers n ≥ 1.

3. 5n − 1 is divisible by 4, for all integers n > 1

4. 3n < n!, for all integers n ≥ 7.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

n
X
5. 2i = 2 (2n − 1) , for all integers n ≥ 1.
i=1

n
X 1 1
6. i
= 1 − n , for all integers n ≥ 1.
i=1
2 2

n(n + 1) n(n + 1)(n + 2)


7. 1 + 3 + · · · + = , for all n ≥ 1
2 6
n
X n(2n − 1)(2n + 1)
8. (2i − 1)2 = , for all n ≥ 1.
i=1
3
n
X 1 n
9. = , for all n ≥ 1.
i=1
i(i + 1) n+1
n
X n2 (n + 1)2
10. i3 = , for all n ≥ 1.
i=1
4

3.3 Equivalent Forms of Induction


To prove that a statement is true for all natural numbers using the PMI, the key step is
to assume that a statement is true for an arbitrary natural number n and then show that the
statement is true for n + 1. When there might be no apparent connection between the statement
for n and the statement n + 1 for there may be a connection between the statement for the n + 1
case and the statement for some value or values less than n. There is a variation of the PMI to
handle this situation. A much stronger assumption is made in this alternate form of induction,
called complete (or strong) induction.*

Principle of Complete Induction (PCI)

Suppose S is a subset of N with this property:

For all natural numbers n, if {1, 2, 3, . . . , n − 1} ⊆ S, then n ∈ S.


Then S = N.

This form of induction begins with the assumption that a statement is true for
every natural number less than n and shows that the statement is also true for
n. Thus, we are allowed to assume the statement is true for each of all the way
through n − 1 rather than just for n − 1.
Notice that the statement of the PCI does not require a basis step in which we show that
1 ∈ S. Nevertheless, for n = 1, the PCI property has the form

∅ ⊆ S ⇒ 1 ∈ S,

which is equivalent to 1 ∈ S. Practically speaking then, it is almost always best to begin a PCI
proof by verifying that 1 is in S. Sometimes special consideration is also needed for n = 2 or
larger integers.

Our first example of a proof using the PCI revisits the first example from Example 3.1.1.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Example 3.3.1 Prove for all natural numbers n that 1 + 3 + 5 + · · · + (2n − 1) = n2 .

Proof : Let S = {n ∈ N : 1 + 3 + 5 + · · · + (2n − 1) = n2 }. h We must show that


{1, 2, 3, . . . , m − 1} ⊆ S ⇒ m ∈ S and then conclude S = N by the P CI.i

Suppose m is a natural number and also that {1, 2, 3, . . . , m − 1} ⊆ S. In the special case that
m = 1, we note that 1 = 12 and so m ∈ S. Otherwise, m − 1 ∈ S

h since m − 1 ∈ {1, 2, 3, . . . , m − 1} ⊆ Si so 1 + 3 + 5 + · · · + (2(m − 1) − 1 = (m − 1)2 .

Adding 2m − 1 to both sides of this equality yields

1 + 3 + 5 + · · · + (2(m − 1) − 1) + (2m − 1) = (m − 1)2 + (2m − 1)


= m2 − 2m + 1 + 2m − 1
= m2

Thus, m ∈ S and we conclude S = N by the PCI. 2

3.4 Proofs Involving Quantifiers


Recall that in our first example of a direct proof in the previous chapter we proved the
statement “If x is odd then x + 1 is even. That statement has the meaning For every integer x, if
x is odd then x + 1 is even. We dealt with the quantifier in that example by asking you to think
of the variable x as some fixed integer. This section discusses specifically the proof methods for
statements with quantifiers.

To prove a proposition of the form we must show that is true for every object x in the
universe. A direct proof is begun by letting x represent an arbitrary object in the universe, and
then showing that is true for that object. In the proof we may use only properties of x that are
shared by every element of the universe. Then, since x is arbitrary, we can conclude that is true.

Thus a direct proof of (∀x)P (x) has the following form: (∀x)P (x)

A review of the proof examples in the previous chapter shows that whenever the state-
ment was universally quantified, the proof given had the form of a complete proof, because each
begins with an assumption such as “Let x be an integer” or “Let x and y be real numbers.”

Example 3.4.1 Prove that for every natural number n, 4n2 − 6.8n + 2.88 > 0

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Proof : The statement has the form (∀x)P (x), where the universe is N and P (x) is
”4n2 − 6.8n + 2.88 > 0.′′ i Let n be a natural number. Then n ≥ 1, so n − .8 and n − .9
are both positive. Therefore 4(n − .8)(n − .9) = 4n2 − 6.8n + 2.88 is positive. We conclude that
4n2 − 6.8n + 2.88 > 0 for all natural numbers n. 2
It is essential in a direct proof of (∀x)P (x) that the first step assume nothing about x
other than it is an object in the universe. In the example above there are two assumptions
about the variable x− for two very different reasons. The assumption “Let x ∈ Z” appears first
because we are assuming x is an object in the universe. We make the statement “Assume x is
even” because we are initiating a direct proof of a conditional sentence, which starts by assuming
the antecedent.

It is a mistake to give an example (or several examples) of the statement “If x is even,
2
then x is even” and then claim that the statement has been proved for all natural numbers n.
Examples may sometimes help decide whether a statement is true. Examples can also help guide
our thinking about how to proceed with a proof. However, we cannot prove that a universally
quantified statement is true by showing that it’s true for selected values of the variable.
x+y
Example 3.4.2 For all rational numbers x and y, is a rational number.
2

Proof : (The statement has the form (∀x)(∀y)P (x, y), where the universe is Q and P (x, y) is
“ x+y
2
is rational.” i Let x and y be rational numbers. Then
   
x+y 1 p s 1 pt + qs pt + qs
= + = =
2 2 q t 2 qt 2qt

Both pt + qs and 2qt are integers and 2qt 6= 0. (The sums and products of integers are integers.
x+y
The product of three nonzero numbers is not zero. i Therefore, is a rational number. 2
2
The method of proof by contradiction is often used to prove statements of the form
(∀x)P (x). Since ∼| (∀x)P (x) is equivalent to (∃x) ∼ P (x), the form of the proof is as follows:

A proof of a statement about unique existence always involves multiple quantifiers. The
standard technique for proving a proposition of the form (∃!x)P (x) is based on proving the
equivalent statement: (∃x)P (x) ∧ (∀y)(∀z)[P (y) ∧ P (z) ⇒ y = z]. Since the main connective is
a conjunction, the method will have two parts:

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Example 3.4.3 Every nonzero real number has a unique multiplicative inverse.

Proof : h The statement has the form (∀x ∈ R)(x 6= 0 ⇒ (∃!y ∈ R)(xy = 1) .i Let x 6= 0. h
We show there is a unique real number y such that xy = 1 in two steps: First show that such a
number y exists, and then show that x cannot have two different inverses.i
1
(i) (This part is a constructive proof.) Let y = . Since x 6= 0, y is a real number. Then
  x
1
xy = x = 1. Therefore, x has a multiplicative inverse.
x
(ii) Now suppose that y and z are multiplicative inverses for x. (We do not assume that this y
is the same as the y in part (i).) Then xy = 1 and xz = 1, so

xy = xz
xy − xz = 0
x(y − z) = 0

Since x 6= 0, y − z = 0. Therefore y = z

Self Evaluation:
Name: Score:
Course/Year/Section: Date:

Prove the following using the Principle of Mathematical Induction.


1. 2n ≤ 2n , for all intgers n ≥ 1.
1
2. 1 · 3 + 2 · 4 + 3 · 5 + · · · + n(n + 2) = n(n + 1)(2n + 7) for all integers n ≥ 3.
6
3. Let x, y ∈ R. Then (x + y)2 = x2 + y 2 if and only if x = 0 or y = 0.

Review of Concepts:
• The Principle of Mathematical Induction (PMI) Let Pn be a statement involving
the positive integer n. Let m be a fixed positive integer (usually, we take m = 1 ). Suppose

i. Pn is true for n = m, and


ii. For all k ≥ m, if Pk is true, then Pk+1 is also true.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Then Pn is true for all integers n ≥ m.


• The upper case Σ of the Greek letter sigma is the standard mathematical symbol for sums.
If x1 , x2 , x3 , x4 , . . . , xn are real (or complex) numbers, then the sum of these numbers is
denoted by
Xn
xi = x1 + x2 + x3 + · · · + xn .
i=1
The left-hand side is read as “the sum of the xi as the index i ranges from 1 to n”.
• If n is a positive integer, then n factorial denoted by n! is defined as the product of
consecutive integers from 1 to n That is n! = n · (n − 1) · (n − 2) · · · 2 · 1. We define, 0! = 1
• Principle of Complete Induction (PCI) Suppose S is a subset of N with this property:
For all natural numbers n, if {1, 2, 3, . . . , n − 1} ⊆ S, then n ∈ S.
Then S = N.

Posttest:
Name: Score:
Course/Year/Section: Date:

Use the PMI to prove the following:


n
X n(3n + 1)
1. (3i − 1) = , for all n ≥ 1.
i=1
2
n
X
2. 2i = 2 (2n − 1) , for all integers n ≥ 1
i=1
n
Y (2n)!
3. (2i − 1) = , for all natural numbers n.
i=1
n!2n

n(n + 1) n(n + 1)(n + 2)


4. 1 + 3 + · · · + = , for all n ≥ 1
2 6
n  
Y 1 1
5. 1− = , for all natural numbers n.
i=1
i+1 n+1

References:

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Learning Module in
MM5 - Logic and Set Theory
Title: 4 SET THEORY

Topics: Basic Concept of Set Theory; Set Operations; Extended Set Operations and Indexed
Families of Sets; Principles of Counting

Time Frame: 9 hours

Introduction:

Starting from the theory of sets, one can construct all the the number systems, functions,
calculus, and other areas of mathematics. Thus, the study of sets is the foundation for the entire
structure of mathematics.

This chapter does not develop these construction but does provide some set-theoretic
concepts used throughout the text and advanced mathematics. Section 4.1 and 4.2 provide pre-
side definitions for familiar concepts such as union and intersection. In section 4.3 we extend the
union and intersection operations to collections of sets and discuss how to use indices to orga-
nize a family of sets. Basic methods for counting the elements in a finite set appear in Section 4.3.

Objectives:

1. Define and perform the operations on sets.

2. Discuss and prove the theorems on sets.

Pretest:
Name: Score:
Course/Year/Section: Date:

I. Let A = {1, 3, 5, 7, 9}, B = {0, 2, 4, 6, 8}, C = {1, 2, 4, 5, 7, 8}, and D = {1, 2, 3, 5, 6, 7, 8, 9, 10}.
Find

1. A ∩ B 4. A ∪ (C ∩ D)

2. A − B 5. A ∩ (B ∪ C)

3. A − (B − C) 6. C × (A ∩ B)

II. Let the universe be all real numbers. Let A = [3, 8), B = [2, 6], C = (1, 4), and D = (5, ∞).
Find

1. A ∪ B 4. Ac

2. A ∩ B 5. B − (A ∪ C)

3. B − D 6. (A ∪ C) − (B ∩ D)

Learning Activities:

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

4.1 Basic Concept of Set Theory


We assume that you have had some experience with sets, set notations, and common sets
of numbers such as the integers and real numbers. In general, capital letters will be used to
denote sets and lowercase letters to denote the elements in sets. To designate a set, we use the
notation
{x : P (x)}
where P (x) is a one-variable open sentence description of the property that defines the set. For
example, the set A = {1, 3, 5, 7, 9, 11, 13} may be written as

{x : x ∈ N, x is odd, and x < 14}.

The set of all integer multiples of 3 is the set 3Z = {3z : x ∈ Z} and this set contains
0, 3, 3, 6, 6, 9, 9, etc.

Note that some ambiguity may arise unless the universe is known. For example, mem-
bership in the set A = {x : x2 − 6x = 0} depends on an agreed upon universe (universal set).
For the universe of real numbers A is {0, 6}, but A is {6} for the universe of natural numbers.

Definition 4.1.1 Let ∅ = {x : x 6= x}.Then ∅ is a set, called the empty set or null set.

It is an axiom that ∅ is a set. Since for every object x in every universe, x is equal
(identical) to x, there are no elements in the collection ∅. That is, the statement x ∈ ∅ is false
for every object x.

Definition 4.1.2 A is a subset of B written A ⊆ B if and only if every element of A is an


element of B. If A is not a subset of B we write A * B. In symbols, we write the definition of
A ⊆ B as
A ⊆ B ⇔ (∀x)(x ∈ A ⇒ x ∈ B).

Therefore, a proof of the statement A ⊆ B is often a direct proof, taking the form:

Example 4.1.3 Let A = {2, −3} and B = {x ∈ R : x3 + 3x2 − 4x − 12 = 0}. Prove that
A ⊆ B.

Proof : Suppose x ∈ A. h We show A ⊆ B by individually checking each element of A.i


Then x = 2 or x = −3. For x = 2, 23 + 3 (22 ) − 4(2) − 12 = 8 + 12 − 8 − 12 = 0. For
x = −3, (−3)3 + 3(−3)2 − 4(−3) − 12 = −27 + 27 + 12 − 12 = 0. In both cases, x ∈ B. Thus,
A ⊆ B. 2

Definition 4.1.4 Sets A and B are equal if and only if they have exactly the same elements;
that is,
A = B iff (∀x)(x ∈ A ⇔ x ∈ B).

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Thus, one method to prove A = B is to give a sequence of equivalent statements starting


with the statement x ∈ A and ending with x ∈ B. However, since x ∈ A ⇔ x ∈ B is equivalent
to (x ∈ A ⇒ x ∈ B) ∧ (x ∈ B ⇒ x ∈ A), we may also say
A = B iff A ⊆ B and B ⊆ A
For this reason, a proof that A = B will typically have the form:

Example 4.1.5 Prove that X = Y where X = {x ∈ R : x2 − 1 = 0} and Y = {−1, 1}.


Proof :

(i) We show Y ⊆ X by individually checking each element of Y . By substitution, we see that


both 1 and −1 are solutions to x2 − 1 = 0. Thus Y ⊆ X.

(ii) Next, we must show X ⊆ Y . Let t ∈ X. Then, by definition of X, t is a solution to


x2 − 1 = 0. Thus t2 − 1 = 0. Factoring, we have (t − 1)(t + 1) = 0. This product is 0
exactly when t − 1 = 0 or t + 1 = 0. Therefore, t = 1 or t = −1. Thus if t is a solution,
then t = 1 or t = −1; so t ∈ Y . This proves X ⊆ Y

(iii) By (i) and (ii), X = Y .

2
Definition 4.1.6 The set B is a proper subset of the set A iff B ⊆ A and A 6= B. To denote
that B is a proper subset of A, some authors write B ⊂ A and others write B * A. The only
improper subset of A is the A itself.
One of the axioms of set theory asserts that for every set A, the collection of all subsets
of A is also set.
Definition 4.1.7 Let A be a set. The power set of A is the set whose element are the subsets
of A and is denoted P(A). Thus
P(A) = {B : B ⊆ A}.
Notice that the power set of a set A is a set whose elements are themselves sets, specifically
the subsets of A. For example, if A = {a, b, c, d}, then the power set of A is
P(A) ={∅, {a}, {b}, {c}, {d}, {a, b}, {a, c}, {a, d}, {b, c}, {b, d}, {c, d}
{a, b, c}, {a, b, d}, {a, c, d}, {b, c, d}, A}
Note: When we work with sets whose elements are sets, it is important to recognize the distinc-
tion between “is an element of” and “is a subset of.” To use A ∈ B correctly, we must consider
whether the object A (which happens to be a set) is an element of the set B, whereas A ⊆ B
requires determining whether all objects in the set A are also in B. If x ∈ A and B ⊆ A, the
correct terminology is that A contains x and A includes B.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Example 4.1.8 Example. Let X = {{1, 2, 3}, {4, 5}, 6}. Then X is a set with three elements,
namely, the set {1, 2, 3}, the set {4, 5}, and the number 6.P(X) = {∅, {{1, 2, 3}}, {{4, 5}}, {6},
{{1, 2, 3}, {4, 5}}, {{1, 2, 3}, 6}, {{4, 5}, 6}, X}. The set {{4, 5}} has one element; it is {4, 5}. For
the set X :
6 ∈ X and {4, 5} ∈ X, but 4 ∈ / X.
{4} ∈/ {4, 5} but {4} ⊆ {4, 5}.
{4, 5} * X because 5 ∈ / X.
{6} ⊆ X but {6} ∈ /X .
{6} ∈ P(X) but {6} * P(X)
{{4, 5}} ⊆ X because {4, 5} ∈ X
{4, 5} ∈/ P(X) but {{4, 5}} ∈ P(X)
∅ ⊆ X, so ∅ ∈ P(X), and {∅} ⊆ P(X).
Notice that for the set A = {a, b, c, d}, which has four elements, P(A) has 16 = 24 elements
and for the set X above with three elements, P(X) has 8 = 23 elements. These observations
illustrate the next theorem.

Theorem 4.1.9 If A is a set with n elements, then P(A) is a set with 2n elements.

4.2 Set Operations


In this section we give precise definitions and prove some well-known properties of familiar
operations on sets. Set union, intersection, and difference are called binary operations because
each combines two sets to produce another set.

Definition 4.2.1 Let A and B be sets.


The union of A and B is the set A ∪ B = {x : x ∈ A or x ∈ B}.
The intersection of A and B is the set A ∩ B = {x : x ∈ A and x ∈ B}.
The difference of A and B is the set A − B = {x : x ∈ A and x ∈ / B}.

The set A∪B is a set formed from A and B by choosing as elements the objects contained
in at least one of A or B; A ∩ B consists of all objects that appear in both A and B; and A − B
contains exactly those elements of A that are not in B. The shaded areas in the first three Venn
diagrams of the figure below represent, respectively, the result of forming the union, intersection,
and difference of two sets. These visual representations are often useful for understanding
relationships among sets. However, when there are more than three sets involved, it is difficult
or impossible to use Venn diagrams.

Example 4.2.2 For A = {1, 2, 4, 5, 7} and B = {1, 3, 5, 9},

A ∪ B = {1, 2, 3, 4, 5, 7, 9},
A ∩ B = {1, 5},
A − B = {2, 4, 7},
B − A = {3, 9}.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Example 4.2.3 For intervals of real numbers, we have

[3, 6] ∪ [4, 8) = [3, 8)


[3, 6] ∩ [4, 8) = [4, 6]
[3, 6] − [4, 8) = [3, 4)
[4, 8) − [3, 6] = (6, 8)
[4, 8) − (5, 6] = [4, 5] ∪ (6, 8).

Definition 4.2.4 Sets A and B are disjoint if and only if A ∩ B = ∅.

Example 4.2.5 The sets {1, 2, b} and {−1, t, ν, 8} are disjoint. The set of even natural numbers
and the set of odd natural numbers are disjoint. The intervals (0, 1) and [1, 2] are disjoint, but
(0, 1] and [1, 2] are not disjoint because they both contain the element 1

Note that simply drawing a Venn diagram does not constitute a proof. Each statement
requires a confirmation of the relationship between the sets by using the set operation definitions.
We prove parts (b), (f ), (h), (m), and (p) and leave the others as exercises.

Theorem 4.2.6 For all sets A, B, and C,

(a) A ⊆ A ∪ B.

(b) A ∩ B ⊆ A

(c) A ∩ ∅ = ∅

(d) A ∪ ∅ = A.

(e) A ∩ A = A.

(f) A ∪ A = A.

(g) A ∪ B = B ∪ A.

(h) A ∩ B = B ∩ A Commutative Laws

(i) A − ∅ = A.

(j) ∅ − A = ∅.

(k) A ∪ (B ∪ C) = (A ∪ B) ∪ C

(l) A ∩ (B ∩ C) = (A ∩ B) ∩ C Associative Laws

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

(n) A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) Distributive Laws

(o) A ⊆ B iff A ∪ B = B.

(p) A ⊆ B iff A ∩ B = A.

(q) If A ⊆ B, then A ∪ C ⊆ B ∪ C.

(r) If A ⊆ B, then A ∩ C ⊆ B ∩ C.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Proof :

(b) hWe must show that, if x ∈ A ∩ B, then x ∈ Ai. Suppose x ∈ A ∩ B. Then x ∈ A and
x ∈ B. Therefore x ∈ A. hWe used the tautology P ∧ Q ⇒ Q.i

(f) hWe must show that x ∈ A ∪ A iff x ∈ Ai. By the definition of union, x ∈ A ∪ A iff x ∈ A


or x ∈ A. This is equivalent to x ∈ A. Therefore, A ∪ A = A

(h) h This biconditional proof uses the definition of intersection and the equivalence of P ∧ Q
and Q ∧ P.i
x ∈ A ∩ B iff x ∈ A and x ∈ B
iff x ∈ B and x ∈ A
iff x ∈ B ∩ A

(m) hAs you read this proof, watch for the steps in which the definitions of union and intersec-
tion are used (two for each).i

x ∈ A ∩ (B ∪ C) iff x ∈ A and x ∈ B ∪ C
iff x ∈ A and (x ∈ B or x ∈ C)
iff (x ∈ A and x ∈ B) or (x ∈ A and x ∈ C)
iff x ∈ A ∩ B or x ∈ A ∩ C
iff x ∈ (A ∩ B) ∪ (A ∩ C)

Therefore A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C).

(p) h We give separate proofs for each implication, making use of earlier parts of this theorem.i
First, assume that A ⊆ B. We must show that A ∩ B = A. Suppose x ∈ A. Then from
the hypothesis A ⊆ B, we have x ∈ B. Therefore x ∈ A and x ∈ B, so x ∈ A ∩ B. This
shows that A ⊆ A ∩ B, which, combined with A ∩ B ⊆ A from part (b) of this theorem,
gives A ∩ B = A.
Second, assume that A ∩ B = A. We must show that A ⊆ B. By parts and (h) of this
theorem, we have B ∩ A ⊆ B and B ∩ A = A ∩ B. Therefore, A ∩ B ⊆ B. By hypothesis,
A ∩ B = A, so A ⊆ B

2
Definition 4.2.7 Let U be the universe and A ⊆ U . The complement of A is the set Ac =
U −A
The set Ac is the set of all elements of the universe that are not in A.

For the set A = {2, 4, 6, 8}, we have Ac = {10, 12, 14, 16, . . .} if the universe is all even
natural numbers, while Ac = {1, 3, 5, 7, 9, 10, 11, 12, 13, . . .} if the universe is N.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

The next theorem includes several results about the relationships between complementa-
tion and the other set operations.
Theorem 4.2.8 Let U be the universe, and let A and B be subsets of U . Then
(a) (Ac )c = A
(b) A ∪ Ac = U
(c) A ∩ Ac = ∅.
(d) A − B = A ∩ B c .
(e) A ⊆ B iff B c ⊆ Ac .
(f) (A ∪ B)c = Ac ∩ B c
(g) (A ∩ B)c = Ac ∪ B c De Morgan’s Laws
(h) A ∩ B = ∅ iff A ⊆ B c .

Proof :

(a) By definition of the complement x ∈ (Ac )c iff x ∈


/ Ac iff x ∈ A. Therefore, (Ac )c = A.

(e) hThis is a two-part proof. The first part is an element chasing proof. The second part is
proved using the first part.i
(Show that if A ⊆ B then B c ⊆ Ac . ) Assume that A ⊆ B. Suppose x ∈ B c Then x ∈ / B.
c c c
Since A ⊆ B and x ∈ / B, we have x ∈/ A. Therefore, x ∈ A . Thus, B ⊆ A .
(Show that if B ⊆ A , then A ⊆ B.) Assume that B c ⊆ Ac . Then by part (1), (Ac )c ⊆
c c

(B c )c . Therefore, using part (a), A ⊆ B.

(f)
x ∈ (A ∪ B)c iff x ∈ / A∪B
iff it is not the case that x ∈ A or x ∈ B
iff x ∈
/ A and x ∈/B
iff x ∈ Ac and x ∈ B c
iff x ∈ Ac ∩ B c

The proofs of the remaining part are left as Exercise. 2


The ordered pair formed from two entities a and b is the object (a, b). Ordered pairs
have the property that if either of the coordinates a or b is changed, the ordered pair changes.
That is, two ordered pairs (a, b) and (c, d) are equal iff a = c and b = d. Thus, (3, 7) 6= (7, 3)
even though the sets {3, 7} and {7, 3} are equal.

We also say the ordered n -tuples (a1 , a2 , . . . , an ) and (c1 , c2 , . . . , cn ) are equal iff ai = ci
for i = 1, 2, . . . , n. Thus the ordered 5 -tuples (4, 9, 5, 0, 1), (5, 4, 9, 0, 1) and (0, 1, 4, 5, 9) are all
different.
Definition 4.2.9 Let A and B be sets. The product (or cross product) of A and B is
A × B = {(a, b) : a ∈ A and b ∈ B}
We read A × B as ” A cross B.”

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

The set A × B is the set of all ordered pairs having first coordinate in A and second
coordinate in B. The cross product is sometimes called the Cartesian product of A and B, in
honor of Ren Descartes.

Example 4.2.10 If A = {1, 2} and B = {2, 3, 4}, then

A × B = {(1, 2), (1, 3), (1, 4), (2, 2), (2, 3), (2, 4)}

Thus (1, 2) ∈ A × B, (2, 1) ∈


/ A × B, and {(1, 3), (2, 2)} ⊆ A × B. In this example, A × B 6= B × A
since
B × A = {(2, 1), (2, 2), (3, 1), (3, 2), (4, 1), (4, 2)}

The product of three or more sets is defined similarly. For example, for sets A, B, and
C, A × B × C = {(a, b, c) : a ∈ A, b ∈ B, and c ∈ C}.

Some useful relationships between the cross product of sets and the other set operations
are presented in the next theorem.

Theorem 4.2.11 If, A, B, C, and D are sets, then

(a) A × (B ∪ C) = (A × B) ∪ (A × C)

(b) A × (B ∩ C) = (A × B) ∩ (A × C)

(c) A × ∅ = ∅.

(d) (A × B) ∩ (C × D) = (A ∩ C) × (B ∩ D).

(e) (A × B) ∪ (C × D) ⊆ (A ∪ C) × (B ∪ D)

(f) (A × B) ∩ (B × A) = (A ∩ B) × (A ∩ B).

Proof :

(a) (Since both A×(B ∪C) and (A×B)∪(A×C) are sets of ordered pairs, their elements have
the form (x, y). To show that each set is a subset of the other we use an ”iff argument.” i

(x, y) ∈ A × (B ∪ C) iff x ∈ A and y ∈ B ∪ C
iff x ∈ A and (y ∈ B or y ∈ C)
iff (x ∈ A and y ∈ B) or (x ∈ A and y ∈ C)
iff (x, y) ∈ A × B or (x, y) ∈ A × C
iff (x, y) ∈ (A × B) ∪ (A × C)

Therefore, A × (B ∪ C) = (A × B) ∪ (A × C)

(e) If (x, y) ∈ (A × B) ∪ (C × D), then (x, y) ∈ A × B or (x, y) ∈ C × D. If (x, y) ∈ A × B,


then x ∈ A and y ∈ B. Thus x ∈ A ∪ C and y ∈ B ∪ D. hBecause A ⊆ A ∪ C and
B ⊆ B ∪ D.i Thus, (x, y) ∈ (A ∪ C) × (B ∪ D). If (x, y) ∈ C × D, a similar argument
shows (x, y) ∈ (A ∪ C) × (B ∪ D). This shows that (A × B) ∪ (C × D) ⊆ (A ∪ C) × (B ∪ D).

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

4.3 Extended Set Operations and Indexed Families of Sets


A set of sets is often called a family or a collection of sets. In this section we extend
the definitions of union and intersection to families of sets and prove some generalizations.

Throughout this section we will use script letters, A , B, C , . . . to denote families of sets.
For example,
A = {{1, 2, 3}, {3, 4, 5}, {3, 6}, {2, 3, 6, 7, 9, 10}}
is a family of four sets. Notice that 5 ∈ {3, 4, 5} and {3, 4, 5} ∈ A , but 5 ∈
/ A.

Definition 4.3.1 Let A be a family of sets. The union over A is


[
A = {x : x ∈ A for some A ∈ A }
A∈A

Using this definition, for any object x we may write:


[
x∈ A iff (∃A ∈ A )(x ∈ A).
A∈A

This symbolic statement expresses the direct relationship between the union over a family and
the existential quantifier ∃. To show that an object is in the union of a family, we must show
the existence of at least one set in the family that contains the object.

[
Example 4.3.2 For the family A of four sets given above, A = {1, 2, 3, 4, 5, 6, 7, 9, 10}.
A∈A

Definition 4.3.3 Let A be a family of sets. The intersection over A is


\
A = {x : x ∈ A for every A ∈ A }
A∈A

For the intersection over a family A , we write


\
x∈ A iff (∀A ∈ A )(x ∈ A).
A∈A
\
Example 4.3.4 Using the family A above again as an example, A = {3} because 3 is the
A∈A
only onject contained in all for sets in A .

The figure below is a Venn diagram showing the union and intersection over the family
M = {RS, T }.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Theorem 4.3.5 For every set B in a family A of sets


\
(a) A ⊆ B.
A∈A
[
(b) B ⊆ A.
A∈A
\ [
(c) If the family A is nonempty, then A⊆ A.
A∈A A∈A

Proof :
\
(a) Let A be a family of sets and B ∈ A . Suppose x ∈ A. Then x ∈ A for every A ∈
A∈A
A. hNotice that the set A in the last sentence is a dummy symbol. It stands
\ for any set in
the family. The set B is in the family. i In particular, x ∈ B. Therefore A ⊆ B.
A∈A

(b) The proof that B is a subset of the union over A is left as exercise.

(c) Let
\ A be a nonempty
[ family. Choose
\any set[
C ∈ A . By parts (a) and (b)
A⊆C⊆ A and therefore, A⊆ A.
A∈A A∈A A∈A A∈A

Example 4.3.6 Let B be the collection {Bn : n ∈ N}, where [Bn = {0, 1, 2, . . . , n}.
\ Members of
B include B2 = {0, 1, 2} and B6 = {0, 1, 2, 3, 4, 5, 6}. Then B = N ∪ {0} and B = {0, 1}.
B∈B B∈B

It is often helpful to associate an identifying tag, or index, with each set in a family of
sets. In the example above, each natural number n corresponds to a set Bn . By specifying the
index, as we did when we selected n = 2 or 6, we specified the corresponding set. By specifying
a set of indices, we can specify the family of sets we want to consider.

Definition 4.3.7 Let ∆ be a nonempty set such that for each α ∈ ∆ there is a corresponding
set Aα . The family {Aα : α ∈ ∆} is an indexed family of sets. The set ∆ is called the
indexing set and each α ∈ ∆ is an index .

An index is simply a label that provides a convenient way to refer to a certain set.

Example 4.3.8 For all n ∈ N, let An = {n, n + 1, 2n}. Then A1 = {1, 2}, A2 = {2, 3, 4},
A3 = {3, 4, 6}, and so forth. The set with index 10 is A10 = {10, 11, 20}. Except for the
set A1 , every set in the family {Ai : i ∈ N} has 3 elements. To form the family of sets that
contains only A2 , A3 , A10 , and A15 , we change the index set as follows: {A2 , A3 , A5 , A10 } =
{Ai : i ∈ {2, 3, 10, 15}}.

There is no real difference between a family of sets and an indexed family. Every fam-
ily of sets could be indexed by finding a large enough set of indices to label each set in the family.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

The operations of union and intersection over families of sets apply to indexed families,
although the notation is slightly different. For a family A = {Aα : α ∈ ∆}, the notations for
unions and intersection are:
[ [ [
Aα = A and x ∈ Aα iff (∃α ∈ ∆) (x ∈ Aα )
α∈∆ A∈A α∈∆
\ \ \
Aα = A and x ∈ Aα iff (∀α ∈ ∆) (x ∈ Aα ) .
α∈∆ A∈A α∈∆

Example 4.3.9 For each n ∈ N, let An = {n, n + 1, n2 } . For A = {An : n ∈ N}



\ 6
[
Ai = ∅ Ai = {4, 5, 6, 7, 16, 25, 36}
i=1 i=4
[∞ \4
Ai = N Ai = {4}
i=1 i=2
[3 \10
Ai = {1, 2, 3, 4, 9} Ai = ∅
i=1 i=8

The next theorem restates Theorem 4.3.5 for indexed families and gives a version of De
Morgan’s Laws for indexed families.

Theorem 4.3.10 Let A = {Aα : α ∈ ∆} be an indexed collection of sets. Then


\ !c
(a) Aα ⊆ Aβ for each β ∈ ∆. \ [
α∈∆
(c) A α = Acα
α∈∆ α∈∆
!c
[ [ \
(b) Aβ ⊆ Aα for each β ∈ ∆. (d) Aα = Acα
α∈∆ α∈∆ α∈∆

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Proof :
!c
\ \
(c) x ∈ Aα iff x ∈
/ Aα
α∈∆ α∈∆
iff it is not the case that for every α ∈ ∆, x ∈ Aα
iff for some β ∈ ∆, x ∈ / Aβ
iff for some β ∈ ∆, x ∈ Acβ
[
iff x ∈ Acα
!c α∈∆
\ [
Therefore, Aα = Acα
α∈∆ α∈∆

(d) hOne proof of part (d) is very similar to that given for part (c) and is left as an exercise.
However, since part (c) has been proved, it is permissible to use it. We also use (twice) the
fact that (Ac )c = A.i !c !c
[ [
Aα = (Acα )c
α∈∆ α∈∆
!c !c
\
= Acα
α∈∆
\
= Acα
α∈∆

Definition 4.3.11 The indexed family A = {Aα : α ∈ ∆} of sets is pairwise disjoint iff for
all α and β in ∆, either Aα = Aβ or Aα ∩ Aβ = ∅.

The family {A1 , A2 , A3 } in figure (a) is pairwise disjoint. However, the family {B1 , B2 , B3 }
in figure (b) is not pairwise disjoint. Although B1 ∩ B2 = ∅, the sets B1 and B3 are neither
identical nor disjoint.

Example 4.3.12 Suppose B = {B1 , B2 , B3 , B4 , B5 , B6 }, where

B1 = {a, c, e} B2 = {d, g}
B3 = {d, g} B4 = {b, f, h}
B5 = {a, c, e} B6 = {a, c, e}.

The family B is pairwise disjoint. Note that B1 = B5 = B6 and B2 = B3 , so B = {B1 , B2 , B4 }

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

4.4 Principles of Counting


Recall that a set A is finite iff A = ∅ or has n elements for some n ∈ N. For a
finite set A the number of elemets in A is denoted by n(A). For example, if A = {p, q} and
B = {3, 2, 1, 5, 9} then n(A) = 2 and n(B) = 5 This section describes some of the fundamental
techniques for counting the number of elements in finite sets.

Theorem 4.4.1 The Sum Rule


Let A and B be finite sets with m and n elements, respectively. If A and B are disjoint then
n(A ∪ B) = m + n.

We use the Sum Rule so often, we dont have to think about it: If a basket has 5 oranges
and 6 apples, then there are 11 pieces of fruit in the basket. The rule can be extended to any finite
number of sets. The Generalized Sum Rule can be proved using the Principle of Mathematical
Induction.

Theorem 4.4.2 The Generalized Sum Rule


For all n ∈ N and for every family A = {Ai : i = 1, 2, 3, . . . , n} of n distinct pairwise disjoint
sets, if n(Ai ) = ai for 1 < i < n, then
n
! n
[ X
n Ai = ai .
i=1 i=1

If sets A and B are not disjoint (see figure below), then determining the number of
elements in A ∪ B by simply adding n(A) and n(B) overcounts n(A ∪ B) by counting twice each
element of A ∩ B. Theorem 4.4.3 corrects this error by subtracting n(A ∩ B) from n(A) + (B)

Theorem 4.4.3 For finite sets A and B, n(A ∪ B) = n(A) + n(B) − n(A ∩ B).

Proof : By the Sum Rule n(A) = n(A − B) + n(A ∩ B) and n(B) = n(B − A) + n(A ∩ B).
Applying the Generalized Sum Rule to the distinct and pairwise disjoint sets A − B, A ∩ B, and
B − A, we have

n(A ∪ B) = n(A − B) + n(A ∩ B) + n(B − A) = n(A) + n(B) − n(A ∩ B).

2
If we know the number of elements in A, B, and A ∪ B, we can use Theorem 4.4.3 to
determine n(A ∩ B):
n(A ∩ B) = n(A) + n(B) − n(A ∪ B)
.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Example 4.4.4 During one week a total of 46 patients were treated by Dr. Medical for either
a broken leg or a sore throat. Of these, 32 had a broken leg and 20 had a sore throat. How
many did she treat for both ailments?

Solution: Letting B be the set of patients with broken legs and S the set of patients with sore
throats, the solution is

B ∩ S = B̄ + S̄ − B ∪ S = 32 + 20 − 46 = 6

Applying the Sum Rule to the disjoint sets B − S and B ∩ S, we could also find that B − S =
B̄ − B ∩ S = 32 − 6, so there were 26 patients with a broken leg but no sore throat. Similarly,
we could determine that 14 patients had just a sore throat. See figure below.

Theorem 4.4.5 The Product Rule


If A and B are finite sets with m and n elements, then n(A × B) = mn.

Like the Sum Rule, the Product Rule can be extended to more than 2 sets.

Theorem 4.4.6 The Generalized Product Rule


For all n ∈ N and for every family A = {Ai : i = 1, 2, 3, . . . , n} of n sets, if n(Ai ) = ai for
1 < i < n, then
n
Y
n(A1 × A2 × · · · × An ) = ai
i=1

Self Evaluation:
Name: Score:
Course/Year/Section: Date:

I. True or False

(a) N ⊆ Q (e) {1, 2, 3} ⊆ {1, 2, 3, 4}


(b) Q ⊆ Z (f) {{4}} ⊆ {1, 2, 3, {4}}
(c) [2, 5] = {2, 3, 4, 5} (g) 1, 2 ∈ 1, 2, 3, 1, 3, 1, 2
(d) (6, 9] ⊆ [6, 10) (h) For every set A, ∅ ⊂ A

II. Write the power set, P(X), for each of the following sets.

(a) X = {0, △, 2} (b) X = {∅, {a}, {b}, {a, b}}

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Review of Concepts:

• Let ∅ = {x : x 6= x}.Then ∅ is a set, called the empty set or null set.

• Sets A and B are equal if and only if they have exactly the same elements; that is,

A = B iff (∀x)(x ∈ A ⇔ x ∈ B).

• The set B is a proper subset of the set A iff B ⊆ A and A 6= B. To denote that B


is a proper subset of A, some authors write B ⊂ A and others write B * A. The only
improper subset of A is the A itself.Let A be a set.

• The power set of A is the set whose element are the subsets of A and is denoted P(A).
Thus
P(A) = {B : B ⊆ A}.

• Let A and B be sets.


The union of A and B is the set A ∪ B = {x : x ∈ A or x ∈ B}.
The intersection of A and B is the set A ∩ B = {x : x ∈ A and x ∈ B}.
The difference of A and B is the set A − B = {x : x ∈ A and x ∈ / B}.

• Sets A and B are disjoint if and only if A ∩ B = ∅.

• Let U be the universe and A ⊆ U . The complement of A is the set Ac = U − ALet A


and B be sets.

• The product (or cross product) of A and B is

A × B = {(a, b) : a ∈ A and b ∈ B}

We read A × B as ” A cross B.”

• Let A be a family of sets. The union over A is


[
A = {x : x ∈ A for some A ∈ A }
A∈A

Let A be a family of sets.

• The intersection over A is


\
A = {x : x ∈ A for every A ∈ A }
A∈A

• Let ∆ be a nonempty set such that for each α ∈ ∆ there is a corresponding set Aα . The
family {Aα : α ∈ ∆} is an indexed family of sets. The set ∆ is called the indexing
set and each α ∈ ∆ is an index .

• The indexed family A = {Aα : α ∈ ∆} of sets is pairwise disjoint iff for all α and β
in ∆, either Aα = Aβ or Aα ∩ Aβ = ∅.

• Let A and B be finite sets with m and n elements, respectively.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

• If A and B are disjoint then n(A ∪ B) = m + n.For finite sets A and B, n(A ∪ B) =
n(A) + n(B) − n(A ∩ B).

• If A and B are finite sets with m and n elements, then n(A × B) = mn.

Post Test:
Name: Score:
Course/Year/Section: Date:

1. Prove parts (o), and (r) of Theorem 4.2.6

2. Prove parts (g) and (h) of Theorem 4.2.8.

3. List the ordered pairs in A × B and B × A in the sets A{1, 3, 5} and B = {a, e, k, n, r}.

4. Find the union and intersection of the following families or indexed collections

(a) Let A = {{1, 3, 5}, {2, 4, 6}, {7, 9, 11, 13}, {8, 10, 12}}.
(b) Let A1 = {1}, A2 = {2, 3}, A3 = {3, 4, 5}, . . . , A10 = {10, 11, . . . , 19} and let
A = {An : n ∈ {1, 2, 3, . . . , 10}}.

5. Suppose n(A) = 24, n(B) = 21, and n(A ∪ B) = 37. Find

(a) n(A ∩ B)
(b) n(A − B
(c) n(B − A)

References:

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Learning Module in
MM5 - Logic and Set Theory
Title: 5 RELATIONS

Topics: Some Notes on Relations; Kinds of Relations; Equivalence Relations

Time Frame: 6 hours

Introduction:

Given a set of objects, we may want to say that certain pairs of objects are related in some
way. For example, we may say that two people are related if they have the same citizenship or the
same blood type, or if they like the same kinds of food. If a and b are integers, we might say that
a is related to b when a divides b. In this chapter we will study the idea of is related to by making
precise the notion of a relation and then concentrating on certain relations called equivalence
relations. The last two sections of the chapter introduce order relations and the theory of graphs.

Objectives:
1. Define and give examples of relations.
2. Define and give examples of equivalence relations and partitions.
Pretest:
Name: Score:
Course/Year/Section: Date:

Let T be the relation {(3, 1), (2, 3), (3, 5), (2, 2), (1, 6), (2, 6), (1, 2)}. Find

(a) Dom(T ) (c) T −1

(b) Rng(T ) (d) (T −1 )−1

Learning Activities:

5.1 Some Notes on Relations


When we speak of a relation on a set, we identify the notion of a is related to b with the
ordered pair (a, b). For the set of all people, if Phoebe and Monica were born on the same day
of the year, then the pair (Phoebe, Monica) is in the relation has the same birthday as. Thus a
relation may be defined simply as a set of ordered pairs.
Definition 5.1.1 Let A and B be sets. R is a relation from A to B iff R is a subset of A × B.
A relation from A to A is called a relation on A.

If (a, b) ∈ R, we write a R b and say a is R-related (or simply related) to b. If (a, b) ∈


/ R,
we write a R b.
Example 5.1.2 If A = {−1, 2, 3, 4} and B = {1, 2, 4, 5, 6}, let
R = {(−1, 5), (2, 4), (2, 1), (4, 2)}, S = {(5, 2), (4, 3), (1, 3)}, andT = {(−1, 3), (2, 3), (4, 4)}.
Then R is a relation from A to B, S is a relation from B to A and the set T is a relation on A

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

We could describe the relation R by writing −1 R 5, 2 R 4, 2 R 1, and 4 R 2. Since


/ R, we write 3 R 5. We can also describe R by listing the pairs of R in a two-column
(3, 5) ∈
table, by displaying the relation with an arrow diagram, or by drawing the graph of R as in the
figure below.

Example 5.1.3 An equation, inequality, expression, or graph is often used to describe a re-
lation, especially when listing all pairs is impractical or impossible. For example, the relation
LT = {(x, y) : R × R : x < y} is the familiar “less than relation on R since x LT y iff x < y.

The empty set ∅ and the set A × B are relations from A to B. In general, there are many
different relations from a set A to a set B because every subset of A × B is a relation from A
to B. That is, if A has m elements and B has n elements, then there are 2mn different relations
from A to B.

Definition 5.1.4 The domain of the relation R from A to B is the set

Dom(R) = {x ∈ A : there exists y ∈ B such that x R y}.

The range of the relation R is the set

Rng(R) = {y ∈ B : there exists x ∈ A such that x R y}.

Thus the domain of R is the set of all first coordinates of ordered pairs in R, and the
range of R is the set of all second coordinates. By definition, Dom(R) ⊆ A and Rng(R) ⊆ B.

For the relation R = {(−1, 5), (2, 4), (2, 1), (4, 2)}, Dom(R) = {−1, 2, 4} and Rng =
{1, 2, 4, 5}.

5.2 Kinds of Relations


Definition 5.2.1 For any set A, the relation IA = {(x, x) : x ∈ A} is called the identity
relation on A.

Example 5.2.2 For A = {1, 2, a, b}, IA = {(1, 1), (2, 2), (a, a), (b, b)}. Clearly, for any set A,
Dom(IA ) = A and Rng(IA ) = A.

Definition 5.2.3 If R is a relation from A to B, then the inverse of R is the relation

R−1 = {(y, x) : (x, y) ∈ R}.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Since inversion is a matter of switching the order of each pair in a relation, if R is a


relation from A to B, then R−1 is a relation from B to A.
Example 5.2.4 • The inverse of the relation R = {(1, b), (1, c), (2, c)} is the relation R−1 =
{(b, 1), (c, 1), (c, 2)}.

• For any set A, the inverse of IA is IA itself.


• For the real numbers, the inverse of the “less than relation is the “greater than relation on
R because
(x, y) ∈ LT −1 iff (y, x) ∈ LT iff y < x
iff x > y
Theorem 5.2.5 Let R be a relation from A to B.
(a) Dom(R−1 ) = Rng(R).
(b) Rng(R−1 ) = Dom(R).
Proof :

(a) b ∈ Dom(R−1 ) iff there exists a ∈ A such that (b, a) ∈ R−1


iff there exits a ∈ A such that (a, b) ∈ R
iff b ∈ Rng(R)

(b) The proof is similar to the proof for (a).

2
Given a relation from A to B and another from B to C, composition is a method of
constructing a relation from A to C.

Definition 5.2.6 Let R be a relation from A to B, and let S be a relation from B to C. The
composite of R and S is
S ◦ R = {(a, c) : there exists b ∈ B such that (a, b) ∈ R and (b, c) ∈ S}.
The relation S ◦ R is a relation from A to C since S ◦ R ⊆ A × C. It is always true that
Dom(S ◦ R) ⊆ Dom(R) but it is not always true that Dom(S ◦ R) = Dom(R).

Note: We have adopted the right-to-left notation for S ◦ R that is commonly used in analysis
courses. To determine S ◦ R you need to remember that R is the relation from the first set to
the second and S is the relation from the second set to the third. Thus, to determine S ◦ R we
apply the relation R first and then S.

Example 5.2.7 Let A = {1, 2, 3, 4, 5}, and B = {p, q, r, s, t}, and C = {x, y, z, w}. Let R be
the relation from A to B:
R = {(1, p), (1, q), (2, q), (3, r), (4, s)}
and S the relation from B to C:
S = {(p, x), (q, x), (q, y), (s, z), (t, z)}

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

These relations are illustrated in the figure above by arrows from one set to another. An element
a from A is related to an element c from C under S ◦ R if there is at least one “intermediate
element b of B such that (a, b) ∈ R and (b, c) ∈ S. For example, since (1, p) ∈ R and (p, x) ∈ S
then (1, x) ∈ S ◦ R. By following all possible paths along the arrows from A to B and B to C
in the figure above, we have

S ◦ R = {(1, x), (1, y), (2, x), (2, y), (4, z)}.

If R is a relation from A to B, and S is a relation from B to A, then R ◦ S and S ◦ R are


both defined, but you should not expect that R ◦ S = S ◦ R. Even when R and S are relations
on the same set, it may happen that R ◦ S 6= S ◦ R.

Example 5.2.8 Let R = {(x, y) ∈ R × R : y = x + 1} and S = {(x, y) ∈ R × R : y = x2 }. Then

R ◦ S = {(x, y) : (x, z) ∈ S and (z, y) ∈ R for some z ∈ R}


= (x, y) : z = x2 and y = z + 1 for some z ∈ R


= (x, y) : y = x2 + 1 .


S ◦ R = {(x, y) : (x, z) ∈ R and (z, y) ∈ S for some z ∈ R}


= (x, y) : z = x + 1 and y = z 2 for some z ∈ R


= (x, y) : y = (x + 1)2


Clearly, S ◦ R 6= R ◦ S, since x2 + 1 is seldom equal to (x + 1)2 .

The last theorem of this section presents several results about inversion, composition, and
the identity relation. We prove part (b) and the first part of (c), leaving the rest as Exercise.

Theorem 5.2.9 Suppose A, B, C, and D are sets. Let R be a relation from A to B, S be a


relation from B to C, and T be a relation from C to D.

(a) (R−1 )−1 = R

(b) T ◦ (S ◦ R) = (T ◦ S) ◦ R, so composition is associative.

(c) IB ◦ R = R and R ◦ IA = R.

(d) (S ◦ R)−1 = R−1 ◦ S −1 .

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Proof :

(b) The pair (x, w) ∈ T ◦ (S ◦ R) for some x ∈ A and w ∈ D


iff (∃z ∈ C)[(x, z) ∈ S ◦ R and (z, w) ∈ T ]
iff (∃z ∈ C)[(∃y ∈ B)((x, y) ∈ R and (y, z) ∈ S) and (z, w) ∈ T ]
iff (∃z ∈ C)(∃y ∈ B)[(x, y) ∈ R and (y, z) ∈ S and (z, w) ∈ T ]
iff (∃y ∈ B)(∃z ∈ C)[(x, y) ∈ R and (y, z) ∈ S and (z, w) ∈ T ]
iff (∃y ∈ B)[(x, y) ∈ R and (∃z ∈ C)((y, z) ∈ S and (z, w) ∈ T )]
iff (∃y ∈ B)[(x, y) ∈ R and (y, w) ∈ T ◦ S]
iff (x, w) ∈ (T ◦ S) ◦ R

(c) (We first show that IB ◦ R ⊆ R.) Suppose (x, y) ∈ IB ◦ R. Then there exists z ∈ B such
that (x, z) ∈ R and (z, y) ∈ IB . Since (z, y) ∈ IB , z = y. Thus (x, y) ∈ Rh since (x, y) =
(x, z) ∈ Ri. Conversely, suppose (p, q) ∈ R. Then (q, q) ∈ IB and thus (p, q) ∈ IB ◦ R.
Thus IB ◦ R = R.

2
5.3 Equivalence Relations
The goal of this section is to describe a way to equate objects in a set according to some
value, property, or meaning. We might say that among all students who completed a certain
math class, students are equivalent if they had the same numeric score on the final exam. With
this meaning of equivalence, a student with a score of 87 on the final exam is related to every
other student with a score of 87 and not related to any other student. We could also have said
that two students are equivalent if they have the same favorite movie, or if they have the same
blood type.

The three properties we define next, when taken together, comprise what we mean by
objects being equivalent.
Definition 5.3.1 Let A be a set and R be a relation on A.
R is reflexive on A iff for all x ∈ A, x R x.
R is symmetric for all x and y, if x R y, then y R x.
R is transitive iff for all x, y, and z ∈ A, if x R y and y R z, then x R z.

The relation R, defined as “had the same final exam score, on the set C of all students in
a given class has all three of these properties. R is symmetric because if student x had the same
score as student y, then student y must have had the same score as student x. R is transitive
because if student x had the same score as student y and student y had the same score as student
z, then x had the same score as z. Finally, for every student x in C, x must have had the same
score as x. Thus R is reflexive on C.

To prove that a relation R is symmetric or transitive, we usually give a direct proof,


because these properties are defined by conditional sentences. A proof that R is reflexive on A
is different. What we must do is show that for all x is R-related to x.

To prove that a relation R on a set A is not reflexive on A, we must show that there
exists some x ∈ A such that x R x. Since the denial of “If x R y then y R x is “x R y and not

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

y R x a relation R is not symmetric iff there are elements x and y in A such that x R y and
y R x. Likewise, R is not transitive iff there exist elements x, y, and z in A such that x R y and
y R z but x R z.

Example 5.3.2 For B = {2, 5, 6, 7}, let S = {(2, 5), (5, 6), (2, 6), (7, 7)} and T = {(2, 6), (5, 6)}.
✓ 6 and 2 T 2, neither S nor T is reflexive on B. The relation S is not symmetric
Since 6 S
✓ 2. Likewise, T is not symmetric because 5 T 6 but 6 T 5.
because 2 S 5, but 5 S

Both S and T are transitive relations. To verify that S is transitive we check all pairs
(x, y) in S with all pairs of the form (y, z). We have (2, 5) and (5, 6) in S, so we must have (2, 6);
we have (7, 7) and (7, 7) in S so we must have (7, 7). The relation T is transitive for a different
reason: there do not exist x, y, z in B such that x T y and y T z. Because its antecedent is false,
the conditional sentence “If x T y and y T z, then x T z” is true.

Example 5.3.3 Let R be the relation “is a subset of on P(Z), the power set of Z. R is
reflexive on P(Z) since every set is a subset of itself. R is transitive since for all sets A, B,
and C, if A ⊆ B and B ⊆ C then A ⊆ B. Notice that {1, 2} ⊆ {1, 2, 3} but {1, 2, 3} * {1, 2}
Therefore, R is not symmetric.

For every set A, the identity relation IA is reflexive on A, symmetric, and transitive. The
identity relation is, in fact, the relation “equals, because x IA y iff x = y. Equality is a way of
comparing objects according to whether they are the same. Equivalence relations, defined next,
are a means for relating objects according to whether they are, if not identical, at least alike
in the sense that they share a common trait. For example, if T is the set of all triangles, we
might say two triangles are “the same (equivalent) when they are congruent. This generates the
relation T = {(x, y) ∈ T × T : x is congruent to y} on T , which is reflexive on T , symmetric,
and transitive. The notion of equivalence, then, is embodied in these three properties.

Definition 5.3.4 A relation R on a set A is an equivalence relation on A iff R is reflexive


on A, symmetric, and transitive.

Definition 5.3.5 Let m be a fixed positive integer. For x, y ∈ Z we say x is congruent to y


modulo m iff m divides (x − y). We write x ≡m y,or simply x = y(mod m). The number m is
called the modulus of the congruence.

Example 5.3.6
Using 3 as modulus, 4 = 1(mod 3) because 3 divides 4 − 1. Likewise, 10 = 16(mod 3)
because 3 divides 10 − 16 = −6. Since 3 does not divide 5 − (−9) = 14, we have 5 6= −9( mod 3).
It is easy to see that 0 is congruent to 0, 3, −3, 6, and −6 and, in fact, 0 is congruent modulo 3
to every multiple of 3.

Theorem 5.3.7 For every fixed positive integer m, ≡m is an equivalence relation on Z.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Proof : We note that ≡m is a set of ordered pairs of integers and, hence, is a relation on Z.
(Now we show that ≡m is reflexive on Z, symmetric, and transitive.)

(i) To show reflexivity on Z, let x be an integer. We show that x = x(mod m). Since

m·0=0=x−x

m divides x − x. Thus ≡m is reflexive on Z.

(ii) For symmetry, suppose x = y(mod m). Then m divides x − y. Thus there is an integer k
so that x − y = km. But this means that

−(x − y) = −km or that y − x = (−k)m

Therefore, m divides yx, so that y = x(mod m).

(iii) Suppose x = y(mod m) and y = z(mod m). Thus m divides both x − y and y − z.
Therefore, there exist integers h and k such that x − y = hm and y − z = km. But then
h + k is an integer, and

x − z = (x − y) + (y − z) = hm + km = (h + k)m.

Thus m divides x − z, so x = z(mod m). Therefore, ≡m is transitive.

Hence, ≡m is an equivalence relation on Z. 2

Self Evaluation:
Name: Score:
Course/Year/Section: Date:

1. 
The inverse of R = {(x, y) ∈ R × R : y = 2x + 1} may be expressed in the form R =
−1
x−1
(x, y) ∈ R × R : y = 2 , the set of all pairs (x, y) subject to some condition. Use this
form to give the inverses of the following relations.

(a) R1 = {(x, y) ∈ R × R : y = x}
(b) R2 = {(x, y) ∈ R × R : y = −5x + 2}
(c) R3 = {(x, y) ∈ R × R : y = 7x − 10}
(d) R4 = {(x, y) ∈ R × R : y = x2 + 2}

2. Let R = {(1, 5), (2, 2), (3, 4), (5, 2)}, S = {(2, 4), (3, 4), (3, 1), (5, 5)}, and T = {(1, 4), (3, 5), (4, 1)}.
Find

(a) R ◦ S (c) T ◦ S
(b) R ◦ T (d) R ◦ R

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Review of Concepts:

• Let A and B be sets. R is a relation from A to B iff R is a subset of A × B. A relation


from A to A is called a relation on A.

If (a, b) ∈ R, we write a R b and say a is R-related (or simply related) to b. If (a, b) ∈


/ R,
we write a R b.

• The domain of the relation R from A to B is the set

Dom(R) = {x ∈ A : there exists y ∈ B such that x R y}.

The range of the relation R is the set

Rng(R) = {y ∈ B : there exists x ∈ A such that x R y}.

• For any set A, the relation IA = {(x, x) : x ∈ A} is called the identity relation on A.

• If R is a relation from A to B, then the inverse of R is the relation

R−1 = {(y, x) : (x, y) ∈ R}.

Let R be a relation from A to B, and let S be a relation from B to C.

• The composite of R and S is

S ◦ R = {(a, c) : there exists b ∈ B such that (a, b) ∈ R and (b, c) ∈ S}.

• Let A be a set and R be a relation on A.


R is reflexive on A iff for all x ∈ A, x R x.
R is symmetric for all x and y, if x R y, then y R x.
R is transitive iff for all x, y, and z ∈ A, if x R y and y R z, then x R z.

• A relation R on a set A is an equivalence relation on A iff R is reflexive on A, symmetric,


and transitive.

• Let m be a fixed positive integer. For x, y ∈ Z we say x is congruent to y modulo m


iff m divides (x − y). We write x ≡m y,or simply x = y(mod m). The number m is called
the modulus of the congruence.

Post Test:
Name: Score:
Course/Year/Section: Date:

1. Indicate which of the following relations on the given sets are reflexive on a given set,
which are symmetric, and which are transitive.

(a) {(1, 2)} on {1, 2}


(b) ≤ on N
(c) = on N

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

(d) < on N
(e) {(1, 5), (5, 1), (1, 1)} on the set A = {1, 2, 3, 4, 5}
p s
2. Let R be the relation on Q defined by R iff pt = qs. Show that R is an equivalence
q t
relation.

3. Name a positive integer and a negative integer that are

(a) congruent to 0(mod5)


(b) congruent to 2(mod4)

References:

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Learning Module in
MM5 - Logic and Set Theory
Title: 6 FUNCTIONS

Topics: Some Notes on Functions; Properties of Functions; Kinds of Functions; One-to-One


Correspondences and Inverse Functions

Time Frame: 9 hours

Introduction:

The concept of a function is very old, but the word function was not explicitly used until
1694 by G. W. Leibnitz.* It is only relatively recently that it has become standard practice
to treat a function as we define it belowas a relation with special properties. This is possible
because the rule that makes an element in one set correspond to an element from a second set
may be viewed as forming a collection of ordered pairs.

Objectives:

1. Define a function between sets and the image and inverse image of subsets of the domain
and codomain, resp.

2. Discuss the inclusion, restriction maps and characteristic functions.

3. Prove statements combining the concepts of the image and inverse image of subsets of the
domain and codomain, and composition of, or injective, surjective, or bijective functions

Pretest:
Name: Score:
Course/Year/Section: Date:

Which of the following relations are functions? For those relations that are functions, give the
domain and two sets that could be a codomain.

1. {(0, ∆), (∆, ), (, ∩), (∩, ∪), (∪, 0)}

2. {(1, 2), (1, 3), (1, 4), (1, 5), (1, 6)}
5.

3. {(1, 2), (2, 1)}

4. {(x, y) ∈ R × R : x = sin y} 6.

Learning Activities:

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

6.1 Some Notes on Functions


Definition 6.1.1 A function (or mapping ) from A to B is a relation f from A to B such
that
(i) the domain of f is A, and
(ii) if (x, y) ∈ f and (x, z) ∈ f , then y = z.
We write f : A → B and this is read “f is a function from A to B,” or “ f maps A to B.” The
set B is called the codomain of f . In the cases where B = A, we say f is function on A.

No restriction is placed on the sets A and B. They may be sets of numbers, sets of
ordered pairs, or even sets of functions.

The conditions for f to be a function from A to B have a lot to say about the first
coordinates of the ordered pairs in f : Condition (i) ensures that every element of a is a first
coordinate in f , and condition (ii) says that each first coordinate appears in just one ordered
pair in f . There are no corresponding requirements for second coordinates: It may happen that
some elements of B are not used as second coordinates, or that some elements of B are used as
second coordinates in two or more different ordered pairs.
Example 6.1.2 Let A = {1, 2, 3} and B = {4, 5, 6}. All of the sets
R1 = {(1, 4), (2, 5), (3, 6), (2, 6)}
R2 = {(1, 4), (2, 6), (3, 5)}
R3 = {(1, 5), (2, 5), (3, 4)}
R4 = {(1, 4), (3, 6)}
are relations from A to B.
• Since (2, 5) and (2, 6) are distinct ordered pairs with the same first coordinate, R1 is not
a function from A to B.
• Both R2 and R3 satisfy conditions (i) and (ii) and are functions from A to B.
• The domain of R4 is the set {1, 3}, which is not equal to A, so is not a function from A to
B. However, satisfies condition (ii), so it is correct to say that is a function from {1, 3} to
B.
The codomain B for a function f : A → B is the set of all objects available for use as
second coordinates (images). As with any relation, the range of f is
Rng(f ) = {v ∈ B : there isu ∈ A such that (u, v) ∈ f }
which is the set of objects that are actually used as second coordinates. The range of f is always
a subset of the codomain.

In the examples above, the range of R2 is the same as its codomain, but the range of R3
is {4, 5} 6= B. We say that R3 is a function from A to B, but √we could also say that R3 is also
a function from A to {4, 5}, and R3 is a function from A to { 3, π, 4, 5, 8} or to any other set
that contains both 4 and 5. A function has only one domain and one range, but many possible
codomains, because any set that includes the range may be considered to be a codomain.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Definition 6.1.3 Let f : A → B. We write y = f (x) when (x, y) ∈ f . We say that y is the
value of f at x (or the image of f at x ) and that x is a pre-image of y under f .

Suppose f : A → B. It is condition (ii) of the definition that makes f a single valued


correspondence, which means that for every x ∈ A there corresponds a unique (single) value in
B. This condition allows us to refer to the image of x, rather than an image and to write the
familiar for the image of x.

Example 6.1.4 Let F = {(x, y) ∈ Z × Z : y = x2 }. Then F is a mapping with domain Z and


F (x) = x2 .
• The image of 4 is 16,

• F (−3) = 9,

• F (t + 2) = (t + 2)2 ,

• the value of F at 10 is 100

• Both 5 and −5 are pre-images of 25 .

• Since 7 has no pre-image in Z, 7 is not in the range of F .

• The range is Rng(F ) = {0, 1, 4, 9, 16 . . .}.

Example 6.1.5 Prove that g = {(x, y) ∈ R × R : x = y 3 } is a function from R to R.

Proof : First, observe that g is a relation from R to R.

(i) (Show that Dom(g) = R.) Suppose x ∈ Dom(g). By definition of g, the first coordinates
√real numbers, so x ∈ R. Thus,√Dom(g) ⊆ R.
of elements of g are
Let x√∈ R. Then 3 x is a real number and x = ( 3 x)3 . Thus there exists y ∈ R (namely
y = 3 x)for which (x, y) ∈ g. Thus, x ∈ Dom(g).
Therefore, Dom(g) = R

(ii) (Show that f is single-valued.) Suppose (x, u) ∈ g and (x, v) ∈ g. Then x = u3 and x = v 3 .
Therefore u3 = v 3 , from which we conclude that u = v.

By parts (i) and (ii), g is a function from R to R. 2


To prove that a given relation r from A to B is not a function from A to B, we may
either show that (i) some element of A is not a first coordinate (that is, some element of A is not
in Dom(r)), or (ii) find some element x of A that is a first coordinate with two different second
coordinates - thus showing the existence of some (x, y) ∈ r and (x, z) ∈ r with y 6= z.

The relation H = {(x, y) ∈ R × R : x2 + y 2 = 25} with domain [−5, 5] is not a function


from [−5, 5] to R because, for example, (3, 4) ∈ H and (3, −4) ∈ H. (See the graph in the figure
below). Since we have the graph to view, an easy way to tell that H is not a function is to apply
the Vertical Line Test | for a relation r on R :
r is a function iff no vertical line intersects the graph of r more than once.
Visualizing the vertical line x = 3 helps us discover that H is not a function because (3, 4) and
(3, −4) are both in H.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

The graph of g = {(x, y) ∈ R × R : x = y 3 } in the example above appears in the figure


below. If we apply the Vertical Line Test to the graph of g, the relation g appears to be a
function. However, this observation does not constitute a proof because the graph represents
only a portion of the relation g and our representation might not reveal small vertical segments
of the graph.

Example 6.1.6 Note that arrow diagrams for relations with small finite domains may be used
to determine whether the relation is a function. The diagram in (a) in the figure below represents
a function with domain {a, b, c} but the diagram (b) in the figure below does not.

Theorem 6.1.7 Two functions f and g are equal iff

(i) Dom(f ) = Dom(g) and

(ii) for all x ∈ Dom(f ), f (x) = g(x).

6.2 Properties of Functions


For a function F : A → B, the inverse of F is the relation from B to A :

F −1 = {(x, y) : (y, x) ∈ F }

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

We are careful to say F −1 is a relation because the inverse of a function is a relation, but might
not be a function. Conditions on F to ensure that F −1 is a function will be given in the next
section.

For functions F : A → B and G : B → C the composite of F and G is the relation from


A to C :

G ◦ F = {(x, z) ∈ A × C : (x, y) ∈ F and (y, z) ∈ G, for some y ∈ B}.

Here, too, we say the relation G ◦ F , but we will soon see that the composite of two functions
is a function.

Example 6.2.1 Let F = {(x, y) : y = 2x + 1} and G = {(x, y) : y = x2 }. Then F and G are


mappings with domain and codomain R. The inverse of F and G are

F −1 = {(x, y) ∈ R × R : (y, x) ∈ F }
= {(x, y) ∈ R × R : x = 2y + 1}
 
x−1
= (x, y) ∈ R × R : y =
2

and
G−1 = {(x, y) ∈ R × R : (y, x) ∈ G}
{(x, y) ∈ R × R : x = y 2 }.
The inverse of F is a function. The inverse of G is not a function since, for instance,

(4, 2) ∈ G−1 and (4, −2) ∈ G−1 .

The composite of F and G is

G ◦ F = {(x, z) ∈ R × R : ∃y ∈ R such that (x, y) ∈ F and (y, z) ∈ G}


= (x, z) ∈ R × R : ∃y ∈ R such that y = 2x + 1 and z = y 2


= (x, z) ∈ R × R : z = (2x + 1)2




We can also compute other composites, such as

F ◦ F = {(x, z) ∈ R × R : ∃y ∈ R such that y = 2x + 1 and z = 2y + 1}


= {(x, z) ∈ R × R : z = 2(2x + 1) + 1}
= {(x, z) ∈ R × R : z = 4x + 3}

and
F ◦ G = (x, z) ∈ R × R : ∃y ∈ R such that y = x2 and z = 2y + 1


= (x, z) ∈ R × R : z = 2x2 + 1


These examples show that G ◦ F and F ◦ G are not always equal. Thus, composition of
functions is not commutative.

Theorem 6.2.2 Let A, B and C be sets and F : A → B and G : B → C. Then G ◦ F is a


function from A to C and Dom(G ◦ F ) = A.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

6.3 Kinds of Functions


The definition of a function f : A → B is stated in terms of conditions on the first
coordinates of f . Two important properties of functions are defined by requiring additional
conditions on the second coordinates of f .

Definition 6.3.1 A function f : A → B is onto B (or is a surjection) iff Rng (f ) = B. When


onto
f is a surjection, we write f : A −→ B

For f : A → B, it is always the case that Rng(f ) ⊆ B, so a function always maps


to its codomain. Since Rng(f ) ⊆ B is always true, f : A → B is a surjection if and only if
B ⊆ Rng(f ); that is, iff every b ∈ B has a pre-image. Therefore, to prove that f : A → B is
onto its codomain B, one must show that for every b ∈ B, b = f (a), for some a ∈ A.

Example 6.3.2 Prove that F : R → R, where F (x) = x + 2, is onto R.

Proof : (We must show that for every w ∈ R, there exists t ∈ R such that F (t) = w.) Let
w ∈ R. We choose t = w − 2. (Since we want w = F (t) = t + 2, the pre-image we need is
t = w − 2.) Then F (t) = t + 2 = (w − 2) + 2 = w. Therefore, F : R → R is onto R. 2

Example 6.3.3 Let G : R → R be defined by G(x) = x2 + 1. Then G is not onto R. To show


this, we find an element y in the codomain R that has no pre-image in the domain R. Let y be
−2. Since x2 + 1 ≥ 1 for every real number x, there is no x ∈ R such that G(x) = −2. Hence G
is not onto R.

Example 6.3.4 Example. Let s : (−∞, 0] → [−4, ∞) be defined by s(x) = x2 − 4. Prove that
s is onto [−4, ∞).

Proof : Let w ∈ [−4,
√ ∞). Then w ≥ −4, so w + 4 ≥ 0. Choose x = − w + 4. ( Note that we
do not choose x = w + 4.) Then x ∈ (−∞, 0]. It follows that

s(x) = (− w + 4)2 − 4 = (w + 4) − 4 = w

Therefore the function f maps onto [−4, ∞). 2

onto outo onto


Theorem 6.3.5 If f : A −→ B, and g : B −→ C, then g ◦ f : A −→ C. That is, the
composite of surjective functions is a surjection.

For a function f : A → B we said that f is onto B if every element of B is used at least


once as a second coordinate. For the property of being one-to-one, the condition is that every
element of B is used as a second coordinate at most once.

Definition 6.3.6 A function f : A → B is one-to-one (or is an injection) iff whenever f (x) =


1−1
f (y), then x = y. When f is an injection, we write f : A −→ B

A direct proof that f : A → B is one-to-one begins with the assumption that x and
y are elements of A and that f (x) = f (y); the rest of the proof shows that x = y. A proof
by contraposition assumes that x 6= y and shows that f (x) 6= f (y). To show that f is not
one-to-one, it suffices to exhibit two different elements of A with the same image.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

Example 6.3.7 Show that the function F : R → R defined by F (x) = 2x + 1 is one-to-one.

Proof : Suppose x and z are real numbers and F (x) = F (z). Then

2x + 1 = 2z + 1.

Therefore 2x = 2z, so x = z. Hence, F : R → R is one-to-one. 2


Example 6.3.8 The function r(x) = |x| is not one-to-one because 2 6= −2 and r(2) = r(−2).
Given the graph of a function f : A → B where A and B are subsets of R, we can apply
this Horizontal Line Test for one-to-one functions:
f is one-to-one iff every horizontal line intersects the graph of f at most once.
The next example shows that we need to consider the domain when we determine whether
a function is one-to-one.
Example 6.3.9 Let f : [0, ∞) → [0, ∞) be given by f (x) = x2 . Show that f is one-toone.

Proof : Suppose x, y ∈ [0, ∞) and f (x) = f (y). Then x2 = y 2 , so either x = y or x = −y.


Since x ≥ 0 and y ≥ 0, we conclude that x = y. Therefore f is one-to-one. 2
1
Example 6.3.10 Let G : R → R be given by G(x) = . We attempt to show G is an
x2 + 1
injection by assuming that G(x) = G(y). Then
1 1
= 2
x2 +1 y +1
Therefore, x2 + 1 = y 2 + 1, so x2 = y 2 . It does not follow from this that x = y. This unsuccessful
proof suggests a way to find distinct real numbers with equal images. We note that 22 = (−2)2 ,
and then compute G(2) = G(−2) = 15 . Thus G is not an injection.
1−1 1−1 1−1
Theorem 6.3.11 If f : A −→ B and g : B −→ C, then g ◦ f : A −→ C. That is, the composite
of injective functions is an injection.
Proof : Assume that (g ◦ f )(x) = (g ◦ f )(z). Thus g(f (x)) = g(f (z)). Then f (x) = f (z) since
g is one-to-one. Then x = z since f is one-to-one. Therefore, g ◦ f is one-to-one. 2

6.4 One-to-One Correspondences and Inverse Functions


In this section we consider functions that have both the desirable properties of being one-
to-one and mapping onto their codomains. The key role played by these functions in succeeding
chapters suggests their importance in advanced mathematics.
Definition 6.4.1 A function f : A → B is a one-to-one correspondence (or a bijection)
iff f is one-to-one and onto B.
Example 6.4.2 Let A = {a, b, c} and B = {p, q, r}. The function h : A → B, where h(a) = p,
h(b) = r, and h(c) = q is a bijection from A onto B.
Theorem 6.4.3 Let F be a function from set A to set B.
(a) F −1 is a function from Rng(F ) to A iff F is one-to-one.
(b) If F −1 is a function, then F −1 is one-to-one.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

6.5 Images of Sets


Let f be a function from A to B. Up to this point we have considered the mapping of
individual elements in A to their images in B or considered pre-images of individual elements
in B. The next step is to ask about collections of points in A or in B and what corresponds to
them in the other set.

Definition 6.5.1 Let f : A → B and let X ⊆ A and Y ⊆ B. The image of X or image set
of X is
f (X) = {y ∈ B : y = f (x) for some x ∈ X}
and the inverse image of Y is

f −1 (Y ) = {x ∈ A : f (x) ∈ Y }.

Example 6.5.2 Let A = {0, 1, 2, 3, −1, −2, −3}, B = {0, 1, 2, 4, 6, 9}, X = {−1, 3}, Y = {4, 6},
and f : A → B be given by f (x) = x2 . The figure below shows that
f (X) = f ({−1, 3}) = {1, 9}
f ({−3, 3}) = {9}
f (A) = {0, 1, 4, 9}
and
f −1 (Y ) = f −1 ({4, 6}) = {−2, 2}
f −1 ({6}) = ∅
f −1 (B) = A

Self Evaluation:
Name: Score:
Course/Year/Section: Date:

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

1. Give a relation r from A = {5, 6, 7} to B = {3, 4, 5} such that

(a) r is not a function.


(b) r is a function form A to B, with Rng(r) = B.
(c) r is a function form A to B, with Rng(r) 6= B.

2. Find f ◦ g and g ◦ f for each pair of functions f and g.

(a) f (x) = 2x + 5, g(x) = 6 − 7x


(b) f (x) = x2 + 2x, g(x) = 2x + 1

Review of Concepts:

• A function (or mapping ) from A to B is a relation f from A to B such that

(i) the domain of f is A, and


(ii) if (x, y) ∈ f and (x, z) ∈ f , then y = z.

We write f : A → B and this is read “f is a function from A to B,” or “ f maps A to B.”


The set B is called the codomain of f . In the cases where B = A, we say f is function
on A.

• Let f : A → B. We write y = f (x) when (x, y) ∈ f . We say that y is the value of f at


x (or the image of f at x ) and that x is a pre-image of y under f .

• Two functions f and g are equal iff

(i) Dom(f ) = Dom(g) and


(ii) for all x ∈ Dom(f ), f (x) = g(x).

• A function f : A → B is onto B (or is a surjection) iff Rng (f ) = B. When f is a


onto
surjection, we write f : A −→ B.
onto outo onto
• If f : A −→ B, and g : B −→ C, then g ◦ f : A −→ C. That is, the composite of
surjective functions is a surjection.

• A function f : A → B is one-to-one (or is an injection) iff whenever f (x) = f (y), then


1−1
x = y. When f is an injection, we write f : A −→ B.
1−1 1−1 1−1
• If f : A −→ B and g : B −→ C, then g ◦ f : A −→ C. That is, the composite of injective
functions is an injection.

• A function f : A → B is a one-to-one correspondence (or a bijection) iff f is one-


to-one and onto B.

• Let F be a function from set A to set B.

(a) F −1 is a function from Rng(F ) to A iff F is one-to-one.


(b) If F −1 is a function, then F −1 is one-to-one.

Downloaded by Christian paul Arnaiz ([email protected])


lOMoARcPSD|25000625

• Let f : A → B and let X ⊆ A and Y ⊆ B. The image of X or image set of X is

f (X) = {y ∈ B : y = f (x) for some x ∈ X}

and the inverse image of Y is

f −1 (Y ) = {x ∈ A : f (x) ∈ Y }.

Post Test:
Name: Score:
Course/Year/Section: Date:

1. Which of the following functions are one-to-one and are map onto their indicated co-
damains? Prove each of your answers.

(a) f : R → R, f (x) = 21 x + 6

(b) f : R → R, f (x) = x2 + 5
(c) f : R → [1, +∞), f (x) = x2 + 1

2. Show that each of these functions is a one-to-one correspondence and find the inverse
function.
1
(a) f : (0, +∞) → (0, +∞) given by f (x) = .
x
4x
(b) g : (−2, +∞) → (−∞, 4) given by g(x) =
x+2

References:

Downloaded by Christian paul Arnaiz ([email protected])

You might also like