Speaking Mathematically

Variables

A variable is as a placeholder when you want to talk about something but either (1) you imagine that it has one or more values but you don’t know what they are, or (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.

To illustrate the first use, consider asking

Is there a number with the following property: doubling it and adding 3 gives the same result as squaring it?

In this sentence you can introduce a variable to replace the potentially ambiguous word “it”:

Is there a number x with the property that \(2x + 3 = x^2\)?

To illustrate the second use of variables, consider the statement

No matter what number might be chosen, if it is greater than \(2\), then its square is greater than \(4\).

In this case introducing a variable to give a temporary name to the (arbitrary) number you might choose enables you to maintain the generality of the statement.

No matter what number \(n\) might be chosen, if \(n\) is greater than \(2\), then \(n^2\) is greater than \(4\).

Some Important Kinds of Mathematical Statements

Universal Statement

A universal statement says that a certain property is true for all elements in a set.

All positive numbers are greater than zero

Conditional Statement

A conditional statement says that if one thing is true then some other thing also has to be true. If 378 is divisible by 18, then 378 is divisible by 6

Existential Statement

Given a property that may or may not be true, an existential statement says that there is at least one thing for which the property is true.

There is a prime number that is even

Universal Conditional Statements

A universal conditional statement is a statement that is both universal and conditional

For every animal \(a\), if \(a\) is a dog, then \(a\) is a mammal

They can be rewritten in ways that make them appear to be purely universal or purely conditional. For example, the previous statement can be rewritten in a way that makes its conditional nature explicit but its universal nature implicit:

If \(a\) is a dog, then \(a\) is a mammal.

The statement can also be expressed so as to make its universal nature explicit and its conditional nature implicit:

For every dog \(a\), \(a\) is a mammal.

Universal Existential Statements

A universal existential statement is a statement that is universal because its first part says that a certain property is true for all objects of a given type, and it is existential because its second part asserts the existence of something

Every real number has an additive inverse.

Existential Universal Statements

An existential universal statement is a statement that is existential because its first part asserts that a certain object exists and is universal because its second part says that the object satisfies a certain property for all things of a certain kind

There is a positive integer that is less than or equal to every positive integer.

The Language of Sets

Set-Roster Notation

If \(S\) is a set the notation \(x \in S\) means that \(x\) is an element of \(S\). The notation \(x \notin S\) means that \(x\) is not al element of \(S\).

A set may be specified using the set-roster notation by writing all of its elements between braces (e.g. \(\{1, 2, 3\}\)).

Axiom of Extension

The axiom of extension says that a set is completely determined by what its elements are—not the order in which they might be listed or the fact that some elements might be listed more than once.

SymbolSet
$\mathbb{R}$The set of all real numbers
$\mathbb{Z}$The set of all integers
$\mathbb{Q}$The set of all rational numbers

Addition of a superscript $+$ or $-$ or the letters nonneg indicates that only the positive or negative or nonnegative elements of the set. For example $\mathbb{R}^+$ denotes the set of positive real numbers and $\mathbb{Z}$ denotes the set of nonnegative integers.

Some authors refer to the set of nonnegative integers as the set of natural numbers and denote it as $\mathbb{N}$.

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.

Real Number Line

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. Thus every integer is a real number, and because the integers are all separated from each other, the set of integers is called discrete.

Set-Builder Notation

Let $S$ denote a set and let $P(x)$ be a property that elements of S may or may not satisfy. We may define a new set to be the set of all elements $x$ in S such that $P(x)$ is true. We denote this set as follows:

$$\{x \in S | P(x)\}$$

Occasionally we will write ${x | P(x)}$ without being specific about where the element $x$ comes from.

Subsets

Subset

If $A$ and $B$ are sets, then $A$ is called a subset of $B$, written $A \subseteq B$, if, and only if, every element of $A$ is also an element of $B$.

$$A \subseteq B \leftrightarrow \forall x, x \in A \leftarrow x \in B$$

It follows from the definition of subset that for a set $A$ not to be a subset of a set $B$ means that there is at least one element of $A$ that is not an element of $B$.

$$A \nsubseteq B \leftrightarrow \exists x, x \in A \text{ and } x \notin B$$

Proper Subset

Let $A$ and $B$ be sets. $A$ is a proper subset of $B$ if, and only if, every element of $A$ is in $B$ but there is at least one element of $B$ that is not in $A$.

Cartesian Products

Finally, in 1921, the Polish mathematician Kazimierz Kuratowski (1896–1980) published the following definition, which has since become standard. It says that an ordered pair is a set of the form

$$ \{\{a\}, \{a, b\}\} $$

If $a \neq b$ then the two sets are distinct and $a$ is in both sets whereas $b$ is not. This allows us to distinguish between $a$ and $b$ and say that a is the first element of the ordered pair and $b$ is the second element of the pair.

If $a = b$ the ordered pair becomes ${{a}, {a, a}}$, which equals ${{a}}$

The usual notation for ordered pairs refers to ${{a}, {a, b}}$ more simply as $(a, b)$.

Ordered Pairs

Given elements $a$ and $b$, the symbol $(a, b)$ denotes the ordered pair consisting of $a$ and $b$ together with the specification that $a$ is the first element of the pair and $b$ is the second element.

Equal Ordered Pairs

Two ordered pairs $(a, b)$ and $(c, d)$ are equal if, and only if, $a = c$ and $b = d$. Symbolically:

$$(a, b) = (c, d) \leftrightarrow a = c \text{ and } b = d$$

The notation for an ordered $n$-tuple generalizes the notation for an ordered pair to a set with any finite number of elements. It also takes both order and multiplicity into account.

Ordered $n$-tuple

Let $n$ be a positive integer and let $x_1, x_2, \cdots, x_n$ be (not necessarily distinct) elements. The ordered $n$-tuple, $(x_1, x_2, \cdots, x_n)$ consists of $x_1, x_2, \cdots, x_n$ together with the ordering: first $x_1$, then $x_2$, and so forth up to $x_n$.

Equal Ordered $n$-tuples

Two ordered $n$-tuples $(x_1, x_2, \cdots, x_n)$ and $(y_1, y_2, \cdots, y_n)$ are equal if and only if $x_1 = y_1, x_2 = y_2, \cdots, \text{ and } x_n = y_n$.

Cartesian Product

Given sets $A_1, A_2, \cdots, A_m$, the Cartesian product of $A_1, A_2, \cdots, A_n$ denoted $A_1 \times A_2 \times \cdots \times A_n$ is the set of all ordered $n$-tuples $(a_1, a_2, \cdots, a_n)$ where $a_1 \in A_1, a_2 \in A_2, \cdots, a_n \in A_n$.

String

Let $n$ be a positive integer. Given a finite set $A$, a string of length $n$ over $A$ is an ordered $n$-tuple of elements of $A$ writter without parentheses or commas.

The elements of $A$ are called the characters of the string. The null string over $A$ is defined to be the string with no characters. It is often denoted $\lambda$ and is said to have length $0$.

The Language of Relations and Functions

The formal mathematical definition of relation was introduced by the American mathematician and logician C.S. Peirce in the nineteenth century.

Relation

Let $A$ and $B$ be sets. A relation $R$ from $A$ to $B$ is a subset of $A \times B$.

Given an ordered pair $(x, y)$ in $A \times B$, $x$ is related to $y$ by $R$, written $x R y$, if, and only if, $(x, y)$ is in $R$.

The set $A$ is called the domain of $R$ and the set $B$ is called its co-domain.

Arrow Diagram of a Relation

Suppose $R$ is a relation from a set $A$ to a set $B$. The arrow diagram for $R$ is obtained as follows:

  1. Represent the elements of $A$ as points in one region and the elements of $B$ as points in another region.
  2. For each $x$ in $A$ and $y$ in $B$, draw an arrow from $x$ to $y$ if, and only if, $x$ is related to $y$ by $R$.

Diagrams of Relations

Functions

Function

A function $F$ from a set $A$ to a set $B$ is a relation with domain $A$ and co-domain $B$ that satisfies the following two properties:

  1. For every element $x$ in $A$, there is an element $y$ in $B$ such that $(x, y) \in F$.
  2. For all elements $x$ in $A$ and $y$ and $z$ in $B$,
$$\text{ if } (x, y) \in F \text{ and } (x, z) \in F, \text{ then } y = z$$

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.

More precisely, if $F$ is a function from a set $A$ to a set $B$, then given any element $x$ in $A$, property (1) from the function definition guarantees that there is at least one element of $B$ that is related to $x$ by $F$ and property (2) guarantees that there is at most one such element.

Function Notation

If $A$ and $B$ are sets and $F$ is a function from $A$ to $B$, then given any element $x$ in $A$, the unique element in $B$ that is related to $x$ by $F$ is denoted $F(x)$, which is read “$F$ of $x$.”

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)$. This is illustrated in Figure 1.3.1.

