Speaking Mathematically Handouts
Speaking Mathematically Handouts
MATH2054 Discrete
Mathematics for Industrial
Engineering
CHAPTER 1
SPEAKING MATHEMATICALLY
1.1 Variables
We can use variables as a placeholder when we want to talk about
something but either
1. You know that it has one or more values but you don’t know what they are
2. You want whatever you say about it to be equally true for all elements in a
given set, and so you don’t want to be restricted to considering only a
particular, concrete value for it.
3/13/2025
• The crucial point is that the ability to translate among various ways of
expressing universal conditional statements is enormously useful for
doing mathematics and many parts of computer science.
3/13/2025
Exercises;
Fill in the blanks to rewrite the following statement:
• Ex.For every real number x, if x is nonzero then x2 is positive.
a. If a real number is nonzero, then its square ……… .
b. For every nonzero real number x,……….. .
c. If x …….., then ………..
d. The square of any nonzero real number is, ...................... .
e. All nonzero real numbers have……………. .
Examples:
Fill in the blanks to rewrite the following statement: Every pot has a lid.
a. All pots …………….
b. For every pot P, there is ……………..
c. For every pot P, there is a lid L such that …………….
3/13/2025
Or: There is a positive integer m that is less than or equal to every positive integer.
Or: There is a positive integer m such that every positive integer is greater than or
equal to m.
Or: There is a positive integer m with the property that for every positive integer n,
m ≤ n.
3/13/2025
Exercises:
Fill in the blanks to rewrite the following statement in three different
ways:
There is a person in my class who is at least as old as every person in my class.
• Certain sets of numbers are so frequently referred to that they are given special
symbolic names. These are summarized in the following table.
• The set of real numbers is usually pictured as the set of all points on a line, as shown below.
• The set of real numbers is divided into three parts: the set of positive real numbers, the set of
negative real numbers, and the number 0. Note that 0 is neither positive nor negative.
• Labels are given for a few real numbers corresponding to points on the line shown below.
• The real number line is called continuous because it is imagined to have no holes. The set of
integers corresponds to a collection of points located at fixed intervals along the real number line.
• Every integer is a real number, and because the integers are all separated from each other, the set
of integers is called discrete.
• The name discrete mathematics comes from the distinction between continuous and discrete
mathematical objects.
• Another way to specify a set uses what is called the set-builder notation.
• Occasionally we will write {x │P (x)} without being specific about where the
element x comes from. It turns out that unrestricted use of this notation can lead
to genuine contradictions in set theory. We will be careful to use this notation
purely as a convenience in cases where the set S could be specified if necessary.
3/13/2025
• Exercise:
Subsets
• A basic relation between sets
is that of subset.
• Exercises:
Cartesian Products
3/13/2025
Cartesian Products
• Exercises;
3/13/2025
Let A = {a, b}. List all the strings of length 3 over A with at least two characters that are
the same.
Solution
aab, aba, baa, aaa, bba, bab, abb, bbb
In computer programming it is important to distinguish among different kinds of data structures and to
respect the notations that are used for them. Similarly in mathematics, it is important to distinguish
among, say, {a, b, c}, {{a, b}, c}, (a, b, c), (a, (b, c)), abc, and so forth, because these are all significantly
different objects.
Ex:
Functions
• Although this definition is not obviously related to the way we usually
work with functions in mathematics, it is satisfying from a theoretical
point of view, and computer scientists like it because it is particularly
well suited for operating with functions on a computer.
3/13/2025
• Properties (1) and (2) can be stated less formally as follows: A relation
F from A to B is a function if, and only if:
1. Every element of A is the first element of an ordered pair of F.
2. No two distinct ordered pairs in F have the same first element.
• In most mathematical situations we think of a function as sending
elements from one set, the domain, to elements of another set, the
co-domain.
• Because of the definition of function, each element in the domain
corresponds to one and only one element of the co-domain.
Ex.
Ex.
3/13/2025
Ex.
3/13/2025
3/13/2025
Function Machines
• Another useful way to think of a function is as a machine. Suppose f is
a function from X to Y and an input x of X is given.
• Imagine f to be a machine that processes x in a certain way to
produce the output f(x).
Ex.
3/13/2025
From the diagram, it is easy to see that Bev, Cai, and Flo
are a group of three previous partners, and so it would be
reasonable for them to form one of these teams. The
drawing below shows the result when these three names
are removed from the diagram.
3/13/2025
• The dots are called vertices (plural of vertex) and the line segments joining
vertices are called edges.
• As can be seen from the first drawing, it is possible for two edges to cross
at a point that is not a vertex. Note also that the type of graph described
here is quite different from the “graph of an equation” or the “graph of a
function.”
Ex.
3/13/2025
Examples of Graphs
• Using a Graph to represent a Network
3/13/2025
Examples of Graphs
• Using a Graph to represent a Network
3/13/2025
• For example, from the knowledge that the Los Angeles Times is a big-
city daily and that a big-city daily contains national news, an artificial
intelligence program could infer that the Los Angeles Times
3/13/2025
Since an edge that is a loop is counted twice, the degree of a vertex can
be obtained from the drawing of a graph by counting how many end
segments of edges are incident on the vertex.
1) 2)
5)
3) 4)
6)