Function Machine

Functions Defined by Formulas

A function is an entity in its own right. It can be thought of as a certain relationship between sets or as an input/output machine that operates according to a certain rule. It can be denoted by a single symbol or string of symbols.

A relation is a subset of a Cartesian product and a function is a special kind of relation. Specifically, if $f$ and $g$ are functions from a set $A$ to a set $B$, then

$$ f = \{(x, y) \in A \times B | y = f(x)\} \text{ and } g = \{(x, y) \in A \times B| y = g(x)\} $$

It follows that

$$ f \text{ equals } g, f = g, \text{ if and only if } f(x) = g(x), \forall x \in A $$

The Language of Graphs

Graph

A graph $G$ consists of two finite sets: a nonempty set $V(G)$ of vertices and a set $E(G)$ of edges, where each edge is associated with a set consisting of either one or two vertices called its endpoints.

The correspondence from edges to endpoints is called the edge-endpoint function.

An with just one endpoint is called a loop, and two or more distinct edges with the same set of endpoints are said to be parallel.

An edge is said to connect its endpoints; two vertices that are connected by an edge are called adjacent; and a vertex that is an endpoint of a loop is said to be adjacent to itself.

An edge is said to be incident on each of its endpoints, and two edges incident on the same endpoint are called adjacent. A vertex on which no edges are incident is called isolated.

Although a given pictorial representation uniquely determines a graph, a given graph may have more than one pictorial representation.

Graph Pictorial Representation

Directed Graph

A directed graph, or digraph, consists of two finite sets: a nonempty set $V(G)$ of vertices and a set $D(G)$ of directed edges, where each is associated with an ordered pair of vertices called its endpoints. If edge $e$ is associated with the pair $(y, w)$ of vertices, then $e$ is said to be the (directed) edge from $y$ to $w$.

Directed Graph

Degree of a Vertex

Let $G$ be a graph and $y$ a vertex of $G$. The degree of $v$, denoted $deg(v)$, equals the number of edges that are incident on $y$, with an edge that is a loop counted twice.

Vertex Degree